/* style/beginner-guide.css */

/* Base styles for the beginner guide page */
.page-beginner-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is #000000 from shared.css */
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 700px;
    background: linear-gradient(135deg, #DC143C 0%, #FFD700 100%); /* Brand colors for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-beginner-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* Hero Video */
.page-beginner-guide__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-beginner-guide__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken video to ensure text contrast */
}

/* General Section Styling */
.page-beginner-guide__section {
    padding: 60px 20px;
    background-color: #0d0d0d; /* Slightly lighter dark background for sections */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-beginner-guide__section:nth-child(even) {
    background-color: #1a1a1a;
}

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

.page-beginner-guide__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Golden brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #f0f0f0;
}

/* Content Grid for text and image */
.page-beginner-guide__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-beginner-guide__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* Reverse order for content and image */
}

.page-beginner-guide__content-grid--reverse > .page-beginner-guide__text-block {
    direction: ltr; /* Reset text direction */
}

.page-beginner-guide__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #e0e0e0;
}

.page-beginner-guide__image-wrapper {
    text-align: center;
}

.page-beginner-guide__image-wrapper--center {
    margin-top: 40px;
}

.page-beginner-guide__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-beginner-guide__image:hover {
    transform: translateY(-5px);
}

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

.page-beginner-guide__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-beginner-guide__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-beginner-guide__feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-beginner-guide__feature-card p {
    color: #e0e0e0;
}

/* Steps Grid */
.page-beginner-guide__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-beginner-guide__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.page-beginner-guide__step-item:hover {
    border-color: #FFD700;
}

.page-beginner-guide__step-number {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #DC143C;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__step-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-beginner-guide__step-item p {
    color: #e0e0e0;
}

/* Play Options Grid */
.page-beginner-guide__play-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-beginner-guide__play-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-beginner-guide__play-card:hover {
    transform: translateY(-10px);
}

.page-beginner-guide__play-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-beginner-guide__play-card h3 {
    font-size: 1.6em;
    color: #FFD700;
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-beginner-guide__play-card p {
    color: #e0e0e0;
    padding: 0 15px 20px;
}

.page-beginner-guide__link-button {
    display: inline-block;
    background-color: #DC143C;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-beginner-guide__link-button:hover {
    background-color: #FFD700;
}

/* Promotions List */
.page-beginner-guide__promo-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 50px;
    max-width: 900px;
}

.page-beginner-guide__promo-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #FFD700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__promo-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-beginner-guide__promo-item p {
    color: #e0e0e0;
}

/* Responsible Gambling */
.page-beginner-guide__responsible-gambling .page-beginner-guide__link-button {
    margin-top: 20px;
}

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

.page-beginner-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 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.08);
    transition: background-color 0.3s ease;
}

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

.page-beginner-guide__faq-title {
    font-size: 1.3em;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

.page-beginner-guide__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or similar) */
    color: #DC143C;
}

.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-bottom: 0;
}

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

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

.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;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

.page-beginner-guide__btn-primary {
    background-color: #FFD700;
    color: #DC143C; /* Darker text for golden background */
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-beginner-guide__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-beginner-guide__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.page-beginner-guide__btn-secondary:hover {
    background-color: #FFD700;
    color: #DC143C;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-beginner-guide__hero-title {
        font-size: 3em;
    }
    .page-beginner-guide__section-title {
        font-size: 2.2em;
    }
    .page-beginner-guide__content-grid {
        grid-template-columns: 1fr;
    }
    .page-beginner-guide__content-grid--reverse {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset direction for smaller screens */
    }
    .page-beginner-guide__content-grid--reverse > .page-beginner-guide__text-block {
        order: 2;
    }
    .page-beginner-guide__content-grid--reverse > .page-beginner-guide__image-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__hero-section {
        padding: 80px 15px 40px;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-beginner-guide__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-beginner-guide__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-beginner-guide__section {
        padding: 40px 15px;
    }
    .page-beginner-guide__container {
        padding: 0 10px;
    }
    .page-beginner-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-beginner-guide__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .page-beginner-guide__content-grid,
    .page-beginner-guide__features-grid,
    .page-beginner-guide__steps-grid,
    .page-beginner-guide__play-options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile image responsive adaptation */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containers that might hold images */
    .page-beginner-guide__section,
    .page-beginner-guide__container,
    .page-beginner-guide__image-wrapper,
    .page-beginner-guide__feature-card,
    .page-beginner-guide__step-item,
    .page-beginner-guide__play-card,
    .page-beginner-guide__promo-item,
    .page-beginner-guide__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    /* Specifically for video */
    .page-beginner-guide video,
    .page-beginner-guide__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
   }}