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

/* Base Styles for the Page */
.page-resources-newbie-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the main content area */
}

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

.page-resources-newbie-guide__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-resources-newbie-guide__container--reverse {
    flex-direction: row-reverse;
}

.page-resources-newbie-guide__text-center {
    text-align: center;
}

.page-resources-newbie-guide__mt-20 {
    margin-top: 20px;
}

.page-resources-newbie-guide__mt-40 {
    margin-top: 40px;
}

/* Hero Section */
.page-resources-newbie-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #000080; /* Dark blue background */
    color: #ffffff;
    overflow: hidden;
}

.page-resources-newbie-guide__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 20px;
}

.page-resources-newbie-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold title for contrast */
    line-height: 1.2;
}

.page-resources-newbie-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-newbie-guide__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources-newbie-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay to ensure text readability */
}

/* Section Common Styles */
.page-resources-newbie-guide__section {
    padding: 60px 0;
}

.page-resources-newbie-guide__section-title {
    font-size: 2.5em;
    color: #000080; /* Dark blue title */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-newbie-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    border-radius: 2px;
}

.page-resources-newbie-guide__section-title--white {
    color: #ffffff; /* White title for dark background */
}

.page-resources-newbie-guide__section-title--white::after {
    background-color: #ffffff; /* White underline for dark background */
}

.page-resources-newbie-guide__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-resources-newbie-guide__text-block--white {
    color: #f0f0f0;
}

.page-resources-newbie-guide__light-bg {
    background-color: #f8f8f8;
}

.page-resources-newbie-guide__dark-bg {
    background-color: #000080;
    color: #ffffff;
}

/* Buttons */
.page-resources-newbie-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container fills width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources-newbie-guide__btn-primary,
.page-resources-newbie-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-resources-newbie-guide__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #000080; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

.page-resources-newbie-guide__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #000080;
}

.page-resources-newbie-guide__btn-primary--large {
    font-size: 1.2em;
    padding: 18px 35px;
}

.page-resources-newbie-guide__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-resources-newbie-guide__btn-secondary:hover {
    background-color: #FFD700;
    color: #000080;
}

/* Image and Content Blocks */
.page-resources-newbie-guide__content-block {
    flex: 1;
    min-width: 300px;
}

.page-resources-newbie-guide__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources-newbie-guide__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensures max-width works as expected */
    margin: 0 auto; /* Center image */
}

/* Lists */
.page-resources-newbie-guide__ordered-list,
.page-resources-newbie-guide__unordered-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.page-resources-newbie-guide__list-item {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1em;
    color: #333333;
}

.page-resources-newbie-guide__ordered-list .page-resources-newbie-guide__list-item::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #FFD700;
    color: #000080;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-resources-newbie-guide__unordered-list .page-resources-newbie-guide__list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #FFD700;
    font-size: 1.5em;
    line-height: 1;
}

.page-resources-newbie-guide__list-title {
    font-size: 1.2em;
    color: #000080;
    margin-bottom: 5px;
}

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

.page-resources-newbie-guide__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources-newbie-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources-newbie-guide__card-title {
    font-size: 1.4em;
    color: #000080;
    margin: 20px 20px 10px 20px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-resources-newbie-guide__card-title a {
    color: #000080;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-newbie-guide__card-title a:hover {
    color: #FFD700;
}

.page-resources-newbie-guide__card-description {
    font-size: 1em;
    color: #555555;
    margin: 0 20px 20px 20px;
}

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

.page-resources-newbie-guide__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-newbie-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFD700; /* Gold background for question */
    color: #000080; /* Dark blue text for question */
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-resources-newbie-guide__faq-question:hover {
    background-color: #e6c200;
}

.page-resources-newbie-guide__faq-title {
    margin: 0;
    color: #000080;
    font-size: 1em; /* Adjust to fit parent */
}

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

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

.page-resources-newbie-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f0f0; /* Light background for answer */
    color: #333333;
}

.page-resources-newbie-guide__faq-item.active .page-resources-newbie-guide__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

.page-resources-newbie-guide__faq-answer p {
    margin: 0;
    font-size: 1em;
}

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

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

    .page-resources-newbie-guide__container--flex {
        flex-direction: column;
    }

    .page-resources-newbie-guide__container--reverse {
        flex-direction: column; /* Consistent stacking on smaller screens */
    }

    .page-resources-newbie-guide__content-block,
    .page-resources-newbie-guide__image-block {
        width: 100%;
    }
}

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

    .page-resources-newbie-guide__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-resources-newbie-guide__hero-title {
        font-size: 2.5em;
    }

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

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

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

    .page-resources-newbie-guide__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-resources-newbie-guide__btn-primary,
    .page-resources-newbie-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;
    }

    /* Images responsive */
    .page-resources-newbie-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}