/* style/resources-beginner-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-font: #FFFF00;
    --light-text-color: #FFFFFF;
    --dark-text-color: #333333;
    --section-bg-light: #FFFFFF;
    --section-bg-dark: #017439;
    --border-color: #e0e0e0;
}

.page-resources-beginner-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color); /* Default text color for light backgrounds */
    background-color: var(--section-bg-light); /* Main content area will be light */
}

/* Fixed header offset */
.page-resources-beginner-guide__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources-beginner-guide__hero-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources-beginner-guide__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--light-text-color);
}

.page-resources-beginner-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources-beginner-guide__btn-primary,
.page-resources-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;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-resources-beginner-guide__btn-primary {
    background-color: var(--register-button-bg); /* Custom color for register */
    color: var(--register-login-font); /* Custom font color for register */
    border: 2px solid var(--register-button-bg);
}

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

.page-resources-beginner-guide__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-beginner-guide__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources-beginner-guide__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-resources-beginner-guide__introduction-section,
.page-resources-beginner-guide__guide-section,
.page-resources-beginner-guide__games-section,
.page-resources-beginner-guide__promotions-section,
.page-resources-beginner-guide__support-section,
.page-resources-beginner-guide__faq-section {
    padding: 60px 0;
}

.page-resources-beginner-guide__dark-bg {
    background-color: var(--section-bg-dark);
    color: var(--light-text-color);
}

.page-resources-beginner-guide__light-bg {
    background-color: var(--section-bg-light);
    color: var(--dark-text-color);
}

.page-resources-beginner-guide__dark-bg .page-resources-beginner-guide__section-title {
    color: var(--light-text-color);
}

.page-resources-beginner-guide__content-block {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-beginner-guide__content-block--white-text p,
.page-resources-beginner-guide__content-block--white-text li {
    color: var(--light-text-color);
}

.page-resources-beginner-guide__content-block h3 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    color: inherit; /* Inherit color from parent section */
}

.page-resources-beginner-guide__content-block p {
    margin-bottom: 15px;
}

.page-resources-beginner-guide__image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-beginner-guide__step-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.page-resources-beginner-guide__step-list li {
    margin-bottom: 30px;
    position: relative;
    padding-left: 50px;
}

.page-resources-beginner-guide__step-list li::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-resources-beginner-guide__step-list li h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources-beginner-guide__sub-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

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

.page-resources-beginner-guide__game-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text-color);
    border: 1px solid var(--border-color);
}

.page-resources-beginner-guide__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-beginner-guide__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-beginner-guide__game-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources-beginner-guide__game-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-beginner-guide__game-card h3 a:hover {
    text-decoration: underline;
}

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

.page-resources-beginner-guide__promo-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text-color);
    border: 1px solid var(--border-color);
}

.page-resources-beginner-guide__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-beginner-guide__promo-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources-beginner-guide__promo-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-beginner-guide__promo-card h3 a:hover {
    text-decoration: underline;
}

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

.page-resources-beginner-guide__support-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    color: var(--dark-text-color);
    border: 1px solid var(--border-color);
}

.page-resources-beginner-guide__support-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources-beginner-guide__support-card .page-resources-beginner-guide__btn-secondary {
    margin-top: 20px;
}

.page-resources-beginner-guide__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

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

.page-resources-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

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

.page-resources-beginner-guide__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-resources-beginner-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

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

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

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

    .page-resources-beginner-guide__game-categories,
    .page-resources-beginner-guide__promo-grid,
    .page-resources-beginner-guide__support-channels {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-beginner-guide__hero-section {
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    
    .page-resources-beginner-guide__hero-title {
        font-size: 2em;
    }

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

    .page-resources-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-beginner-guide__btn-primary,
    .page-resources-beginner-guide__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-resources-beginner-guide__introduction-section,
    .page-resources-beginner-guide__guide-section,
    .page-resources-beginner-guide__games-section,
    .page-resources-beginner-guide__promotions-section,
    .page-resources-beginner-guide__support-section,
    .page-resources-beginner-guide__faq-section {
        padding: 40px 0;
    }

    .page-resources-beginner-guide__container,
    .page-resources-beginner-guide__content-block,
    .page-resources-beginner-guide__game-card,
    .page-resources-beginner-guide__promo-card,
    .page-resources-beginner-guide__support-card {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* For containers */
    }
}