/* style/index.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
}

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

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

.page-index__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    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(--primary-color);
    border-radius: 2px;
}

.page-index__section-description {
    text-align: center;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* 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); /* Ensure header offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, #004d2a 100%); /* Darker green gradient */
    color: var(--text-light);
    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 {
    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: 900;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__btn-register {
    background: var(--register-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-color);
}

.page-index__btn-register:hover {
    background: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__btn-login {
    background: var(--login-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--login-color);
    margin-left: 20px;
}

.page-index__btn-login:hover {
    background: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-index__intro-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-index__intro-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__intro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-index__intro-item p {
    font-size: 16px;
    color: var(--text-dark);
}

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

.page-index__quick-access-section .page-index__section-title {
    color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-title::after {
    background-color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-description {
    color: var(--text-light);
}

.page-index__access-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
}

.page-index__access-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-index__access-link img {
    
    
    margin-bottom: 15px;
    object-fit: contain;
    filter: brightness(1.2); /* Slightly brighten icons on dark background */
}

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

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

.page-index__game-card {
    background-color: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index__game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-index__game-card-content {
    padding: 25px;
}

.page-index__game-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 25px 10px 25px;
}

.page-index__game-card p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 25px 20px 25px;
}

.page-index__game-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 25px 25px 25px;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 50px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__game-link:hover {
    background-color: #004d2a;
}

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

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

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

.page-index__promotions-section .page-index__section-description {
    color: var(--text-light);
}

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

.page-index__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__promotion-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-index__promotion-card p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 25px 20px 25px;
}

.page-index__promotion-link {
    display: inline-block;
    background-color: var(--register-color);
    color: var(--register-login-font-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 25px 25px 25px;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 50px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__promotion-link:hover {
    background-color: #a30606;
}

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

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

.page-index__security-cs-item {
    text-align: center;
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-index__security-cs-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index__security-cs-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-index__security-cs-item p {
    font-size: 16px;
    color: var(--text-dark);
}

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

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

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

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    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;
}

.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: 28px;
    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: 30px;
    height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
    transform: rotate(45deg);
    color: var(--register-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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: var(--background-light);
    color: var(--text-dark);
}

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

.page-index__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* 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;
}

.page-index__blog-card {
    background-color: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-index__blog-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 25px 10px 25px;
}

.page-index__blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
    color: #004d2a;
}

.page-index__blog-excerpt {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 25px 20px 25px;
    min-height: 72px; /* Ensure consistent card height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-index__blog-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 25px 25px 25px;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 50px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__blog-link:hover {
    background-color: #004d2a;
}

/* Call to Action Section */
.page-index__call-to-action {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-index__call-to-action .page-index__section-title {
    color: var(--text-light);
}

.page-index__call-to-action .page-index__section-title::after {
    background-color: var(--text-light);
}

.page-index__call-to-action .page-index__section-description {
    color: var(--text-light);
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    .page-index__hero-description {
        font-size: 20px;
    }

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

    .page-index__section-description {
        font-size: 16px;
    }
}

@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: 36px;
        margin-bottom: 15px;
    }

    .page-index__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        margin-left: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-index__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index__intro-section, .page-index__quick-access-section, 
    .page-index__games-section, .page-index__promotions-section, 
    .page-index__security-cs-section, .page-index__faq-section, 
    .page-index__blog-section, .page-index__call-to-action {
        padding: 40px 0;
    }

    .page-index__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-index__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-index__intro-grid, .page-index__access-links-grid, 
    .page-index__games-grid, .page-index__promotions-grid, 
    .page-index__security-cs-grid, .page-index__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index__access-link {
        padding: 20px;
        font-size: 16px;
    }

    .page-index__access-link img {
        
        
    }

    .page-index__game-title, .page-index__promotion-title, 
    .page-index__security-cs-title, .page-index__blog-title {
        font-size: 20px;
        margin: 15px 20px 8px 20px;
    }

    .page-index__game-card p, .page-index__promotion-card p, 
    .page-index__security-cs-item p, .page-index__blog-excerpt {
        font-size: 15px;
        margin: 0 20px 15px 20px;
    }

    .page-index__game-link, .page-index__promotion-link, .page-index__blog-link {
        padding: 8px 15px;
        font-size: 15px;
        margin: 0 20px 20px 20px;
    }

    .page-index__faq-question {
        padding: 15px 20px;
    }

    .page-index__faq-question h3 {
        font-size: 16px;
    }

    .page-index__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }

    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px 20px !important;
    }

    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 30px;
    }

    .page-index__hero-description {
        font-size: 16px;
    }

    .page-index__cta-button {
        font-size: 16px;
        padding: 10px 25px;
    }

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

    .page-index__section-description {
        font-size: 14px;
    }
}