/* style/blog-registration-deposit-guide.css */

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

    /* Default text color for light backgrounds */
    --text-on-light: #333333;
    /* Default text color for dark backgrounds */
    --text-on-dark: #ffffff;
}

/* Base styles for the page content */
.page-blog-registration-deposit-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--new88-text-main); /* Default text color for the page */
    background-color: var(--new88-background); /* Page background from custom colors */
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Hero Section */
.page-blog-registration-deposit-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-blog-registration-deposit-guide__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px; /* Space between image and content */
    box-sizing: border-box;
}

.page-blog-registration-deposit-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-blog-registration-deposit-guide__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.page-blog-registration-deposit-guide__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size constraint */
    color: var(--new88-gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-blog-registration-deposit-guide__description {
    font-size: 1.1em;
    color: var(--new88-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-registration-deposit-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog-registration-deposit-guide__btn-primary,
.page-blog-registration-deposit-guide__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-blog-registration-deposit-guide__btn-primary {
    background: var(--new88-btn-gradient);
    color: var(--text-on-dark); /* White text for dark button */
    border: 2px solid transparent;
}

.page-blog-registration-deposit-guide__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--new88-glow-color);
}

.page-blog-registration-deposit-guide__btn-secondary {
    background-color: transparent;
    color: var(--new88-primary-color);
    border: 2px solid var(--new88-primary-color);
}

.page-blog-registration-deposit-guide__btn-secondary:hover {
    background-color: var(--new88-primary-color);
    color: var(--text-on-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-blog-registration-deposit-guide__content-area,
.page-blog-registration-deposit-guide__section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--new88-card-bg); /* Use card background for content sections */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    color: var(--new88-text-main); /* Ensure text is readable on dark background */
}

.page-blog-registration-deposit-guide__section-title {
    font-size: 2.2em;
    color: var(--new88-gold-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-blog-registration-deposit-guide__sub-title {
    font-size: 1.6em;
    color: var(--new88-primary-color);
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-blog-registration-deposit-guide p {
    margin-bottom: 1em;
    color: var(--new88-text-secondary);
}

.page-blog-registration-deposit-guide a {
    color: var(--new88-glow-color); /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog-registration-deposit-guide a:hover {
    color: var(--new88-gold-color);
    text-decoration: underline;
}

.page-blog-registration-deposit-guide__list,
.page-blog-registration-deposit-guide__numbered-list,
.page-blog-registration-deposit-guide__nested-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 1.5em;
    color: var(--new88-text-secondary);
}

.page-blog-registration-deposit-guide__numbered-list {
    list-style-type: decimal;
}

.page-blog-registration-deposit-guide__list li,
.page-blog-registration-deposit-guide__numbered-list li {
    margin-bottom: 0.8em;
}

.page-blog-registration-deposit-guide__nested-list {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.page-blog-registration-deposit-guide__image-wrapper {
    margin: 30px 0;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.page-blog-registration-deposit-guide__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-blog-registration-deposit-guide__faq-list {
    margin-top: 30px;
}

.page-blog-registration-deposit-guide__faq-item {
    background-color: var(--new88-deep-green);
    border: 1px solid var(--new88-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog-registration-deposit-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--new88-text-main);
    cursor: pointer;
    background-color: var(--new88-primary-color);
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-blog-registration-deposit-guide__faq-question:hover {
    background-color: #1a7e43; /* Slightly darker primary color */
}

.page-blog-registration-deposit-guide__faq-qtext {
    flex-grow: 1;
}

.page-blog-registration-deposit-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

/* For <details> tag, hide default marker */
.page-blog-registration-deposit-guide__faq-item summary {
    list-style: none;
}
.page-blog-registration-deposit-guide__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Rotate toggle for open state */
.page-blog-registration-deposit-guide__faq-item[open] .page-blog-registration-deposit-guide__faq-toggle {
    transform: rotate(45deg); /* + becomes x */
}

.page-blog-registration-deposit-guide__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--new88-text-secondary);
    background-color: var(--new88-deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog-registration-deposit-guide__hero-content {
        padding: 0 15px;
    }
    .page-blog-registration-deposit-guide__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-blog-registration-deposit-guide__section-title {
        font-size: 1.8em;
    }
}

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

    .page-blog-registration-deposit-guide__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding */
    }
    .page-blog-registration-deposit-guide__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-blog-registration-deposit-guide__hero-content {
        padding: 0 10px;
    }
    .page-blog-registration-deposit-guide__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
    }
    .page-blog-registration-deposit-guide__description {
        font-size: 1em;
    }

    /* Buttons responsive */
    .page-blog-registration-deposit-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px; /* Add padding to button container */
        box-sizing: border-box !important;
    }
    .page-blog-registration-deposit-guide__btn-primary,
    .page-blog-registration-deposit-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 20px;
        padding-right: 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Content area responsive */
    .page-blog-registration-deposit-guide__content-area,
    .page-blog-registration-deposit-guide__section {
        padding: 25px 15px;
        margin: 25px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog-registration-deposit-guide__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .page-blog-registration-deposit-guide__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* Images responsive */
    .page-blog-registration-deposit-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog-registration-deposit-guide__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* FAQ responsive */
    .page-blog-registration-deposit-guide__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-blog-registration-deposit-guide__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-blog-registration-deposit-guide__main-title {
        font-size: clamp(1.2em, 8vw, 2em);
    }
    .page-blog-registration-deposit-guide__section-title {
        font-size: 1.3em;
    }
    .page-blog-registration-deposit-guide__sub-title {
        font-size: 1.1em;
    }
}

/* Contrast Fixes (if needed, but aim for good initial contrast) */
.page-blog-registration-deposit-guide__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-blog-registration-deposit-guide__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}