.page-arcade {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set main content background to white */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop and mobile */
}

/* Hero Section */
.page-arcade__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* Light text for dark hero overlay */
    text-align: center;
    padding: 80px 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-arcade__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

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

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

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

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

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

/* Section Titles */
.page-arcade__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    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: #FCBC45; /* Accent color */
    border-radius: 2px;
}

/* Text Content */
.page-arcade__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    text-align: justify;
}

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

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

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

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

.page-arcade__button--login:hover {
    background-color: #FFD700; /* Slightly lighter yellow */
    transform: translateY(-2px);
}

.page-arcade__button--play,
.page-arcade__button--play-all,
.page-arcade__button--deposit,
.page-arcade__button--claim,
.page-arcade__button--view,
.page-arcade__button--join {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-arcade__button--play:hover,
.page-arcade__button--play-all:hover,
.page-arcade__button--deposit:hover,
.page-arcade__button--claim:hover,
.page-arcade__button--view:hover,
.page-arcade__button--join:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

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

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

.page-arcade__button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Game Categories Grid */
.page-arcade__game-categories-section {
    background-color: #F8F8F8; /* Light background for contrast */
    padding: 60px 0;
}

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

.page-arcade__category-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-arcade__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-arcade__card-title {
    font-size: 1.8em;
    color: #000000;
    margin: 0 20px 15px;
}

.page-arcade__card-description {
    font-size: 1em;
    color: #555555;
    margin: 0 20px 25px;
    flex-grow: 1;
    text-align: justify;
}

/* Why Choose Section */
.page-arcade__why-choose-section {
    padding: 60px 0;
}

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

.page-arcade__feature-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-arcade__feature-item:hover {
    transform: translateY(-5px);
}

.page-arcade__feature-heading {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-arcade__feature-description {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* How to Play Section */
.page-arcade__how-to-play-section {
    background-color: #F8F8F8;
    padding: 60px 0;
}

.page-arcade__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-arcade__step-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-arcade__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FCBC45;
    color: #000000;
    font-size: 1.8em;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__step-heading {
    font-size: 1.6em;
    color: #000000;
    margin-top: 20px; /* Space for the counter */
    margin-bottom: 15px;
}

.page-arcade__step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: justify;
}

/* Promotions Section */
.page-arcade__promotions-section {
    padding: 60px 0;
}

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

.page-arcade__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-arcade__promo-card .page-arcade__card-image {
    height: 200px; /* Slightly smaller image for promo cards */
}

.page-arcade__promo-card .page-arcade__card-title {
    font-size: 1.6em;
}

.page-arcade__promo-card .page-arcade__card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-arcade__responsible-gaming-section {
    background-color: #F8F8F8;
    padding: 60px 0;
}

/* FAQ Section */
.page-arcade__faq-section {
    padding: 60px 0;
}

.page-arcade__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-arcade__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: bold;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

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

.page-arcade__faq-answer {
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
    padding-top: 0;
}

.page-arcade__faq-answer.open {
    max-height: 200px; /* Arbitrary max-height, adjust if content is longer */
    padding-top: 15px;
}

/* Call to Action Section */
.page-arcade__cta-section {
    background-color: #000000; /* Dark background */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

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

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

.page-arcade__cta-section .page-arcade__text-content {
    color: #F0F0F0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-arcade__cta-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Links within text */
.page-arcade__link {
    color: #000000; /* Use primary color for links */
    text-decoration: underline;
    font-weight: bold;
}

.page-arcade__link:hover {
    color: #FCBC45; /* Accent color on hover */
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-arcade__hero-section {
        min-height: 400px;
        padding: 60px 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: 100%;
        max-width: 300px;
    }

    .page-arcade__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-arcade__text-content,
    .page-arcade__card-description,
    .page-arcade__feature-description,
    .page-arcade__step-description,
    .page-arcade__faq-answer {
        font-size: 0.95em;
    }

    .page-arcade__category-grid,
    .page-arcade__feature-list,
    .page-arcade__steps-list,
    .page-arcade__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ensure images are responsive and don't overflow */
    .page-arcade__hero-image,
    .page-arcade__card-image,
    .page-arcade__container img { /* Catch-all for images in content area */
        max-width: 100%;
        height: auto;
    }

    /* Specific override for any image that might get a fixed width */
    .page-arcade__card-image {
        height: 200px; /* Maintain aspect ratio, but cap height */
    }

    /* Content area should not cause horizontal scroll */
    .page-arcade {
        overflow-x: hidden;
    }

    /* Ensure no images in content area are smaller than 200px display width/height */
    .page-arcade img {
        min-width: 200px;
        min-height: 200px;
        object-fit: cover; /* To prevent distortion if min-height/width is applied */
    }
    .page-arcade__card-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-arcade__hero-image {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Global image styles to prevent small sizes and filter */
.page-arcade img {
    /* Enforce minimum size for all content images */
    min-width: 200px; 
    min-height: 200px;
    /* Prevent CSS filters from altering image colors */
    filter: none !important; 
    -webkit-filter: none !important;
}

/* Ensure CSS width/height for images doesn't conflict with HTML attributes */
/* The HTML width/height attributes are for layout slot, CSS max-width: 100%; height: auto; is for responsiveness */
/* If a specific image needs a fixed display size, ensure CSS matches HTML attributes or uses max-width/height */
.page-arcade__hero-image {
    width: 100%; /* Will take 100% of its parent, constrained by hero-section */
    height: 100%;
}
.page-arcade__card-image {
    width: 100%; /* Will take 100% of its parent (card) */
    height: 250px; /* Fixed height as per card design */
    /* On mobile, max-width: 100%; height: auto; from media query will override this if needed */
}
.page-arcade__promo-card .page-arcade__card-image {
    height: 200px; /* Fixed height for promo cards */
}