/* style/cockfighting.css */

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

.page-cockfighting {
    background-color: var(--page-cockfighting-background);
    color: var(--page-cockfighting-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-cockfighting__section-spacing {
    padding: 80px 0;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-cockfighting__subtitle {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--page-cockfighting-text-main);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__subtitle {
    font-size: 1.2rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    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: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-background);
    transform: translateY(-3px);
}

/* Intro Section */
.page-cockfighting__intro-section .page-cockfighting__text-block {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: justify;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__intro-section p {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 15px;
}

/* Video Section */
.page-cockfighting__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding */
    background-color: var(--page-cockfighting-deep-green);
    box-sizing: border-box;
}

.page-cockfighting__video-container {
    width: 100%; /* Desktop width */
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 100%; /* Ensure wrapper takes full width */
    max-width: 100%; /* Ensure wrapper takes full width */
    box-sizing: border-box;
}

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

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

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

/* Game Features / Kèo Đá Gà */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

.page-cockfighting__feature-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 10px;
}

.page-cockfighting__card-description {
    color: var(--page-cockfighting-text-secondary);
    font-size: 0.95rem;
}

/* How To Play Section */
.page-cockfighting__how-to-play {
    background-color: var(--page-cockfighting-background);
}

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

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-text-main);
    color: var(--page-cockfighting-background);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-cockfighting__step-number {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-background);
    padding: 10px 15px;
    border-bottom-right-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-cockfighting__step-title {
    font-size: 1.5rem;
    color: var(--page-cockfighting-primary-color);
    margin-bottom: 15px;
    margin-top: 40px;
}

.page-cockfighting__step-description {
    color: #333333;
    margin-bottom: 20px;
}

.page-cockfighting__step-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Strategy Tips Section */
.page-cockfighting__strategy-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-cockfighting__strategy-text {
    flex: 2;
}

.page-cockfighting__strategy-heading {
    font-size: 1.6rem;
    color: var(--page-cockfighting-gold);
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--page-cockfighting-divider);
    padding-bottom: 5px;
}

.page-cockfighting__strategy-text p {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 15px;
}

.page-cockfighting__strategy-image-wrapper {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 20px; /* Adjust as needed */
}

.page-cockfighting__strategy-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-cockfighting-border);
}

/* Promotions Section */
.page-cockfighting__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__promotion-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__promotion-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__promotion-card .page-cockfighting__card-title {
    font-size: 1.3rem;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 10px;
}

.page-cockfighting__promotion-card .page-cockfighting__card-description {
    color: var(--page-cockfighting-text-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-cockfighting__card-button {
    width: 100%;
    margin-top: auto; /* Push button to bottom */
}

/* Why Choose Us Section */
.page-cockfighting__why-choose-us {
    background-color: var(--page-cockfighting-deep-green);
}

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

.page-cockfighting__reason-item {
    background-color: var(--page-cockfighting-text-main);
    color: var(--page-cockfighting-background);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__reason-icon {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-cockfighting__reason-title {
    font-size: 1.3rem;
    color: var(--page-cockfighting-primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__reason-description {
    color: #333333;
    font-size: 0.9rem;
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-item[open] {
    background-color: var(--page-cockfighting-deep-green);
    border-color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--page-cockfighting-gold);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--page-cockfighting-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

/* Bottom CTA Section */
.page-cockfighting__cta-bottom {
    background-color: var(--page-cockfighting-deep-green);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__strategy-content {
        flex-direction: column;
    }
    .page-cockfighting__strategy-image-wrapper {
        position: static;
        margin-top: 40px;
    }
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section-spacing {
        padding: 50px 0;
    }
    .page-cockfighting__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__subtitle {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__container {
        padding: 0 15px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    .page-cockfighting__intro-section .page-cockfighting__text-block,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-item,
    .page-cockfighting__promotion-card,
    .page-cockfighting__reason-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    /* Mobile image and video adaptations */
    .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__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: 10px !important;
    }
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-cockfighting__strategy-image-wrapper {
        min-width: unset;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-cockfighting__hero-content {
        padding: 10px;
    }
}