/* style/beginner-guide.css */

/* Custom Color Variables */
:root {
    --bg-primary: #08160F;
    --bg-card: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient-start: #2AD16F;
    --btn-gradient-end: #13994A;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --brand-primary: #11A84E;
    --brand-secondary: #22C768;
}

.page-beginner-guide {
    color: var(--text-main);
    background-color: var(--bg-primary);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height to prevent overly tall hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

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

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

.page-beginner-guide__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-beginner-guide__description {
    font-size: clamp(1em, 1.2vw, 1.1em);
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-beginner-guide__btn-primary {
    background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
    color: var(--text-main);
    border: 2px solid var(--btn-gradient-start);
}

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

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

.page-beginner-guide__btn-secondary:hover {
    background: var(--btn-gradient-start);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-beginner-guide__dark-section {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.page-beginner-guide__card-section {
    background-color: var(--bg-card);
    color: var(--text-main);
}

.page-beginner-guide__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-beginner-guide__sub-title {
    font-size: clamp(1.4em, 2.2vw, 1.8em);
    color: var(--brand-secondary);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-beginner-guide__text-block p {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.05em;
}

.page-beginner-guide__list,
.page-beginner-guide__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main);
}

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

.page-beginner-guide__list li,
.page-beginner-guide__ordered-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-beginner-guide__sub-list {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 10px;
    color: var(--text-secondary);
}

.page-beginner-guide__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-beginner-guide__faq-list {
    margin-top: 40px;
}

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

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    list-style: none; /* For details tag */
}

.page-beginner-guide__faq-question::-webkit-details-marker {
    display: none; /* For details tag */
}

.page-beginner-guide__faq-question:hover {
    background-color: var(--deep-green);
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow-color);
}

.page-beginner-guide__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-beginner-guide__hero-section {
        padding-bottom: 40px;
    }
    .page-beginner-guide__section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-beginner-guide__hero-section {
        padding-bottom: 30px;
    }
    .page-beginner-guide__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-beginner-guide__hero-image {
        min-height: 250px;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-beginner-guide__description {
        font-size: clamp(0.95em, 2.8vw, 1.1em);
        margin-bottom: 20px;
    }
    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-beginner-guide__section {
        padding: 30px 15px;
    }
    .page-beginner-guide__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 30px;
    }
    .page-beginner-guide__sub-title {
        font-size: clamp(1.2em, 4.5vw, 1.6em);
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-beginner-guide__text-block p {
        font-size: 1em;
    }
    .page-beginner-guide__list,
    .page-beginner-guide__ordered-list {
        margin-left: 20px;
        margin-bottom: 15px;
    }
    .page-beginner-guide__list li,
    .page-beginner-guide__ordered-list li {
        margin-bottom: 8px;
    }
    .page-beginner-guide__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }
    .page-beginner-guide__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-beginner-guide__faq-answer {
        padding: 0 20px 15px;
    }
    .page-beginner-guide__faq-item[open] .page-beginner-guide__faq-answer {
        padding-top: 8px;
    }
    /* Ensure all content containers are responsive */
    .page-beginner-guide__section,
    .page-beginner-guide__card-section,
    .page-beginner-guide__dark-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-beginner-guide__hero-content {
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-beginner-guide__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}