/* style/newbie-guide.css */

/* Base styles for the page content */
.page-newbie-guide {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #ffffff); /* Use shared background, default to white */
}

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

.page-newbie-guide__section {
    padding: 60px 0;
    text-align: center;
}

.page-newbie-guide__dark-section {
    background-color: #26A9E0; /* Primary color as background */
    color: #ffffff; /* White text for primary color background */
}

.page-newbie-guide__section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: #26A9E0;
    font-weight: bold;
}

.page-newbie-guide__dark-section .page-newbie-guide__section-title {
    color: #ffffff;
}

.page-newbie-guide__paragraph {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-newbie-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Fading background for visual appeal */
}

.page-newbie-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-newbie-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-newbie-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-newbie-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* White text on hero for better contrast */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-newbie-guide__main-title {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-newbie-guide__intro-text {
    font-size: 22px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-newbie-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login orange color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-newbie-guide__cta-button:hover {
    background: #d46f06; /* Darker shade for hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* What Is Section */
.page-newbie-guide__what-is .page-newbie-guide__section-title {
    color: #26A9E0;
}
.page-newbie-guide__what-is .page-newbie-guide__paragraph {
    color: #333333;
}
.page-newbie-guide__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.page-newbie-guide__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Why Choose Section */
.page-newbie-guide__why-choose {
    background-color: #26A9E0;
    color: #ffffff;
}
.page-newbie-guide__why-choose .page-newbie-guide__section-title {
    color: #ffffff;
}
.page-newbie-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.page-newbie-guide__feature-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.page-newbie-guide__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
}
.page-newbie-guide__feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}
.page-newbie-guide__feature-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* Step-by-Step Guide */
.page-newbie-guide__step-by-step .page-newbie-guide__section-title {
    color: #26A9E0;
}
.page-newbie-guide__guide-steps {
    margin-top: 40px;
}
.page-newbie-guide__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    text-align: center;
}
.page-newbie-guide__step-item:last-child {
    margin-bottom: 0;
}
.page-newbie-guide__step-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0;
}
.page-newbie-guide__step-description {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 700px;
    color: #555555;
}
.page-newbie-guide__step-description a {
    color: #EA7C07;
    text-decoration: underline;
    font-weight: bold;
}
.page-newbie-guide__step-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tips Section */
.page-newbie-guide__tips .page-newbie-guide__section-title {
    color: #26A9E0;
}
.page-newbie-guide__tip-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}
.page-newbie-guide__tip-list li {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 17px;
    color: #333333;
}
.page-newbie-guide__tip-list li strong {
    color: #26A9E0;
}

/* Promotions Section */
.page-newbie-guide__promotions {
    background-color: #26A9E0;
    color: #ffffff;
}
.page-newbie-guide__promotions .page-newbie-guide__section-title {
    color: #ffffff;
}
.page-newbie-guide__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.page-newbie-guide__promo-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.page-newbie-guide__promo-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
}
.page-newbie-guide__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}
.page-newbie-guide__promo-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}
.page-newbie-guide__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}
.page-newbie-guide__btn-secondary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.page-newbie-guide__cta-center {
    margin-top: 50px;
}


/* FAQ Section */
.page-newbie-guide__faq .page-newbie-guide__section-title {
    color: #26A9E0;
}
.page-newbie-guide__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.page-newbie-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-newbie-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-newbie-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-newbie-guide__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-newbie-guide__faq-question:active {
    background: #eeeeee;
}

.page-newbie-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-newbie-guide__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-toggle {
    color: #26A9E0; /* Primary color for active toggle */
    transform: rotate(45deg); /* Plus to X for active */
}

/* CTA Bottom Section */
.page-newbie-guide__cta-bottom {
    padding-bottom: 80px;
}
.page-newbie-guide__cta-bottom .page-newbie-guide__section-title {
    color: #26A9E0;
}
.page-newbie-guide__cta-bottom .page-newbie-guide__paragraph {
    color: #555555;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-newbie-guide__main-title {
        font-size: 42px;
    }
    .page-newbie-guide__intro-text {
        font-size: 20px;
    }
    .page-newbie-guide__section-title {
        font-size: 32px;
    }
    .page-newbie-guide__feature-title {
        font-size: 22px;
    }
    .page-newbie-guide__step-title {
        font-size: 26px;
    }
    .page-newbie-guide__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-newbie-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-newbie-guide__main-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .page-newbie-guide__intro-text {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .page-newbie-guide__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-newbie-guide__section {
        padding: 40px 0;
    }
    .page-newbie-guide__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-newbie-guide__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-newbie-guide__paragraph {
        font-size: 16px;
    }

    /* Images responsiveness */
    .page-newbie-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-newbie-guide__image-wrapper {
        margin: 20px auto;
    }
    .page-newbie-guide__step-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Features Grid */
    .page-newbie-guide__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-newbie-guide__feature-item {
        padding: 25px;
    }
    .page-newbie-guide__feature-title {
        font-size: 20px;
    }

    /* Step-by-Step */
    .page-newbie-guide__step-item {
        margin-bottom: 40px;
    }
    .page-newbie-guide__step-title {
        font-size: 24px;
    }
    .page-newbie-guide__step-description {
        font-size: 16px;
    }

    /* Tips List */
    .page-newbie-guide__tip-list {
        margin-top: 20px;
    }
    .page-newbie-guide__tip-list li {
        font-size: 16px;
        padding: 12px 15px;
    }

    /* Promotions Grid */
    .page-newbie-guide__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-newbie-guide__promo-card {
        padding: 25px;
    }
    .page-newbie-guide__promo-title {
        font-size: 20px;
    }
    .page-newbie-guide__promo-description {
        font-size: 15px;
    }
    .page-newbie-guide__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-newbie-guide__cta-center {
        margin-top: 30px;
    }

    /* FAQ Section */
    .page-newbie-guide__faq-list {
        margin-top: 30px;
    }
    .page-newbie-guide__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-newbie-guide__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-newbie-guide__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-newbie-guide__faq-answer {
        padding: 0 15px;
    }
    .page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
        padding: 15px !important;
    }
}