.page-beginner-guide {
    background-color: #140C0C;
    color: #FFF1E8;
    font-family: Arial, sans-serif;
}

.page-beginner-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding for first section */
    padding-bottom: 40px;
    overflow: hidden;
    background-color: #2A1212; /* Fallback for image wrapper */
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust based on typical hero aspect ratio */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.page-beginner-guide__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F3C54D; /* Gold color for main title */
    text-shadow: 0 0 10px rgba(243, 197, 77, 0.5);
}

.page-beginner-guide__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFF1E8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-beginner-guide__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #FFF1E8;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    border: none;
    cursor: pointer;
}

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

.page-beginner-guide__section {
    padding: 60px 0;
    background-color: #140C0C;
}

.page-beginner-guide__section:nth-of-type(even) {
    background-color: #2A1212;
}

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

.page-beginner-guide__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #F3C54D; /* Gold for section titles */
    position: relative;
    padding-bottom: 10px;
}

.page-beginner-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFB04A, #D86A14);
    border-radius: 2px;
}

.page-beginner-guide__text {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF1E8;
}

.page-beginner-guide__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
    border: 2px solid #6A1E1E;
}

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

.page-beginner-guide__card {
    background-color: #2A1212;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-beginner-guide__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    border: 1px solid #6A1E1E;
}

.page-beginner-guide__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #F3C54D;
}

.page-beginner-guide__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF1E8;
    flex-grow: 1;
}

.page-beginner-guide__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-beginner-guide__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.page-beginner-guide__list-item {
    background-color: #2A1212;
    border-left: 5px solid #E53030;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__list-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #F3C54D;
}

.page-beginner-guide__list-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF1E8;
}

.page-beginner-guide__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-beginner-guide__game-card {
    display: block;
    background-color: #2A1212;
    border-radius: 10px;
    text-decoration: none;
    color: #FFF1E8;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #6A1E1E;
}

.page-beginner-guide__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__game-card-image {
    width: 100%;
    height: 180px; /* Fixed height for game card images */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px; /* Enforcing minimum size */
    border-bottom: 1px solid #6A1E1E;
}

.page-beginner-guide__game-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 15px 15px 5px;
    color: #F3C54D;
}

.page-beginner-guide__game-card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 15px 15px;
    color: #FFF1E8;
}

.page-beginner-guide__faq-items {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__faq-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-beginner-guide__faq-question {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #F3C54D;
    background-color: #2A1212;
    transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.page-beginner-guide__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-beginner-guide__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: #FFF1E8;
}

.page-beginner-guide__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding: 10px 20px 20px;
}

.page-beginner-guide__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-beginner-guide__hero-content {
        padding: 15px;
    }

    .page-beginner-guide__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-beginner-guide__subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

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

    .page-beginner-guide__btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-beginner-guide__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .page-beginner-guide__text {
        font-size: 1rem;
    }

    .page-beginner-guide__step-cards,
    .page-beginner-guide__game-cards {
        grid-template-columns: 1fr;
    }

    .page-beginner-guide__card-image,
    .page-beginner-guide__game-card-image,
    .page-beginner-guide__image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px; /* Ensure images are not too small */
    }

    /* Specific rule for content area images to prevent overflow */
    .page-beginner-guide__container img {
        max-width: 100%;
        height: auto;
    }

    .page-beginner-guide__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }

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

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