/* style/beginner-guide.css */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg: #FFFFFF;
    --bg-color-main: #F5F7FA;
    --text-main: #333333;
    --border-color: #E0E0E0;
}

.page-beginner-guide {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color-main);
    line-height: 1.6;
}

.page-beginner-guide__section {
    padding: 60px 0;
    background-color: var(--bg-color-main);
}

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

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

/* HERO Section */
.page-beginner-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-color-main);
}

.page-beginner-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width on desktop */
}

.page-beginner-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-beginner-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-beginner-guide__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-beginner-guide__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-beginner-guide__cta-button--small {
    padding: 12px 30px;
    font-size: 16px;
}

.page-beginner-guide__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

.page-beginner-guide__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-beginner-guide__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-beginner-guide__text-block {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 15px;
    text-align: justify;
}

.page-beginner-guide__numbered-list,
.page-beginner-guide__bullet-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-beginner-guide__numbered-list li,
.page-beginner-guide__bullet-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-main);
}

.page-beginner-guide__list-strong {
    color: var(--primary-color);
}

.page-beginner-guide__image-wrapper {
    margin: 30px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-beginner-guide__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-beginner-guide__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-beginner-guide__game-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-beginner-guide__game-description {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-beginner-guide__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--card-bg);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Contact Options */
.page-beginner-guide__contact-options {
    margin-top: 30px;
}

/* FAQ Section */
details.page-beginner-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
}

details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
}

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

details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question:hover {
    background: #f5f5f5;
}

.page-beginner-guide__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-beginner-guide__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-beginner-guide__faq-item .page-beginner-guide__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-main);
}

.page-beginner-guide__faq-answer p {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
}

/* Final CTA Section */
.page-beginner-guide__cta-final-section {
    background: linear-gradient(180deg, var(--primary-color) 0%, #a82e2c 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-beginner-guide__cta-final-section .page-beginner-guide__section-title {
    color: #ffffff;
}

.page-beginner-guide__cta-final-section .page-beginner-guide__text-block {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

    .page-beginner-guide__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-beginner-guide__main-title {
        font-size: 28px;
    }

    .page-beginner-guide__hero-description {
        font-size: 16px;
    }

    .page-beginner-guide__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-beginner-guide__cta-button--large {
        padding: 15px 40px;
        font-size: 18px;
    }

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

    .page-beginner-guide__container {
        padding: 0 15px;
    }

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

    .page-beginner-guide__sub-title {
        font-size: 22px;
    }

    .page-beginner-guide__text-block {
        font-size: 15px;
    }

    .page-beginner-guide__numbered-list,
    .page-beginner-guide__bullet-list {
        margin-left: 15px;
    }

    .page-beginner-guide__numbered-list li,
    .page-beginner-guide__bullet-list li {
        font-size: 15px;
    }

    .page-beginner-guide__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-beginner-guide__game-card img {
        
    }

    .page-beginner-guide__game-title {
        font-size: 20px;
    }

    .page-beginner-guide__game-description {
        font-size: 14px;
    }

    .page-beginner-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;
    }

    .page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
        padding: 15px;
    }

    .page-beginner-guide__faq-qtext {
        font-size: 15px;
    }

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

    .page-beginner-guide__faq-answer p {
        font-size: 14px;
    }

    .page-beginner-guide__cta-final-section {
        padding: 60px 20px;
    }

    /* Mobile image responsiveness */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container,
    .page-beginner-guide__game-card,
    .page-beginner-guide__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-beginner-guide__cta-buttons,
    .page-beginner-guide__button-group,
    .page-beginner-guide__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-beginner-guide__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}