.page-beginner-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Matches shared.css body background */
}

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

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    color: #ffffff;
    overflow: hidden; /* To contain the image */
}

.page-beginner-guide__hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.page-beginner-guide__hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 1;
    text-align: left;
    padding-right: 40px;
}

.page-beginner-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for emphasis */
    line-height: 1.2;
}

.page-beginner-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-beginner-guide__hero-cta-buttons {
    display: flex;
    gap: 20px;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-beginner-guide__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-beginner-guide__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-beginner-guide__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-beginner-guide__btn-block {
    width: 100%;
    max-width: 300px; /* Limit width for block buttons */
    margin-top: 20px;
    display: block;
}

.page-beginner-guide__hero-image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-beginner-guide__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-beginner-guide__introduction-section,
.page-beginner-guide__guide-section,
.page-beginner-guide__finance-section,
.page-beginner-guide__betting-guide-section,
.page-beginner-guide__live-stream-section,
.page-beginner-guide__other-games-section,
.page-beginner-guide__promotions-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__cta-section {
    padding: 80px 0;
}

.page-beginner-guide__dark-section {
    background-color: #0d0d0d; /* Slightly lighter than body bg for contrast */
    color: #ffffff;
}

.page-beginner-guide__light-bg {
    background-color: #1a1a2e; /* Same as body bg, but with different text/card bg */
    color: #ffffff;
}

.page-beginner-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: #017439; /* Brand primary color */
    position: relative;
    padding-bottom: 15px;
}

.page-beginner-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-beginner-guide__content-block {
    margin-bottom: 40px;
}

.page-beginner-guide__content-subtitle {
    font-size: 1.8em;
    color: #FFFF00; /* Register/Login font color for emphasis */
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-beginner-guide__content-block p,
.page-beginner-guide__content-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Flex Container for Text and Image */
.page-beginner-guide__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-beginner-guide__text-content {
    flex: 1;
}

.page-beginner-guide__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.page-beginner-guide__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-beginner-guide__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-beginner-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Other Games Grid */
.page-beginner-guide__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-beginner-guide__card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards on dark bg */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Light text on card */
}

.page-beginner-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-beginner-guide__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for card titles */
}

.page-beginner-guide__card-title a {
    color: #017439; /* Ensure link color is also brand primary */
    text-decoration: none;
}

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

.page-beginner-guide__card-description {
    font-size: 0.95em;
    color: #e0e0e0;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-beginner-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly darker card bg for FAQ on dark bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-beginner-guide__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-beginner-guide__faq-question-text {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
    color: #FFFF00; /* Register/Login font color for FAQ questions */
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color for toggle */
    transition: transform 0.3s ease;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus visual */
}

.page-beginner-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-beginner-guide__faq-answer p {
    margin: 0;
    color: #e0e0e0;
}

/* Call to Action Section */
.page-beginner-guide__cta-section {
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-beginner-guide__hero-title {
        font-size: 2.8em;
    }
    .page-beginner-guide__section-title {
        font-size: 2em;
    }
    .page-beginner-guide__content-subtitle {
        font-size: 1.5em;
    }
    .page-beginner-guide__hero-content {
        max-width: 60%;
        padding-right: 20px;
    }
    .page-beginner-guide__hero-image-wrapper {
        max-width: 40%;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
        padding-bottom: 60px;
    }
    .page-beginner-guide__hero-content-wrapper {
        flex-direction: column;
    }

    .page-beginner-guide__hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .page-beginner-guide__hero-title {
        font-size: 2.2em;
    }

    .page-beginner-guide__hero-description {
        font-size: 1em;
    }

    .page-beginner-guide__hero-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__hero-image-wrapper {
        max-width: 100%;
        justify-content: center;
    }

    .page-beginner-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .page-beginner-guide__content-subtitle {
        font-size: 1.3em;
    }

    .page-beginner-guide__flex-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-beginner-guide__flex-reverse-mobile {
        flex-direction: column-reverse;
    }

    .page-beginner-guide__grid-container {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsiveness */
    .page-beginner-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container,
    .page-beginner-guide__hero-section,
    .page-beginner-guide__introduction-section,
    .page-beginner-guide__guide-section,
    .page-beginner-guide__finance-section,
    .page-beginner-guide__betting-guide-section,
    .page-beginner-guide__live-stream-section,
    .page-beginner-guide__other-games-section,
    .page-beginner-guide__promotions-section,
    .page-beginner-guide__faq-section,
    .page-beginner-guide__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile video responsiveness */
    .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;
    }
}