/* style/cockfighting.css */

/* Custom Colors */
:root {
    --i9bet100-primary: #11A84E;
    --i9bet100-secondary: #22C768;
    --i9bet100-bg-dark: #08160F; /* Background */
    --i9bet100-card-bg: #11271B; /* Card BG */
    --i9bet100-text-main: #F2FFF6; /* Text Main */
    --i9bet100-text-secondary: #A7D9B8; /* Text Secondary */
    --i9bet100-border: #2E7A4E;
    --i9bet100-glow: #57E38D;
    --i9bet100-gold: #F2C14E;
    --i9bet100-divider: #1E3A2A;
    --i9bet100-deep-green: #0A4B2C;
    --i9bet100-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--i9bet100-text-main); /* Default text color for dark background */
    background-color: var(--i9bet100-bg-dark); /* Ensure consistency with body background */
}

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

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

.page-cockfighting__light-bg {
    background-color: #f8f8f8; /* A light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-cockfighting__center-content {
    text-align: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    min-height: 500px;
    overflow: hidden;
    background-color: var(--i9bet100-deep-green);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above any background elements */
    z-index: 2; /* Ensure text is above image if there's any overlap potential, though layout is top-bottom */
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker background for text readability */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    color: var(--i9bet100-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__description {
    font-size: 1.1em;
    color: var(--i9bet100-text-secondary);
    margin-bottom: 30px;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    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: var(--i9bet100-btn-gradient);
    color: var(--i9bet100-text-main);
    border: 2px solid var(--i9bet100-primary);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--i9bet100-primary);
    color: var(--i9bet100-text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-center {
    display: block;
    margin: 40px auto 0;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--i9bet100-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

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

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: var(--i9bet100-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Text Blocks */
.page-cockfighting__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: inherit; /* Inherit color from parent section */
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
}

.page-cockfighting__introduction-section .page-cockfighting__text-block {
    color: #333333;
}

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

.page-cockfighting__image-left {
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #333333;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-cockfighting__list strong {
    color: var(--i9bet100-deep-green);
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
    padding: 80px 0;
    border-top: 1px solid var(--i9bet100-divider);
    border-bottom: 1px solid var(--i9bet100-divider);
}

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

.page-cockfighting__card {
    background-color: var(--i9bet100-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--i9bet100-text-main);
    border: 1px solid var(--i9bet100-border);
}

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

.page-cockfighting__card-text {
    font-size: 1em;
    color: var(--i9bet100-text-secondary);
}

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

.page-cockfighting__guide-section .page-cockfighting__text-block {
    color: #333333;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__step-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-cockfighting__step-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--i9bet100-deep-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__step-text {
    font-size: 0.95em;
    color: #555555;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    padding: 80px 0;
    background-color: var(--i9bet100-deep-green);
    color: var(--i9bet100-text-main);
}

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

.page-cockfighting__feature-card {
    background-color: var(--i9bet100-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--i9bet100-text-main);
    border: 1px solid var(--i9bet100-border);
}

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

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

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    border-top: 1px solid #e0e0e0;
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--i9bet100-deep-green);
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--i9bet100-deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: var(--i9bet100-primary);
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 0 25px 18px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--i9bet100-bg-dark);
    color: var(--i9bet100-text-main);
}

.page-cockfighting__conclusion-section .page-cockfighting__section-title {
    color: var(--i9bet100-gold);
}

.page-cockfighting__conclusion-section .page-cockfighting__description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--i9bet100-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__image-content-block {
        flex-direction: column;
    }
    .page-cockfighting__text-right {
        margin-top: 30px;
    }
    .page-cockfighting__grid-container,
    .page-cockfighting__steps-grid,
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
    }
}

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

    .page-cockfighting__hero-section {
        padding: 10px 15px 40px;
        min-height: 400px;
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        margin-bottom: 10px;
    }
    .page-cockfighting__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Reset margin for flex column */
        margin-right: 0 !important;
    }
    .page-cockfighting__btn-center {
        margin: 30px auto 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }
    .page-cockfighting__text-block {
        font-size: 1em;
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__image-content-block,
    .page-cockfighting__grid-container,
    .page-cockfighting__steps-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__faq-list {
        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: 10px !important; /* body đã xử lý --header-offset */
    }
    .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__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}