/* style/cockfighting.css */

/* Base styles for the page content, considering body background is #000 (dark) */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Main content background is transparent to show body background */
}

.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: var(--header-offset, 120px) 0 60px; /* Use header offset for top padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    background-color: #017439; /* Brand color background for hero */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Use custom color for registration/login font for emphasis */
}

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

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

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
    filter: brightness(0.7); /* Darken image slightly, but not change color */
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    padding: 0 15px; /* Add padding for mobile */
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    padding: 0 15px; /* Add padding for mobile */
}

.page-cockfighting__dark-section {
    background-color: #017439;
    padding: 60px 0;
    color: #ffffff;
}

.page-cockfighting__about-section,
.page-cockfighting__features-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__safety-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final {
    padding: 60px 0;
}

/* Buttons */
.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 responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

/* Feature Grid */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px; /* Add padding for mobile */
}

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%; /* Ensure cards have consistent height */
    color: #ffffff;
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive image */
    display: block;
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow description to take available space */
}

/* How-to-Play List */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    font-size: 1.1em;
    color: #ffffff;
    padding-left: 30px; /* Space for border */
}

.page-cockfighting__list-item strong {
    color: #FFFF00; /* Highlight step titles */
}

.page-cockfighting__list-item a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-cockfighting__list-item a:hover {
    color: #e00b0b;
}

/* Video Section */
.page-cockfighting__video-section {
    background-color: #017439;
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
}

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

.page-cockfighting__video-wrapper .page-cockfighting__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    max-width: 100%;
    display: block;
}

.page-cockfighting__video-section .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Section */
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__promo-list .page-cockfighting__list-item {
    border-left-color: #FFFF00; /* Highlight promo items */
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #000; /* Dark background for FAQ section */
    color: #ffffff;
    padding: 60px 0;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px; /* Add padding for mobile */
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* CTA Final Section */
.page-cockfighting__cta-final {
    text-align: center;
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__cta-final .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Common button group styling */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 0 15px; /* Add padding for mobile */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__feature-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: var(--header-offset, 120px) 0 40px;
        min-height: 450px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__feature-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-cockfighting__feature-card {
        padding: 20px;
    }
    .page-cockfighting__feature-image {
        height: 180px;
    }
    .page-cockfighting__list-item {
        font-size: 1em;
        padding: 15px 20px;
        padding-left: 25px;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image and video responsive rules */
    .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__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
}

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