/* style/index.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --link-font-color: #FFFF00;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-light-bg); /* Body background is light (#FFFFFF), so use dark text */
    background-color: var(--secondary-color);
}

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

.page-index__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index__section-title--light {
    color: var(--text-on-dark-bg);
}

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

.page-index__section-subtitle--light {
    color: var(--text-on-dark-bg);
}

.page-index__text-block {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 30px;
}

.page-index__text-block p {
    margin-bottom: 15px;
}

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

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--register-button-color);
    color: var(--link-font-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

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

/* 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%, #017439aa 100%);
    color: var(--text-on-dark-bg);
}

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

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

.page-index__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-on-dark-bg);
}

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

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

.page-index__cta-button--login {
    background: var(--login-button-color);
}

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

/* Module 1: Introduction Section */
.page-index__introduction-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

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

.page-index__quick-link-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-on-dark-bg);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-index__quick-link-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.25);
}

.page-index__quick-link-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-on-dark-bg);
}

.page-index__quick-link-description {
    font-size: 16px;
    opacity: 0.9;
}

/* Module 3: Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-index__game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-index__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

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

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

.page-index__game-description {
    font-size: 15px;
    color: var(--text-on-light-bg);
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

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

.page-index__promo-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__promo-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.25);
}

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

.page-index__promo-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--text-on-dark-bg);
}

.page-index__promo-title a {
    color: var(--text-on-dark-bg);
    text-decoration: none;
}

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

.page-index__promo-description {
    font-size: 15px;
    color: var(--text-on-dark-bg);
    padding: 0 20px 20px;
    opacity: 0.9;
    flex-grow: 1;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-index__feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-index__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-index__feature-card img {
    
    
    margin: 0 auto 20px;
    object-fit: contain;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-index__feature-description {
    font-size: 15px;
    color: var(--text-on-light-bg);
    flex-grow: 1;
}

/* Module 6: FAQ Section */
.page-index__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-index__faq-list {
    margin-top: 40px;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.page-index__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-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 {
    transform: rotate(45deg); /* Change to - for visual effect */
    color: var(--register-button-color);
}

.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 20px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-on-light-bg);
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

.page-index__faq-answer p {
    margin-bottom: 10px;
}

/* Module 7: Blog Section */
.page-index__blog-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-index__blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-index__blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

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

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

.page-index__blog-meta {
    font-size: 13px;
    color: #666;
    margin: 0 20px 10px;
}

.page-index__blog-summary {
    font-size: 15px;
    color: var(--text-on-light-bg);
    padding: 0 20px;
    flex-grow: 1;
}

.page-index__blog-readmore {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-on-dark-bg);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* General Image Styling */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
    /* min-width and min-height already set on specific image elements */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 40px;
    }

    .page-index__section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .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: 16px;
        margin-bottom: 30px;
    }

    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    
    .page-index__container {
        padding: 0 15px;
    }

    .page-index__section-title {
        font-size: 26px;
    }

    .page-index__section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-index__introduction-section,
    .page-index__quick-access-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__security-support-section,
    .page-index__faq-section,
    .page-index__blog-section {
        padding: 50px 0;
    }

    .page-index__link-grid,
    .page-index__game-showcase,
    .page-index__promo-grid,
    .page-index__features-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index__quick-link-title,
    .page-index__game-title,
    .page-index__promo-title,
    .page-index__feature-title,
    .page-index__blog-title {
        font-size: 18px;
    }

    .page-index__quick-link-card,
    .page-index__game-card,
    .page-index__promo-card,
    .page-index__feature-card,
    .page-index__blog-card {
        padding: 20px;
    }

    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__blog-card img {
        
    }

    .page-index__feature-card img {
        
        
    }
    
    /* FAQ specific mobile styles */
    .page-index__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-index__faq-question h3 {
        font-size: 16px;
        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 images and containers are responsive */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-index__section,
    .page-index__card,
    .page-index__container,
    .page-index__hero-container,
    .page-index__link-grid,
    .page-index__game-showcase,
    .page-index__promo-grid,
    .page-index__features-grid,
    .page-index__blog-grid,
    .page-index__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right handled by .page-index__container */
    }
}

/* Ensure no image filters are used */
.page-index img {
    filter: none;
}