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

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

.page-index__hero-section {
    background: linear-gradient(135deg, #000080, #000050); /* Dark blue gradient background */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page-index__main-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-index__cta-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__cta-button--primary {
    background-color: #FFD700; /* Gold button */
    color: #000080; /* Dark blue text */
    border: 2px solid #FFD700;
}

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

.page-index__cta-button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-index__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #000080;
    transform: translateY(-2px);
}

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

.page-index__section-title {
    font-size: 2.5em;
    color: #000080; /* Dark blue for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-index__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-index__text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #555555;
}

.page-index__about-section, .page-index__why-download-section, .page-index__game-showcase-section, .page-index__download-guide-section, .page-index__promotions-section, .page-index__security-section, .page-index__testimonials-section, .page-index__insights-section, .page-index__faq-section, .page-index__final-cta-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-index__about-section, .page-index__security-section, .page-index__faq-section {
    text-align: center;
}

.page-index__link-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #000080;
    color: #FFD700;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__link-button:hover {
    background-color: #000060;
}

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

.page-index__feature-card, .page-index__game-card, .page-index__promo-card, .page-index__testimonial-card, .page-index__detail-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    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__game-card:hover, .page-index__promo-card:hover, .page-index__detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-index__feature-description, .page-index__game-description, .page-index__promo-description, .page-index__detail-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__game-button, .page-index__promo-button, .page-index__detail-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #000080;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__game-button:hover, .page-index__promo-button:hover, .page-index__detail-button:hover {
    background-color: #e6c200;
}

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

.page-index__step-item {
    background-color: #000080;
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-index__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1;
}

.page-index__step-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-index__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-index__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-index__testimonials-section {
    background-color: #f0f0f0;
}

.page-index__testimonial-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-index__testimonial-text {
    font-style: italic;
    color: #333333;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-index__testimonial-author {
    font-weight: bold;
    color: #000080;
    font-size: 1em;
}

.page-index__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.page-index__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-index__faq-item:hover {
    background-color: #f5f5f5;
}

.page-index__faq-question {
    font-size: 1.3em;
    color: #000080;
    margin-bottom: 10px;
    position: relative;
    padding-right: 30px;
}

.page-index__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: #FFD700;
}

.page-index__faq-item.active .page-index__faq-question::after {
    content: '-';
}

.page-index__faq-answer {
    font-size: 1em;
    color: #666666;
    display: none;
    margin-top: 10px;
}

.page-index__faq-item.active .page-index__faq-answer {
    display: block;
}

.page-index__final-cta-section {
    background: linear-gradient(135deg, #FFD700, #e6c200); /* Gold gradient background */
    color: #000080;
    padding: 80px 20px;
    text-align: center;
}

.page-index__final-cta-section .page-index__section-title {
    color: #000080;
}

.page-index__final-cta-section .page-index__section-title::after {
    background-color: #000080;
}

.page-index__final-cta-section .page-index__text {
    color: #333333;
}

.page-index__final-cta-section .page-index__cta-button--primary {
    background-color: #000080;
    color: #FFD700;
    border-color: #000080;
}

.page-index__final-cta-section .page-index__cta-button--primary:hover {
    background-color: #000060;
    border-color: #000060;
}

.page-index__final-cta-section .page-index__cta-button--secondary {
    background-color: transparent;
    color: #000080;
    border-color: #000080;
}

.page-index__final-cta-section .page-index__cta-button--secondary:hover {
    background-color: #000080;
    color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index__main-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__hero-section {
        padding: 60px 20px;
    }
    .page-index__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__text {
        font-size: 0.95em;
    }
    .page-index__features-grid, .page-index__game-grid, .page-index__promo-grid, .page-index__testimonials-grid, .page-index__detail-pages-grid {
        grid-template-columns: 1fr;
    }
    .page-index__download-steps {
        grid-template-columns: 1fr;
    }
    /* Ensure content images are responsive and do not overflow */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__detail-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-index__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-index__main-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__text {
        font-size: 0.9em;
    }
    .page-index__step-number {
        font-size: 2.5em;
    }
    .page-index__step-title {
        font-size: 1.4em;
    }
    .page-index__faq-question {
        font-size: 1em;
    }
}