/* style/index.css */

/* General page styling */
.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.page-index-section-title {
    font-size: 2.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-index-section-subtitle {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

.page-index-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.page-index-btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.page-index-btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

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

.page-index-btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}

.page-index-btn-link {
    background-color: transparent;
    color: #007bff;
    border: none;
    padding: 0;
    font-size: 1em;
}

.page-index-btn-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.page-index-btn-lg {
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-index-img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Hero Section */
.page-index-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Darker blue for better contrast with text */
    color: #fff;
    gap: 40px;
}

.page-index-hero-content {
    max-width: 800px;
}

.page-index-hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff; /* Ensure high contrast */
}

.page-index-hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #e0e0e0; /* Slightly lighter for readability */
}

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

.page-index-hero-image-wrapper {
    margin-top: 40px;
    max-width: 900px;
    width: 100%;
}

.page-index-hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

.page-index-about-text,
.page-index-about-image {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-index-about-text p {
    margin-bottom: 15px;
    color: #444;
}

/* Games Showcase Section */
.page-index-games-showcase {
    padding: 80px 0;
    background-color: #f0f4f8;
}

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

.page-index-game-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

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

.page-index-game-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index-game-card-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index-game-card-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Features Section */
.page-index-features {
    padding: 80px 0;
    background-color: #fff;
}

.page-index-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-index-feature-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-index-feature-item:hover {
    transform: translateY(-5px);
}

.page-index-feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.page-index-feature-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
}

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

/* Promotions Section */
.page-index-promotions {
    padding: 80px 0;
    background-color: #f0f4f8;
}

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

.page-index-promotion-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-index-promotion-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-index-promotion-card-title {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-index-promotion-card-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 25px;
    padding: 0 20px;
}

.page-index-promotion-card .page-index-btn {
    margin-bottom: 20px;
}

/* Mobile App Section */
.page-index-mobile-app {
    padding: 80px 0;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
}

.page-index-app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-index-app-content > div {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-index-app-content h2 {
    color: #fff;
    text-align: left;
}

.page-index-app-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-align: left;
}

.page-index-app-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

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

.page-index-app-image img {
    max-height: 400px;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-index-detail-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-detail-card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-index-detail-card-title a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-index-detail-card-description {
    color: #666;
    margin-bottom: 20px;
}

/* CTA Section */
.page-index-cta {
    padding: 80px 0;
    background-color: #ffc107;
    text-align: center;
    color: #333;
}

.page-index-cta-content {
    max-width: 800px;
}

.page-index-cta-title {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 20px;
}

.page-index-cta-description {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-index-hero {
        flex-direction: column;
        padding: 60px 20px;
    }

    .page-index-hero-title {
        font-size: 2.8em;
    }

    .page-index-hero-description {
        font-size: 1.1em;
    }

    .page-index-about-content {
        flex-direction: column;
    }

    .page-index-about-text, .page-index-about-image {
        flex: 1 1 100%;
    }

    .page-index-app-content {
        flex-direction: column-reverse;
    }

    .page-index-app-content > div {
        flex: 1 1 100%;
        text-align: center;
    }

    .page-index-app-content h2, .page-index-app-description {
        text-align: center;
    }

    .page-index-app-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-index-section-title {
        font-size: 2em;
    }

    .page-index-hero {
        padding: 40px 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-btn {
        width: 100%;
    }

    .page-index-cta-title {
        font-size: 2em;
    }

    .page-index-cta-description {
        font-size: 1em;
    }

    .page-index-game-grid, .page-index-feature-grid, .page-index-promotion-grid, .page-index-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-index-hero-title {
        font-size: 1.8em;
    }

    .page-index-hero-description {
        font-size: 0.9em;
    }

    .page-index-section-title {
        font-size: 1.8em;
    }

    .page-index-cta-title {
        font-size: 1.8em;
    }
}