.page-beginners-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: #0A0A0A; /* Background color */
}

/* Hero Section */
.page-beginners-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: #0A0A0A; /* Match body background */
}

.page-beginners-guide__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper doesn't overflow */
    overflow: hidden;
}

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

.page-beginners-guide__hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    background: #0A0A0A; /* Dark background */
    color: #FFF6D6; /* Light text */
    box-sizing: border-box;
}

.page-beginners-guide__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2C14E; /* Brand primary color for H1 */
}

.page-beginners-guide__intro-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF6D6; /* Light text */
}

/* General Sections */
.page-beginners-guide__section {
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-beginners-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #111111; /* Card BG color as default container bg */
    color: #FFF6D6; /* Text Main color */
}

.page-beginners-guide__dark-section .page-beginners-guide__container {
    background-color: #0A0A0A; /* Override for dark sections */
}

.page-beginners-guide__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Primary color for section titles */
}

.page-beginners-guide__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #FFD36B; /* Glow color for sub titles */
}

.page-beginners-guide__paragraph {
    margin-bottom: 15px;
    color: #FFF6D6; /* Text Main color */
}

.page-beginners-guide__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-beginners-guide__card {
    background-color: #111111; /* Card BG color */
    color: #FFF6D6; /* Text Main color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginners-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-beginners-guide__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    display: block;
}

.page-beginners-guide__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2C14E; /* Primary color for card titles */
}

.page-beginners-guide__card-text {
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
    color: #FFF6D6; /* Text Main color */
}

/* Buttons */
.page-beginners-guide__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

.page-beginners-guide__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #0A0A0A; /* Dark text for bright button */
    border: 2px solid transparent;
}

.page-beginners-guide__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    color: #0A0A0A;
}

.page-beginners-guide__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Primary color for secondary button text */
    border: 2px solid #F2C14E;
}

.page-beginners-guide__btn-secondary:hover {
    background-color: #F2C14E;
    color: #0A0A0A; /* Dark text on hover */
    border-color: #F2C14E;
}

/* FAQ Section */
.page-beginners-guide__faq-area {
    margin-top: 60px;
}

.page-beginners-guide__faq-list {
    margin-top: 30px;
}

.page-beginners-guide__faq-item {
    background-color: #0A0A0A; /* Background color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-beginners-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111; /* Card BG color */
    color: #F2C14E; /* Primary color for questions */
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-beginners-guide__faq-question:hover {
    background-color: #1a1a1a;
}

.page-beginners-guide__faq-title {
    font-size: 1.1rem;
    margin: 0;
    color: #F2C14E; /* Primary color for FAQ titles */
}

.page-beginners-guide__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Primary color for toggle */
}

.page-beginners-guide__faq-item.active .page-beginners-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-beginners-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #0A0A0A; /* Background color */
    color: #FFF6D6; /* Text Main color */
}

.page-beginners-guide__faq-item.active .page-beginners-guide__faq-answer {
    max-height: 1000px !important; /* Important for override, large enough */
    padding: 15px 25px;
}

.page-beginners-guide__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin in answer */
    color: #FFF6D6; /* Text Main color */
}

.page-beginners-guide__faq-button {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Links */
.page-beginners-guide a {
    color: #F2C14E; /* Primary color for links */
    text-decoration: none;
}

.page-beginners-guide a:hover {
    text-decoration: underline;
}

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

    .page-beginners-guide__hero-section {
        padding-bottom: 20px;
    }

    .page-beginners-guide__hero-content {
        padding: 30px 15px;
    }

    .page-beginners-guide__main-title {
        font-size: 2rem;
    }

    .page-beginners-guide__intro-text {
        font-size: 1rem;
    }

    .page-beginners-guide__section {
        padding: 40px 15px;
    }

    .page-beginners-guide__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-beginners-guide__sub-title {
        font-size: 1.3rem;
    }

    .page-beginners-guide__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-beginners-guide__card-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-beginners-guide__card-title {
        font-size: 1.3rem;
    }

    .page-beginners-guide__card-text {
        font-size: 0.95rem;
    }

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

    .page-beginners-guide__btn-primary,
    .page-beginners-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Ensure all images are responsive and do not overflow */
    .page-beginners-guide img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-beginners-guide__section,
    .page-beginners-guide__card,
    .page-beginners-guide__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    /* FAQ Section mobile adjustments */
    .page-beginners-guide__faq-question {
        padding: 15px 20px;
    }
    .page-beginners-guide__faq-answer {
        padding: 0 20px;
    }
    .page-beginners-guide__faq-item.active .page-beginners-guide__faq-answer {
        padding: 10px 20px;
    }
}