/* style/beginner-guide.css */

/* Base styles for the page */
.page-beginner-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background);
}

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

.page-beginner-guide__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-beginner-guide__sub-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--gold);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-beginner-guide__paragraph {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-beginner-guide__ordered-list,
.page-beginner-guide__unordered-list {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-beginner-guide__ordered-list li,
.page-beginner-guide__unordered-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-beginner-guide__ordered-list li strong,
.page-beginner-guide__unordered-list li strong {
    color: var(--text-main);
}

/* Color themes */
.page-beginner-guide__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 60px 0;
}

.page-beginner-guide__light-bg {
    background-color: var(--background);
    color: var(--text-secondary);
    padding: 60px 0;
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-beginner-guide__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
}

.page-beginner-guide__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--background);
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-beginner-guide__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px 60px;
    box-sizing: border-box;
}

.page-beginner-guide__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-beginner-guide__intro-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Guide Content Blocks */
.page-beginner-guide__guide-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-beginner-guide__guide-content--reverse {
    flex-direction: row-reverse;
}

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

.page-beginner-guide__image-block {
    flex: 1;
    min-width: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-beginner-guide__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-beginner-guide__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1rem;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-beginner-guide__faq-item summary:hover {
    background-color: rgba(var(--deep-green-rgb), 0.8);
}

.page-beginner-guide__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow);
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
    content: '−';
}

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

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

/* Final CTA Section */
.page-beginner-guide__final-cta {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--card-bg);
}

.page-beginner-guide__final-cta .page-beginner-guide__section-title {
    color: var(--text-main);
}

.page-beginner-guide__final-cta .page-beginner-guide__paragraph {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-beginner-guide__guide-content {
        flex-direction: column;
    }
    .page-beginner-guide__guide-content--reverse {
        flex-direction: column;
    }
    .page-beginner-guide__text-block,
    .page-beginner-guide__image-block {
        flex: none;
        width: 100%;
    }
    .page-beginner-guide__hero-content {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    .page-beginner-guide__hero-content {
        padding: 0 15px 40px;
    }

    .page-beginner-guide__hero-section,
    .page-beginner-guide__intro-section,
    .page-beginner-guide__registration-guide,
    .page-beginner-guide__deposit-guide,
    .page-beginner-guide__game-selection,
    .page-beginner-guide__promotions,
    .page-beginner-guide__security-support,
    .page-beginner-guide__faq-section,
    .page-beginner-guide__final-cta {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Images responsive */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-beginner-guide__hero-image-wrapper,
    .page-beginner-guide__image-block,
    .page-beginner-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .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;
        padding: 12px 15px;
    }

    .page-beginner-guide__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

    .page-beginner-guide__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }
}

/* Custom color variables for easy management */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
    --deep-green-rgb: 10, 75, 44;
}