/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

:root {
    --rk68-primary-color: #11A84E;
    --rk68-secondary-color: #22C768;
    --rk68-bg-dark: #08160F;
    --rk68-card-bg: #11271B;
    --rk68-text-main: #F2FFF6;
    --rk68-text-secondary: #A7D9B8;
    --rk68-border-color: #2E7A4E;
    --rk68-glow-color: #57E38D;
    --rk68-gold-color: #F2C14E;
    --rk68-divider-color: #1E3A2A;
    --rk68-deep-green: #0A4B2C;
    --rk68-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --rk68-text-light-bg: #333333;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--rk68-text-main); /* Default text color for dark body background */
    background-color: var(--rk68-bg-dark); /* Ensure consistency with body background */
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 20px 40px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for hero image */
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-weight: bold;
    color: var(--rk68-text-main);
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    /* Using clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__description {
    font-size: 1.1rem;
    color: var(--rk68-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

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

.page-cockfighting__btn-primary {
    background: var(--rk68-btn-gradient);
    color: var(--rk68-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(34, 199, 104, 0.1);
    color: var(--rk68-text-main);
}

.page-cockfighting__section-title {
    font-weight: bold;
    color: var(--rk68-text-main);
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.3;
}

.page-cockfighting__description-text {
    font-size: 1rem;
    color: var(--rk68-text-secondary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__about-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__video-section {
    background-color: var(--rk68-bg-dark);
    padding: 60px 0;
}

.page-cockfighting__gameplay-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__why-choose-us,
.page-cockfighting__contact-cta {
    background-color: var(--rk68-card-bg);
    padding: 60px 0;
}

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

.page-cockfighting__light-bg {
    background-color: var(--rk68-card-bg);
    color: var(--rk68-text-main);
}

.page-cockfighting__text-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rk68-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image-content--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__card,
.page-cockfighting__promo-card,
.page-cockfighting__step-card,
.page-cockfighting__feature-item {
    background-color: var(--rk68-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--rk68-border-color);
}

.page-cockfighting__card:hover,
.page-cockfighting__promo-card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-image,
.page-cockfighting__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__card-title,
.page-cockfighting__promo-title,
.page-cockfighting__step-title,
.page-cockfighting__feature-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--rk68-text-main);
    margin-bottom: 10px;
}

.page-cockfighting__card-text,
.page-cockfighting__promo-text,
.page-cockfighting__step-text,
.page-cockfighting__feature-text {
    font-size: 0.95rem;
    color: var(--rk68-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__card-link {
    display: inline-block;
    background: var(--rk68-btn-gradient);
    color: var(--rk68-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__card-link:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    background-color: #000;
    box-sizing: border-box;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-cockfighting__video-cta {
    margin-top: 20px;
}

.page-cockfighting__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px; /* Minimum size requirement */
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__faq-item {
    background-color: var(--rk68-card-bg);
    border: 1px solid var(--rk68-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--rk68-text-main);
    cursor: pointer;
    background-color: var(--rk68-deep-green);
    border-bottom: 1px solid var(--rk68-divider-color);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-cockfighting__faq-question:hover {
    background-color: rgba(34, 199, 104, 0.15);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--rk68-gold-color);
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--rk68-text-secondary);
    line-height: 1.7;
    text-align: justify;
    background-color: var(--rk68-card-bg);
}

.page-cockfighting__contact-content {
    text-align: center;
    max-width: 800px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 0 15px 30px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }
    .page-cockfighting__container {
        padding: 30px 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__description {
        font-size: 1rem;
    }
    .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;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        margin-left: auto;
        margin-right: auto;
    }
    .page-cockfighting__card-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        font-size: 0.9rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .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;
        overflow: hidden !important;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    .page-cockfighting__hero-image {
        max-height: 300px;
    }
    .page-cockfighting__feature-icon {
        width: 150px; /* Adjusted for smaller screens */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .page-cockfighting__description,
    .page-cockfighting__description-text {
        font-size: 0.9rem;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__step-title,
    .page-cockfighting__feature-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__card-text,
    .page-cockfighting__promo-text,
    .page-cockfighting__step-text,
    .page-cockfighting__feature-text {
        font-size: 0.85rem;
    }
    .page-cockfighting__faq-question {
        font-size: 0.9rem;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.8rem;
    }
    .page-cockfighting__hero-image {
        margin-bottom: 20px;
    }
}