/* style/cockfighting.css */

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

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--page-cockfighting-text-secondary);
    background-color: var(--page-cockfighting-background);
}

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

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-cockfighting-text-main);
    letter-spacing: -0.5px;
}

.page-cockfighting__text-main {
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__text-secondary {
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__dark-bg {
    background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__card-bg {
    background-color: var(--page-cockfighting-card-bg);
}

.page-cockfighting__background {
    background-color: var(--page-cockfighting-background);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    border: 2px solid transparent; /* Base border for all buttons */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: #ffffff; /* White text for primary button */
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-text-main);
    border-color: var(--page-cockfighting-border);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(var(--page-cockfighting-text-main-rgb), 0.1);
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 8px 18px;
    font-size: 14px;
    border-color: var(--page-cockfighting-border);
    color: var(--page-cockfighting-text-main);
    background: transparent;
}

.page-cockfighting__btn-small:hover {
    background: rgba(var(--page-cockfighting-text-main-rgb), 0.1);
    transform: translateY(-1px);
}

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

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding: 10px 0 60px 0; /* body already handles header offset, small padding-top for visual */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and content */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-cockfighting__hero-description {
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 80px 0;
}

.page-cockfighting__intro-section p {
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* Why Choose Section (Features Grid) */
.page-cockfighting__why-choose-section {
    padding: 80px 0;
}

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

.page-cockfighting__feature-card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
    width: 100%;
    height: auto;
    max-height: 200px; /* Constraint for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for images */
    min-height: 200px;
}

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-cockfighting__card-description {
    font-size: 15px;
    line-height: 1.6;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    padding: 80px 0;
}

.page-cockfighting__bet-types-section p {
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
}

.page-cockfighting__list li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-cockfighting__list li::before {
    content: '•';
    color: var(--page-cockfighting-gold);
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Guide Section (Steps Grid) */
.page-cockfighting__guide-section {
    padding: 80px 0;
}

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

.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    margin-top: 0;
}

.page-cockfighting__step-card .page-cockfighting__card-description {
    margin-bottom: 25px;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-cockfighting__tip-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__tip-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__tip-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__tips-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__promotions-section p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-cockfighting__promotion-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--page-cockfighting-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--page-cockfighting-text-main);
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--page-cockfighting-text-secondary);
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 1000px; /* Arbitrary large value for smooth transition */
    opacity: 1;
}

.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-answer {
    max-height: 0;
    opacity: 0;
}

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

.page-cockfighting__cta-final-section p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--page-cockfighting-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 0 40px;
    }
}

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

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Ensure small padding, not --header-offset */
        padding-bottom: 40px;
    }

    .page-cockfighting__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px;
        font-size: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 50px 0;
    }

    .page-cockfighting__intro-section p,
    .page-cockfighting__bet-types-section p,
    .page-cockfighting__promotions-section p,
    .page-cockfighting__cta-final-section p {
        font-size: 16px;
    }

    .page-cockfighting__card-image,
    .page-cockfighting__tips-image,
    .page-cockfighting__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__tip-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    .page-cockfighting__card-title {
        font-size: 20px;
    }

    .page-cockfighting__card-description,
    .page-cockfighting__tip-description,
    .page-cockfighting__faq-answer p {
        font-size: 15px;
    }

    .page-cockfighting__list li {
        font-size: 16px;
        padding-left: 25px;
    }

    .page-cockfighting__list li::before {
        font-size: 20px;
        top: 0;
    }

    .page-cockfighting__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-toggle {
        font-size: 20px;
    }
    
    /* Ensure all image containers are responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 28px;
    }

    .page-cockfighting__section-title {
        font-size: 24px;
    }

    .page-cockfighting__card-title {
        font-size: 18px;
    }

    .page-cockfighting__faq-question {
        font-size: 15px;
    }
}