/* style/beginner-guide.css */

/* Variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-color: #08160F;
    --card-bg-color: #11271B;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page */
.page-beginner-guide {
    color: var(--text-main-color); /* Light text for dark body background */
    background-color: var(--background-color);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

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

.page-beginner-guide__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-beginner-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-beginner-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--deep-green-color);
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-beginner-guide__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__hero-description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.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;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    width: auto;
    min-width: 180px;
}

.page-beginner-guide__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

/* Card Section */
.page-beginner-guide__card-section {
    background-color: var(--background-color);
}

.page-beginner-guide__card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border: 1px solid var(--border-color);
}

.page-beginner-guide__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    min-height: 200px;
}

.page-beginner-guide__card-content {
    flex-grow: 1;
}

.page-beginner-guide__card-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-beginner-guide__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-main-color);
}

.page-beginner-guide__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
}

/* List Grid for Account Management */
.page-beginner-guide__list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-beginner-guide__list-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-beginner-guide__list-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-beginner-guide__list-item p {
    color: var(--text-secondary-color);
    font-size: 1em;
}

/* Game Grid */
.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-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-beginner-guide__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    min-height: 200px;
}

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

.page-beginner-guide__game-card p {
    color: var(--text-secondary-color);
    font-size: 1em;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-beginner-guide__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-beginner-guide__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    min-height: 200px;
}

.page-beginner-guide__promo-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-beginner-guide__promo-card p {
    color: var(--text-secondary-color);
    font-size: 1em;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-beginner-guide__support-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-beginner-guide__support-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    min-height: 200px;
}

.page-beginner-guide__support-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-beginner-guide__support-card p {
    color: var(--text-secondary-color);
    font-size: 1em;
    flex-grow: 1;
}

/* Tips List */
.page-beginner-guide__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-beginner-guide__tips-list li {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-beginner-guide__tips-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-beginner-guide__tips-list p {
    color: var(--text-secondary-color);
    font-size: 1em;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
    background-color: var(--deep-green-color);
}

.page-beginner-guide__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--card-bg-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-beginner-guide__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-beginner-guide__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
    line-height: 1;
}

.page-beginner-guide__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-beginner-guide__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-beginner-guide__section-title {
        font-size: 2em;
    }
    .page-beginner-guide__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__section {
        padding: 40px 0;
    }
    .page-beginner-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-beginner-guide__text-block {
        font-size: 0.95em;
    }
    .page-beginner-guide__hero-section {
        padding-bottom: 40px;
    }
    .page-beginner-guide__hero-image-wrapper {
        max-height: 300px;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-beginner-guide__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-beginner-guide__btn-primary,
    .page-beginner-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-beginner-guide__card {
        padding: 20px;
        margin-top: 30px;
    }
    .page-beginner-guide__card-title {
        font-size: 1.5em;
    }
    .page-beginner-guide__list-title,
    .page-beginner-guide__game-title,
    .page-beginner-guide__promo-title,
    .page-beginner-guide__support-title,
    .page-beginner-guide__tips-title {
        font-size: 1.3em;
    }
    .page-beginner-guide__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-beginner-guide__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile image and video responsive adaptation */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    .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__hero-section,
    .page-beginner-guide__cta-buttons,
    .page-beginner-guide__list-grid,
    .page-beginner-guide__game-grid,
    .page-beginner-guide__promo-grid,
    .page-beginner-guide__support-cards,
    .page-beginner-guide__tips-list,
    .page-beginner-guide__faq-list,
    .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; /* Prevent horizontal scroll */
    }

    .page-beginner-guide__hero-section {
        padding-top: 10px !important; /* Small top padding for hero */
    }
    .page-beginner-guide__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
    .page-beginner-guide__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}