/* style/da-ga.css */

/* Base styles for the page content */
.page-da-ga {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F3F8FF); /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Helper classes */
.page-da-ga__dark-bg {
    background-color: var(--color-card-bg, #10233F);
    color: var(--text-main, #F3F8FF);
}

.page-da-ga__center-text {
    text-align: center;
}

/* Section common styles */
.page-da-ga__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-da-ga__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main, #F3F8FF);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-da-ga__section-description {
    font-size: 1.1em;
    color: var(--text-secondary, #AFC4E8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-da-ga__text-block {
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary, #AFC4E8);
}

.page-da-ga__text-block p {
    margin-bottom: 1em;
}

.page-da-ga__text-link {
    color: var(--color-glow, #4FA8FF);
    text-decoration: none;
    font-weight: bold;
}

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

/* Buttons */
.page-da-ga__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-da-ga__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    min-width: 180px; /* Minimum width for desktop */
}

.page-da-ga__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main, #F3F8FF);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-da-ga__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-da-ga__btn-secondary {
    background-color: transparent;
    color: var(--color-glow, #4FA8FF);
    border: 2px solid var(--color-glow, #4FA8FF);
}

.page-da-ga__btn-secondary:hover {
    background-color: var(--color-glow, #4FA8FF);
    color: var(--color-deep-navy, #08162B);
}

/* Hero Section */
.page-da-ga__hero-section {
    padding-top: 10px; /* Aligns with shared header offset */
    padding-bottom: 60px;
    background-color: var(--color-card-bg, #10233F); /* Dark background for hero */
    color: var(--text-main, #F3F8FF);
}

.page-da-ga__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 16px;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

.page-da-ga__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.page-da-ga__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for H1 */
    font-weight: bold;
    color: var(--color-gold, #F2C14E); /* Gold color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-da-ga__hero-description {
    font-size: 1.15em;
    color: var(--text-secondary, #AFC4E8);
    margin-bottom: 30px;
    max-width: 600px;
}

.page-da-ga__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

.page-da-ga__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for width/height */
}

/* Intro Section (3 circular images) */
.page-da-ga__intro-section {
    padding: 60px 0;
}

.page-da-ga__intro-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-da-ga__intro-item {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    background-color: var(--color-card-bg, #10233F);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border, #244D84);
}

.page-da-ga__icon-box-media {
    width: 240px;
    height: 240px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-gold, #F2C14E);
    box-shadow: 0 0 15px var(--color-glow, #4FA8FF);
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-da-ga__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image itself is also circular */
}

.page-da-ga__icon-box-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-glow, #4FA8FF);
    margin-bottom: 15px;
}

.page-da-ga__icon-box-text {
    color: var(--text-secondary, #AFC4E8);
    font-size: 1em;
}

/* Guide Section */
.page-da-ga__guide-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy, #08162B);
}

.page-da-ga__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.page-da-ga__guide-item {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-da-ga__guide-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-da-ga__guide-media {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-da-ga__guide-media img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-da-ga__guide-title {
    flex: 1 1 45%;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-gold, #F2C14E);
    min-width: 300px;
}

.page-da-ga__guide-text {
    flex: 1 1 100%; /* Text below title on a new line */
    color: var(--text-secondary, #AFC4E8);
    font-size: 1.05em;
    margin-top: 10px;
}

.page-da-ga__guide-item:nth-child(even) .page-da-ga__guide-title,
.page-da-ga__guide-item:nth-child(even) .page-da-ga__guide-text {
    text-align: right;
}

/* Bet Types Section */
.page-da-ga__bet-types-section {
    padding: 60px 0;
}

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

.page-da-ga__bet-type-card {
    background-color: var(--color-card-bg, #10233F);
    border: 1px solid var(--color-border, #244D84);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
    color: var(--text-main, #F3F8FF);
}

.page-da-ga__bet-type-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-da-ga__card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-glow, #4FA8FF);
    padding: 0 20px;
    margin-bottom: 10px;
}

.page-da-ga__card-text {
    color: var(--text-secondary, #AFC4E8);
    padding: 0 20px;
    font-size: 0.95em;
}

/* Tips Section */
.page-da-ga__tips-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy, #08162B);
}

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

.page-da-ga__tip-card {
    background-color: var(--color-card-bg, #10233F);
    border: 1px solid var(--color-border, #244D84);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
    color: var(--text-main, #F3F8FF);
}

.page-da-ga__tip-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-da-ga__promotions-section {
    padding: 60px 0;
}

.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: var(--color-card-bg, #10233F);
    border: 1px solid var(--color-border, #244D84);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
    color: var(--text-main, #F3F8FF);
    display: flex;
    flex-direction: column;
}

.page-da-ga__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-da-ga__promo-card .page-da-ga__card-title,
.page-da-ga__promo-card .page-da-ga__card-text {
    flex-grow: 1; /* Allow text to take available space */
}

.page-da-ga__promo-card .page-da-ga__cta-button {
    margin-top: auto; /* Push button to bottom */
    margin-left: 20px;
    margin-right: 20px;
    width: auto; /* Reset width for card buttons */
    max-width: calc(100% - 40px);
}

/* FAQ Section */
.page-da-ga__faq-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy, #08162B);
}

.page-da-ga__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-da-ga__faq-item {
    background-color: var(--color-card-bg, #10233F);
    border: 1px solid var(--color-border, #244D84);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F3F8FF);
}

.page-da-ga__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-gold, #F2C14E);
    cursor: pointer;
    background-color: var(--color-card-bg, #10233F);
    border-bottom: 1px solid transparent; /* For visual separation */
    list-style: none; /* Hide default details marker */
}

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

.page-da-ga__faq-qtext {
    flex-grow: 1;
}

.page-da-ga__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--color-glow, #4FA8FF);
    transition: transform 0.3s ease;
}

.page-da-ga__faq-item[open] .page-da-ga__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-da-ga__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary, #AFC4E8);
}

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

/* Final CTA Section */
.page-da-ga__cta-section {
    padding: 60px 0;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-da-ga__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-da-ga__section-title {
        font-size: 2em;
    }
    .page-da-ga__intro-item {
        flex: 1 1 280px;
    }
    .page-da-ga__icon-box-media {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-da-ga__content-area {
        padding: 30px 15px !important;
    }

    /* HERO Section */
    .page-da-ga__hero-section {
        padding-top: 10px !important; /* Fixed top padding */
        padding-bottom: 40px !important;
    }

    .page-da-ga__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px !important;
    }

    .page-da-ga__hero-content {
        flex: 1 1 100%;
        text-align: center;
        min-width: unset;
    }

    .page-da-ga__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important; /* Smaller H1 for mobile */
        text-align: center;
    }

    .page-da-ga__hero-description {
        font-size: 1em;
        text-align: center;
        max-width: 100%;
    }

    .page-da-ga__hero-image {
        flex: 1 1 100%;
        min-width: unset;
        order: -1; /* Image on top */
        margin-bottom: 20px;
    }
    
    .page-da-ga__hero-side-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

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

    .page-da-ga__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center individual buttons if not full width */
    }

    /* Module 1 (Intro Section) */
    .page-da-ga__intro-section {
        padding: 40px 0 !important;
    }

    .page-da-ga__intro-features {
        flex-direction: column;
        gap: 25px;
    }

    .page-da-ga__intro-item {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 25px;
    }

    .page-da-ga__icon-box-media {
        width: 180px !important; /* Maintain square aspect ratio */
        height: 180px !important;
        border-width: 2px;
        margin-bottom: 20px;
    }

    /* Guide Section */
    .page-da-ga__guide-section {
        padding: 40px 0 !important;
    }

    .page-da-ga__guide-steps {
        gap: 30px;
    }

    .page-da-ga__guide-item {
        flex-direction: column !important; /* Stack image and text vertically */
        gap: 20px;
        text-align: center !important;
    }

    .page-da-ga__guide-item:nth-child(even) {
        flex-direction: column !important; /* Override reverse for mobile */
    }

    .page-da-ga__guide-media {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-da-ga__guide-media img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-da-ga__guide-title {
        flex: 1 1 100%;
        min-width: unset;
        font-size: 1.5em;
        text-align: center !important;
    }

    .page-da-ga__guide-text {
        flex: 1 1 100%;
        text-align: center !important;
        font-size: 0.95em;
    }

    /* Bet Types Section */
    .page-da-ga__bet-types-section {
        padding: 40px 0 !important;
    }

    .page-da-ga__bet-types-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-da-ga__bet-type-card {
        padding-bottom: 15px;
    }

    .page-da-ga__bet-type-image {
        height: 180px; /* Adjust height for mobile */
        margin-bottom: 15px;
    }

    /* Tips Section */
    .page-da-ga__tips-section {
        padding: 40px 0 !important;
    }

    .page-da-ga__tips-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-da-ga__tip-card {
        padding-bottom: 15px;
    }

    .page-da-ga__tip-image {
        height: 180px; /* Adjust height for mobile */
        margin-bottom: 15px;
    }

    /* Promotions Section */
    .page-da-ga__promotions-section {
        padding: 40px 0 !important;
    }
}