.page-arcade {
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-arcade__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-arcade__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

.page-arcade__hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    padding: 20px;
    color: #FFFFFF;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #FCBC45; /* Login button color for accent */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-arcade__hero-actions {
    display: flex;
    gap: 20px;
}

.page-arcade__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 200px; /* Ensure button minimum width for better appearance */
    text-align: center;
}

.page-arcade__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-arcade__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-arcade__button--login,
.page-arcade__button--play,
.page-arcade__button--download,
.page-arcade__button--promo,
.page-arcade__button--cta,
.page-arcade__button--small,
.page-arcade__button--small-login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-arcade__button--login:hover,
.page-arcade__button--play:hover,
.page-arcade__button--download:hover,
.page-arcade__button--promo:hover,
.page-arcade__button--cta:hover,
.page-arcade__button--small:hover,
.page-arcade__button--small-login:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-arcade__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-arcade__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-arcade__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
    border-radius: 10px;
    min-width: 200px;
    min-height: 200px;
}

.page-arcade__game-categories,
.page-arcade__why-choose-j8,
.page-arcade__how-to-start,
.page-arcade__faq-section,
.page-arcade__cta-section {
    padding: 60px 0;
}

.page-arcade__game-categories {
    background-color: #f8f8f8;
}

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

.page-arcade__category-card,
.page-arcade__feature-item,
.page-arcade__step-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-arcade__card-image,
.page-arcade__feature-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-arcade__card-title,
.page-arcade__feature-title,
.page-arcade__step-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
}

.page-arcade__card-description,
.page-arcade__feature-description,
.page-arcade__step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-arcade__button--play,
.page-arcade__button--download,
.page-arcade__button--promo {
    padding: 12px 25px;
    font-size: 1em;
    min-width: 150px;
}

.page-arcade__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-arcade__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: 120px;
}

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

.page-arcade__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.page-arcade__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5em;
    line-height: 1;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

.page-arcade__faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.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.active {
    max-height: 200px; /* Adjust as needed for content */
    padding-top: 10px;
}

.page-arcade__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
}

.page-arcade__cta-section .page-arcade__section-title {
    color: #FCBC45;
}

.page-arcade__cta-section .page-arcade__section-text {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-arcade__button--cta {
    padding: 18px 40px;
    font-size: 1.2em;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-arcade__button--cta:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 2.8em;
    }

    .page-arcade__hero-description {
        font-size: 1.1em;
    }

    .page-arcade__button {
        padding: 12px 25px;
        font-size: 1em;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .page-arcade__hero-content {
        padding: 15px;
    }

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

    .page-arcade__hero-description {
        font-size: 1em;
    }

    .page-arcade__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-arcade__button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-arcade__section-title {
        font-size: 2em;
    }

    .page-arcade__section-text {
        font-size: 0.95em;
    }

    .page-arcade__category-grid,
    .page-arcade__feature-grid,
    .page-arcade__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-arcade__card-image,
    .page-arcade__feature-icon,
    .page-arcade__image-full-width {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }

    /* Ensure all images within .page-arcade are responsive and do not overflow */
    .page-arcade img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .page-arcade__cta-section {
        padding: 60px 0;
    }

    .page-arcade__button--cta {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

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

    .page-arcade__hero-description {
        font-size: 0.9em;
    }

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

    .page-arcade__button {
        width: 90%;
    }
}