.page-arcade {
    color: #333333; /* Dark text for light body background */
}

.page-arcade__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #000000; /* Main color for hero background */
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 0;
}

.page-arcade__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #FFFFFF; /* Light text for dark hero background */
}

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

.page-arcade__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-arcade__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-arcade__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    text-align: center;
}

.page-arcade__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for primary button */
}

.page-arcade__button--primary:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-arcade__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000; /* Dark text for secondary button */
    border: 2px solid #FCBC45;
}

.page-arcade__button--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-arcade__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
    color: #000000; /* Dark text for light background */
}

.page-arcade__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px auto;
    line-height: 1.6;
    color: #555555;
}

.page-arcade__why-ph8, .page-arcade__popular-games, .page-arcade__collection-showcase, .page-arcade__get-started, .page-arcade__faq {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

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

.page-arcade__feature-card, .page-arcade__game-card, .page-arcade__step-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-arcade__feature-card:hover, .page-arcade__game-card:hover, .page-arcade__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.page-arcade__feature-icon, .page-arcade__game-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure content images are not too small */
    max-height: 300px; /* Ensure content images are not too small */
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
}

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

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

.page-arcade__button--play, .page-arcade__button--step {
    background-color: #FCBC45;
    color: #000000;
    padding: 10px 25px;
    font-size: 0.95em;
    border-radius: 5px;
}

.page-arcade__button--play:hover, .page-arcade__button--step:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-arcade__collection-card {
    display: flex;
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 40px;
    align-items: center;
}

.page-arcade__collection-image {
    width: 50%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-arcade__collection-content {
    width: 50%;
    padding: 40px;
}

.page-arcade__collection-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #000000;
}

.page-arcade__collection-title a {
    color: #000000;
    text-decoration: none;
}

.page-arcade__collection-title a:hover {
    color: #FCBC45;
}

.page-arcade__collection-description {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 30px;
}

.page-arcade__button--view-details {
    background-color: #000000;
    color: #FFFFFF;
    padding: 12px 28px;
    font-size: 1em;
    border-radius: 5px;
}

.page-arcade__button--view-details:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-arcade__cta-final {
    text-align: center;
    margin-top: 60px;
    background-color: #000000;
    color: #FFFFFF;
    padding: 50px 30px;
    border-radius: 12px;
}

.page-arcade__cta-text {
    font-size: 1.5em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #FFFFFF;
}

.page-arcade__button--join {
    background-color: #FCBC45;
    color: #000000;
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
}

.page-arcade__button--join:hover {
    background-color: #e0a53b;
    transform: translateY(-3px);
}

.page-arcade__faq-item {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-arcade__faq-question {
    font-size: 1.3em;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.page-arcade__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

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

.page-arcade__faq-answer {
    font-size: 1.05em;
    padding: 0 25px 20px 25px;
    line-height: 1.7;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-arcade__faq-answer.open {
    max-height: 200px; /* Adjust as needed for content */
    padding: 20px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 3em;
    }
    .page-arcade__section-title {
        font-size: 2.2em;
    }
    .page-arcade__collection-card {
        flex-direction: column;
    }
    .page-arcade__collection-image, .page-arcade__collection-content {
        width: 100%;
    }
    .page-arcade__collection-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .page-arcade__hero-section {
        padding-top: var(--header-offset, 120px);
        padding-bottom: 60px;
    }
    .page-arcade__hero-title {
        font-size: 2.5em;
    }
    .page-arcade__hero-description {
        font-size: 1em;
    }
    .page-arcade__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        max-width: 300px;
    }
    .page-arcade__section-title {
        font-size: 1.8em;
    }
    .page-arcade__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-arcade__features-grid, .page-arcade__games-grid, .page-arcade__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-arcade__feature-icon, .page-arcade__game-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    .page-arcade__feature-title, .page-arcade__game-title, .page-arcade__step-title {
        font-size: 1.4em;
    }
    .page-arcade__collection-content {
        padding: 30px;
    }
    .page-arcade__collection-title {
        font-size: 1.6em;
    }
    .page-arcade__collection-description {
        font-size: 0.95em;
    }
    .page-arcade__cta-text {
        font-size: 1.2em;
    }
    .page-arcade__button--join {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-arcade__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-arcade__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px 20px;
    }
    /* Ensure content images do not overflow */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 2em;
    }
    .page-arcade__hero-description {
        font-size: 0.9em;
    }
    .page-arcade__section-title {
        font-size: 1.6em;
    }
    .page-arcade__section-intro {
        font-size: 0.9em;
    }
    .page-arcade__feature-title, .page-arcade__game-title, .page-arcade__step-title {
        font-size: 1.2em;
    }
    .page-arcade__feature-text, .page-arcade__game-description, .page-arcade__step-text {
        font-size: 0.9em;
    }
    .page-arcade__collection-title {
        font-size: 1.4em;
    }
    .page-arcade__collection-description {
        font-size: 0.9em;
    }
    .page-arcade__cta-text {
        font-size: 1em;
    }
    .page-arcade__button--join {
        font-size: 1em;
    }
    .page-arcade__faq-question {
        font-size: 1em;
    }
    .page-arcade__faq-answer {
        font-size: 0.9em;
    }
}