.page-beginner-guide {
    color: #333333; /* Text Main fallback for light body bg */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8; /* Ensures consistent light background */
}

/* Base styles for sections and containers */
.page-beginner-guide__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

.page-beginner-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for mobile safety */
    box-sizing: border-box; /* Added for mobile safety */
}

/* Specific background and text colors based on design system */
.page-beginner-guide__light-bg {
    background-color: #f8f8f8;
    color: #333333; /* Default dark text on light bg */
}

.page-beginner-guide__dark-bg {
    background-color: #08160F; /* Background color from custom palette */
    color: #F2FFF6; /* Text Main color from custom palette */
}

.page-beginner-guide__text-secondary {
    color: #A7D9B8; /* Text Secondary color from custom palette */
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px 20px; /* Adjusted padding-top to 10px */
    overflow: hidden;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-beginner-guide__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #11A84E; /* Main brand color for H1 */
}

.page-beginner-guide__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333333; /* Dark text on light background */
}

/* Buttons */
.page-beginner-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping 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: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-beginner-guide__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-beginner-guide__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-beginner-guide__btn-secondary {
    background-color: transparent;
    color: #11A84E; /* Main brand color */
    border: 2px solid #11A84E;
}

.page-beginner-guide__btn-secondary:hover {
    background-color: #11A84E;
    color: #ffffff;
}

/* Titles */
.page-beginner-guide__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #11A84E; /* Main brand color */
}

.page-beginner-guide__section.page-beginner-guide__dark-bg .page-beginner-guide__section-title {
    color: #F2FFF6; /* Text Main on dark background */
}

.page-beginner-guide__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-beginner-guide__section.page-beginner-guide__dark-bg .page-beginner-guide__text-block {
    color: #A7D9B8; /* Text Secondary on dark background */
}


/* Step Cards */
.page-beginner-guide__step-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-beginner-guide__step-card {
    background-color: #11271B; /* Card B G color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #F2FFF6; /* Text Main on card background */
}

.page-beginner-guide__step-card-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size */
}

.page-beginner-guide__step-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main on card background */
}

.page-beginner-guide__step-card-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-beginner-guide__step-card-btn {
    width: auto; /* Override default button width */
    min-width: 150px;
}

/* Game Types Grid */
.page-beginner-guide__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-beginner-guide__game-card {
    background-color: #ffffff; /* Default white card on light background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-beginner-guide__game-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 200px; /* Minimum size */
}

.page-beginner-guide__game-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-beginner-guide__game-card-title a {
    color: #11A84E; /* Brand color for links */
    text-decoration: none;
}

.page-beginner-guide__game-card-title a:hover {
    text-decoration: underline;
}

.page-beginner-guide__game-card-text {
    font-size: 0.9rem;
    color: #555555; /* Slightly lighter for secondary text */
}

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

.page-beginner-guide__benefit-item {
    background-color: #11271B; /* Card B G color */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #F2FFF6; /* Text Main on card background */
}

.page-beginner-guide__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2FFF6; /* Text Main on card background */
}

.page-beginner-guide__benefit-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary on card background */
}

/* FAQ Section */
.page-beginner-guide__faq-list {
    margin-top: 40px;
}

.page-beginner-guide__faq-item {
    background-color: #ffffff; /* Default white card on light background */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.page-beginner-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-beginner-guide__faq-question::marker,
.page-beginner-guide__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-beginner-guide__faq-toggle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-left: 15px;
    color: #11A84E;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-beginner-guide__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    background-color: #ffffff;
}

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

.page-beginner-guide__tip-item {
    background-color: #11271B; /* Card B G color */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #F2FFF6; /* Text Main on card background */
}

.page-beginner-guide__tip-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2FFF6; /* Text Main on card background */
}

.page-beginner-guide__tip-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary on card background */
}

/* Conclusion Section */
.page-beginner-guide__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-beginner-guide__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-beginner-guide__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

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

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

    /* 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;
    }
    .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;
    }
    .page-beginner-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Button responsiveness */
    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary,
    .page-beginner-guide a[class*="button"],
    .page-beginner-guide a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-beginner-guide__step-card-btn {
        min-width: unset; /* Remove min-width for full flexibility */
    }

    .page-beginner-guide__step-card-grid,
    .page-beginner-guide__game-grid,
    .page-beginner-guide__benefit-list,
    .page-beginner-guide__tip-list {
        grid-template-columns: 1fr;
    }

    .page-beginner-guide__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-beginner-guide__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-beginner-guide__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-beginner-guide__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-beginner-guide__hero-image {
        max-height: 250px;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }
    .page-beginner-guide__description {
        font-size: 1rem;
    }
    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        padding: 12px 20px;
    }
}