.page-arcade {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for page content area, consistent with body */
}

/* Header offset for main content */
.page-arcade__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF; /* Text color for hero section, assuming a dark overlay/image */
    padding-bottom: 60px; /* Add some padding at the bottom of hero */
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-arcade__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-arcade__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
    margin: 20px;
}

.page-arcade__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color for emphasis */
}

.page-arcade__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-arcade__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-arcade__hero-button--register {
    background-color: #FFFFFF; /* Register button background */
    color: #000000; /* Register button text */
    border: 2px solid #FFFFFF;
}

.page-arcade__hero-button--register:hover {
    background-color: #E0E0E0;
    color: #000000;
}

.page-arcade__hero-button--login {
    background-color: #FCBC45; /* Login button background */
    color: #000000; /* Login button text */
    border: 2px solid #FCBC45;
}

.page-arcade__hero-button--login:hover {
    background-color: #E6A83E;
    color: #000000;
}

.page-arcade__games-overview-section,
.page-arcade__why-choose-section,
.page-arcade__guide-section,
.page-arcade__faq-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-arcade__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

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

.page-arcade__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-arcade__game-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-arcade__game-card {
    background-color: #000000; /* Dark background for cards */
    color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-arcade__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-arcade__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-arcade__game-card-title {
    font-size: 1.8em;
    margin: 20px 15px 10px 15px;
    color: #FCBC45;
}

.page-arcade__game-card-text {
    font-size: 1em;
    margin: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-arcade__game-card-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 12px 25px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-arcade__game-card-button:hover {
    background-color: #E6A83E;
}

.page-arcade__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-arcade__feature-item {
    background-color: #F8F8F8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-arcade__feature-item:hover {
    transform: translateY(-5px);
}

.page-arcade__feature-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-arcade__feature-description {
    font-size: 0.95em;
    color: #666666;
}

.page-arcade__cta-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    background-color: #FCBC45;
    color: #000000;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-arcade__cta-button:hover {
    background-color: #E6A83E;
}

.page-arcade__guide-content {
    margin-top: 30px;
}

.page-arcade__guide-subtitle {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.page-arcade__guide-subtitle::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #FCBC45;
}

.page-arcade__guide-paragraph {
    font-size: 1.05em;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

.page-arcade__guide-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    background-color: #000000;
    color: #FFFFFF;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-arcade__guide-button:hover {
    background-color: #333333;
}

.page-arcade__faq-container {
    margin-top: 30px;
}

.page-arcade__faq-item {
    background-color: #F8F8F8;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-arcade__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-arcade__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

.page-arcade__faq-question.page-arcade__faq-question--active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-arcade__faq-answer {
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.page-arcade__faq-answer.page-arcade__faq-answer--active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 2.8em;
    }
    .page-arcade__hero-description {
        font-size: 1.1em;
    }
    .page-arcade__section-title {
        font-size: 2em;
    }
    .page-arcade__guide-subtitle {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* Ensure content images do not overflow */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }

    .page-arcade__hero-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px;
    }

    .page-arcade__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-arcade__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-arcade__hero-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 0 5px 15px 5px; /* Adjust margin for smaller screens */
    }

    .page-arcade__hero-content {
        margin: 10px;
    }

    .page-arcade__games-overview-section,
    .page-arcade__why-choose-section,
    .page-arcade__guide-section,
    .page-arcade__faq-section {
        margin: 30px auto;
        padding: 15px;
    }

    .page-arcade__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-arcade__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-arcade__game-category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-arcade__game-card-image {
        height: 200px;
    }

    .page-arcade__game-card-title {
        font-size: 1.5em;
    }

    .page-arcade__feature-item {
        padding: 20px;
    }

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

    .page-arcade__cta-button,
    .page-arcade__guide-button {
        padding: 15px 30px;
        font-size: 1.1em;
        width: 100%; /* Full width on mobile */
        max-width: 300px; /* Limit max width */
    }

    .page-arcade__guide-paragraph {
        font-size: 0.95em;
    }

    .page-arcade__faq-question {
        font-size: 1.1em;
    }
    .page-arcade__guide-subtitle {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 1.8em;
    }
    .page-arcade__hero-description {
        font-size: 0.9em;
    }
    .page-arcade__hero-button {
        width: 100%;
        margin: 5px 0;
    }
    .page-arcade__hero-content {
        padding: 15px;
    }
    .page-arcade__section-title {
        font-size: 1.5em;
    }
    .page-arcade__section-description {
        font-size: 0.9em;
    }
    .page-arcade__guide-subtitle {
        font-size: 1.2em;
    }
}