/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for the page, assuming dark body background */
    background-color: transparent; /* Inherit from body */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted height for desktop */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
    box-sizing: border-box;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-cockfighting__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.page-cockfighting__btn-link {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 1em;
}

.page-cockfighting__btn-link:hover {
    background-color: #005c2e;
    border-color: #005c2e;
}


/* General Section Styling */
.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__video-section,
.page-cockfighting__promotions-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
}

.page-cockfighting__dark-section {
    background-color: #0d0d0d; /* A dark background, similar to var(--dark-bg-1) */
    color: #f0f0f0;
}

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

/* Card Styling */
.page-cockfighting__card {
    background-color: #1a1a1a; /* Darker card background for contrast on dark sections */
    color: #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__card h3,
.page-cockfighting__card h4 {
    color: #017439; /* Brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card p {
    color: #f0f0f0;
}

.page-cockfighting__card ul {
    list-style: disc;
    margin-left: 20px;
    color: #f0f0f0;
}

.page-cockfighting__card ul li {
    margin-bottom: 8px;
}

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

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
    background-color: #f9f9f9; /* Light background for this section */
    color: #333333;
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-description {
    color: #555555;
}

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

.page-cockfighting__step-card {
    background-color: #ffffff; /* White card background on light section */
    color: #333333;
    text-align: center;
}

.page-cockfighting__step-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__step-card h3 {
    color: #017439;
}

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

/* Bet Types Section */
.page-cockfighting__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__bet-type-item h3 {
    color: #017439;
}

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

/* Video Section */
.page-cockfighting__video-section {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-cockfighting__video-wrapper {
    display: block; /* Ensures the a tag takes full width */
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for the video player */
    margin: 40px auto;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden; /* Ensure video corners are rounded */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* Apply border-radius to video element */
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: #f9f9f9; /* Light background */
    color: #333333;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__promotions-section .page-cockfighting__section-description {
    color: #555555;
}

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

.page-cockfighting__promo-card {
    background-color: #ffffff; /* White card background on light section */
    color: #333333;
    text-align: center;
}

.page-cockfighting__promo-card img {
    width: 100%;
    height: 280px; /* Fixed height for consistency */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__promo-card h3 {
    color: #017439;
}

.page-cockfighting__promo-card p {
    color: #555555;
    margin-bottom: 20px;
}

/* Security Section */
.page-cockfighting__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #f9f9f9; /* Light background */
    color: #333333;
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__faq-section .page-cockfighting__section-description {
    color: #555555;
}

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

.page-cockfighting__faq-item {
    background-color: #ffffff; /* White card background on light section */
    color: #333333;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    padding: 0; /* Remove initial padding to control answer padding */
    overflow: hidden;
}

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

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: #017439;
    font-size: 1.1em;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

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

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

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding-bottom: 100px;
}

.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
    margin-top: 50px;
}

/* Copyright */
.page-cockfighting__copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: #0d0d0d; /* Dark background */
    color: #999999;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 500px; /* Adjust height for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-link {
        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;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-description {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    /* Video responsiveness */
    .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;
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has header offset */
    }

    /* General container padding for mobile */
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__video-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__security-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__feature-grid,
    .page-cockfighting__steps-container,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__video-features,
    .page-cockfighting__promo-grid,
    .page-cockfighting__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__step-card img,
    .page-cockfighting__promo-card img {
        height: 200px; /* Adjust image height for smaller screens */
    }
}

/* Ensure content area images display at least 200px, not smaller */
.page-cockfighting__how-to-play-section .page-cockfighting__step-card img,
.page-cockfighting__promotions-section .page-cockfighting__promo-card img {
    min-width: 200px;
    min-height: 200px;
}
.page-cockfighting__video-wrapper .page-cockfighting__video {
    min-width: 200px;
    min-height: 200px;
}