/* style/index.css */
.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__highlight {
    color: #007bff;
}

/* Hero Section */
.page-index__hero {
    background: linear-gradient(135deg, #007bff, #28a745);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure sufficient height for content and image */
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.page-index__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    z-index: 1;
}

.page-index__hero-image {
    position: absolute;
    bottom: -10%; /* Adjust to show part of the image */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: auto;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* General Section Styling */
.page-index__section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.page-index__section:last-of-type {
    border-bottom: none;
}

.page-index__section-title {
    font-size: 2.5em;
    color: #007bff;
    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: #28a745;
    border-radius: 2px;
}

.page-index__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #444;
}

/* Buttons */
.page-index__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__btn--primary {
    background-color: #28a745;
    color: #fff;
    border: 2px solid #28a745;
}

.page-index__btn--primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure contrast for secondary button on hero section's gradient background */
.page-index__hero .page-index__btn--secondary {
    border-color: #fff;
    color: #fff;
}

.page-index__hero .page-index__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-index__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-index__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Why Choose Section */
.page-index__why-choose {
    background-color: #fff;
}

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

.page-index__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: #f1f7fe; /* Light blue background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.2));
}

.page-index__feature-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-index__feature-description {
    color: #555;
}

/* Games Section */
.page-index__games {
    background-color: #f0f8ff;
}

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

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

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

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__game-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__game-description {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px 20px;
}

/* Promotions Section */
.page-index__promotions {
    background-color: #fff;
}

.page-index__promo-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-index__promo-list li {
    background-color: #f1f7fe;
    border-left: 5px solid #007bff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    font-size: 1.1em;
    color: #333;
}

.page-index__promo-list li strong {
    color: #007bff;
}

/* App Section */
.page-index__app {
    background-color: #e6f7ff;
    padding: 80px 0;
}

.page-index__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-index__app-text-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-index__app-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Safety Section */
.page-index__safety {
    background-color: #fdfdfd;
}

/* Customer Support Section */
.page-index__customer-support {
    background-color: #f0f8ff;
}

.page-index__support-channels {
    list-style: disc;
    padding-left: 40px;
    max-width: 900px;
    margin: 40px auto;
    font-size: 1.1em;
    color: #333;
}

.page-index__support-channels li {
    margin-bottom: 10px;
}

.page-index__support-channels li strong {
    color: #007bff;
}

/* Final CTA Section */
.page-index__cta-final {
    background: linear-gradient(45deg, #007bff, #28a745);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.page-index__cta-final .page-index__section-title {
    color: #fff;
}

.page-index__cta-final .page-index__section-title::after {
    background-color: #fff;
}

.page-index__cta-final .page-index__section-text {
    color: #e0e0e0;
}

/* Detail Pages Section */
.page-index__detail-pages {
    background-color: #fff;
}

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

.page-index__detail-card {
    background-color: #fbfdff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__detail-title {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.page-index__detail-title a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.page-index__detail-title a:hover {
    text-decoration: underline;
}

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

/* Responsive Design */
@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__app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-index__app-text-content,
    .page-index__app-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-index__hero {
        padding: 60px 0;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-index__section {
        padding: 40px 0;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__features-grid,
    .page-index__game-categories,
    .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__btn {
        width: 90%;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__section-text {
        font-size: 0.95em;
    }
}