/* style/index.css */

/* Variables for consistent styling */
:root {
    --page-index-primary-color: #003366; /* Deep Blue */
    --page-index-secondary-color: #FFCC00; /* Gold */
    --page-index-text-light: #FFFFFF;
    --page-index-text-dark: #003366;
    --page-index-text-gray: #f0f0f0;
    --page-index-text-dark-contrast: #333333;
    --page-index-bg-light: #f4f7f6;
    --page-index-bg-dark: #002244;
    --page-index-border-color: #e0e0e0;
}

.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-index-text-dark-contrast);
    background-color: var(--page-index-bg-light);
}

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

/* Utility classes for text and background colors to ensure contrast */
.page-index__highlight {
    color: var(--page-index-secondary-color);
}

.page-index__text-content--light {
    color: var(--page-index-text-light);
}

.page-index__section-title--light {
    color: var(--page-index-text-light);
}

/* Buttons */
.page-index__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.page-index__btn--primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-dark);
    border: 2px solid var(--page-index-secondary-color);
}

.page-index__btn--primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-index__btn--secondary {
    background-color: transparent;
    color: var(--page-index-text-dark);
    border: 2px solid var(--page-index-secondary-color);
    margin-left: 15px;
}

.page-index__btn--secondary:hover {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-dark);
    transform: translateY(-2px);
}

.page-index__btn--gold {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-index__btn--gold:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

.page-index__btn--text {
    background: none;
    border: none;
    color: var(--page-index-primary-color);
    padding: 5px 0;
    margin-top: 10px;
    display: inline-block;
    font-weight: bold;
}

.page-index__btn--text:hover {
    text-decoration: underline;
    color: var(--page-index-secondary-color);
}

/* Hero Section */
.page-index__hero {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, var(--page-index-bg-dark) 100%);
    color: var(--page-index-text-light);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

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

.page-index__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-index-text-light);
}

.page-index__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-index-text-gray);
}

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

.page-index__hero-image-wrapper {
    width: 100%;
    max-width: 700px;
    margin-top: 40px;
}

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

/* General Section Styling */
.page-index__section-title {
    font-size: 2.2em;
    color: var(--page-index-primary-color);
    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: var(--page-index-secondary-color);
    border-radius: 2px;
}

.page-index__text-content {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

/* About Section */
.page-index__about {
    padding: 60px 0;
    background-color: var(--page-index-bg-light);
}

/* Features Section */
.page-index__features {
    padding: 60px 0;
    background-color: var(--page-index-bg-dark);
    color: var(--page-index-text-light);
}

.page-index__features .page-index__section-title {
    color: var(--page-index-text-light);
}

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

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

.page-index__feature-item:hover {
    transform: translateY(-10px);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.5); /* Make icons stand out */
}

.page-index__feature-title {
    font-size: 1.5em;
    color: var(--page-index-secondary-color);
    margin-bottom: 15px;
}

.page-index__feature-description {
    color: var(--page-index-text-gray);
}

/* Games Section */
.page-index__games {
    padding: 60px 0;
    background-color: var(--page-index-bg-light);
}

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

.page-index__game-item {
    background-color: var(--page-index-text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-index__game-item:hover {
    transform: translateY(-10px);
}

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

.page-index__game-title {
    font-size: 1.4em;
    color: var(--page-index-primary-color);
    padding: 15px 20px 5px;
}

.page-index__game-description {
    padding: 0 20px 20px;
    color: var(--page-index-text-dark-contrast);
}

/* Promotions Section */
.page-index__promotions {
    padding: 60px 0;
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
}

.page-index__promotions .page-index__section-title {
    color: var(--page-index-text-light);
}

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

.page-index__promo-item {
    background-color: var(--page-index-bg-dark);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-index__promo-item:hover {
    transform: translateY(-10px);
}

.page-index__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-index__promo-title {
    font-size: 1.4em;
    color: var(--page-index-secondary-color);
    padding: 15px 20px 5px;
}

.page-index__promo-description {
    padding: 0 20px 20px;
    color: var(--page-index-text-gray);
}

/* Download Section */
.page-index__download {
    padding: 60px 0;
    background-color: var(--page-index-bg-light);
}

.page-index__download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.page-index__download-text {
    max-width: 700px;
}

.page-index__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-index__download-image-wrapper {
    width: 100%;
    max-width: 400px;
}

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

.page-index__small-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}

/* Testimonials Section */
.page-index__testimonials {
    padding: 60px 0;
    background-color: var(--page-index-bg-dark);
    color: var(--page-index-text-light);
}

.page-index__testimonials .page-index__section-title {
    color: var(--page-index-text-light);
}

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

.page-index__testimonial-item {
    background-color: var(--page-index-primary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--page-index-secondary-color);
}

.page-index__testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--page-index-text-gray);
}

.page-index__testimonial-author {
    font-weight: bold;
    color: var(--page-index-secondary-color);
}

/* FAQ Section */
.page-index__faq {
    padding: 60px 0;
    background-color: var(--page-index-bg-light);
}

.page-index__faq-item {
    background-color: var(--page-index-text-light);
    border: 1px solid var(--page-index-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    font-size: 1.3em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
}

.page-index__faq-answer {
    color: var(--page-index-text-dark-contrast);
}

/* Call to Action Bottom */
.page-index__cta-bottom {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, var(--page-index-bg-dark) 100%);
    color: var(--page-index-text-light);
    padding: 80px 20px;
    text-align: center;
}

.page-index__cta-bottom .page-index__section-title {
    margin-bottom: 20px;
}

.page-index__cta-bottom .page-index__text-content {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Detail Pages Section */
.page-index__detail-pages {
    padding: 60px 0;
    background-color: var(--page-index-bg-light);
}

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

.page-index__detail-item {
    background-color: var(--page-index-text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease;
}

.page-index__detail-item:hover {
    transform: translateY(-8px);
}

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

.page-index__detail-title a {
    color: var(--page-index-primary-color);
    text-decoration: none;
}

.page-index__detail-title a:hover {
    color: var(--page-index-secondary-color);
    text-decoration: underline;
}

.page-index__detail-description {
    color: var(--page-index-text-dark-contrast);
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .page-index__hero {
        flex-direction: row;
        text-align: left;
        padding: 100px 40px;
    }

    .page-index__hero-content {
        text-align: left;
    }

    .page-index__hero-title {
        font-size: 3.5em;
    }

    .page-index__hero-description {
        font-size: 1.3em;
    }

    .page-index__hero-actions {
        justify-content: flex-start;
    }

    .page-index__download-content {
        flex-direction: row;
        text-align: left;
    }

    .page-index__download-text {
        text-align: left;
    }

    .page-index__download-buttons {
        justify-content: flex-start;
    }

    .page-index__download-image-wrapper {
        order: 1;
    }

    .page-index__download-text {
        order: 2;
    }
}

@media (max-width: 767px) {
    .page-index__hero {
        padding: 60px 20px;
    }

    .page-index__hero-title {
        font-size: 2.2em;
    }

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

    .page-index__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-index__btn--secondary {
        margin-left: 0;
    }

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

    .page-index__download-buttons {
        flex-direction: column;
        gap: 10px;
    }
}