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

.page-index__hero-section {
    background-color: #000000; /* Dark background for hero content */
    color: #ffffff; /* Light text for dark background */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6; /* Slightly transparent to let text stand out */
}

.page-index__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-index__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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.2s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-index__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

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

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

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

.page-index__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #000000;
}

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

.page-index__why-choose-section,
.page-index__get-started-section,
.page-index__gcash-advantage-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__security-gaming-section,
.page-index__download-app-section,
.page-index__dive-deeper-section,
.page-index__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__features-grid,
.page-index__steps-grid,
.page-index__games-grid,
.page-index__promotions-grid,
.page-index__detail-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__feature-card,
.page-index__step-card,
.page-index__game-card,
.page-index__promo-card,
.page-index__detail-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__feature-card:hover,
.page-index__step-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover,
.page-index__detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__feature-card img,
.page-index__step-card img,
.page-index__game-card img,
.page-index__promo-card img,
.page-index__detail-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
    object-fit: cover;
}

.page-index__feature-title,
.page-index__step-title,
.page-index__game-title,
.page-index__promo-title,
.page-index__detail-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000000;
}

.page-index__game-title a,
.page-index__promo-title a,
.page-index__detail-title a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

.page-index__game-title a:hover,
.page-index__promo-title a:hover,
.page-index__detail-title a:hover {
    color: #FCBC45;
}

.page-index__feature-description,
.page-index__step-description,
.page-index__game-description,
.page-index__promo-description,
.page-index__detail-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take up available space */
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
}

.page-index__button--small:hover {
    background-color: #333333;
    color: #FCBC45;
    border-color: #333333;
}

.page-index__gcash-advantage-section {
    background-color: #f8f8f8;
}

.page-index__advantage-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-index__advantage-text {
    flex: 1;
    min-width: 300px;
}

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

.page-index__advantage-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
    object-fit: cover;
}

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

.page-index__advantage-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.page-index__advantage-list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #333333;
}

.page-index__advantage-list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #FCBC45;
}

.page-index__advantage-paragraph {
    margin-bottom: 30px;
    color: #555555;
}

.page-index__button--read-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
    padding: 12px 25px;
    font-size: 1em;
}

.page-index__button--read-more:hover {
    background-color: #333333;
    color: #FCBC45;
    border-color: #333333;
}

.page-index__more-games-cta,
.page-index__all-promos-cta,
.page-index__gaming-links,
.page-index__cta-buttons {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-index__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 250px;
}

.page-index__button--large.page-index__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-index__button--large.page-index__button--register:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-index__button--large.page-index__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--large.page-index__button--login:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.page-index__security-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__security-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
    object-fit: cover;
}

.page-index__security-subtitle {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

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

.page-index__download-app-section {
    background-color: #000000;
    color: #ffffff;
}

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

.page-index__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-index__app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

.page-index__app-details {
    flex: 1;
    min-width: 300px;
}

.page-index__app-subtitle {
    font-size: 2em;
    color: #FCBC45;
    margin-bottom: 20px;
}

.page-index__app-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.page-index__app-features-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #f0f0f0;
}

.page-index__app-features-item::before {
    content: '📱'; /* Mobile icon */
    position: absolute;
    left: 0;
    color: #FCBC45;
}

.page-index__app-paragraph {
    margin-bottom: 30px;
    color: #cccccc;
}

.page-index__button--download {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 15px 30px;
    font-size: 1.1em;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__button {
        min-width: 180px;
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__button--large {
        min-width: 220px;
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding: 60px 15px;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-index__why-choose-section,
    .page-index__get-started-section,
    .page-index__gcash-advantage-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__security-gaming-section,
    .page-index__download-app-section,
    .page-index__dive-deeper-section,
    .page-index__cta-section {
        padding: 40px 15px;
    }
    .page-index__features-grid,
    .page-index__steps-grid,
    .page-index__games-grid,
    .page-index__promotions-grid,
    .page-index__detail-pages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-index__advantage-content,
    .page-index__app-content {
        flex-direction: column;
    }
    .page-index__advantage-image,
    .page-index__app-image {
        order: -1; /* Image first on mobile */
    }
    .page-index__advantage-image img,
    .page-index__app-image img,
    .page-index__feature-card img,
    .page-index__step-card img,
    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__detail-card img,
    .page-index__security-item img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum image size */
        min-height: 200px; /* Enforce minimum image size */
        object-fit: cover;
    }
    .page-index__button--large {
        width: 100%;
        max-width: 300px;
    }
    .page-index__security-content {
        flex-direction: column;
        align-items: center;
    }
    .page-index__security-item {
        max-width: 100%;
    }
}

/* Image CSS rules for content area - MUST NOT be less than 200px */
.page-index img:not(.page-index__hero-image img) {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Specific overrides for smaller buttons in grids to ensure image size is respected */
.page-index__step-card img,
.page-index__game-card img,
.page-index__promo-card img,
.page-index__detail-card img {
    width: 100%; /* Take full width of card */
    height: 200px; /* Fixed height for consistency, ensures min-height */
    object-fit: cover;
}

/* Ensure no filter properties are used */
.page-index img {
    filter: none;
}