/* style/cockfighting.css */
:root {
    --primary-color-dark: #1A202C;
    --accent-color-gold: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f8f8f8;
    --background-dark: #1A202C;
    --card-background-light: #ffffff;
    --card-background-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light);
    line-height: 1.6;
}

.page-cockfighting__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

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

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

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

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: var(--text-color-light);
}

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

.page-cockfighting__text-center {
    text-align: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px; /* Minimum height for hero */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Desktop padding-top */
}

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

.page-cockfighting__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for better text contrast */
}

.page-cockfighting__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Ensure clickability and darken overlay */
    z-index: 1;
    cursor: pointer;
}

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

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* 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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: var(--accent-color-gold);
    color: var(--primary-color-dark);
    border: 2px solid var(--accent-color-gold);
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color-dark);
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Card Styles */
.page-cockfighting__card {
    background-color: var(--card-background-light);
    color: var(--text-color-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-cockfighting__dark-bg .page-cockfighting__card {
    background-color: var(--card-background-dark);
    color: var(--text-color-light);
}

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color-dark);
}

.page-cockfighting__dark-bg .page-cockfighting__card-title {
    color: var(--accent-color-gold);
}

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
}

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

.page-cockfighting__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
}

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

/* Types Section */
.page-cockfighting__types-section {
    padding: 80px 0;
}

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

.page-cockfighting__type-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
}

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

.page-cockfighting__step-item {
    text-align: center;
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-cockfighting__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color-gold);
    color: var(--primary-color-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--primary-color-dark);
}

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

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
}

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

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    color: var(--accent-color-gold);
    border-color: var(--accent-color-gold);
}

.page-cockfighting__promo-card .page-cockfighting__btn-secondary:hover {
    background-color: var(--accent-color-gold);
    color: var(--primary-color-dark);
}

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

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

.page-cockfighting__faq-item {
    background-color: var(--card-background-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color-light);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--accent-color-gold);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    max-height: 0; /* Initial hidden state */
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

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

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__text-block, .page-cockfighting__image-block {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    }

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

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

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button width on small screens */
        margin: 0 auto;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-cockfighting__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-cockfighting__about-section,
    .page-cockfighting__features-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 50px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__image,
    .page-cockfighting__type-image,
    .page-cockfighting__promo-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__image-block,
    .page-cockfighting__type-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-item,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting__hero-video-wrapper,
    .page-cockfighting__hero-video,
    .page-cockfighting__video-overlay {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Ensure video takes full height */
        object-fit: cover !important;
    }

    .page-cockfighting__faq-question,
    .page-cockfighting__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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