/* style/beginner-guide.css */

/* Base styles for the page-specific content */
.page-beginner-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main wrapper should be transparent to show body background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop and mobile */
}

/* Container for content sections */
.page-beginner-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: #017439; /* Use brand color for hero section background */
    color: #ffffff;
}

.page-beginner-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Make background image subtle */
}

.page-beginner-guide__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlight title with custom color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #ffffff;
}

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

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-beginner-guide__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

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

/* Video Section */
.page-beginner-guide__video-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for video section */
    color: #333333;
    text-align: center;
}

.page-beginner-guide__video-wrapper {
    max-width: 800px;
    margin: 30px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.page-beginner-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%; /* Ensure video fits container */
    height: auto;
    display: block;
    cursor: pointer; /* Indicate video is clickable */
}

.page-beginner-guide__video-description {
    font-size: 1.1em;
    margin-top: 20px;
    color: #555555;
}

/* Content Area */
.page-beginner-guide__content-area {
    padding: 60px 0;
    background-color: #ffffff; /* White background for main content for readability */
    color: #333333; /* Dark text for light background */
}

.page-beginner-guide__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #017439; /* Brand color for section titles */
    text-align: center;
    padding-top: 20px;
}

.page-beginner-guide__content-area h3 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #017439; /* Brand color for sub-titles */
}

.page-beginner-guide__content-area p {
    margin-bottom: 1em;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-beginner-guide__content-area strong {
    color: #017439; /* Emphasize keywords with brand color */
}

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

.page-beginner-guide__list li {
    margin-bottom: 0.5em;
    font-size: 1.05em;
    line-height: 1.6;
}

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

.page-beginner-guide__image--left {
    float: left;
    margin-right: 30px;
    width: 40%; /* Example width for floated image */
    max-width: 400px; /* Max width to prevent too large float */
}

.page-beginner-guide__image--right {
    float: right;
    margin-left: 30px;
    width: 40%; /* Example width for floated image */
    max-width: 400px; /* Max width to prevent too large float */
}

.page-beginner-guide__image--full-width {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
}

/* Clear floats */
.page-beginner-guide__content-area::after {
    content: "";
    display: table;
    clear: both;
}

/* FAQ Section */
.page-beginner-guide__faq-list {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

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

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439; /* Brand color for FAQ questions */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
    background-color: #e6f7ed; /* Lighter shade of brand color for hover */
}

.page-beginner-guide__faq-question h3 {
    margin: 0;
    color: #017439; /* Ensure h3 inside question is brand color */
    font-size: 1.1em;
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X or rotate for minus */
}

.page-beginner-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding is 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px; /* Padding when active */
}

.page-beginner-guide__faq-answer p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-beginner-guide__main-title {
        font-size: 2.8em;
    }
    .page-beginner-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-beginner-guide__hero-section {
        padding: 60px 20px;
        min-height: 400px;
    }

    .page-beginner-guide__main-title {
        font-size: 2.2em;
    }

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

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

    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        float: none !important; /* Remove float on mobile */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-beginner-guide__image--left,
    .page-beginner-guide__image--right {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto !important;
        float: none !important;
    }

    /* Video responsiveness */
    .page-beginner-guide video,
    .page-beginner-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .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;
    }

    /* Content area padding */
    .page-beginner-guide__container {
        padding: 0 15px;
    }

    .page-beginner-guide__section-title {
        font-size: 1.8em;
    }

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

    .page-beginner-guide__faq-question h3 {
        font-size: 1em;
    }

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

    .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-beginner-guide__main-title {
        font-size: 1.8em;
    }
    .page-beginner-guide__description {
        font-size: 0.9em;
    }
    .page-beginner-guide__section-title {
        font-size: 1.5em;
    }
}