/* style/blog-how-to-use-luck8-code-register-login.css */

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

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-blog-how-to-use-luck8-code-register-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--luck8-code-text-main); /* Light text for dark background */
    background-color: var(--luck8-code-background); /* Explicitly set page background */
}

/* Hero Section */
.page-blog-how-to-use-luck8-code-register-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--luck8-code-deep-green); /* Dark background for hero */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-blog-how-to-use-luck8-code-register-login__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog-how-to-use-luck8-code-register-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-blog-how-to-use-luck8-code-register-login__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-blog-how-to-use-luck8-code-register-login__main-title {
    color: var(--luck8-code-text-main);
    margin-bottom: 20px;
    /* No fixed font-size for H1, relying on default browser size or inherited */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-blog-how-to-use-luck8-code-register-login__description {
    color: var(--luck8-code-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-blog-how-to-use-luck8-code-register-login__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog-how-to-use-luck8-code-register-login__cta-buttons--centered {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-blog-how-to-use-luck8-code-register-login__btn-primary,
.page-blog-how-to-use-luck8-code-register-login__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex; /* Use flex for centering text if needed */
    align-items: center;
    justify-content: center;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks words */
}

.page-blog-how-to-use-luck8-code-register-login__btn-primary {
    background: var(--luck8-code-button-gradient);
    color: var(--luck8-code-text-main); /* Light text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-how-to-use-luck8-code-register-login__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog-how-to-use-luck8-code-register-login__btn-secondary {
    background: transparent;
    color: var(--luck8-code-primary-color); /* Green text on transparent/dark background */
    border: 2px solid var(--luck8-code-primary-color);
}

.page-blog-how-to-use-luck8-code-register-login__btn-secondary:hover {
    background: rgba(var(--luck8-code-primary-color), 0.1);
    transform: translateY(-2px);
}

/* Content Area */
.page-blog-how-to-use-luck8-code-register-login__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--luck8-code-background); /* Ensure consistent background */
    color: var(--luck8-code-text-main); /* Light text for readability */
}

.page-blog-how-to-use-luck8-code-register-login__section-title {
    color: var(--luck8-code-text-main);
    font-size: 2.2em;
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: center;
}

.page-blog-how-to-use-luck8-code-register-login__content-area p {
    margin-bottom: 15px;
    color: var(--luck8-code-text-secondary); /* Use secondary text for paragraphs */
}

.page-blog-how-to-use-luck8-code-register-login__content-area a {
    color: var(--luck8-code-primary-color);
    text-decoration: underline;
}

.page-blog-how-to-use-luck8-code-register-login__content-area a:hover {
    color: var(--luck8-code-secondary-color);
}

/* Step Cards */
.page-blog-how-to-use-luck8-code-register-login__step-card {
    background-color: var(--luck8-code-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--luck8-code-text-main); /* Light text on dark card */
}

.page-blog-how-to-use-luck8-code-register-login__step-title {
    color: var(--luck8-code-text-main);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
}

.page-blog-how-to-use-luck8-code-register-login__step-card p {
    color: var(--luck8-code-text-secondary);
}

.page-blog-how-to-use-luck8-code-register-login__step-card ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--luck8-code-text-secondary);
}

.page-blog-how-to-use-luck8-code-register-login__step-card ul li {
    margin-bottom: 8px;
    color: var(--luck8-code-text-secondary);
}

.page-blog-how-to-use-luck8-code-register-login__step-image,
.page-blog-how-to-use-luck8-code-register-login__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover; /* Ensure image covers area without distortion */
}

/* Checklist */
.page-blog-how-to-use-luck8-code-register-login__checklist {
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-bottom: 30px;
}

.page-blog-how-to-use-luck8-code-register-login__checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--luck8-code-text-secondary);
}

.page-blog-how-to-use-luck8-code-register-login__checklist li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--luck8-code-primary-color);
    font-size: 1.2em;
}

/* Promotion Cards */
.page-blog-how-to-use-luck8-code-register-login__promotion-card {
    background-color: var(--luck8-code-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--luck8-code-text-main); /* Light text on dark card */
    text-align: center;
}

.page-blog-how-to-use-luck8-code-register-login__promotion-title {
    color: var(--luck8-code-gold); /* Gold for promotion titles */
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-blog-how-to-use-luck8-code-register-login__faq-list {
    margin-top: 30px;
}

.page-blog-how-to-use-luck8-code-register-login__faq-item {
    background-color: var(--luck8-code-card-bg); /* Dark card background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-how-to-use-luck8-code-register-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--luck8-code-divider); /* Slightly lighter dark background for question */
    color: var(--luck8-code-text-main);
    font-weight: bold;
    font-size: 1.1em;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-blog-how-to-use-luck8-code-register-login__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-blog-how-to-use-luck8-code-register-login__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

.page-blog-how-to-use-luck8-code-register-login__faq-qtext {
    flex-grow: 1;
}

.page-blog-how-to-use-luck8-code-register-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--luck8-code-primary-color);
}

.page-blog-how-to-use-luck8-code-register-login__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--luck8-code-text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
    /* Transition for details tag is handled by browser,
       for div version, JS will toggle max-height */
}

/* Ensure details summary is styled correctly */
.page-blog-how-to-use-luck8-code-register-login__faq-item[open] .page-blog-how-to-use-luck8-code-register-login__faq-toggle {
    content: '−';
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog-how-to-use-luck8-code-register-login__main-title {
        font-size: 2.5em;
    }
    .page-blog-how-to-use-luck8-code-register-login__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-blog-how-to-use-luck8-code-register-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog-how-to-use-luck8-code-register-login__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-blog-how-to-use-luck8-code-register-login__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
    }

    .page-blog-how-to-use-luck8-code-register-login__description {
        font-size: 1em;
    }

    .page-blog-how-to-use-luck8-code-register-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog-how-to-use-luck8-code-register-login__btn-primary,
    .page-blog-how-to-use-luck8-code-register-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog-how-to-use-luck8-code-register-login__content-area,
    .page-blog-how-to-use-luck8-code-register-login__card,
    .page-blog-how-to-use-luck8-code-register-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-blog-how-to-use-luck8-code-register-login__section-title {
        font-size: 1.8em;
    }

    .page-blog-how-to-use-luck8-code-register-login__step-card {
        padding: 20px;
    }

    .page-blog-how-to-use-luck8-code-register-login__step-title {
        font-size: 1.5em;
    }

    /* Images responsive */
    .page-blog-how-to-use-luck8-code-register-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive (if any) */
    .page-blog-how-to-use-luck8-code-register-login video,
    .page-blog-how-to-use-luck8-code-register-login__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog-how-to-use-luck8-code-register-login__video-section,
    .page-blog-how-to-use-luck8-code-register-login__video-container,
    .page-blog-how-to-use-luck8-code-register-login__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-blog-how-to-use-luck8-code-register-login__video-section {
        padding-top: 10px !important;
    }
    .page-blog-how-to-use-luck8-code-register-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}