/* Biến màu sắc */
:root {
    --page-cockfighting-primary: #C61F1F;
    --page-cockfighting-secondary: #E53030;
    --page-cockfighting-background: #140C0C;
    --page-cockfighting-card-bg: #2A1212;
    --page-cockfighting-text-main: #FFF1E8;
    --page-cockfighting-gold: #F3C54D;
    --page-cockfighting-border: #6A1E1E;
    --page-cockfighting-deep-red: #7E0D0D;
    --page-cockfighting-btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-text-main); /* Text Main for body content on dark background */
    background-color: var(--page-cockfighting-background); /* Background color */
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top for fixed header */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px; /* Add padding below content for separation */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100vh; /* Full viewport height */
    max-height: 700px; /* Max height for desktop hero image */
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
}

.page-cockfighting__hero-content {
    position: relative; /* Changed from absolute to relative to be below image */
    margin-top: 40px; /* Space from image */
    padding: 0 20px;
    max-width: 900px;
    z-index: 10;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--page-cockfighting-gold); /* Gold color for main title */
}

.page-cockfighting__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-gold);
    border: 2px solid var(--page-cockfighting-gold);
    box-shadow: 0 4px 15px rgba(243, 197, 77, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-background); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 197, 77, 0.4);
}

/* General Section Styles */
.page-cockfighting__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__section:last-of-type {
    border-bottom: none;
}

.page-cockfighting__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--page-cockfighting-gold); /* Gold color for section titles */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-cockfighting-text-main);
    opacity: 0.9;
}

.page-cockfighting__content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature List / Card Styles */
.page-cockfighting__feature-list,
.page-cockfighting__promotion-list,
.page-cockfighting__security-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__feature-item,
.page-cockfighting__card {
    background: var(--page-cockfighting-card-bg); /* Card BG color */
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__feature-item:hover,
.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-cockfighting-gold); /* Gold color for card titles */
}

.page-cockfighting__card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-cockfighting-text-main);
}

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

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

.page-cockfighting__step-item {
    background: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__step-item .page-cockfighting__card-title {
    color: var(--page-cockfighting-gold);
    position: relative;
    padding-left: 45px;
}

.page-cockfighting__step-item .page-cockfighting__card-title::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: -5px;
    background: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-background);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--page-cockfighting-background);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

details.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--page-cockfighting-border);
    overflow: hidden;
    background: var(--page-cockfighting-card-bg);
    color: var(--page-cockfighting-text-main);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
    background: var(--page-cockfighting-deep-red); /* Deep red on hover */
}

.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--page-cockfighting-gold);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    background: var(--page-cockfighting-background);
    border-radius: 0 0 10px 10px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-answer p {
    margin: 0;
    line-height: 1.7;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-cockfighting__conclusion-section .page-cockfighting__content-text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
    margin-top: 50px;
}

.page-cockfighting__copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--page-cockfighting-deep-red); /* Deep Red for copyright background */
    color: var(--page-cockfighting-text-main);
    font-size: 0.9rem;
    border-top: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting a {
    color: var(--page-cockfighting-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: #FFB04A;
    text-decoration: underline;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image {
        max-height: 600px;
    }

    .page-cockfighting__main-title {
        font-size: 2.8rem;
    }

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

    .page-cockfighting__section-title {
        font-size: 2rem;
    }

    .page-cockfighting__section-subtitle {
        font-size: 1.1rem;
    }

    .page-cockfighting__feature-list,
    .page-cockfighting__promotion-list,
    .page-cockfighting__security-list,
    .page-cockfighting__grid-layout,
    .page-cockfighting__step-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-cockfighting__feature-item,
    .page-cockfighting__card,
    .page-cockfighting__step-item {
        padding: 25px;
    }

    .page-cockfighting__card-title {
        font-size: 1.3rem;
    }

    .page-cockfighting__faq-qtext {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        padding-top: 10px; /* Ensure small top padding, relying on shared for body offset */
    }

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

    /* Hero Section */
    .page-cockfighting__hero-image {
        max-height: 450px !important;
        object-fit: cover !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__hero-content {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Clamp for responsive H1 */
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

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

    /* General Section Styles */
    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-cockfighting__section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__content-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .page-cockfighting__image-wrapper {
        margin: 30px auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Feature List / Card Styles */
    .page-cockfighting__feature-list,
    .page-cockfighting__promotion-list,
    .page-cockfighting__security-list,
    .page-cockfighting__grid-layout,
    .page-cockfighting__step-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .page-cockfighting__feature-item,
    .page-cockfighting__card,
    .page-cockfighting__step-item {
        padding: 20px;
    }

    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }

    .page-cockfighting__card-description {
        font-size: 0.95rem;
    }

    /* How-to-Play Steps */
    .page-cockfighting__step-item .page-cockfighting__card-title {
        padding-left: 40px;
    }

    .page-cockfighting__step-item .page-cockfighting__card-title::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    /* FAQ Section */
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px 20px;
    }

    .page-cockfighting__faq-qtext {
        font-size: 0.95rem;
    }

    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

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

    .page-cockfighting__copyright {
        padding: 20px 15px;
        font-size: 0.85rem;
    }

    /* Ensure all containers with images/buttons are responsive */
    .page-cockfighting__section,
    .page-cockfighting__intro-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__security-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}