.page-index {
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-index__section-title {
    font-size: 2.5em;
    color: #0A0A0A;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

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

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

/* Hero Section */
.page-index__hero-section {
    background-color: #0A0A0A;
    color: #ffffff;
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 900px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700;
    line-height: 1.2;
}

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-index__button {
    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.3s ease;
    white-space: nowrap;
}

.page-index__button--primary {
    background-color: #FFD700;
    color: #0A0A0A;
    border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
    background-color: #FFD700;
    color: #0A0A0A;
    transform: translateY(-2px);
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-index__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* About Section */
.page-index__about-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

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

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

.page-index__feature-icon {
    width: 200px; 
    height: 150px; 
    object-fit: contain; 
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-index__feature-title {
    font-size: 1.5em;
    color: #0A0A0A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__feature-description {
    color: #666666;
    font-size: 0.95em;
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-index__game-card {
    background-color: #fdfdfd;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-index__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index__game-card-title {
    font-size: 1.6em;
    color: #0A0A0A;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-index__game-card-title a {
    color: inherit;
    text-decoration: none;
}

.page-index__game-card-title a:hover {
    color: #FFD700;
}

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

.page-index__game-card .page-index__button {
    margin: 20px;
    align-self: flex-start;
    background-color: #FFD700;
    color: #0A0A0A;
    border: none;
}

.page-index__game-card .page-index__button:hover {
    background-color: #e6c200;
}

/* Promo Section */
.page-index__promo-section {
    padding: 80px 0;
    background-color: #0A0A0A;
    color: #ffffff;
}

.page-index__promo-section .page-index__section-title, .page-index__promo-section .page-index__section-intro {
    color: #ffffff;
}

.page-index__promo-section .page-index__section-title::after {
    background-color: #FFD700;
}

.page-index__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-index__promo-card:hover {
    transform: translateY(-10px);
}

.page-index__promo-image {
    width: 100%;
    height: 280px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-index__promo-card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin: 25px 20px 10px 20px;
    font-weight: bold;
}

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

.page-index__promo-card .page-index__button {
    margin: 25px auto;
    background-color: #FFD700;
    color: #0A0A0A;
    border: none;
}

.page-index__promo-card .page-index__button:hover {
    background-color: #e6c200;
}

/* Mobile Section */
.page-index__mobile-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-index__mobile-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-index__mobile-text-content {
    flex: 1;
    text-align: left;
}

.page-index__mobile-text-content .page-index__section-title {
    text-align: left;
    margin-left: 0;
}

.page-index__mobile-text-content .page-index__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-index__mobile-text-content .page-index__section-intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index__mobile-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__mobile-image {
    width: 100%;
    max-width: 600px; /* Ensure image doesn't get too large */
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-index__faq-accordion {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__faq-question {
    font-size: 1.3em;
    color: #0A0A0A;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    background-color: #f3f3f3;
    border-bottom: 1px solid #eeeeee;
}

.page-index__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-index__faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.page-index__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-index__faq-answer p {
    padding-bottom: 20px;
    color: #555555;
    font-size: 1em;
}

/* CTA Section */
.page-index__cta-section {
    padding: 80px 0;
    background-color: #0A0A0A;
    color: #ffffff;
    text-align: center;
}

.page-index__cta-section .page-index__section-title, .page-index__cta-section .page-index__section-intro {
    color: #ffffff;
}

.page-index__cta-section .page-index__section-title::after {
    background-color: #FFD700;
}

.page-index__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
    .page-index__mobile-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-index__mobile-text-content .page-index__section-title,
    .page-index__mobile-text-content .page-index__section-title::after,
    .page-index__mobile-text-content .page-index__section-intro {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: var(--header-offset, 120px);
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__section-intro {
        font-size: 0.9em;
    }
    .page-index__button {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index__features-grid, .page-index__game-categories, .page-index__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-index__mobile-image {
        max-width: 100%;
        height: auto;
    }
    /* Mobile content area image constraint */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure no images within .page-index are smaller than 200px */
    .page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__mobile-image {
        min-width: 200px;
        min-height: 150px; /* Adjusted for aspect ratio, but ensuring min 200px width */
        width: 100%; /* Override to ensure responsiveness */
        height: auto; /* Override to ensure responsiveness */
    }
    .page-index__feature-icon { height: auto; }
    .page-index__game-image { height: auto; }
    .page-index__promo-image { height: auto; }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__hero-content {
        padding: 40px 15px;
    }
    .page-index__button {
        font-size: 0.9em;
    }
}