/* style/beginner-guide.css */

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

/* Base styles for the page content */
.page-beginner-guide {
    background-color: var(--background-main); /* Deep green background for the page */
    color: var(--text-main); /* Light text on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Ensure all links within the main content inherit text color unless specified */
.page-beginner-guide a {
    color: var(--gold-color); /* Use gold for links to make them stand out */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-beginner-guide a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-beginner-guide h1,
.page-beginner-guide h2,
.page-beginner-guide h3,
.page-beginner-guide h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-beginner-guide h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem); /* Responsive H1 font size */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gold-color); /* H1 specifically gold */
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-beginner-guide h2 {
    font-size: clamp(1.8rem, 3.5vw + 1rem, 2.8rem);
    text-align: center;
    margin-top: 40px;
    color: var(--glow-color);
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-beginner-guide h3 {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2.2rem);
    color: var(--text-main);
    margin-top: 30px;
}

.page-beginner-guide h4 {
    font-size: clamp(1.2rem, 2vw + 1rem, 1.8rem);
    color: var(--text-secondary);
    margin-top: 25px;
}

.page-beginner-guide p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-beginner-guide__list,
.page-beginner-guide__list-ordered {
    list-style-position: inside;
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--text-main);
}

.page-beginner-guide__list li,
.page-beginner-guide__list-ordered li {
    margin-bottom: 8px;
}

.page-beginner-guide__list-ordered {
    list-style-type: decimal;
}

.page-beginner-guide__sub-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Section styling */
.page-beginner-guide__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--divider-color);
}

.page-beginner-guide__section:last-of-type {
    border-bottom: none;
}

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

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--deep-green); /* Use deep green for hero background */
    overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8); /* Slightly darken image for better text contrast */
}

.page-beginner-guide__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-beginner-guide__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* CTA Buttons */
.page-beginner-guide__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-beginner-guide__cta-buttons--center {
    justify-content: center;
}

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

.page-beginner-guide__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

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

.page-beginner-guide__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--background-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-beginner-guide__btn-inline {
    margin-left: 10px; /* Adjust spacing for inline buttons */
    margin-right: 10px;
}

/* Content Images */
.page-beginner-guide__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    filter: brightness(0.9); /* Slightly darken for consistency */
}

/* FAQ Section */
.page-beginner-guide__faq-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-beginner-guide__faq-item {
    background-color: var(--card-bg); /* Darker card background */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-question {
    background-color: var(--primary-color); /* Highlight when open */
    color: #ffffff;
    border-bottom: 1px solid var(--primary-color);
}

.page-beginner-guide__faq-question:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X */
    color: #ffffff;
}

.page-beginner-guide__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-beginner-guide__hero-image-wrapper {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__section {
        padding: 40px 15px;
    }

    .page-beginner-guide__container {
        padding: 0 15px;
    }

    .page-beginner-guide h1 {
        font-size: clamp(1.8rem, 5vw + 1rem, 2.5rem);
    }

    .page-beginner-guide h2 {
        font-size: clamp(1.5rem, 4.5vw + 1rem, 2rem);
    }

    .page-beginner-guide h3 {
        font-size: clamp(1.3rem, 3.5vw + 1rem, 1.8rem);
    }

    .page-beginner-guide__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px;
    }

    .page-beginner-guide__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-beginner-guide__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-beginner-guide__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-beginner-guide__btn-inline {
        margin: 0; /* Remove inline margin on mobile */
    }

    /* Mobile image responsiveness */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any) */
    .page-beginner-guide video,
    .page-beginner-guide__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Ensure containers for images/videos/buttons adapt */
    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container,
    .page-beginner-guide__cta-buttons,
    .page-beginner-guide__video-section,
    .page-beginner-guide__video-container,
    .page-beginner-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}