.page-index-our-games {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

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

/* Hero Section */
.page-index-our-games__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
    padding: 80px 0;
    text-align: center;
}

.page-index-our-games__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-index-our-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #F0F0F0;
}

.page-index-our-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-index-our-games__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Darken image to ensure text contrast */
    display: block;
}

.page-index-our-games__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index-our-games__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-index-our-games__cta-button--register {
    background-color: #FFFFFF; /* White for Register */
    color: #000000; /* Black text for Register */
    border: 2px solid #FFFFFF;
}

.page-index-our-games__cta-button--register:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
}

.page-index-our-games__cta-button--login {
    background-color: #FCBC45; /* FCBC45 for Login */
    color: #000000; /* Black text for Login */
    border: 2px solid #FCBC45;
}

.page-index-our-games__cta-button--login:hover {
    background-color: #EBA832;
    transform: translateY(-2px);
}

/* Section common styles */
.page-index-our-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #000000;
}

.page-index-our-games__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #555555;
}

/* Why Choose Section */
.page-index-our-games__why-choose-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

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

.page-index-our-games__feature-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-our-games__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index-our-games__feature-item img {
    width: 100%; /* Ensure images are responsive within their containers */
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index-our-games__feature-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

.page-index-our-games__feature-description {
    font-size: 1em;
    color: #666666;
}

/* Game Portfolio Section */
.page-index-our-games__game-portfolio-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-index-our-games__game-category {
    background-color: #FDFDFD;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.page-index-our-games__game-category:last-child {
    margin-bottom: 0;
}

.page-index-our-games__category-title {
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
}

.page-index-our-games__game-category img {
    width: 100%;
    max-width: 800px; /* Max width for images */
    height: auto;
    border-radius: 8px;
    margin: 0 auto 25px auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-index-our-games__category-description {
    font-size: 1.05em;
    color: #666666;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-our-games__cta-button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-index-our-games__cta-button--learn-more:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Technology Section */
.page-index-our-games__technology-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.page-index-our-games__tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-our-games__tech-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-index-our-games__tech-item img {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-index-our-games__tech-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-index-our-games__tech-description {
    font-size: 0.95em;
    color: #666666;
}

/* Promotions Section */
.page-index-our-games__promotions-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-index-our-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-our-games__promo-card {
    background-color: #FDFDFD;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-index-our-games__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-index-our-games__promo-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

.page-index-our-games__promo-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
}

.page-index-our-games__cta-button--view-promo {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index-our-games__cta-button--view-promo:hover {
    background-color: #EBA832;
    border-color: #EBA832;
}

/* Mobile Section */
.page-index-our-games__mobile-section {
    padding: 80px 0;
    background-color: #F0F0F0;
}

.page-index-our-games__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index-our-games__mobile-text {
    flex: 1;
    min-width: 300px;
}

.page-index-our-games__mobile-subtitle {
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
}

.page-index-our-games__mobile-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-index-our-games__mobile-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-index-our-games__mobile-features-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FCBC45"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #444444;
}

.page-index-our-games__mobile-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-index-our-games__mobile-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
    min-width: 200px;
    min-height: 200px;
}

.page-index-our-games__cta-button--download {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-index-our-games__cta-button--download:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Final CTA Section */
.page-index-our-games__cta-final-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
    text-align: center;
}

.page-index-our-games__cta-final-section .page-index-our-games__section-title {
    color: #FFFFFF;
}

.page-index-our-games__cta-final-section .page-index-our-games__section-intro {
    color: #F0F0F0;
    margin-bottom: 40px;
}

.page-index-our-games__cta-buttons-final {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-index-our-games__cta-button--register-large {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-index-our-games__cta-button--register-large:hover {
    background-color: #F0F0F0;
    transform: translateY(-3px);
}

.page-index-our-games__cta-button--login-large {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-index-our-games__cta-button--login-large:hover {
    background-color: #EBA832;
    transform: translateY(-3px);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index-our-games__hero-title {
        font-size: 3em;
    }
    .page-index-our-games__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index-our-games {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also has offset */
    }
    .page-index-our-games__hero-title {
        font-size: 2.5em;
    }
    .page-index-our-games__hero-description {
        font-size: 1em;
    }
    .page-index-our-games__section-title {
        font-size: 1.8em;
    }
    .page-index-our-games__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-index-our-games__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-our-games__cta-button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-index-our-games__feature-item,
    .page-index-our-games__tech-item,
    .page-index-our-games__promo-card {
        padding: 20px;
    }

    .page-index-our-games__feature-item img,
    .page-index-our-games__tech-item img,
    .page-index-our-games__promo-card img,
    .page-index-our-games__game-category img,
    .page-index-our-games__mobile-image img {
        max-width: 100%; /* Important for mobile responsiveness */
        height: auto;
        min-width: 200px; /* Ensure min display size is maintained */
        min-height: 200px;
    }

    .page-index-our-games__mobile-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-index-our-games__mobile-image {
        order: -1; /* Image first on mobile */
    }

    .page-index-our-games__cta-buttons-final {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-our-games__cta-button--register-large,
    .page-index-our-games__cta-button--login-large {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Content area images must not be smaller than 200px */
    .page-index-our-games img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-index-our-games__hero-title {
        font-size: 2em;
    }
    .page-index-our-games__section-title {
        font-size: 1.5em;
    }
    .page-index-our-games__cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
}