/* style/cockfighting.css */

/* Base styles for the page content, ensuring text contrast */
.page-cockfighting {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Section common styles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: #017439; /* Primary color for titles on light backgrounds */
}

.page-cockfighting__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Adjusted to use var(--header-offset) for top padding */
    text-align: center;
    background: linear-gradient(135deg, #017439, #005f2c); /* Brand color gradient */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for emphasis */
    line-height: 1.2;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
    background: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
    background: #005f2c;
    border-color: #005f2c;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background: #ffffff;
    color: #333333;
}

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    background: #0a0a0a; /* Body background color */
    color: #ffffff;
}

.page-cockfighting__video-section .page-cockfighting__section-title,
.page-cockfighting__video-section .page-cockfighting__section-subtitle {
    color: #ffffff; /* Ensure text is white on dark background */
}

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

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block; /* Ensure no extra space below video */
}

.page-cockfighting__video-cta {
    margin-top: 20px;
}

/* Features Section */
.page-cockfighting__features-section,
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background: #f8f8f8;
    color: #333333;
}

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

.page-cockfighting__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-cockfighting__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background: #0a0a0a;
    color: #ffffff;
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__guide-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-cockfighting__guide-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__guide-step-title {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
    color: #f0f0f0;
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
    padding: 80px 0;
    background: #ffffff;
    color: #333333;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
    background: #0a0a0a;
    color: #ffffff;
}

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

.page-cockfighting__tips-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    transition: background-color 0.3s ease;
}

.page-cockfighting__tips-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.page-cockfighting__tips-item p {
    color: #f0f0f0;
}

/* Promotions Section */
.page-cockfighting__promotions-section .page-cockfighting__card .page-cockfighting__btn-primary {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 0.9em;
    background: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-cockfighting__promotions-section .page-cockfighting__card .page-cockfighting__btn-primary:hover {
    background: #005f2c;
    border-color: #005f2c;
}

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

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

.page-cockfighting__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00;
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background: #ffffff;
    color: #333333;
}

.page-cockfighting__final-cta-section .page-cockfighting__btn-primary {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-cockfighting__final-cta-section .page-cockfighting__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
}

/* General Dark/Light Background Colors */
.page-cockfighting__dark-section {
    background: #0a0a0a;
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background: #ffffff;
    color: #333333;
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__section-subtitle {
    color: #ffffff;
}

/* Contrast Fixes for specific elements */
.page-cockfighting__text-contrast-fix {
    color: #ffffff !important;
}


/* Responsive Design */
@media (min-width: 769px) {
    .page-cockfighting__content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }

    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__section-subtitle {
        font-size: 1em;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-cockfighting__features-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__video-wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .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: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__video-section,
    .page-cockfighting__features-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__final-cta-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-cockfighting__faq-question,
    .page-cockfighting__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}