:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --section-bg: #B71C1C;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --body-text-color: #333333; /* Default for light background */
    --light-bg-text-color: #333333;
    --dark-bg-text-color: #ffffff;
}

.page-beginner-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--body-text-color); /* Default text color for light body background */
}

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

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

.page-beginner-guide__section:nth-of-type(even) {
    background-color: #f8f8f8; /* Light background for alternating sections */
}

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

.page-beginner-guide__section-intro {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--light-bg-text-color);
}

/* 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 as body handles header offset */
    overflow: hidden;
}

.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 it takes full width within max-width */
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.page-beginner-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-beginner-guide__main-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-beginner-guide__hero-description {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--light-bg-text-color);
}

/* CTA Button */
.page-beginner-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--dark-bg-text-color); /* White text for button gradient */
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-beginner-guide__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-beginner-guide__feature-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.page-beginner-guide__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__feature-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-beginner-guide__feature-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-beginner-guide__feature-item p {
    font-size: 16px;
    color: var(--light-bg-text-color);
}

/* Step-by-step Guide */
.page-beginner-guide__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-beginner-guide__step {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-top: 70px;
    border: 1px solid #eee;
}

.page-beginner-guide__step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    background: var(--primary-color);
    color: var(--dark-bg-text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__step-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-beginner-guide__step p {
    font-size: 16px;
    color: var(--light-bg-text-color);
}

.page-beginner-guide__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--dark-bg-text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-beginner-guide__call-to-action-text {
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--light-bg-text-color);
}

/* Ordered/Unordered Lists */
.page-beginner-guide__ordered-list,
.page-beginner-guide__unordered-list {
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
    font-size: 17px;
    color: var(--light-bg-text-color);
    padding-left: 25px;
}

.page-beginner-guide__ordered-list li,
.page-beginner-guide__unordered-list li {
    margin-bottom: 10px;
}

.page-beginner-guide__note {
    font-style: italic;
    font-size: 15px;
    max-width: 800px;
    margin: 30px auto 0;
    color: #666;
}

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

.page-beginner-guide__game-card {
    background: var(--card-bg); /* Custom card background color */
    color: var(--text-main); /* Custom text color for card */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-beginner-guide__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-beginner-guide__game-card h3 {
    font-size: 22px;
    margin: 20px 20px 10px;
    font-weight: 700;
    color: var(--text-main);
}

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

.page-beginner-guide__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gold-color);
    color: var(--deep-red-color); /* Deep red text for gold button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    max-width: calc(100% - 40px); /* Account for padding */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-beginner-guide__btn-link:hover {
    background: var(--glow-color);
}

/* Customer Support */
.page-beginner-guide__contact-info {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    border: 1px solid #eee;
}

.page-beginner-guide__contact-info p,
.page-beginner-guide__contact-info ul {
    font-size: 17px;
    color: var(--light-bg-text-color);
}

.page-beginner-guide__contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-beginner-guide__contact-info li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-beginner-guide__contact-info li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* FAQ Section */
.page-beginner-guide__faq {
    padding-bottom: 80px;
}

details.page-beginner-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color); /* Custom border color */
    overflow: hidden;
    background: var(--section-bg); /* Custom background color */
    color: var(--text-main); /* Custom text color */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

details.page-beginner-guide__faq-item[open] {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
    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: var(--deep-red-color); /* Darker red on hover */
    color: var(--text-main);
}

.page-beginner-guide__faq-qtext {
    flex: 1;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    color: inherit; /* Inherit color from summary */
}

.page-beginner-guide__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color); /* Gold color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    line-height: 1;
}

details.page-beginner-guide__faq-item .page-beginner-guide__faq-answer {
    padding: 0 25px 25px;
    background: var(--section-bg); /* Same as details background */
    color: var(--text-main);
    border-radius: 0 0 12px 12px;
    text-align: left;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-beginner-guide__section {
        padding: 40px 0;
    }
    .page-beginner-guide__hero-section {
        padding: 40px 15px 20px;
        padding-top: 10px;
    }
    .page-beginner-guide__hero-image {
        border-radius: 8px;
    }
    .page-beginner-guide__main-title {
        font-size: clamp(28px, 4.5vw, 40px);
    }
    .page-beginner-guide__hero-description {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .page-beginner-guide__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-beginner-guide__feature-grid,
    .page-beginner-guide__step-by-step,
    .page-beginner-guide__game-grid {
        gap: 20px;
    }
    .page-beginner-guide__feature-item,
    .page-beginner-guide__step {
        padding: 25px;
        padding-top: 60px;
    }
    .page-beginner-guide__step-number {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 15px;
        left: 25px;
    }
    .page-beginner-guide__game-card img {
        
    }
    .page-beginner-guide__game-card h3 {
        font-size: 20px;
        margin: 15px 15px 8px;
    }
    .page-beginner-guide__game-card p {
        font-size: 15px;
        margin: 0 15px 15px;
    }
    .page-beginner-guide__btn-link {
        padding: 8px 15px;
        font-size: 14px;
        margin: 0 15px 15px;
        max-width: calc(100% - 30px);
    }
    details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
        padding: 15px 20px;
    }
    .page-beginner-guide__faq-qtext {
        font-size: 16px;
    }
    .page-beginner-guide__faq-toggle {
        font-size: 24px;
        width: 25px;
        margin-left: 10px;
    }
    .page-beginner-guide__faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__container {
        padding: 0 15px;
    }
    .page-beginner-guide__section {
        padding: 30px 0;
    }
    .page-beginner-guide__hero-section {
        padding: 30px 10px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-beginner-guide__main-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    .page-beginner-guide__hero-description {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .page-beginner-guide__cta-button {
        padding: 10px 25px;
        font-size: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-beginner-guide__feature-grid,
    .page-beginner-guide__step-by-step,
    .page-beginner-guide__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-beginner-guide__feature-item,
    .page-beginner-guide__step,
    .page-beginner-guide__game-card,
    .page-beginner-guide__contact-info {
        padding: 20px;
        padding-top: 55px; /* For step-by-step */
    }
    .page-beginner-guide__step-number {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 10px;
        left: 20px;
    }
    .page-beginner-guide__game-card img {
        
    }
    .page-beginner-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-beginner-guide__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }
    .page-beginner-guide__ordered-list,
    .page-beginner-guide__unordered-list {
        font-size: 16px;
        padding-left: 20px;
        margin: 30px auto;
    }
    details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
        padding: 12px 15px;
    }
    .page-beginner-guide__faq-qtext {
        font-size: 15px;
    }
    .page-beginner-guide__faq-toggle {
        font-size: 22px;
        width: 22px;
        margin-left: 8px;
    }
    .page-beginner-guide__faq-answer {
        padding: 0 15px 15px;
    }

    /* Images 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__feature-item,
    .page-beginner-guide__step,
    .page-beginner-guide__game-card,
    .page-beginner-guide__contact-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for game card padding on mobile */
    .page-beginner-guide__game-card h3,
    .page-beginner-guide__game-card p,
    .page-beginner-guide__btn-link {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-beginner-guide__game-card h3 {
        margin-top: 15px;
    }
}