:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;

    /* RGB values for transparent backgrounds */
    --card-bg-rgb: 17, 39, 27;
    --deep-green-rgb: 10, 75, 44;
}

/* --- Base Styles --- */
.page-beginner-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* F2FFF6 */
    background-color: var(--background); /* #08160F */
}

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

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

.page-beginner-guide__section-description,
.page-beginner-guide__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary); /* A7D9B8 */
    text-align: center;
    margin-bottom: 20px;
}

.page-beginner-guide__text-block {
    text-align: left; /* Default for paragraphs */
    margin-bottom: 15px;
}

.page-beginner-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Ensure responsiveness for multiple buttons */
}

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

.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;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-beginner-guide__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-beginner-guide__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__btn-secondary {
    background: transparent;
    color: var(--text-main); /* F2FFF6 */
    border: 2px solid var(--deep-green); /* 0A4B2C */
}

.page-beginner-guide__btn-secondary:hover {
    background: rgba(var(--deep-green-rgb), 0.2);
    border-color: var(--glow); /* 57E38D */
    color: var(--glow);
}

.page-beginner-guide__card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

/* --- Hero Section --- */
.page-beginner-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for first content section */
    overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    color: #ffffff;
    padding: 20px;
}

.page-beginner-guide__main-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    color: var(--gold); /* F2C14E */
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__lead-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary); /* A7D9B8 */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Introduction Section --- */
.page-beginner-guide__introduction-section {
    padding: 80px 20px;
    background-color: var(--card-bg); /* #11271B */
    text-align: center;
}

/* --- Steps Section --- */
.page-beginner-guide__steps-section {
    padding: 80px 20px;
    background-color: var(--background); /* #08160F */
}

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

.page-beginner-guide__step-card {
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-beginner-guide__step-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-beginner-guide__step-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main); /* F2FFF6 */
    margin-bottom: 15px;
}

.page-beginner-guide__step-card-text {
    color: var(--text-secondary); /* A7D9B8 */
    font-size: 1rem;
    text-align: justify;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-beginner-guide__step-card-button {
    margin-top: auto; /* Push button to the bottom */
}

/* --- Tips Section --- */
.page-beginner-guide__tips-section {
    padding: 80px 20px;
    background-color: var(--deep-green); /* #0A4B2C */
}

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

.page-beginner-guide__tip-item {
    background-color: var(--card-bg); /* #11271B */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__tip-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold); /* F2C14E */
    margin-bottom: 10px;
}

.page-beginner-guide__tip-text {
    color: var(--text-secondary); /* A7D9B8 */
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Security Section --- */
.page-beginner-guide__security-section {
    padding: 80px 20px;
    background-color: var(--background); /* #08160F */
    text-align: center;
}

.page-beginner-guide__security-section .page-beginner-guide__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__security-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-beginner-guide__faq-section {
    padding: 80px 20px;
    background-color: var(--card-bg); /* #11271B */
}

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

.page-beginner-guide__faq-item {
    background-color: var(--background); /* #08160F */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--divider); /* #1E3A2A */
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main); /* F2FFF6 */
    cursor: pointer;
    background-color: var(--deep-green); /* #0A4B2C */
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
    background-color: var(--primary-color); /* #11A84E */
}

.page-beginner-guide__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-beginner-guide__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold); /* F2C14E */
}

.page-beginner-guide__faq-answer {
    padding: 0 25px;
    color: var(--text-secondary); /* A7D9B8 */
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--background); /* #08160F */
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding: 20px 25px;
}
/* Fallback for non-details elements, handled by JS for .active class */
.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    max-height: 500px !important; /* Ensure it expands */
    padding: 20px 25px !important;
}

/* For details tag, hide default arrow */
.page-beginner-guide__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-beginner-guide__faq-item summary {
    list-style: none;
}

/* --- Final CTA Section --- */
.page-beginner-guide__final-cta-section {
    padding: 80px 20px;
    background-color: var(--background); /* #08160F */
    text-align: center;
}

.page-beginner-guide__final-cta-section .page-beginner-guide__card {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--deep-green) 100%);
    border: 1px solid var(--glow);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-beginner-guide__hero-content {
        padding: 0 15px;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(32px, 5vw, 50px);
    }
    .page-beginner-guide__lead-text {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }
}

@media (max-width: 768px) {
    .page-beginner-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-beginner-guide__container {
        padding: 0 15px;
    }
    .page-beginner-guide__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 25px;
    }
    .page-beginner-guide__section-description,
    .page-beginner-guide__text-block {
        font-size: 1rem;
    }

    /* Images responsiveness */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness - Not used in this page, but included for completeness */
    .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;
    }
    .page-beginner-guide__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-beginner-guide__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Buttons responsiveness */
    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    .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: 12px 20px;
        font-size: 0.95rem;
    }
    .page-beginner-guide__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-beginner-guide__hero-section,
    .page-beginner-guide__introduction-section,
    .page-beginner-guide__steps-section,
    .page-beginner-guide__tips-section,
    .page-beginner-guide__security-section,
    .page-beginner-guide__faq-section,
    .page-beginner-guide__final-cta-section {
        padding: 40px 0; /* Adjust section padding for mobile */
    }

    .page-beginner-guide__step-card {
        padding: 20px;
    }
    .page-beginner-guide__step-card-image {
        height: 200px;
    }
    .page-beginner-guide__step-card-title {
        font-size: 1.3rem;
    }

    .page-beginner-guide__tip-title {
        font-size: 1.2rem;
    }

    .page-beginner-guide__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-beginner-guide__faq-answer {
        padding: 15px 20px;
    }
    .page-beginner-guide__faq-item[open] .page-beginner-guide__faq-answer,
    .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
        padding: 15px 20px !important;
    }
}