.page-index {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

.page-index-section-title {
    font-size: 2.5em;
    color: #1A2C50;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.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-sub-title {
    font-size: 1.8em;
    color: #1A2C50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-index-text-block {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05em;
}

.page-index-text-center {
    text-align: center;
}

/* Hero Section */
.page-index-hero {
    background: linear-gradient(135deg, #1A2C50 0%, #3a5c90 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure a decent height */
}

.page-index-hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.page-index-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.page-index-hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-index-hero-actions .page-index-btn {
    margin: 0 10px;
}

/* Buttons */
.page-index-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-index-btn-primary {
    background-color: #FFD700;
    color: #1A2C50;
    border: 2px solid #FFD700;
}

.page-index-btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.page-index-btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2C50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index-btn-outline {
    background-color: transparent;
    color: #1A2C50;
    border: 2px solid #1A2C50;
    padding: 10px 20px;
    font-size: 1em;
}

.page-index-btn-outline:hover {
    background-color: #1A2C50;
    color: #FFD700;
}

/* About Us Section */
.page-index-about-us {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

/* Why Choose Section */
.page-index-why-choose {
    background-color: #f0f0f0;
    padding: 60px 0;
}

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

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

.page-index-feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index-feature-title {
    font-size: 1.6em;
    color: #1A2C50;
    margin-bottom: 15px;
}

.page-index-feature-description {
    color: #666;
    font-size: 0.95em;
}

/* Game Showcase Section */
.page-index-game-showcase {
    background-color: #1A2C50;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-index-game-showcase .page-index-section-title {
    color: #FFD700;
}

.page-index-game-showcase .page-index-text-block {
    color: #e0e0e0;
}

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

.page-index-game-item {
    background-color: #2a3e6a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-index-game-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-index-game-description {
    color: #ccc;
    font-size: 0.9em;
}

/* Security Commitment Section */
.page-index-security-commitment {
    background-color: #fff;
    padding: 60px 0;
}

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

.page-index-security-text {
    flex: 2;
    min-width: 300px;
}

.page-index-security-image-wrapper {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.page-index-security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Us Section */
.page-index-contact-us {
    background-color: #f0f0f0;
    padding: 60px 0;
    text-align: center;
}

.page-index-contact-info {
    margin-top: 30px;
    font-size: 1.1em;
    color: #333;
}

.page-index-contact-info p {
    margin-bottom: 10px;
}

/* Detail Pages Section */
.page-index-detail-pages {
    background-color: #fff;
    padding: 60px 0;
}

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

.page-index-detail-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index-detail-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-index-detail-title a {
    color: #1A2C50;
    text-decoration: none;
    font-weight: bold;
}

.page-index-detail-title a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.page-index-detail-description {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hero-title {
        font-size: 3em;
    }
    .page-index-hero-description {
        font-size: 1.2em;
    }
    .page-index-section-title {
        font-size: 2em;
    }
    .page-index-security-content {
        flex-direction: column;
    }
    .page-index-security-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-index-hero {
        padding: 80px 0;
        min-height: 500px;
    }
    .page-index-hero-title {
        font-size: 2.5em;
    }
    .page-index-hero-description {
        font-size: 1em;
    }
    .page-index-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index-features-grid, .page-index-game-grid, .page-index-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-index-hero {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-index-hero-title {
        font-size: 2em;
    }
    .page-index-hero-description {
        font-size: 0.9em;
    }
    .page-index-hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .page-index-hero-actions .page-index-btn {
        margin: 0;
        width: 100%;
    }
    .page-index-section-title {
        font-size: 1.8em;
    }
    .page-index-sub-title {
        font-size: 1.5em;
    }
    .page-index-feature-item, .page-index-game-item, .page-index-detail-item {
        padding: 20px;
    }
}

/* Ensure contrast for all text */
.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
    color: #1A2C50; /* Dark blue for titles */
}
.page-index-hero-title {
    color: #FFD700; /* Gold for hero title on dark background */
}
.page-index-hero-description {
    color: #f0f0f0; /* Light grey for hero description on dark background */
}
.page-index p, .page-index li {
    color: #333; /* Dark grey for general text on light background */
}
.page-index-game-showcase .page-index-section-title,
.page-index-game-showcase .page-index-game-title {
    color: #FFD700; /* Gold on dark background */
}
.page-index-game-showcase .page-index-text-block,
.page-index-game-showcase .page-index-game-description {
    color: #ccc; /* Light grey on dark background */
}
.page-index a {
    color: #1A2C50; /* Default link color */
}
.page-index a:hover {
    color: #FFD700; /* Hover link color */
}
.page-index-btn-primary {
    color: #1A2C50; /* Dark text on gold button */
}
.page-index-btn-secondary {
    color: #FFD700; /* Gold text on transparent button */
}
.page-index-btn-secondary:hover {
    color: #1A2C50; /* Dark text on gold button */
}
.page-index-btn-outline {
    color: #1A2C50; /* Dark text on transparent button */
}
.page-index-btn-outline:hover {
    color: #FFD700; /* Gold text on dark button */
}