/* style/cockfighting.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --card-bg: #2A1212;
    --background-color: #140C0C;
    --text-main-color: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
}

.page-cockfighting {
    background-color: var(--background-color);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--button-gradient);
    border-radius: 2px;
}

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

.page-cockfighting__text-block strong {
    color: var(--gold-color);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: none;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

.page-cockfighting__hero-cta-buttons, .page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop, will change to contain for mobile */
}

.page-cockfighting__hero-content {
    position: relative; /* Not absolute, to flow below image */
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: -80px; /* Slight overlap for visual appeal */
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.page-cockfighting__main-title {
    font-size: 3.2em;
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: var(--deep-red-color);
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1200px;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
    background: var(--background-color);
}

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

.page-cockfighting__feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon {
    width: 100%;
    height: auto;
    max-width: 200px; /* Ensure icons are not too big */
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 5px;
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    color: var(--text-main-color);
    font-size: 1em;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: var(--deep-red-color);
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-cockfighting__step-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__step-description {
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__step-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-top: 20px;
    border-radius: 8px;
    align-self: center;
}

.page-cockfighting__step-btn {
    margin-top: 20px;
    align-self: flex-start;
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
    background: var(--background-color);
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__tip-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
}

.page-cockfighting__tip-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__tip-description {
    color: var(--text-main-color);
}

.page-cockfighting__tip-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin-top: 20px;
    border-radius: 8px;
    display: block;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--deep-red-color);
}

.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: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-cockfighting__promo-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__promo-description {
    color: var(--text-main-color);
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background: var(--background-color);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    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;
    color: var(--gold-color);
    cursor: pointer;
    list-style: none;
}

.page-cockfighting__faq-question::-webkit-details-marker, 
.page-cockfighting__faq-question::marker {
    display: none;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-main-color);
    font-size: 1em;
    line-height: 1.7;
}

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

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: var(--deep-red-color);
    text-align: center;
}

/* General Image Responsive */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contrast Fixes (as per requirements) */
.page-cockfighting__dark-section {
    background: var(--deep-red-color);
    color: var(--text-main-color);
}

.page-cockfighting__light-bg {
    background: var(--background-color);
    color: var(--text-main-color);
}

/* --------------------------------------------------- */
/* Responsive Styles */
/* --------------------------------------------------- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 15px;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: 2.5em;
    }

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

    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-cockfighting__feature-grid, .page-cockfighting__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-cockfighting__feature-card, .page-cockfighting__step-item, .page-cockfighting__tip-item, .page-cockfighting__promo-card, .page-cockfighting__faq-item {
        padding: 25px;
    }

    .page-cockfighting__feature-title, .page-cockfighting__step-title, .page-cockfighting__tip-title, .page-cockfighting__promo-title {
        font-size: 1.3em;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    /* General Image Responsive */
    .page-cockfighting img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important;
    }

    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Hero Section Mobile */
    .page-cockfighting__hero-section {
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-image {
        object-fit: contain !important; /* Contain for mobile, no cropping */
        max-height: none !important;
        aspect-ratio: unset !important;
    }

    .page-cockfighting__hero-content {
        margin-top: -40px; /* Reduced overlap for mobile */
        padding: 25px 15px;
        max-width: 100%;
        border-radius: 10px;
    }

    .page-cockfighting__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-cta-buttons, .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* General Image & Container Responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Feature Grid */
    .page-cockfighting__feature-grid, .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__feature-icon {
        max-width: 150px; /* Adjust for smaller screens */
    }

    /* Steps List */
    .page-cockfighting__step-item {
        padding: 20px;
    }

    .page-cockfighting__step-title {
        font-size: 1.5em;
    }

    /* Tips List */
    .page-cockfighting__tip-item {
        padding: 20px;
    }

    .page-cockfighting__tip-title {
        font-size: 1.4em;
    }

    /* FAQ Section */
    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-toggle {
        font-size: 1.2em;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Medium Screens (max-width: 768px for general content, but specific mobile for smaller breakpoints) */
@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.95em;
    }
    .page-cockfighting__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting__feature-title, .page-cockfighting__step-title, .page-cockfighting__tip-title, .page-cockfighting__promo-title {
        font-size: 1.2em;
    }
    .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
        font-size: 0.95em;
    }
}