/* style/index.css */
.page-index {
    color: #333333; /* Dark text for default light body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-index__section-title {
    font-size: 2.8em;
    color: #8B0000; /* Deep red for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    padding-top: 40px;
}

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

.page-index__button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.page-index__button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #8B0000; /* Deep red text for contrast */
    border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
    background-color: #e6c200;
    color: #6a0000;
}

.page-index__button--secondary {
    background-color: transparent;
    color: #8B0000; /* Deep red secondary button text */
    border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
    background-color: #8B0000;
    color: #FFD700;
}

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

.page-index__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a; /* Dark background for hero */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Slightly dim the background image */
}

.page-index__hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-index__hero-title {
    font-size: 3.8em;
    color: #FFD700; /* Gold title */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.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__button {
    margin: 0 15px;
}

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

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

.page-index__about-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index__about-card:hover {
    transform: translateY(-10px);
}

.page-index__about-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__about-card-title {
    font-size: 1.8em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-index__about-card-text {
    font-size: 1em;
    color: #666;
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-index__game-card {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 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: 180px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
}

.page-index__game-title {
    font-size: 1.6em;
    color: #8B0000;
    margin: 20px 0 10px;
    padding: 0 15px;
}

.page-index__game-title a {
    color: #8B0000;
    text-decoration: none;
}

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

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

.page-index__game-card .page-index__button {
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    background-color: #f8f8f8;
    padding: 80px 0;
}

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

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

.page-index__promo-card:hover {
    transform: translateY(-8px);
}

.page-index__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-index__promo-title {
    font-size: 1.7em;
    color: #8B0000;
    margin: 20px 0 10px;
    padding: 0 15px;
}

.page-index__promo-title a {
    color: #8B0000;
    text-decoration: none;
}

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

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

.page-index__promo-card .page-index__button {
    margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-index__feature-item {
    text-align: center;
    padding: 20px;
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain; /* Ensure icons fit without cropping */
}

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

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

/* Testimonials Section */
.page-index__testimonials-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 80px 0;
}

.page-index__testimonials-section .page-index__section-title {
    color: #FFD700;
}

.page-index__testimonials-section .page-index__section-intro {
    color: #f0f0f0;
}

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

.page-index__testimonial-card {
    background-color: #8B0000; /* Deep red background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-style: italic;
    color: #ffffff;
}

.page-index__testimonial-text {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-index__testimonial-author {
    font-weight: bold;
    font-style: normal;
    color: #FFD700;
}

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

.page-index__faq-item {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-index__faq-question::after {
    content: '+';
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

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

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

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

/* CTA Section */
.page-index__cta-section {
    background-color: #8B0000; /* Deep red background */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-index__cta-section .page-index__section-title {
    color: #FFD700;
}

.page-index__cta-section .page-index__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-index__cta-actions .page-index__button {
    margin: 0 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
    .page-index__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index {
        padding-top: var(--header-offset, 120px);
    }
    .page-index__hero-section {
        min-height: 500px;
        padding: 40px 20px;
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions .page-index__button {
        display: block;
        margin: 15px auto;
        width: 80%;
    }
    .page-index__section-title {
        font-size: 1.8em;
        padding-top: 20px;
    }
    .page-index__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-index__about-grid, .page-index__games-grid, .page-index__promotions-grid, .page-index__features-grid, .page-index__testimonials-grid {
        grid-template-columns: 1fr;
    }
    .page-index__about-image, .page-index__game-image, .page-index__promo-image {
        height: auto; /* Allow image height to adjust */
        max-width: 100%;
    }
    .page-index__feature-icon {
        width: 60px;
        height: 60px;
    }
    /* Mobile content images must not be smaller than 200px */
    .page-index__about-section img, 
    .page-index__games-section img, 
    .page-index__promotions-section img, 
    .page-index__why-choose-us-section img, 
    .page-index__testimonials-section img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    .page-index__cta-actions .page-index__button {
        display: block;
        margin: 15px auto;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__hero-actions .page-index__button {
        width: 100%;
    }
    .page-index__section-title {
        font-size: 1.6em;
    }
    .page-index__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index__faq-question {
        font-size: 1.2em;
    }
    .page-index__hero-container {
      padding: 20px 15px;
    }
}

/* Ensure content area images are at least 200px and responsive */
.page-index__hero-section img,
.page-index__about-section img,
.page-index__games-section img,
.page-index__promotions-section img,
.page-index__why-choose-us-section img,
.page-index__testimonials-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum display width */
    min-height: 200px; /* Minimum display height */
    object-fit: cover; /* Maintain aspect ratio */
}

/* Specific adjustment for feature icons to not conflict with global min-size */
.page-index__feature-icon {
    min-width: unset; /* Override min-width for icons */
    min-height: unset; /* Override min-height for icons */
    width: 60px;
    height: 60px;
    object-fit: contain;
}