/* Base styles for the Đá Gà page */
.page-da-ga {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Main text color for dark background */
    background-color: #140C0C; /* Overall page background */
}

.page-da-ga__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-da-ga__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-da-ga__section-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #F3C54D; /* Gold color for titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-da-ga__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFF1E8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-da-ga__text-link {
    color: #FFB04A;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-da-ga__text-link:hover {
    color: #F3C54D;
    text-decoration: underline;
}

.page-da-ga__highlight {
    color: #FFB04A;
    font-weight: bold;
}

/* Hero Section */
.page-da-ga__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    color: #FFF1E8;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
}

.page-da-ga__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px; /* Ensure image wrapper has height */
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1; /* Image first */
}

.page-da-ga__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-da-ga__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    order: 2; /* Content after image */
    background: rgba(20, 12, 12, 0.7); /* Semi-transparent background for text */
    border-radius: 10px;
    margin-top: 20px; /* Space between image and content */
}

.page-da-ga__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    margin-bottom: 20px;
    color: #F3C54D;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-da-ga__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #FFF1E8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-da-ga__btn-primary,
.page-da-ga__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-da-ga__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #140C0C;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-da-ga__btn-primary:hover {
    background: linear-gradient(180deg, #F3C54D 0%, #FFB04A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-da-ga__btn-secondary {
    background: transparent;
    color: #FFB04A;
    border: 2px solid #FFB04A;
    box-shadow: 0 4px 10px rgba(255, 176, 74, 0.2);
}

.page-da-ga__btn-secondary:hover {
    background: rgba(255, 176, 74, 0.1);
    color: #F3C54D;
    border-color: #F3C54D;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 176, 74, 0.4);
}

/* Introduction Section */
.page-da-ga__introduction-section {
    background-color: #140C0C;
}

/* Features Section */
.page-da-ga__features-section {
    background-color: #2A1212;
}

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

.page-da-ga__feature-card {
    background-color: #2A1212;
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF1E8;
}

.page-da-ga__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-da-ga__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #F3C54D;
}

.page-da-ga__feature-card p {
    font-size: 16px;
    color: #FFF1E8;
}

/* Betting Guide Section */
.page-da-ga__betting-guide-section {
    background-color: #140C0C;
}

.page-da-ga__numbered-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-da-ga__numbered-list li {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    counter-increment: step-counter;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-da-ga__numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: -20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #FFB04A;
    color: #140C0C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-da-ga__list-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: #F3C54D;
    padding-left: 30px; /* Space for counter */
}

.page-da-ga__numbered-list li p {
    font-size: 17px;
    color: #FFF1E8;
    padding-left: 30px;
}

.page-da-ga__cta-center {
    margin-top: 40px;
}

/* Types of Bets Section */
.page-da-ga__types-of-bets-section {
    background-color: #1E0E0E; /* Lighter dark background */
}

.page-da-ga__bullet-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-da-ga__bullet-list li {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-da-ga__bullet-list li::before {
    content: '•';
    position: absolute;
    left: 20px;
    top: 20px;
    color: #FFB04A;
    font-size: 25px;
    line-height: 1;
}

.page-da-ga__bullet-list .page-da-ga__list-title {
    padding-left: 45px;
}

.page-da-ga__bullet-list li p {
    padding-left: 45px;
    font-size: 17px;
    color: #FFF1E8;
}

/* Promotions Section */
.page-da-ga__promotions-section {
    background-color: #2A1212;
}

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

.page-da-ga__promo-card {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: #FFF1E8;
}

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

.page-da-ga__promo-card p {
    font-size: 16px;
    color: #FFF1E8;
    margin-bottom: 20px;
}

.page-da-ga__btn-text-link {
    color: #FFB04A;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-da-ga__btn-text-link:hover {
    color: #F3C54D;
    text-decoration: underline;
}

/* Mobile App Section */
.page-da-ga__mobile-app-section {
    background-color: #140C0C;
}

.page-da-ga__mobile-app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.page-da-ga__mobile-app-text {
    flex: 1;
    min-width: 300px;
}

.page-da-ga__mobile-app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.page-da-ga__mobile-app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-da-ga__faq-section {
    background-color: #1E0E0E;
}

.page-da-ga__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

details.page-da-ga__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #6A1E1E;
    overflow: hidden;
    background: #2A1212;
    color: #FFF1E8;
}

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

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

details.page-da-ga__faq-item summary.page-da-ga__faq-question:hover {
    background: #3a1a1a;
}

.page-da-ga__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #F3C54D;
}

.page-da-ga__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #FFB04A;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-da-ga__faq-item .page-da-ga__faq-answer {
    padding: 0 20px 20px;
    background: #1E0E0E;
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    color: #FFF1E8;
}

.page-da-ga__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-da-ga__cta-final-section {
    background: linear-gradient(90deg, #C61F1F 0%, #E53030 100%);
    padding: 80px 20px;
}

.page-da-ga__cta-final-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-da-ga__cta-final-content .page-da-ga__section-title {
    color: #FFF1E8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-da-ga__cta-final-content .page-da-ga__text-block {
    color: #FFF1E8;
    margin-bottom: 40px;
}

/* General image responsiveness */
.page-da-ga img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-da-ga__hero-content {
        padding: 30px;
    }

    .page-da-ga__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-da-ga__hero-description {
        font-size: 18px;
    }

    .page-da-ga__section-title {
        font-size: 32px;
    }

    .page-da-ga__text-block {
        font-size: 17px;
    }

    .page-da-ga__mobile-app-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-da-ga__section {
        padding: 40px 15px;
    }

    /* HERO Section */
    .page-da-ga__hero-section {
        min-height: 450px;
    }
    .page-da-ga__hero-image-wrapper {
        min-height: 300px;
    }
    .page-da-ga__hero-image {
        object-fit: contain !important; /* Ensure image is fully visible */
        aspect-ratio: unset !important; /* Reset aspect ratio */
        position: static; /* Allow normal flow for contain */
        filter: none; /* Remove filter for better image visibility */
        margin-bottom: 20px;
        height: auto;
    }
    .page-da-ga__hero-content {
        padding: 20px;
        margin-top: 0; /* Remove margin if image is static */
        background: #140C0C; /* Solid background for text */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-da-ga__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-da-ga__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-da-ga__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-da-ga__btn-primary,
    .page-da-ga__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General content sections */
    .page-da-ga__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-da-ga__text-block {
        font-size: 16px;
    }

    /* Features Grid */
    .page-da-ga__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-da-ga__feature-card {
        padding: 20px;
        text-align: center;
    }
    .page-da-ga__feature-card .page-da-ga__feature-image {
        height: 180px;
    }
    .page-da-ga__card-title {
        font-size: 20px;
    }

    /* Numbered List / Betting Guide */
    .page-da-ga__numbered-list {
        margin-top: 20px;
        max-width: 100%;
    }
    .page-da-ga__numbered-list li {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-da-ga__numbered-list li::before {
        left: 10px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .page-da-ga__list-title {
        font-size: 19px;
        padding-left: 40px;
    }
    .page-da-ga__numbered-list li p {
        font-size: 15px;
        padding-left: 40px;
    }

    /* Bullet List / Types of Bets */
    .page-da-ga__bullet-list {
        margin-top: 20px;
        max-width: 100%;
    }
    .page-da-ga__bullet-list li {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-da-ga__bullet-list li::before {
        left: 15px;
        top: 15px;
        font-size: 22px;
    }
    .page-da-ga__bullet-list .page-da-ga__list-title {
        font-size: 19px;
        padding-left: 40px;
    }
    .page-da-ga__bullet-list li p {
        font-size: 15px;
        padding-left: 40px;
    }

    /* Promotions Section */
    .page-da-ga__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-da-ga__promo-card {
        padding: 20px;
    }
    .page-da-ga__promo-image {
        height: 160px;
    }

    /* Mobile App Section */
    .page-da-ga__mobile-app-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-da-ga__mobile-app-text {
        text-align: center;
    }
    .page-da-ga__mobile-app-image-wrapper {
        order: -1; /* Image above text on mobile */
    }

    /* FAQ Section */
    .page-da-ga__faq-list {
        margin-top: 20px;
        max-width: 100%;
    }
    details.page-da-ga__faq-item summary.page-da-ga__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-da-ga__faq-qtext {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-da-ga__faq-toggle {
        font-size: 24px;
        margin-left: 10px;
        width: 24px;
        height: 24px;
    }
    details.page-da-ga__faq-item .page-da-ga__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* Final CTA Section */
    .page-da-ga__cta-final-section {
        padding: 50px 15px;
    }
    .page-da-ga__cta-final-content .page-da-ga__section-title {
        font-size: 26px;
    }
    .page-da-ga__cta-final-content .page-da-ga__text-block {
        font-size: 16px;
    }

    /* Ensure all images and containers are responsive */
    .page-da-ga img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-da-ga__section,
    .page-da-ga__card,
    .page-da-ga__container,
    .page-da-ga__mobile-app-content,
    .page-da-ga__cta-buttons,
    .page-da-ga__button-group,
    .page-da-ga__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-da-ga__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-da-ga__cta-buttons.page-da-ga__cta-center {
        flex-direction: column;
    }
}