/* style/arcade.css */
.page-arcade {
    color: #333333; /* Dark text for light body background #f8f8f8 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-arcade__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #1A237E; /* Main color as fallback */
    color: #ffffff;
    padding: 0;
    text-align: center;
}

.page-arcade__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-arcade__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 900px;
    width: 90%;
    padding: 20px;
    box-sizing: border-box;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Accent color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-arcade__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-arcade__btn--primary {
    background-color: #FFD700; /* Accent color */
    color: #1A237E; /* Main color */
    border: 2px solid #FFD700;
}

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

.page-arcade__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color */
    border: 2px solid #FFD700;
}

.page-arcade__btn--secondary:hover {
    background-color: #FFD700;
    color: #1A237E;
    transform: translateY(-2px);
}

.page-arcade__section-title {
    font-size: 2.8em;
    color: #1A237E; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-arcade__section-intro {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px auto;
    color: #555555;
}

.page-arcade__about-section,
.page-arcade__popular-games-section,
.page-arcade__why-choose-section,
.page-arcade__cta-section,
.page-arcade__guide-section,
.page-arcade__faq-section,
.page-arcade__contact-promo-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-arcade__about-section {
    background-color: #ffffff;
}

.page-arcade__about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-arcade__about-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-arcade__about-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-arcade__about-heading {
    font-size: 1.8em;
    color: #1A237E; /* Main color */
    margin-bottom: 15px;
}

.page-arcade__about-text {
    font-size: 1em;
    color: #555555;
}

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

.page-arcade__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.page-arcade__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-arcade__game-card h3 {
    margin: 20px 0 10px;
    font-size: 1.5em;
    color: #1A237E; /* Main color */
}

.page-arcade__game-card h3 a {
    color: #1A237E;
    text-decoration: none;
}

.page-arcade__game-card h3 a:hover {
    color: #FFD700;
}

.page-arcade__game-description {
    padding: 0 20px;
    font-size: 0.95em;
    color: #666666;
    flex-grow: 1;
}

.page-arcade__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin: 20px;
    background-color: #FFD700;
    color: #1A237E;
    border: 2px solid #FFD700;
}

.page-arcade__btn--small:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-arcade__why-choose-section {
    background-color: #f0f0f0;
}

.page-arcade__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.page-arcade__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-arcade__feature-icon {
    width: 100px;
    height: 100px;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px; /* Enforce min size for content images */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-arcade__feature-heading {
    font-size: 1.6em;
    color: #1A237E; /* Main color */
    margin-bottom: 10px;
}

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

.page-arcade__cta-section {
    background-color: #1A237E; /* Main color */
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
}

.page-arcade__cta-title {
    font-size: 3em;
    color: #FFD700; /* Accent color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-arcade__cta-description {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-arcade__btn--cta {
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
    background-color: #FFD700;
    color: #1A237E; /* Main color */
    border: 2px solid #FFD700;
}

.page-arcade__btn--cta:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-arcade__guide-section {
    background-color: #ffffff;
}

.page-arcade__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-arcade__guide-step {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-arcade__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1A237E; /* Main color */
    color: #FFD700; /* Accent color */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    border: 4px solid #FFD700;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-arcade__step-heading {
    font-size: 1.6em;
    color: #1A237E;
    margin-bottom: 10px;
}

.page-arcade__step-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

.page-arcade__faq-section {
    background-color: #f0f0f0;
}

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

.page-arcade__faq-question {
    font-size: 1.4em;
    color: #1A237E; /* Main color */
    margin-top: 0;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

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

.page-arcade__faq-question.active::after {
    content: '-';
}

.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: 0 0px;
}

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

.page-arcade__contact-promo-section {
    background-color: #1A237E;
    color: #ffffff;
    text-align: center;
}

.page-arcade__contact-promo-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.page-arcade__btn--contact,
.page-arcade__btn--promo {
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-arcade__btn--contact {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-arcade__btn--contact:hover {
    background-color: #FFD700;
    color: #1A237E;
    transform: translateY(-2px);
}

.page-arcade__btn--promo {
    background-color: #FFD700;
    color: #1A237E;
    border: 2px solid #FFD700;
}

.page-arcade__btn--promo:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Media Queries for Responsiveness */
@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: 2.2em;
    }
    .page-arcade__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 120px); /* Ensure mobile content is not hidden */
    }
    .page-arcade__hero-title {
        font-size: 2em;
    }
    .page-arcade__hero-description {
        font-size: 1em;
    }
    .page-arcade__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__btn {
        width: 100%;
        max-width: 300px;
    }
    .page-arcade__section-title {
        font-size: 1.8em;
    }
    .page-arcade__section-intro {
        font-size: 1em;
    }
    .page-arcade__about-grid,
    .page-arcade__games-grid,
    .page-arcade__feature-list,
    .page-arcade__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-arcade__cta-title {
        font-size: 2em;
    }
    .page-arcade__cta-description {
        font-size: 1.1em;
    }
    .page-arcade__btn--cta {
        width: 100%;
        max-width: 300px;
    }
    .page-arcade__faq-question {
        font-size: 1.2em;
    }
    .page-arcade__faq-answer {
        font-size: 0.9em;
    }
    .page-arcade__contact-promo-grid {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__btn--contact,
    .page-arcade__btn--promo {
        width: 100%;
        max-width: 300px;
    }

    /* Ensure all images within .page-arcade are responsive and don't overflow */
    .page-arcade img {
        max-width: 100%;
        height: auto;
    }
    .page-arcade__hero-image {
        min-height: 200px; /* Ensure hero image maintains minimum height */
    }
    .page-arcade__about-image, 
    .page-arcade__game-image, 
    .page-arcade__feature-icon {
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px; /* Ensure minimum size */
        width: 100%; /* Take full width of container */
        height: auto; /* Adjust height proportionally */
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 1.8em;
    }
    .page-arcade__hero-description {
        font-size: 0.9em;
    }
    .page-arcade__btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-arcade__section-title {
        font-size: 1.6em;
    }
    .page-arcade__cta-title {
        font-size: 1.8em;
    }
    .page-arcade__btn--cta {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}