.page-arcade {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-arcade__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-arcade__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slight transparency for text readability */
}

.page-arcade__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-arcade__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

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

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

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

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

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

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

.page-arcade__button--login:hover {
    background-color: #EAB23E;
    color: #000000;
}

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

.page-arcade__button--primary:hover {
    background-color: #EAB23E;
    color: #000000;
}

.page-arcade__button--secondary {
    background-color: transparent;
    color: #FCBC45;
    border: 2px solid #FCBC45;
}

.page-arcade__button--secondary:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-arcade__section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-arcade__section-title,
.page-arcade__sub-section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.page-arcade__section-title::after,
.page-arcade__sub-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__sub-section-title {
    font-size: 1.8em;
    margin-top: 50px;
}

.page-arcade__about-content {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.page-arcade__about-image {
    flex: 1; /* Allow image to grow/shrink */
    min-width: 300px; /* Ensure image is not too small */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

.page-arcade__text-content {
    flex: 2; /* Allow text content to take more space */
    font-size: 1.1em;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 30px;
}

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

.page-arcade__game-card {
    background-color: #F8F8F8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-arcade__game-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-arcade__game-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-arcade__game-description {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-arcade__game-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FCBC45;
    color: #000000;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    font-size: 0.95em;
}

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

.page-arcade__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-arcade__list-item {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.page-arcade__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FCBC45; /* Use primary accent color for checkmark */
    font-size: 1.2em;
    top: 2px;
}

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

.page-arcade__step-card {
    background-color: #F8F8F8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-arcade__step-card:hover {
    transform: translateY(-5px);
}

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

.page-arcade__step-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-arcade__mobile-app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.page-arcade__mobile-app-image {
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

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

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

.page-arcade__faq-question {
    padding: 18px 25px;
    font-size: 1.2em;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FCBC45; /* FAQ question background */
    color: #000000; /* FAQ question text color */
    transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
    background-color: #EAB23E;
}

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

.page-arcade__faq-question.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation needed for '-' */
}

.page-arcade__faq-answer {
    padding: 0 25px;
    font-size: 1em;
    color: #333333;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #FFFFFF; /* FAQ answer background */
}

.page-arcade__faq-answer.active {
    max-height: 500px; /* Adjust as needed for content */
    padding: 18px 25px;
}

.page-arcade__faq-link a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-arcade__faq-link a:hover {
    color: #EAB23E;
    text-decoration: underline;
}

/* Ensure all images in content area are responsive and not small */
.page-arcade img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio without squishing */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-arcade__hero-title {
        font-size: 3em;
    }
    .page-arcade__section-title,
    .page-arcade__sub-section-title {
        font-size: 2em;
    }
    .page-arcade__about-content {
        flex-direction: column;
        text-align: center;
    }
    .page-arcade__about-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-arcade {
        padding-top: var(--header-offset, 80px); /* Use mobile header offset */
    }
    .page-arcade__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-arcade__hero-title {
        font-size: 2.2em;
    }
    .page-arcade__hero-description {
        font-size: 1em;
    }
    .page-arcade__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-arcade__button {
        width: 100%;
        max-width: 280px;
    }
    .page-arcade__section {
        margin: 40px auto;
        padding: 30px 15px;
    }
    .page-arcade__section-title,
    .page-arcade__sub-section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-arcade__text-content {
        font-size: 1em;
    }
    .page-arcade__game-grid {
        grid-template-columns: 1fr;
    }
    .page-arcade__game-image {
        height: 180px;
    }
    .page-arcade__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-arcade__mobile-app-image {
        max-width: 250px;
    }
    .page-arcade__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-arcade__faq-answer {
        padding: 15px 20px;
    }
    /* Mobile specific image sizing for content area */
    .page-arcade__about-image, 
    .page-arcade__game-image, 
    .page-arcade__mobile-app-image, 
    .page-arcade__responsible-gaming-image, 
    .page-arcade__getting-started-image { /* Targeting all content images */
        min-width: 200px; 
        min-height: 200px; 
        max-width: 100%;
        height: auto;
    }
    .page-arcade__hero-image {
        min-width: unset;
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .page-arcade__hero-title {
        font-size: 1.8em;
    }
    .page-arcade__hero-description {
        font-size: 0.9em;
    }
    .page-arcade__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-arcade__section-title,
    .page-arcade__sub-section-title {
        font-size: 1.5em;
    }
    .page-arcade__faq-question {
        font-size: 0.95em;
    }
    .page-arcade__faq-answer {
        font-size: 0.9em;
    }
}