/* style/beginner-guide.css */
/* Custom colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --body-bg: #08160F; /* This will be overridden by shared.css var(--background-color) if it exists, but we use it for context. */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-beginner-guide {
    background-color: var(--body-bg); /* Use custom body bg */
    color: var(--text-main); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

.page-beginner-guide__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-beginner-guide__section-title {
    font-size: 2.8em;
    color: var(--gold-color); /* Use gold for main titles for emphasis */
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-beginner-guide h2 {
    color: var(--gold-color);
}

.page-beginner-guide h3 {
    font-size: 1.8em;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-beginner-guide p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure it takes a good portion of the viewport */
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: var(--deep-green); /* Darker background for hero */
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and text */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1; /* Ensure text is above any potential background layers */
}

.page-beginner-guide__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

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

.page-beginner-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-beginner-guide__cta-buttons--center {
    margin-top: 30px;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-beginner-guide__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-beginner-guide__btn-secondary {
    background: var(--card-bg); /* Darker background, lighter text */
    color: var(--text-main);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* General image styling */
.page-beginner-guide__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* List styles */
.page-beginner-guide__numbered-list,
.page-beginner-guide__bullet-list {
    text-align: left;
    max-width: 800px;
    margin: 20px auto 40px;
    color: var(--text-secondary);
    font-size: 1.1em;
}

.page-beginner-guide__numbered-list li,
.page-beginner-guide__bullet-list li {
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.page-beginner-guide__numbered-list li::marker {
    color: var(--gold-color);
    font-weight: bold;
}

.page-beginner-guide__bullet-list li::before {
    content: '•';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.page-beginner-guide__game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-beginner-guide__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-beginner-guide__game-card-title {
    color: var(--gold-color);
    font-size: 1.6em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-beginner-guide__game-card p {
    color: var(--text-secondary);
    padding: 0 15px;
    flex-grow: 1; /* Push button to bottom */
}

.page-beginner-guide__game-card .page-beginner-guide__btn-secondary {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 0.9em;
}

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

.page-beginner-guide__card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-beginner-guide__card-title {
    color: var(--gold-color);
    font-size: 2em;
    margin-bottom: 15px;
    text-align: center;
}

.page-beginner-guide__card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-beginner-guide__card-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
}

/* Promotions */
.page-beginner-guide__promotion-list {
    text-align: left;
    max-width: 800px;
    margin: 20px auto 40px;
    list-style: none; /* Remove default bullet */
    padding-left: 0;
}

.page-beginner-guide__promotion-list li {
    background: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__promotion-list li strong {
    color: var(--gold-color);
}

/* App Download */
.page-beginner-guide__app-download-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-beginner-guide__app-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__app-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-beginner-guide__app-text .page-beginner-guide__cta-buttons {
    justify-content: flex-start;
    margin-top: 30px;
}

/* Contact Methods */
.page-beginner-guide__contact-methods {
    text-align: left;
    max-width: 600px;
    margin: 20px auto 40px;
    list-style: none;
    padding-left: 0;
    color: var(--text-main);
}

.page-beginner-guide__contact-methods li {
    background: var(--card-bg);
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__contact-methods li strong {
    color: var(--gold-color);
}

/* FAQ Section */
.page-beginner-guide__faq {
    background-color: var(--deep-green); /* Slightly different background for contrast */
}

.page-beginner-guide__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-beginner-guide__faq-item {
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-beginner-guide__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background: var(--deep-green); /* Darker background for summary */
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* Hide default marker */
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-beginner-guide__faq-item[open] summary {
    color: var(--gold-color);
    border-bottom: 1px solid var(--gold-color);
}

.page-beginner-guide__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold-color);
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
    color: var(--gold-color);
}

.page-beginner-guide__faq-answer {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 1.1em;
    border-top: 1px solid var(--divider-color);
}

.page-beginner-guide__faq-answer p {
    margin-bottom: 0;
}

/* Conclusion CTA Box */
.page-beginner-guide__cta-box {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    margin-top: 60px;
}

.page-beginner-guide__cta-box .page-beginner-guide__section-title {
    color: var(--gold-color);
    margin-bottom: 25px;
}

.page-beginner-guide__cta-box p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-beginner-guide__section-title {
        font-size: 2.2em;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-beginner-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-beginner-guide__section {
        padding: 40px 10px;
    }
    .page-beginner-guide__container {
        padding: 0 10px;
    }
    .page-beginner-guide__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-beginner-guide__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        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__cta-buttons,
    .page-beginner-guide__button-group,
    .page-beginner-guide__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important;
    }

    /* Mobile image adaptation */
    .page-beginner-guide img {
        max-width: 100% !important;
        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-image-wrapper,
    .page-beginner-guide__app-download-content {
        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-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-beginner-guide__video-section { /* If there was a video section */
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .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__app-download-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-beginner-guide__app-text {
        text-align: center;
        min-width: unset;
    }
    .page-beginner-guide__app-text .page-beginner-guide__cta-buttons {
        justify-content: center;
    }
    .page-beginner-guide__cta-box {
        padding: 30px 20px;
    }
    .page-beginner-guide__game-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-beginner-guide__section-title {
        font-size: 1.8em;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }
    .page-beginner-guide__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-beginner-guide__faq-answer {
        font-size: 0.95em;
        padding: 15px;
    }
}