/* style/beginner-guide.css */

/* Variables */
:root {
    --page-beginner-guide-primary-color: #0A192F; /* Dark Blue */
    --page-beginner-guide-secondary-color: #FFD700; /* Gold */
    --page-beginner-guide-text-light: #F8F8F8; /* Light text for dark backgrounds */
    --page-beginner-guide-text-dark: #333333; /* Dark text for light backgrounds */
    --page-beginner-guide-bg-light: #F0F2F5; /* Light background */
    --page-beginner-guide-bg-dark: #1A2B42; /* Darker background variant */
    --page-beginner-guide-border-color: #444;
}

/* General Page Styles */
.page-beginner-guide {
    font-family: 'Arial', sans-serif;
    color: var(--page-beginner-guide-text-dark);
    line-height: 1.6;
    background-color: var(--page-beginner-guide-bg-light);
}

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

.page-beginner-guide__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-beginner-guide__section:nth-of-type(odd) {
    background-color: var(--page-beginner-guide-bg-light);
}

.page-beginner-guide__section:nth-of-type(even) {
    background-color: #ffffff;
}

.page-beginner-guide__section-title {
    font-size: 2.8em;
    color: var(--page-beginner-guide-primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-beginner-guide__sub-title {
    font-size: 1.8em;
    color: var(--page-beginner-guide-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-beginner-guide__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555;
}

.page-beginner-guide__paragraph--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__list,
.page-beginner-guide__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #555;
}

.page-beginner-guide__ordered-list {
    list-style-type: decimal;
}

.page-beginner-guide__list li,
.page-beginner-guide__ordered-list li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-beginner-guide__list--nested {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 5px;
}

.text-highlight {
    color: var(--page-beginner-guide-secondary-color);
}

/* Buttons */
.page-beginner-guide__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-size: 1.05em;
    cursor: pointer;
    text-align: center;
}

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

.page-beginner-guide__btn--primary:hover {
    background-color: #e6c200;
    color: var(--page-beginner-guide-primary-color);
    transform: translateY(-2px);
}

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

.page-beginner-guide__btn--secondary:hover {
    background-color: var(--page-beginner-guide-bg-dark);
    color: var(--page-beginner-guide-secondary-color);
    transform: translateY(-2px);
}

.page-beginner-guide__btn--small {
    padding: 8px 18px;
    font-size: 0.95em;
}

.page-beginner-guide__btn--center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

/* Hero Section */
.page-beginner-guide__hero {
    background: linear-gradient(135deg, var(--page-beginner-guide-primary-color) 0%, var(--page-beginner-guide-bg-dark) 100%);
    color: var(--page-beginner-guide-text-light);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-beginner-guide__hero-content {
    max-width: 600px;
}

.page-beginner-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-beginner-guide-text-light);
}

.page-beginner-guide__hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-beginner-guide__hero-btn {
    background-color: var(--page-beginner-guide-secondary-color);
    color: var(--page-beginner-guide-primary-color);
    border: 2px solid var(--page-beginner-guide-secondary-color);
    padding: 15px 35px;
    font-size: 1.2em;
    border-radius: 8px;
}

.page-beginner-guide__hero-btn:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-beginner-guide__hero-image-wrapper {
    max-width: 500px;
    flex-shrink: 0;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Grid Layouts */
.page-beginner-guide__grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-beginner-guide__grid-2-col--reverse {
    grid-template-columns: 1fr 1fr;
}

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

.page-beginner-guide__image-block {
    text-align: center;
}

.page-beginner-guide__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__image--full-width {
    display: block;
    margin: 40px auto;
    max-width: 80%; /* Adjust as needed */
}

.page-beginner-guide__image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Game Cards */
.page-beginner-guide__game-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-beginner-guide__game-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-beginner-guide__game-title {
    font-size: 1.6em;
    color: var(--page-beginner-guide-primary-color);
    margin-bottom: 10px;
}

.page-beginner-guide__game-description {
    font-size: 1em;
    color: #666;
}

/* FAQ Section */
.page-beginner-guide__faq-list {
    margin-top: 30px;
}

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

.page-beginner-guide__faq-question {
    font-size: 1.3em;
    color: var(--page-beginner-guide-primary-color);
    padding: 18px 25px;
    cursor: pointer;
    position: relative;
    background-color: var(--page-beginner-guide-bg-light);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-beginner-guide__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: var(--page-beginner-guide-secondary-color);
    transition: transform 0.3s ease;
}

.page-beginner-guide__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

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

.page-beginner-guide__faq-answer.active {
    max-height: 300px; /* Adjust based on content */
    padding: 15px 25px;
}

.page-beginner-guide__faq-answer p {
    margin: 0;
    color: #555;
}

/* Related Guides Section */
.page-beginner-guide__guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-beginner-guide__guide-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-beginner-guide__guide-title {
    font-size: 1.4em;
    color: var(--page-beginner-guide-primary-color);
    margin-bottom: 15px;
    min-height: 70px; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-beginner-guide__guide-title a {
    text-decoration: none;
    color: var(--page-beginner-guide-primary-color);
    transition: color 0.3s ease;
}

.page-beginner-guide__guide-title a:hover {
    color: var(--page-beginner-guide-secondary-color);
}

.page-beginner-guide__guide-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-beginner-guide__hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

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

    .page-beginner-guide__hero-subtitle {
        font-size: 1.3em;
    }

    .page-beginner-guide__grid-2-col {
        grid-template-columns: 1fr;
    }

    .page-beginner-guide__grid-2-col--reverse {
        grid-template-columns: 1fr;
    }

    .page-beginner-guide__grid-2-col .page-beginner-guide__image-block {
        order: -1; /* Image first on mobile for reverse grid */
    }

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

    .page-beginner-guide__sub-title {
        font-size: 1.6em;
    }

    .page-beginner-guide__image--full-width {
        max-width: 90%;
    }
}

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

    .page-beginner-guide__hero-subtitle {
        font-size: 1.1em;
    }

    .page-beginner-guide__hero-btn {
        padding: 12px 25px;
        font-size: 1.1em;
    }

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

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

    .page-beginner-guide__sub-title {
        font-size: 1.4em;
    }

    .page-beginner-guide__paragraph,
    .page-beginner-guide__list li,
    .page-beginner-guide__ordered-list li,
    .page-beginner-guide__game-description {
        font-size: 1em;
    }

    .page-beginner-guide__game-card {
        padding: 20px;
    }

    .page-beginner-guide__game-icon {
        width: 60px;
        height: 60px;
    }

    .page-beginner-guide__game-title {
        font-size: 1.3em;
    }

    .page-beginner-guide__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-beginner-guide__guide-item {
        padding: 20px;
    }

    .page-beginner-guide__guide-title {
        font-size: 1.2em;
    }
}

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

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

    .page-beginner-guide__hero-btn {
        font-size: 1em;
        padding: 10px 20px;
    }

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

    .page-beginner-guide__sub-title {
        font-size: 1.2em;
    }

    .page-beginner-guide__paragraph,
    .page-beginner-guide__list li,
    .page-beginner-guide__ordered-list li,
    .page-beginner-guide__game-description {
        font-size: 0.95em;
    }

    .page-beginner-guide__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }

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

    .page-beginner-guide__guide-title {
        font-size: 1.1em;
    }
}