/* style/beginner-guide.css */

/* General Styles */
.page-beginner-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background is white */
}

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

.page-beginner-guide__section-title {
    font-size: 2.5em;
    color: #017439;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-beginner-guide__category-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-beginner-guide p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.page-beginner-guide__list,
.page-beginner-guide__list-promotions,
.page-beginner-guide__list-tips,
.page-beginner-guide__list-support {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-beginner-guide__list li,
.page-beginner-guide__list-promotions li,
.page-beginner-guide__list-tips li,
.page-beginner-guide__list-support li {
    margin-bottom: 10px;
}

/* Color Contrast Sections */
.page-beginner-guide__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

.page-beginner-guide__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 0;
}

.page-beginner-guide__dark-bg .page-beginner-guide__section-title,
.page-beginner-guide__dark-bg .page-beginner-guide__category-title {
    color: #FFFFFF;
}

/* Buttons */
.page-beginner-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%; /* For responsive container */
    max-width: 100%; /* For responsive container */
    box-sizing: border-box; /* For responsive container */
    overflow: hidden; /* For responsive container */
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* For responsive button */
    box-sizing: border-box; /* For responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-beginner-guide__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-beginner-guide__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-beginner-guide__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-beginner-guide__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    overflow: hidden;
    background-color: #017439; /* Fallback background */
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
}

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

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover the area */
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    color: #FFFFFF;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-beginner-guide__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-beginner-guide__lead-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Content Images */
.page-beginner-guide__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Grid for Transaction Section */
.page-beginner-guide__grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-beginner-guide__card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    color: #333333;
}

.page-beginner-guide__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Product Categories */
.page-beginner-guide__product-category {
    margin-bottom: 50px;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    color: #FFFFFF;
}

.page-beginner-guide__product-category .page-beginner-guide__category-title {
    color: #FFFFFF;
}

.page-beginner-guide__product-category .page-beginner-guide__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border-color: #017439;
    margin-top: 20px;
}

.page-beginner-guide__product-category .page-beginner-guide__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #005a2e;
    border-color: #005a2e;
}

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

.page-beginner-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-beginner-guide__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-beginner-guide__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-beginner-guide__faq-qtext {
    flex-grow: 1;
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-beginner-guide__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .page-beginner-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-beginner-guide__container,
    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-beginner-guide__category-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* Hero Section */
    .page-beginner-guide__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-beginner-guide__hero-image {
        object-fit: contain !important; /* Mobile: contain the image, no cropping */
        aspect-ratio: unset !important; /* Remove aspect ratio on mobile */
        max-height: none !important; /* Remove max-height restriction */
        width: 100% !important;
        height: auto !important;
    }

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

    .page-beginner-guide__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
    }

    .page-beginner-guide__lead-text {
        font-size: 1em;
    }

    /* Buttons */
    .page-beginner-guide__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important; /* Ensure buttons wrap if there are many */
    }

    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary,
    .page-beginner-guide a[class*="button"],
    .page-beginner-guide a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Content Images */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Grid for Transaction Section */
    .page-beginner-guide__grid-2-col {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-beginner-guide__card {
        padding: 20px;
    }

    /* FAQ Section */
    .page-beginner-guide__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-beginner-guide__faq-answer {
        padding: 0 15px 15px;
        font-size: 1em;
    }

    /* Generic content area image styles */
    .page-beginner-guide__image-content {
        min-width: unset !important; /* Remove min-width for mobile */
        min-height: unset !important; /* Remove min-height for mobile */
    }
}