/* style/index.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-color-light: #ffffff;
    --bg-color-dark: #017439;
    --btn-register-bg: #C30808;
    --btn-login-bg: #C30808;
    --btn-register-text: #FFFF00;
    --btn-login-text: #FFFF00;
    --border-color: #e0e0e0;
}

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

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

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

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

/* Common button styles */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-index__btn-primary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Background colors for sections */
.page-index__light-bg {
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
}

.page-index__dark-section {
    background-color: var(--bg-color-dark);
    color: var(--text-color-light);
}

.page-index__dark-section .page-index__section-title,
.page-index__dark-section .page-index__section-description {
    color: var(--text-color-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); /* Ensures content is not hidden by fixed header */
    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;
    width: 100%;
}

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

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

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

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

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

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

.page-index__cta-button {
    flex-shrink: 0;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    min-width: 200px;
}

.page-index__btn-register {
    background-color: var(--btn-register-bg);
    color: var(--btn-register-text);
}

.page-index__btn-register:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-login {
    background-color: var(--btn-login-bg);
    color: var(--btn-login-text);
}

.page-index__btn-login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-index__intro-section {
    padding: 80px 0;
    text-align: center;
}

.page-index__intro-features {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
    margin-bottom: 50px;
}

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

.page-index__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__feature-item strong {
    color: var(--primary-color);
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* Quick Access Section */
.page-index__quick-access-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-index__access-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-color-light);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index__access-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-index__access-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-index__access-card p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-index__game-card {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-index__game-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-index__game-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-index__game-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    text-align: center;
}

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

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

.page-index__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-index__promo-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-index__promo-card p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Safety & Support Section */
.page-index__safety-support-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-index__info-card {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__info-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-index__info-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-index__info-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 0;
    text-align: center;
}

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

.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;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 5px 5px;
    color: var(--text-color-light);
}

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

.page-index__faq-question:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.page-index__faq-question:active {
    background: rgba(255, 255, 255, 0.4);
}

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

.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--text-color-light);
    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(--text-color-light);
    transform: rotate(45deg);
}

/* Blog Section */
.page-index__blog-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-index__blog-card {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-index__blog-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-index__blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index__blog-card h3 a:hover {
    text-decoration: underline;
}

.page-index__blog-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

.page-index__view-all-news {
    margin-top: 50px;
    text-align: center;
}

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

@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: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        min-width: unset;
        width: 100% !important;
    }
    .page-index__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-index__container,
    .page-index__intro-section,
    .page-index__quick-access-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__safety-support-section,
    .page-index__faq-section,
    .page-index__blog-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-index__access-card,
    .page-index__game-card,
    .page-index__promo-card,
    .page-index__info-card,
    .page-index__blog-card {
        padding: 20px;
    }

    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-description {
        font-size: 0.95em;
    }
    .page-index__intro-features,
    .page-index__access-links-grid,
    .page-index__game-categories-grid,
    .page-index__promo-grid,
    .page-index__safety-support-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-index__faq-question h3 {
        font-size: 1em;
        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;
    }
}