/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Explicitly setting body background for contrast calculation */
    padding-bottom: 60px; /* Space above footer */
}

/* Page container for max-width and centering */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    border-color: #26A9E0;
    margin-right: 15px;
}

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

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand color */
    border-color: #ffffff;
}

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

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for contrast with body */
}

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

.page-cockfighting__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Reset for desktop */
}

.page-cockfighting__text-block p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-cockfighting__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: #121212; /* Body background */
}

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

.page-cockfighting__feature-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__feature-icon {
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__feature-card p {
    color: #cccccc;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-cockfighting__step-card {
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-cockfighting__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-cockfighting__step-card p {
    color: #cccccc;
}

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

.page-cockfighting__tip-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__tip-list li {
    background-color: #1a1a1a;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    color: #f0f0f0;
}

.page-cockfighting__tip-list strong {
    color: #26A9E0;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-cockfighting__promo-card {
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-cockfighting__promo-title {
    font-size: 1.6em;
    color: #EA7C07; /* Login color for promotions */
    margin-bottom: 15px;
}

.page-cockfighting__promo-card p {
    color: #cccccc;
}

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

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

.page-cockfighting__faq-item {
    background-color: #1a1a1a;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

.page-cockfighting__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

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

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #1a1a1a;
    color: #cccccc;
}

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

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

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for contrast */
    text-align: center;
}

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

.page-cockfighting__cta-final-section .page-cockfighting__section-description {
    color: #f0f0f0;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-primary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__content-grid--reverse {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__image-wrapper {
        order: -1; /* Image first on smaller screens for reverse grid */
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        margin-right: 0;
        width: 100% !important;
        max-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__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-description {
        font-size: 0.9em;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__image-wrapper,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Handled by container */
        /* padding-right: 15px; */ /* Handled by container */
        overflow: hidden !important; /* Ensure no overflow */
    }
    /* Specific for feature icons, ensuring they meet min-size but also responsive */
    .page-cockfighting__feature-icon {
        min-width: 200px !important; /* Maintain minimum size */
        min-height: 200px !important;
        width: 100% !important; /* But allow to scale up to 100% of container */
        height: auto !important;
        object-fit: contain; /* Ensure full image is visible */
    }
    /* Content area padding */
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__features-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 40px 0;
    }
    .page-cockfighting__content-grid {
        gap: 20px;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid {
        gap: 20px;
    }
    .page-cockfighting__text-block {
        padding: 0;
    }
}