/* style/beginner-guide.css */

/* Base styles for the beginner guide page */
.page-beginner-guide {
    color: #ffffff; /* Default text color for the page, assuming dark body background */
    background-color: var(--dark-bg-1); /* Inherit from shared, ensures consistency */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-beginner-guide__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-beginner-guide__text-block {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* Color Contrast Adjustments */
.page-beginner-guide__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff; /* White text for contrast */
}

.page-beginner-guide__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for contrast */
}

.page-beginner-guide__light-bg .page-beginner-guide__section-title,
.page-beginner-guide__light-bg .page-beginner-guide__text-block,
.page-beginner-guide__light-bg .page-beginner-guide__feature-title,
.page-beginner-guide__light-bg .page-beginner-guide__feature-description,
.page-beginner-guide__light-bg .page-beginner-guide__transaction-title,
.page-beginner-guide__light-bg .page-beginner-guide__list-item,
.page-beginner-guide__light-bg .page-beginner-guide__note,
.page-beginner-guide__light-bg .page-beginner-guide__contact-link,
.page-beginner-guide__light-bg .page-beginner-guide__strategy-title,
.page-beginner-guide__light-bg .page-beginner-guide__strategy-description,
.page-beginner-guide__light-bg .page-beginner-guide__faq-title,
.page-beginner-guide__light-bg .page-beginner-guide__faq-toggle,
.page-beginner-guide__light-bg .page-beginner-guide__faq-answer p {
    color: #333333;
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 0;
}

.page-beginner-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-beginner-guide__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-beginner-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

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

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-beginner-guide__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-beginner-guide__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

/* Welcome Section */
.page-beginner-guide__welcome-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-beginner-guide__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-beginner-guide__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-beginner-guide__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-beginner-guide__feature-description {
    color: #555555;
}

/* Registration Guide */
.page-beginner-guide__registration-guide {
    background-color: #017439;
    color: #ffffff;
}

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

.page-beginner-guide__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Highlight step number */
    margin-bottom: 15px;
}

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

.page-beginner-guide__step-description {
    color: #f0f0f0;
}

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

/* Transaction Guide */
.page-beginner-guide__transaction-guide {
    background-color: #ffffff;
    color: #333333;
}

.page-beginner-guide__transaction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-beginner-guide__transaction-type {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-beginner-guide__transaction-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #017439;
}

.page-beginner-guide__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-beginner-guide__list-item {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #555555;
}

.page-beginner-guide__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-beginner-guide__transaction-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.page-beginner-guide__note {
    font-style: italic;
    margin-top: 30px;
    color: #666666;
}

.page-beginner-guide__contact-link {
    color: #017439;
    text-decoration: underline;
}

.page-beginner-guide__contact-link:hover {
    color: #005f2e;
}

/* Popular Games */
.page-beginner-guide__popular-games {
    background-color: #017439;
    color: #ffffff;
}

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

.page-beginner-guide__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-beginner-guide__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-beginner-guide__game-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-beginner-guide__game-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-beginner-guide__game-card-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Tips & Strategies */
.page-beginner-guide__tips-strategies {
    background-color: #ffffff;
    color: #333333;
}

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

.page-beginner-guide__strategy-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-beginner-guide__strategy-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-beginner-guide__strategy-description {
    color: #555555;
}

/* Security Info */
.page-beginner-guide__security-info {
    background-color: #017439;
    color: #ffffff;
}

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

.page-beginner-guide__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-beginner-guide__security-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-beginner-guide__security-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-beginner-guide__security-description {
    color: #f0f0f0;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-beginner-guide__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
    background-color: #e0e0e0;
}

.page-beginner-guide__faq-title {
    margin: 0;
    color: #333333;
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

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

.page-beginner-guide__faq-answer p {
    padding-bottom: 15px;
    margin: 0;
    color: #555555;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-question {
    background-color: #e0e0e0;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
    transform: rotate(45deg);
}

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

/* CTA Section */
.page-beginner-guide__cta-section {
    background-color: #017439;
    color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-beginner-guide__hero-title {
        font-size: 3em;
    }

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

    .page-beginner-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-beginner-guide__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-beginner-guide__cta-actions {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-beginner-guide__section {
        padding: 40px 0;
    }

    .page-beginner-guide__section-title {
        font-size: 1.8em;
    }

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

    .page-beginner-guide__feature-grid,
    .page-beginner-guide__steps-grid,
    .page-beginner-guide__transaction-grid,
    .page-beginner-guide__game-categories,
    .page-beginner-guide__strategy-grid,
    .page-beginner-guide__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Mobile image and video responsiveness */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container,
    .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__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

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

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

@media (max-width: 480px) {
    .page-beginner-guide__hero-title {
        font-size: 1.8em;
    }

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

    .page-beginner-guide__section-title {
        font-size: 1.5em;
    }

    .page-beginner-guide__step-number {
        font-size: 2em;
    }
}