/* style/cockfighting.css */
/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for main content */
}

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

/* Section styling */
.page-cockfighting__hero-section,
.page-cockfighting__intro-section,
.page-cockfighting__types-section,
.page-cockfighting__rules-betting-section,
.page-cockfighting__advantages-section,
.page-cockfighting__tips-strategy-section,
.page-cockfighting__responsibility-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background color variants */
.page-cockfighting__dark-bg {
    background-color: #1a1a1a; /* A darker background for contrast against body's var(--dark-bg-1) */
    color: #ffffff;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    padding-top: 0; /* Header offset is on main, hero is full width */
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #ffffff;
    background-color: #26A9E0; /* Fallback for image loading */
}

.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: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 2;
}

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

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

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

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

/* Section Titles and Descriptions */
.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section background */
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherit from section background */
}

.page-cockfighting__section-description--bottom {
    margin-bottom: 0;
    margin-top: 40px;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: inherit;
}

/* 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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

.page-cockfighting__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Intro Section */
.page-cockfighting__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__intro-content p {
    margin-bottom: 15px;
}

.page-cockfighting__intro-image-wrapper {
    text-align: center;
}

.page-cockfighting__intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

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

.page-cockfighting__type-card:hover {
    transform: translateY(-10px);
}

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

.page-cockfighting__type-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Rules & Betting Section */
.page-cockfighting__content-block {
    margin-bottom: 40px;
}

.page-cockfighting__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
    color: inherit;
}

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

.page-cockfighting__image-text-block {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.page-cockfighting__image-inline {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-cockfighting__text-content {
    flex: 1;
}

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

.page-cockfighting__advantage-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-10px);
}

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

.page-cockfighting__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-cockfighting__advantages-cta {
    text-align: center;
    margin-top: 60px;
}

/* Tips & Strategy Section */
.page-cockfighting__strategy-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: #333333; /* Dark text for light background */
}

.page-cockfighting__strategy-card p {
    margin-bottom: 15px;
}

.page-cockfighting__strategy-cta {
    text-align: center;
    margin-top: 60px;
}

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

.page-cockfighting__responsibility-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.page-cockfighting__item-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    color: #333333; /* Dark text for light background */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

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

.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-out, padding 0.3s ease-out;
}

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

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

/* CTA Section */
.page-cockfighting__cta-section {
    text-align: center;
    padding: 100px 0;
    background-color: #26A9E0; /* Use brand color for CTA */
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__intro-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__image-text-block {
        flex-direction: column;
    }
    .page-cockfighting__image-inline {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-cockfighting__hero-section {
        height: 500px;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

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

    .page-cockfighting__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 20px; /* Add padding to prevent buttons from touching edges */
    }

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

    .page-cockfighting__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__rules-betting-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__tips-strategy-section,
    .page-cockfighting__responsibility-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 50px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Card/Section containers for mobile */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__intro-image-wrapper,
    .page-cockfighting__image-text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.4em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}