/* style/blog-u888-latest-guide.css */

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

.page-blog-u888-latest-guide {
    background-color: var(--page-bg-color);
    color: var(--text-main-color); /* Default text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

.page-blog-u888-latest-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-blog-u888-latest-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    padding: 60px 0;
    background-color: var(--page-bg-color);
    overflow: hidden; /* Prevent content overflow */
}

.page-blog-u888-latest-guide__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog-u888-latest-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
}

.page-blog-u888-latest-guide__hero-content {
    position: relative; /* Ensure content is above the image in terms of z-index if needed */
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-blog-u888-latest-guide__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog-u888-latest-guide__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

.page-blog-u888-latest-guide__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
}

.page-blog-u888-latest-guide__cta-buttons--center {
    margin-top: 40px;
}

/* General Sections */
.page-blog-u888-latest-guide__section {
    padding: 80px 0;
    background-color: var(--page-bg-color);
}

.page-blog-u888-latest-guide__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-blog-u888-latest-guide__section-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main-color);
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 600;
}

.page-blog-u888-latest-guide__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-blog-u888-latest-guide__highlight {
    color: var(--gold-color); /* Highlight keywords */
    font-weight: 600;
}

/* Cards */
.page-blog-u888-latest-guide__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color); /* Ensure text is visible on dark card background */
}

.page-blog-u888-latest-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-blog-u888-latest-guide__btn-primary,
.page-blog-u888-latest-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't increase width beyond max-width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
    width: auto; /* Default width */
}

.page-blog-u888-latest-guide__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on dark button */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-u888-latest-guide__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog-u888-latest-guide__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-blog-u888-latest-guide__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--page-bg-color);
    transform: translateY(-2px);
}

.page-blog-u888-latest-guide__btn-full-width {
    width: 100%;
    margin-top: 20px;
}

/* Lists */
.page-blog-u888-latest-guide__list,
.page-blog-u888-latest-guide__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

.page-blog-u888-latest-guide__ordered-list {
    list-style-type: decimal;
}

.page-blog-u888-latest-guide__list-item {
    margin-bottom: 10px;
    color: var(--text-secondary-color);
}

/* Step-by-step section */
.page-blog-u888-latest-guide__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-u888-latest-guide__step-card {
    text-align: left;
}

.page-blog-u888-latest-guide__step-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-blog-u888-latest-guide__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    object-fit: cover;
}

.page-blog-u888-latest-guide__warning-text {
    color: var(--gold-color);
    font-weight: 600;
    border-left: 4px solid var(--gold-color);
    padding-left: 15px;
    margin-top: 25px;
}

/* Product Grid */
.page-blog-u888-latest-guide__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-u888-latest-guide__product-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-blog-u888-latest-guide__product-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
}

.page-blog-u888-latest-guide__product-title {
    font-size: 1.4rem;
    color: var(--text-main-color);
    margin-bottom: 10px;
}

.page-blog-u888-latest-guide__product-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
}

/* Promotions Grid */
.page-blog-u888-latest-guide__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-u888-latest-guide__promo-card {
    text-align: center;
}

.page-blog-u888-latest-guide__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
}

.page-blog-u888-latest-guide__promo-title {
    font-size: 1.4rem;
    color: var(--text-main-color);
    margin-bottom: 10px;
}

.page-blog-u888-latest-guide__promo-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

/* App Download Section */
.page-blog-u888-latest-guide__app-download {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-blog-u888-latest-guide__app-image {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    height: auto;
    display: block;
    border-radius: 8px;
    max-width: 100%; /* Ensure responsiveness */
    object-fit: contain; /* Ensure full image is visible */
}

.page-blog-u888-latest-guide__app-info {
    flex: 1.5;
    min-width: 300px; /* Minimum width before wrapping */
}

/* Support Channels */
.page-blog-u888-latest-guide__support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-u888-latest-guide__support-item {
    text-align: center;
}

.page-blog-u888-latest-guide__support-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-blog-u888-latest-guide__support-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-blog-u888-latest-guide__faq-section {
    margin-top: 60px;
}

.page-blog-u888-latest-guide__faq-list {
    margin-top: 30px;
}

.page-blog-u888-latest-guide__faq-item {
    margin-bottom: 15px;
    overflow: hidden; /* For details tag */
    border-color: var(--divider-color);
}

.page-blog-u888-latest-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--card-bg-color); /* Match card background */
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main-color);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details summary */
}

.page-blog-u888-latest-guide__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details summary */
}

.page-blog-u888-latest-guide__faq-qtext {
    flex-grow: 1;
}

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

.page-blog-u888-latest-guide__faq-answer {
    padding: 20px;
    padding-top: 0;
    color: var(--text-secondary-color);
    font-size: 1rem;
    background-color: var(--card-bg-color); /* Match card background */
}

/* For details tag, the content is shown/hidden by default */
.page-blog-u888-latest-guide__faq-item[open] .page-blog-u888-latest-guide__faq-question {
    border-bottom: none; /* No border when open */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog-u888-latest-guide__hero-section {
        padding: 40px 0;
    }
    .page-blog-u888-latest-guide__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-blog-u888-latest-guide__hero-description {
        font-size: 1rem;
    }
    .page-blog-u888-latest-guide__section {
        padding: 60px 0;
    }
    .page-blog-u888-latest-guide__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-blog-u888-latest-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog-u888-latest-guide__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-blog-u888-latest-guide__hero-section {
        padding: 30px 0;
    }
    .page-blog-u888-latest-guide__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-blog-u888-latest-guide__hero-description {
        font-size: 0.95rem;
    }
    .page-blog-u888-latest-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog-u888-latest-guide__btn-primary,
    .page-blog-u888-latest-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* General Sections */
    .page-blog-u888-latest-guide__section {
        padding: 40px 0;
    }
    .page-blog-u888-latest-guide__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-blog-u888-latest-guide__text-block {
        font-size: 1rem;
    }

    /* Images responsiveness */
    .page-blog-u888-latest-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog-u888-latest-guide__hero-image {
        max-height: 300px; /* Adjust hero image height for mobile */
    }

    /* Ensure content containers also adapt */
    .page-blog-u888-latest-guide__section,
    .page-blog-u888-latest-guide__card,
    .page-blog-u888-latest-guide__container,
    .page-blog-u888-latest-guide__hero-section,
    .page-blog-u888-latest-guide__hero-image-wrapper,
    .page-blog-u888-latest-guide__step-card,
    .page-blog-u888-latest-guide__product-card,
    .page-blog-u888-latest-guide__promo-card,
    .page-blog-u888-latest-guide__app-download,
    .page-blog-u888-latest-guide__app-info,
    .page-blog-u888-latest-guide__support-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* App download layout */
    .page-blog-u888-latest-guide__app-download {
        flex-direction: column;
    }
    .page-blog-u888-latest-guide__app-image {
        min-width: unset; /* Reset min-width for mobile */
        width: 100%;
        margin-bottom: 20px;
    }
    .page-blog-u888-latest-guide__app-info {
        min-width: unset; /* Reset min-width for mobile */
        width: 100%;
    }

    /* FAQ */
    .page-blog-u888-latest-guide__faq-question {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-blog-u888-latest-guide__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}