.page-arcade-games {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
}

.page-arcade-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 40px;
    text-align: center;
    overflow: hidden;
}

.page-arcade-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust based on common hero aspect ratios */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-arcade-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-arcade-games__hero-content {
    max-width: 90%;
    margin-top: 40px; /* Separates content from image */
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-arcade-games__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-arcade-games__intro-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-arcade-games__hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-arcade-games__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-arcade-games__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-main);
}

.page-arcade-games__about-section,
.page-arcade-games__featured-games-section,
.page-arcade-games__game-trial-section,
.page-arcade-games__how-to-start-section,
.page-arcade-games__faq-section,
.page-arcade-games__final-cta-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-arcade-games__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-arcade-games__text-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-arcade-games__text-content p {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1rem;
}

.page-arcade-games__image-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-arcade-games__feature-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-arcade-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-arcade-games__game-card {
    background-color: var(--card-b-g);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-arcade-games__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-arcade-games__game-card-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-arcade-games__game-card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-arcade-games__game-card-title a:hover {
    color: var(--primary-color);
}

.page-arcade-games__game-card-description {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-arcade-games__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    border: none;
}

.page-arcade-games__btn--primary {
    background: var(--button-gradient);
    color: #0A0A0A; /* Dark text for golden button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-arcade-games__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow);
}

.page-arcade-games__btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__btn--secondary:hover {
    background-color: var(--primary-color);
    color: #0A0A0A;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow);
}

.page-arcade-games__btn--small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 6px;
    min-width: 100px;
}

.page-arcade-games__cta-center {
    text-align: center;
    margin-top: 30px;
}

.page-arcade-games__game-trial-section {
    background-color: var(--card-b-g);
    padding: 60px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-arcade-games__iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin: 30px auto;
    max-width: 800px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-arcade-games__game-trial-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.page-arcade-games__how-to-start-section {
    padding-bottom: 60px;
}

.page-arcade-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-arcade-games__step-card {
    background-color: var(--card-b-g);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.page-arcade-games__step-title {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-arcade-games__step-card p {
    color: var(--text-main);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-arcade-games__faq-list {
    background-color: var(--card-b-g);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade-games__faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

.page-arcade-games__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-arcade-games__faq-question {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-arcade-games__faq-answer {
    font-size: 1rem;
    color: var(--text-main);
}

.page-arcade-games__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-arcade-games__faq-answer a:hover {
    color: var(--primary-color);
}

.page-arcade-games__final-cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--background);
}

.page-arcade-games__final-cta-section .page-arcade-games__section-title {
    margin-bottom: 20px;
}

.page-arcade-games__final-cta-section .page-arcade-games__section-description {
    margin-bottom: 40px;
}

.page-arcade-games__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .page-arcade-games__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-arcade-games__intro-text {
        font-size: 1rem;
    }

    .page-arcade-games__section-title {
        font-size: 2rem;
    }

    .page-arcade-games__section-description {
        font-size: 0.95rem;
    }

    .page-arcade-games__about-section,
    .page-arcade-games__featured-games-section,
    .page-arcade-games__game-trial-section,
    .page-arcade-games__how-to-start-section,
    .page-arcade-games__faq-section,
    .page-arcade-games__final-cta-section {
        padding: 30px 15px;
    }

    .page-arcade-games__content-wrapper {
        flex-direction: column;
    }

    .page-arcade-games__game-grid,
    .page-arcade-games__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-arcade-games__game-card-image,
    .page-arcade-games__feature-image {
        max-width: 100%;
        height: auto;
    }

    .page-arcade-games__btn {
        width: 100%;
        max-width: 250px;
    }

    /* Mobile content image constraint */
    .page-arcade-games img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-arcade-games__main-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .page-arcade-games__hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .page-arcade-games__btn {
        width: 90%;
        max-width: 300px;
    }
}