/* style/cockfighting.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #ffffff;
    --background-dark: #1A1A1A;
    --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-cockfighting__hero-section .page-cockfighting__container {
    position: relative;
    z-index: 1;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

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

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

.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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--text-light);
}

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

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

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
}

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

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

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

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

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: var(--primary-color);
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-cockfighting__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__content-grid > div {
    flex: 1;
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    line-height: 1.5;
}

/* Video Section */
.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 12px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__video-caption {
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-cockfighting__cta-buttons--center {
    margin-top: 30px;
}

/* Step List */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    line-height: 1.5;
}

/* Bet Types Grid */
.page-cockfighting__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__bet-type-card {
    background-color: var(--background-light);
    color: var(--text-dark);
    text-align: center;
}

.page-cockfighting__bet-type-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

/* Tips List */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__tips-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tips-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__tips-description {
    font-size: 1em;
    line-height: 1.5;
}

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

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}

.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-bottom: 10px;
    color: var(--text-light);
}

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

.page-cockfighting__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--background-dark);
}

.page-cockfighting__cta-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--background-dark);
}

.page-cockfighting__cta-section .page-cockfighting__btn-primary {
    background-color: var(--background-dark);
    color: var(--primary-color);
    border-color: var(--background-dark);
}

.page-cockfighting__cta-section .page-cockfighting__btn-primary:hover {
    background-color: rgba(26, 26, 26, 0.8);
    color: var(--primary-color);
}

.page-cockfighting__cta-section .page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--background-dark);
    border-color: var(--background-dark);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 60px 0;
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__content-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-cockfighting__image {
        min-width: unset;
        min-height: unset;
    }

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

    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed */
    }

    /* Mobile button responsiveness */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-right: 15px;
    }
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__cta-title {
        font-size: 1.8em;
    }
    .page-cockfighting__cta-description {
        font-size: 1em;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px;
    }
    .page-cockfighting__container {
        padding: 0 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,
    .page-cockfighting__step-title,
    .page-cockfighting__tips-title {
        font-size: 1.4em;
    }
    .page-cockfighting__cta-title {
        font-size: 1.6em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
    }
}