/* style/cockfighting.css */
.page-cockfighting {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    background-color: #26A9E0; /* Primary color */
    color: #ffffff; /* White text for primary background */
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

/* 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;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border-color: #EA7C07;
}

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

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

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

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

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

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 0;
}

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

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

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #EA7C07;
}
.page-cockfighting__dark-section .page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1);
}
.page-cockfighting__light-bg .page-cockfighting__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    color: #333333;
}

.page-cockfighting__list-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}

.page-cockfighting__numbered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
    list-style: decimal;
    background-color: #f9f9f9;
    color: #333333;
    border-left: 5px solid #26A9E0;
}

.page-cockfighting__image-content {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    color: #333333;
}
.page-cockfighting__dark-section .page-cockfighting__feature-card,
.page-cockfighting__dark-section .page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.page-cockfighting__feature-image,
.page-cockfighting__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__feature-title,
.page-cockfighting__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
    color: inherit;
}

.page-cockfighting__feature-description,
.page-cockfighting__promo-description {
    font-size: 1em;
    padding: 0 15px;
    text-align: justify;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-cockfighting__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting__video-caption {
    margin-top: 15px;
    font-style: italic;
    color: #555555;
}

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

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

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

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    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: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important;
    padding: 20px;
}

.page-cockfighting__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    text-align: justify;
}

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

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
        /* padding-top is already set globally, no need for !important here unless overriding a more specific rule */
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        padding: 60px 0;
    }
    .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;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-cockfighting__light-bg,
    .page-cockfighting__dark-section,
    .page-cockfighting__video-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 0;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__feature-image,
    .page-cockfighting__promo-image {
        height: 200px;
    }
    
    /* Ensure all images are responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all video containers are responsive */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Specific padding for content containers on mobile */
    .page-cockfighting__introduction-section .page-cockfighting__container,
    .page-cockfighting__betting-types-section .page-cockfighting__container,
    .page-cockfighting__guide-section .page-cockfighting__container,
    .page-cockfighting__strategy-section .page-cockfighting__container,
    .page-cockfighting__advantages-section .page-cockfighting__container,
    .page-cockfighting__promotions-section .page-cockfighting__container,
    .page-cockfighting__video-section .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container,
    .page-cockfighting__cta-section .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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