.page-da-ga {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
    background-color: var(--background-color, #FFFFFF); /* Fallback to white if not set by shared */
}

.page-da-ga__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-da-ga__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    margin-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    box-sizing: border-box;
    width: 100%;
}

.page-da-ga__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
}

.page-da-ga__hero-content {
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
    margin-top: -100px; /* Overlay slightly on the image, but text is below */
    position: relative; /* Ensure it's above the image for text-over-image effect */
    z-index: 1;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-50px); /* Adjust position */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-da-ga__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    color: #26A9E0;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-da-ga__hero-description {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 30px;
}

.page-da-ga__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-da-ga__btn-primary,
.page-da-ga__btn-secondary,
.page-da-ga a[class*="button"],
.page-da-ga a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    text-align: center;
}

.page-da-ga__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-da-ga__btn-primary:hover {
    background-color: #1e87c2;
    transform: translateY(-2px);
}

.page-da-ga__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-da-ga__btn-secondary:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-da-ga__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem); /* Responsive font size */
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-da-ga__dark-section {
    background-color: #252b38; /* Dark background */
    color: #FFFFFF; /* Light text for dark background */
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-da-ga__dark-section .page-da-ga__section-title {
    color: #FFFFFF; /* White title on dark background */
}

.page-da-ga__intro-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-da-ga__intro-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-da-ga__intro-text a,
.page-da-ga__dark-section a {
    color: #EA7C07; /* Login color for links on dark background */
    text-decoration: underline;
}

.page-da-ga__intro-text a:hover,
.page-da-ga__dark-section a:hover {
    color: #ff9933;
}

/* Features Section */
.page-da-ga__features-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.page-da-ga__feature-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-da-ga__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-da-ga__card-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-da-ga__card-description {
    font-size: 1rem;
    color: #555555;
    flex-grow: 1; /* Allow description to take available space */
}

.page-da-ga__card-description a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-da-ga__card-description a:hover {
    color: #1e87c2;
}

/* Betting Types Section */
.page-da-ga__betting-types-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.page-da-ga__betting-card {
    background-color: #333d4d; /* Slightly lighter dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

.page-da-ga__betting-card .page-da-ga__card-title {
    color: #FFFFFF;
}

.page-da-ga__betting-card .page-da-ga__card-description {
    color: #e0e0e0;
}

.page-da-ga__betting-card a {
    color: #EA7C07;
    text-decoration: underline;
}

.page-da-ga__betting-card a:hover {
    color: #ff9933;
}

/* Tips Section */
.page-da-ga__tips-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.page-da-ga__tip-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

/* Promotions Section */
.page-da-ga__promotions-section {
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-da-ga__promo-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* FAQ Section */
.page-da-ga__faq-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.page-da-ga__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-da-ga__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    list-style: none; /* For details/summary */
}

.page-da-ga__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-da-ga__faq-question::marker {
    display: none; /* Hide default marker */
}

.page-da-ga__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #26A9E0;
    line-height: 1;
    margin-left: 10px;
}

.page-da-ga__faq-item[open] .page-da-ga__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-da-ga__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #eee;
}

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

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

.page-da-ga__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-da-ga__faq-answer a:hover {
    color: #1e87c2;
}

/* Bottom CTA Section */
.page-da-ga__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

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

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

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

    .page-da-ga__section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .page-da-ga__hero-content {
        padding: 30px 15px;
        margin-top: -80px;
        transform: translateY(-40px);
    }

    .page-da-ga__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-da-ga__btn-primary,
    .page-da-ga__btn-secondary {
        padding: 12px 25px;
    }

    .page-da-ga__features-grid,
    .page-da-ga__betting-grid,
    .page-da-ga__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-da-ga__feature-image,
    .page-da-ga__tip-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-da-ga__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 20px;
    }

    .page-da-ga__hero-content {
        padding: 20px 15px;
        margin-top: -60px;
        transform: translateY(-30px);
        max-width: 95%;
    }

    .page-da-ga__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Smaller on mobile */
        margin-bottom: 10px;
    }

    .page-da-ga__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 深色导语区 */
    .page-da-ga__intro-section,
    .page-da-ga__features-section,
    .page-da-ga__betting-types-section,
    .page-da-ga__tips-section,
    .page-da-ga__promotions-section,
    .page-da-ga__faq-section,
    .page-da-ga__cta-bottom-section {
        padding: 30px 0;
        margin-bottom: 20px;
    }
}