/* style/beginner-guide.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0;
    --btn-login: #EA7C07;
}

.page-beginner-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default for light background */
    background-color: var(--bg-light);
}

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

.page-beginner-guide__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default to cover for desktop */
}

.page-beginner-guide__hero-content {
    padding: 40px 20px;
    max-width: 800px;
}

.page-beginner-guide__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-beginner-guide__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.page-beginner-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-beginner-guide__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-beginner-guide__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-beginner-guide__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-beginner-guide__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-beginner-guide__btn-center {
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__section {
    padding: 60px 0;
}

.page-beginner-guide__intro-section,
.page-beginner-guide__deposit-section,
.page-beginner-guide__withdrawal-section,
.page-beginner-guide__faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-beginner-guide__registration-section,
.page-beginner-guide__games-section,
.page-beginner-guide__security-support-section,
.page-beginner-guide__cta-final-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-beginner-guide__section-title {
    font-size: 2.5em;
    color: inherit;
    text-align: center;
    margin-bottom: 40px;
}

.page-beginner-guide__subsection-title {
    font-size: 1.8em;
    color: inherit;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-beginner-guide__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-beginner-guide__keyword {
    font-weight: bold;
    color: var(--primary-color);
}

.page-beginner-guide__dark-bg .page-beginner-guide__keyword {
    color: var(--secondary-color);
}

.page-beginner-guide__step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.page-beginner-guide__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.page-beginner-guide__light-bg .page-beginner-guide__step-item {
    background-color: #f9f9f9;
    border-left-color: var(--primary-color);
}

.page-beginner-guide__step-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}

.page-beginner-guide__step-subtitle {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}

.page-beginner-guide__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-beginner-guide__list-item {
    margin-bottom: 10px;
}

.page-beginner-guide__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    max-width: 800px; /* Ensure content images are not too wide */
}

.page-beginner-guide__game-category {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-beginner-guide__light-bg .page-beginner-guide__game-category {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.page-beginner-guide__category-title {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    color: inherit;
}

.page-beginner-guide__category-description {
    margin-bottom: 20px;
}

.page-beginner-guide__faq-list {
    margin-top: 30px;
}

.page-beginner-guide__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-beginner-guide__dark-bg .page-beginner-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    list-style: none; /* For details/summary */
}

.page-beginner-guide__dark-bg .page-beginner-guide__faq-question {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-beginner-guide__faq-item details > summary::-webkit-details-marker {
    display: none;
}

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

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X */
}

.page-beginner-guide__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-dark);
}

.page-beginner-guide__dark-bg .page-beginner-guide__faq-answer {
    color: var(--text-light);
}

.page-beginner-guide__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

.page-beginner-guide__copyright {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    border-top: 1px solid #eee;
}

/* Ensure all content images are responsive */
.page-beginner-guide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-beginner-guide__container {
        padding: 15px;
    }

    .page-beginner-guide__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-beginner-guide__hero-image {
        object-fit: contain !important; /* Ensure image is fully visible, not cropped */
        max-height: none !important;
        aspect-ratio: unset !important;
    }

    .page-beginner-guide__hero-content {
        padding: 20px 15px;
    }

    .page-beginner-guide__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        line-height: 1.3;
    }

    .page-beginner-guide__hero-description {
        font-size: 1em;
    }

    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-beginner-guide__section {
        padding: 40px 0;
    }

    .page-beginner-guide__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-beginner-guide__subsection-title {
        font-size: 1.5em;
    }

    .page-beginner-guide__text-block {
        font-size: 0.95em;
    }

    .page-beginner-guide__step-item {
        padding: 20px;
    }

    .page-beginner-guide__step-title {
        font-size: 1.3em;
    }

    .page-beginner-guide__step-subtitle {
        font-size: 1.1em;
    }

    .page-beginner-guide__game-category {
        padding: 20px;
    }

    .page-beginner-guide__category-title {
        font-size: 1.5em;
    }

    .page-beginner-guide__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-beginner-guide__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* General image and container responsiveness for content areas */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container,
    .page-beginner-guide__cta-buttons,
    .page-beginner-guide__button-group,
    .page-beginner-guide__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-beginner-guide__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-beginner-guide__cta-buttons > * {
        flex: 1 1 100%;
    }
}