/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--dark-bg, #0d0d0d); /* Assuming shared.css defines --dark-bg */
    overflow-x: hidden; /* Prevent horizontal scroll on overall page */
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: 3em;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    color: #cccccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for hero on desktop */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    margin-top: 0;
}

.page-cockfighting__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-cockfighting__hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background-color: #FFD700;
    color: #8B0000; /* Dark red text on gold button for contrast */
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #8B0000;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    margin-left: 20px;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

.page-cockfighting__btn-link {
    background-color: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 10px;
    display: inline-block;
}

.page-cockfighting__btn-link:hover {
    background-color: #FFD700;
    color: #8B0000;
}

/* Section Backgrounds for Contrast */
.page-cockfighting__dark-bg {
    background-color: var(--dark-bg, #0d0d0d);
    color: #f0f0f0;
}

.page-cockfighting__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: #f0f0f0;
}

/* Content Wrapper for text and image side-by-side */
.page-cockfighting__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__text-content {
    flex: 1;
}

.page-cockfighting__image-content {
    flex: 1;
    min-width: 300px; /* Minimum width for image content */
}

.page-cockfighting__image-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-cockfighting__image-center {
    text-align: center;
    margin: 40px auto;
}

.page-cockfighting__image-center img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}


/* Grid Layout for Bet Types */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__card-text {
    color: #cccccc;
    font-size: 1em;
}

/* Rule List */
.page-cockfighting__rule-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__rule-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__rule-item ul {
    list-style: disc;
    margin-left: 20px;
    color: #cccccc;
}

.page-cockfighting__rule-heading {
    font-size: 1.6em;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Feature Grid */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__feature-text {
    color: #cccccc;
    font-size: 1em;
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-counter;
    margin-top: 40px;
}

.page-cockfighting__guide-item {
    background-color: rgba(0, 0, 0, 0.15); /* Slightly darker background for guide items */
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px; /* Space for step number */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__guide-item::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: #FFD700;
    color: #8B0000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
}

.page-cockfighting__guide-heading {
    font-size: 1.6em;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 10px;
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-cockfighting__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}