/* style/index.css */
.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333; /* Dark grey for general text on light backgrounds */
    background-color: #f8f9fa; /* Light background */
}

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

/* Typography */
.page-index__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__hero-title {
    font-size: 3.5em;
    color: #ffffff; /* White text on primary background */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index__hero-description {
    font-size: 1.3em;
    color: #e9ecef; /* Lighter white for description */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 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, color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.page-index__btn--primary {
    background-color: #007bff; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #007bff;
}

.page-index__btn--primary:hover {
    background-color: #0056b3; /* Darker primary on hover */
    border-color: #0056b3;
}

.page-index__btn--secondary {
    background-color: transparent;
    color: #ffc107; /* Auxiliary brand color */
    border: 2px solid #ffc107;
    margin-left: 15px;
}

.page-index__btn--secondary:hover {
    background-color: #ffc107;
    color: #333; /* Dark text on auxiliary hover */
}

.page-index__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-index__btn--large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Hero Section */
.page-index__hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Gradient with primary color */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
}

.page-index__hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Added gap for better spacing */
}

.page-index__hero-image-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 1;
    opacity: 0.1; /* Subtle background image */
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.page-index__about {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-index__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .page-index__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-index__text-content {
        order: 1; /* Text first on larger screens */
    }
    .page-index__image-content {
        order: 2;
    }
}

.page-index__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444;
}

.page-index__image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-index__features {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light blue background */
}

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

.page-index__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px 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 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

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

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

/* Promo Banner */
.page-index__promo-banner {
    background: linear-gradient(90deg, #ffc107 0%, #ff8c00 100%); /* Orange-gold gradient */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.page-index__promo-content {
    position: relative;
    z-index: 2;
    color: #333; /* Dark text on light background */
}

.page-index__promo-title {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__promo-description {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__promo-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    overflow: hidden;
}

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

/* Game Types Section */
.page-index__game-types {
    padding: 80px 0;
    background-color: #f0f8ff;
}

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

.page-index__game-type-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-type-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__game-type-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: invert(20%) sepia(80%) saturate(2000%) hue-rotate(190deg) brightness(90%) contrast(100%);
}

.page-index__game-type-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-index__game-type-description {
    color: #555;
    font-size: 0.9em;
}

.page-index__game-types-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.page-index__game-types-cta-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 25px;
}

/* How-To Section */
.page-index__how-to {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-index__how-to-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-index__how-to-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: invert(20%) sepia(80%) saturate(2000%) hue-rotate(190deg) brightness(90%) contrast(100%); /* Primary color tint */
}

.page-index__how-to-title {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index__how-to-description {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Testimonials Section */
.page-index__testimonials {
    padding: 80px 0;
    background-color: #e6f2ff; /* Very light blue */
}

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

.page-index__testimonial-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-index__testimonial-text {
    font-style: italic;
    color: #444;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-index__testimonial-author {
    font-weight: bold;
    color: #007bff;
    font-size: 0.95em;
    text-align: right;
}

/* FAQ Section */
.page-index__faq {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-index__faq-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index__faq-question {
    padding: 20px 25px;
    margin: 0;
    font-size: 1.2em;
    color: #007bff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e9f5ff; /* Lighter blue for question background */
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-index__faq-question:hover {
    background-color: #d0e7ff;
}

.page-index__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-index__faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.page-index__faq-answer {
    padding: 0 25px 0 25px;
    margin: 0;
    color: #555;
    font-size: 1em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-index__faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding: 20px 25px;
}

/* Related Pages Section */
.page-index__related-pages {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-index__related-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ffc107; /* Auxiliary color accent */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.page-index__related-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

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

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

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

/* Call to Action Section */
.page-index__cta {
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-index__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-index__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e9ecef;
}


/* 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__promo-title, .page-index__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero {
        padding: 80px 0 50px;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
    }
    .page-index__btn--secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-index__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-index__promo-title, .page-index__cta-title {
        font-size: 1.8em;
    }
    .page-index__feature-grid,
    .page-index__how-to-grid,
    .page-index__testimonial-grid,
    .page-index__game-type-grid,
    .page-index__related-grid {
        grid-template-columns: 1fr;
    }
    .page-index__content-grid {
        grid-template-columns: 1fr;
    }
    .page-index__image-content {
        order: 2; /* Image below text on small screens */
    }
    .page-index__text-content {
        order: 1;
    }
    .page-index__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-index__faq-answer.open {
        padding: 15px 20px;
    }
}