/* style/cockfighting.css */

:root {
    --color-primary: #FF8C1A;
    --color-secondary: #FFA53A;
    --color-background-dark: #0D0E12;
    --color-card-bg: #17191F;
    --color-text-main: #FFF3E6;
    --color-border: #A84F0C;
    --color-glow: #FFB04D;
    --color-deep-orange: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Text Main for overall page */
    background-color: var(--color-background-dark); /* Body background from shared */
    line-height: 1.6;
    padding-bottom: 40px;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--color-background-dark);
    position: relative;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for desktop hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-cockfighting__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 300px; /* Max width for desktop buttons */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--color-text-main);
    border: 2px solid var(--color-glow);
    box-shadow: 0 0 15px var(--color-glow);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--color-glow);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-3px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    max-width: 200px;
    background: var(--button-gradient);
    color: var(--color-text-main);
    border: 1px solid var(--color-glow);
}

.page-cockfighting__btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--color-glow);
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 140, 26, 0.4);
}

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

.page-cockfighting__dark-bg {
    background-color: var(--color-background-dark);
    padding: 60px 0;
}

.page-cockfighting__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 165, 58, 0.2);
}

.page-cockfighting__card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__card-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
    flex-grow: 1;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* How-to-Join Section */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-number {
    background: var(--button-gradient);
    color: var(--color-text-main);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

.page-cockfighting__step-content {
    flex-grow: 1;
}

.page-cockfighting__step-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-cockfighting__step-text {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

/* Promotions Section */
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.page-cockfighting__promo-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__promo-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__promo-text {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.page-cockfighting__cta-single {
    text-align: center;
    margin-top: 50px;
}

/* Mobile App Section */
.page-cockfighting__mobile-app-section {
    padding: 80px 0;
}

.page-cockfighting__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-cockfighting__app-text {
    flex: 1;
}

.page-cockfighting__app-image-wrapper {
    flex: 1;
    text-align: center;
    max-width: 500px; /* Limit image size for desktop */
}

.page-cockfighting__app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Support Section */
.page-cockfighting__support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__support-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-cockfighting__support-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__support-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.page-cockfighting__support-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-cockfighting__support-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    background-color: var(--color-card-bg);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: rgba(255, 140, 26, 0.1);
    border-bottom: 1px solid var(--color-border);
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-question::marker {
    display: none;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    margin-left: 20px;
    color: var(--color-primary);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding: 60px 0;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-cockfighting__copyright {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: rgba(255, 243, 230, 0.7);
    background-color: #0A0B0E;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 140, 26, 0.2);
}

/* Global image responsiveness */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 20px 30px;
    }

    .page-cockfighting__hero-title {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .page-cockfighting__section-title {
        font-size: 2.2rem;
    }

    .page-cockfighting__grid-2-cols {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .page-cockfighting__promo-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .page-cockfighting__app-content {
        flex-direction: column-reverse; /* Text on top for mobile */
        text-align: center;
    }

    .page-cockfighting__app-image-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-image-wrapper {
        max-height: 400px; /* Adjust max height for mobile */
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-image {
        object-fit: contain !important; /* Ensure image is fully visible, not cropped */
        height: auto !important;
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-cockfighting__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Buttons stack vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* Buttons */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1rem;
    }

    /* General Sections */
    .page-cockfighting__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }

    /* Images and Containers */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__highlights-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__how-to-join-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__mobile-app-section,
    .page-cockfighting__support-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__card {
        padding: 20px;
    }

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

    .page-cockfighting__card-title {
        font-size: 1.3rem;
    }

    .page-cockfighting__grid-3-cols,
    .page-cockfighting__grid-2-cols,
    .page-cockfighting__promo-list,
    .page-cockfighting__support-channels {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* How-to-Join Section */
    .page-cockfighting__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .page-cockfighting__step-number {
        margin-bottom: 15px;
    }

    /* Mobile App Section */
    .page-cockfighting__app-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .page-cockfighting__app-image-wrapper {
        max-width: 300px;
        margin-bottom: 20px;
    }

    /* FAQ Section */
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Copyright */
    .page-cockfighting__copyright {
        padding: 15px;
        font-size: 0.85rem;
    }
}