/* style/index.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #0d0d0d;
    --border-color: #e0e0e0;
}

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

.page-index__section-padding {
    padding: 80px 0;
}

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

.page-index__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.page-index__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__section-description--light {
    color: var(--text-color-light);
    font-size: 18px;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-index__cta-button--primary:hover {
    background: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-color-light);
    border: 2px solid var(--secondary-color);
}

.page-index__cta-button--secondary:hover {
    background: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.page-index__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-index__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.page-index__hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-color-light);
}

.page-index__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-index__hero-description {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-index__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Module 1: Intro Section */
.page-index__intro-section {
    background-color: var(--background-light);
}

.page-index__intro-content p {
    font-size: 17px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__intro-content p strong {
    color: var(--secondary-color);
}

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

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

.page-index__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index__feature-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index__feature-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

/* Module 2: Quick Links Section */
.page-index__quick-links-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-index__quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.page-index__quick-link-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: var(--text-color-light);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.page-index__quick-link-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.page-index__link-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-index__link-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-index__quick-link-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Module 3: Games Section */
.page-index__games-section {
    background-color: var(--background-light);
}

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

.page-index__game-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index__game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index__game-title {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
}

.page-index__game-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__game-title a:hover {
    color: var(--primary-color);
}

.page-index__game-card p {
    font-size: 16px;
    color: #555555;
    padding: 0 20px 20px 20px;
    line-height: 1.6;
}

.page-index__game-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 25px;
    transition: background-color 0.3s ease;
}

.page-index__game-button:hover {
    background: darken(var(--primary-color), 10%);
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

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

.page-index__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
}

.page-index__promo-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__promo-title a:hover {
    color: var(--text-color-light);
}

.page-index__promo-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px 20px 20px;
    line-height: 1.6;
}

.page-index__promo-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 25px;
    transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
    background: darken(var(--primary-color), 10%);
}

.page-index__view-all-promos {
    text-align: center;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
    background-color: var(--background-light);
}

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

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

.page-index__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__security-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index__security-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index__security-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

.page-index__contact-cta {
    text-align: center;
    margin-top: 40px;
}

.page-index__contact-cta p {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-color-dark);
}

/* Module 6: FAQ Section */
.page-index__faq-section {
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.page-index__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-index__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-index__faq-item.active .page-index__faq-answer p {
    color: #555555;
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-index__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-index__faq-question:active {
    background: #eeeeee;
}

.page-index__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none;
}

.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-index__faq-app-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.page-index__faq-app-button:hover {
    background: darken(var(--secondary-color), 10%);
}

/* Module 7: Blog Section */
.page-index__blog-section {
    background-color: var(--background-light);
}

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

.page-index__blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-index__blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index__blog-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
}

.page-index__blog-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
    color: var(--primary-color);
}

.page-index__blog-card p {
    font-size: 16px;
    color: #555555;
    padding: 0 15px 15px 15px;
    line-height: 1.6;
}

.page-index__blog-read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px 20px 15px;
    transition: color 0.3s ease;
}

.page-index__blog-read-more:hover {
    color: var(--secondary-color);
}

.page-index__view-all-blog {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__section-title {
        font-size: 32px;
    }
    .page-index__hero-title {
        font-size: 40px;
    }
    .page-index__hero-description {
        font-size: 20px;
    }
    .page-index__intro-features,
    .page-index__games-grid,
    .page-index__promotions-grid,
    .page-index__security-grid,
    .page-index__blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index__section-padding {
        padding: 60px 0;
    }
    .page-index__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-index__section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }

    /* HERO Section Mobile */
    .page-index__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-index__hero-description {
        font-size: 17px;
        margin-bottom: 30px;
    }
    .page-index__hero-image-wrapper img {
        border-radius: 4px;
    }
    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-index__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    /* General Image & Container Mobile Adaptations */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Remove min-width for mobile */
        min-height: unset; /* Remove min-height for mobile */
    }
    .page-index__section, .page-index__card, .page-index__container,
    .page-index__intro-features, .page-index__quick-links-grid, .page-index__games-grid,
    .page-index__promotions-grid, .page-index__security-grid, .page-index__blog-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-index__intro-features,
    .page-index__games-grid,
    .page-index__promotions-grid,
    .page-index__security-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index__feature-item, .page-index__game-card, .page-index__promo-card, .page-index__security-item, .page-index__blog-card {
        padding: 20px;
    }
    .page-index__feature-title, .page-index__game-title, .page-index__promo-title, .page-index__security-title, .page-index__blog-title {
        font-size: 20px;
    }
    .page-index__quick-link-item {
        min-height: 150px;
    }
    .page-index__link-icon {
        font-size: 40px;
    }
    .page-index__link-title {
        font-size: 18px;
    }

    /* FAQ Mobile */
    .page-index__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-index__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-index__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-index__faq-answer {
        padding: 0 15px;
    }
    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all buttons adapt to screen width */
    .page-index__game-button, .page-index__promo-button, .page-index__faq-app-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__view-all-promos, .page-index__view-all-blog, .page-index__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}