/* style/beginner-guide.css */

/* Variables from custom palette */
:root {
    --page-bg: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --primary-color: #11A84E; /* Main brand color */
    --secondary-color: #22C768; /* Auxiliary brand color */
}

.page-beginner-guide {
    font-family: 'Arial', sans-serif;
    background-color: var(--page-bg); /* Use page background color */
    color: var(--text-main); /* Default text color for dark background */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Base container for content */
.page-beginner-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-beginner-guide__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H2 */
    font-weight: 700;
    color: var(--gold-color); /* Use gold for section titles for prominence */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-beginner-guide__text-block {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary); /* Default text color for paragraphs */
    text-align: center;
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensure image covers the area */
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the image slightly, but not overlaying text on image */
    background-color: var(--card-bg); /* Card background for content block */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.page-beginner-guide__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Responsive H1 font size */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px var(--glow-color);
}

.page-beginner-guide__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-beginner-guide__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main); /* White text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-beginner-guide__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-beginner-guide__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

.page-beginner-guide__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

/* Content Sections */
.page-beginner-guide__introduction-section,
.page-beginner-guide__promotions-section,
.page-beginner-guide__contact-cta {
    padding: 60px 0;
    background-color: var(--page-bg); /* Default to page background */
    color: var(--text-main);
}

.page-beginner-guide__introduction-section .page-beginner-guide__text-block,
.page-beginner-guide__promotions-section .page-beginner-guide__text-block,
.page-beginner-guide__contact-cta .page-beginner-guide__text-block {
    color: var(--text-secondary);
}

.page-beginner-guide__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    max-width: 800px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Steps Section (Dark Background) */
.page-beginner-guide__steps-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Use card background for this section */
    color: var(--text-main);
}

.page-beginner-guide__steps-section .page-beginner-guide__section-title {
    color: var(--text-main); /* White title on dark background */
}

.page-beginner-guide__steps-section .page-beginner-guide__text-block {
    color: var(--text-secondary);
}

.page-beginner-guide__step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-beginner-guide__card {
    background-color: var(--deep-green); /* Deeper green for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 450px; /* Ensure cards have some height */
}

.page-beginner-guide__card-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-beginner-guide__card-image {
    width: 100%;
    max-width: 400px; /* Max width for card images */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    border: 1px solid var(--border-color);
}

.page-beginner-guide__card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-beginner-guide__cta-buttons-card {
    display: flex;
    flex-direction: column; /* Stack buttons in card */
    gap: 10px;
    width: 100%;
}
.page-beginner-guide__cta-buttons-card .page-beginner-guide__btn-primary,
.page-beginner-guide__cta-buttons-card .page-beginner-guide__btn-secondary {
    width: 100%;
}

/* Promotions Section */
.page-beginner-guide__promotions-section {
    background-color: var(--page-bg);
    color: var(--text-main);
}

.page-beginner-guide__promotion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-beginner-guide__promotion-item {
    background-color: var(--deep-green);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-beginner-guide__promotion-image {
    width: 100%;
    max-width: 300px; /* Max width for promotion images */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    border: 1px solid var(--border-color);
}

.page-beginner-guide__promotion-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-beginner-guide__promotion-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-beginner-guide__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-beginner-guide__faq-section .page-beginner-guide__section-title {
    color: var(--text-main);
}

.page-beginner-guide__faq-section .page-beginner-guide__text-block {
    color: var(--text-secondary);
}

.page-beginner-guide__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

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

.page-beginner-guide__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    background-color: var(--deep-green);
    list-style: none; /* Remove default marker */
    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(var(--primary-color), 0.1);
}

.page-beginner-guide__faq-qtext {
    flex-grow: 1;
    text-align: left;
    color: var(--text-main);
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-beginner-guide__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: left;
}

.page-beginner-guide__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Contact CTA Section */
.page-beginner-guide__contact-cta {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: var(--page-bg);
    color: var(--text-main);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-beginner-guide__hero-content {
        margin-top: -80px;
        padding: 25px 15px;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-beginner-guide__subtitle {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
    .page-beginner-guide__section-title {
        font-size: clamp(24px, 3.5vw, 38px);
    }
    .page-beginner-guide__card-title {
        font-size: clamp(1.2rem, 2vw, 1.6rem);
    }
}

@media (max-width: 768px) {
    .page-beginner-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-beginner-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsiveness */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container,
    .page-beginner-guide__hero-section,
    .page-beginner-guide__introduction-section,
    .page-beginner-guide__steps-section,
    .page-beginner-guide__promotions-section,
    .page-beginner-guide__faq-section,
    .page-beginner-guide__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-beginner-guide__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px !important;
    }
    .page-beginner-guide__hero-content {
        margin-top: -60px;
        padding: 20px 10px;
    }

    /* Mobile button responsiveness */
    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .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__cta-buttons-card {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-beginner-guide__cta-buttons-card .page-beginner-guide__btn-primary,
    .page-beginner-guide__cta-buttons-card .page-beginner-guide__btn-secondary {
        width: 100%;
    }

    .page-beginner-guide__step-cards,
    .page-beginner-guide__promotion-list {
        grid-template-columns: 1fr;
    }
    .page-beginner-guide__card {
        padding: 25px;
        min-height: auto;
    }
    .page-beginner-guide__promotion-item {
        padding: 20px;
    }
    .page-beginner-guide__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-beginner-guide__faq-answer {
        padding: 0 20px 15px;
    }
    .page-beginner-guide__section-title {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-beginner-guide__main-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    .page-beginner-guide__hero-content {
        margin-top: -40px;
    }
    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Ensure no filter on images */
.page-beginner-guide img {
    filter: none;
}
/* Ensure content area image CSS size lower bound */
.page-beginner-guide__introduction-section img,
.page-beginner-guide__card-image,
.page-beginner-guide__promotion-image {
    min-width: 200px;
    min-height: 200px;
}