/* style/cockfighting.css */

/* --- General Styles for page-cockfighting --- */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Use shared background variable */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__section-title--white {
    color: #FFFFFF;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text-block--white {
    color: #FFFFFF;
}

.page-cockfighting__card {
    background: #ffffff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* --- Buttons --- */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1a7fb2;
    border-color: #1a7fb2;
}

.page-cockfighting__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb2;
    border-color: #1a7fb2;
}

.page-cockfighting__btn-primary--large,
.page-cockfighting__btn-secondary--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8; /* Slightly dim the image for text readability */
}

.page-cockfighting__hero-section .page-cockfighting__container {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    padding-top: 50px; /* Additional padding to ensure content is not too close to top */
    padding-bottom: 50px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Video Section --- */
.page-cockfighting__video-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for video */\    color: #FFFFFF;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it's treated as a block element */
}

.page-cockfighting__cta-buttons--video {
    margin-top: 30px;
}

/* --- Intro Section --- */
.page-cockfighting__intro-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}

/* --- How to Play Section --- */
.page-cockfighting__how-to-play-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 {
    text-align: center;
    align-items: center;
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    color: #26A9E0;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-cockfighting__step-card p {
    margin-bottom: 20px;
}

.page-cockfighting__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    object-fit: cover;
}

/* --- Betting Types Section --- */
.page-cockfighting__betting-types-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #FFFFFF;
}

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

.page-cockfighting__betting-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark background */
    color: #FFFFFF;
}

.page-cockfighting__betting-card .page-cockfighting__card-title {
    color: #FFFFFF;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* --- Tips Section --- */
.page-cockfighting__tips-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Very light blue background */
}

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

.page-cockfighting__tip-card {
    align-items: flex-start;
}

.page-cockfighting__tip-card .page-cockfighting__card-title {
    color: #26A9E0;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-cockfighting__tip-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- Why Choose Section --- */
.page-cockfighting__why-choose-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #FFFFFF;
}

.page-cockfighting__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__feature-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 25px;
    text-align: left;
}

.page-cockfighting__feature-title {
    color: #FFFFFF;
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

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

.page-cockfighting__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    color: #26A9E0;
    font-size: 1.4em;
    margin-bottom: 15px;
}

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

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    overflow: hidden; /* For smooth max-height transition */
    padding: 0; /* Reset padding for FAQ card */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FFFFFF;
    color: #333333;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 30px; /* Expanded padding */
}

/* --- CTA Bottom Section --- */
.page-cockfighting__cta-bottom-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 10px 20px;
    }
    .page-cockfighting__btn-primary--large,
    .page-cockfighting__btn-secondary--large {
        padding: 12px 25px;
        font-size: 1em;
    }
}

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

    .page-cockfighting__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-primary--large,
    .page-cockfighting__btn-secondary--large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Sections padding */
    .page-cockfighting__intro-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers with images are also responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific image sizes for mobile if needed, but max-width:100% is primary */
    .page-cockfighting__tip-image,
    .page-cockfighting__promo-image {
        height: auto !important; /* Override fixed height for responsiveness */
    }

    /* Video responsiveness */
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset */
    }
    .page-cockfighting__video,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* For video element itself */
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Reset padding for video wrapper */
        padding-right: 0 !important;
        overflow: hidden !important;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important; /* Optional: remove radius on small screens */
    }

    /* FAQ adjustments */
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
}