/* style/cockfighting.css */

/* --- Base Styles --- */
.page-cockfighting {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Assuming body background is dark from custom colors */
    background-color: var(--bg-color); /* From custom colors */
}

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

.page-cockfighting__section-title {
    font-size: clamp(2em, 5vw, 2.8em);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-cockfighting__text-block {
    font-size: 1.05em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text-link {
    color: var(--main-color);
    text-decoration: underline;
}

/* --- Buttons --- */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: #F2FFF6; /* Text Main */
    border: 2px solid var(--border-color);
    margin-left: 15px;
}

.page-cockfighting__btn-secondary:hover {
    background: var(--deep-green); /* Deep Green */
    border-color: var(--deep-green);
    color: #F2FFF6;
    transform: translateY(-2px);
}

/* --- Image Styles (Global) --- */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--bg-color); /* Background for the whole section */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 675px; /* Display height for hero image, based on 1200x675 ratio */
    object-fit: cover;
    object-position: center;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 6vw, 3.8em); /* Adjusted H1 font size */
    color: var(--gold); /* Gold */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-cockfighting__hero-section .page-cockfighting__description {
    color: var(--text-main); /* Text Main */
    margin-bottom: 40px;
    font-size: 1.2em;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- About Section --- */
.page-cockfighting__about-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* Background */
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__feature-item {
    text-align: center;
    background-color: var(--card-b-g); /* Card B G */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%; /* Example style */
    border: 3px solid var(--glow); /* Glow */
    padding: 5px;
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: var(--gold); /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__feature-description {
    color: var(--text-secondary); /* Text Secondary */
    font-size: 0.95em;
}

/* --- Game Types Section --- */
.page-cockfighting__game-types-section {
    padding: 80px 0;
    background-color: var(--card-b-g); /* Card B G */
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__card {
    background-color: var(--bg-color); /* Background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__card-image {
    width: 100%;
    height: 300px; /* Fixed height for card images, based on 400x300 ratio */
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--divider); /* Divider */
}

.page-cockfighting__card-title {
    font-size: 1.6em;
    color: var(--gold); /* Gold */
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    color: var(--text-secondary); /* Text Secondary */
    padding: 0 20px 20px;
    flex-grow: 1; /* Make text block fill available space */
}

.page-cockfighting__card-btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* --- Guide Section --- */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* Background */
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__step-item {
    background-color: var(--card-b-g); /* Card B G */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--glow); /* Glow */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__step-description {
    color: var(--text-secondary); /* Text Secondary */
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

/* --- Promotions Section --- */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--card-b-g); /* Card B G */
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__view-all-promos {
    text-align: center;
    margin-top: 60px;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* Background */
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-cockfighting__faq-item {
    background-color: var(--card-b-g); /* Card B G */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.page-cockfighting__faq-item details > summary {
    list-style: none; /* Hide default marker */
}
.page-cockfighting__faq-item details > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main); /* Text Main */
    cursor: pointer;
    background-color: var(--deep-green); /* Deep Green */
    border-bottom: 1px solid var(--divider); /* Divider */
}

.page-cockfighting__faq-question:hover {
    background-color: var(--main-color); /* Main Color */
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold); /* Gold */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary); /* Text Secondary */
    line-height: 1.6;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

/* --- Color Contrast Classes (for dark background, which is assumed for body) --- */
.page-cockfighting__dark-section {
    background-color: var(--card-b-g); /* Card B G */
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__text-main {
    color: var(--text-main); /* Text Main */
}

.page-cockfighting__text-secondary {
    color: var(--text-secondary); /* Text Secondary */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 3.2em);
    }
    .page-cockfighting__hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-image {
        height: 400px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-section .page-cockfighting__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0;
        padding: 12px 15px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
        margin-bottom: 20px;
    }

    .page-cockfighting__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-cockfighting__about-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section {
        padding: 50px 0;
    }

    .page-cockfighting__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-cockfighting__card-image {
        height: 200px;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }

    /* All containers with images/content */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__features-grid,
    .page-cockfighting__game-cards-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-cards-grid {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Video section top padding */
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Video responsiveness (if any, though none currently in HTML) */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

/* Custom Colors */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-b-g: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Ensure contrast for text on card/dark backgrounds */
.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: var(--gold); /* Gold */
}
.page-cockfighting__dark-section .page-cockfighting__description {
    color: var(--text-secondary); /* Text Secondary */
}
.page-cockfighting__dark-section .page-cockfighting__card-title {
    color: var(--gold); /* Gold */
}
.page-cockfighting__dark-section .page-cockfighting__card-text {
    color: var(--text-secondary); /* Text Secondary */
}
.page-cockfighting__faq-question {
    color: var(--text-main); /* Text Main */
}
.page-cockfighting__faq-answer {
    background-color: var(--bg-color); /* Background */
    color: var(--text-secondary); /* Text Secondary */
}