/* style/index.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07;
    --background-white: #FFFFFF;
    --black: #000000;
}

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

/* 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 space for fixed header */
    background-color: var(--primary-color); /* Brand primary color for hero background */
    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;
    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;
    transition: transform 0.3s ease-in-out;
}

.page-index__hero-image img:hover {
    transform: scale(1.03);
}

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

.page-index__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-index__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-login); /* Use login color for primary CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

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

/* General Section Styling */
.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-index__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.page-index__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
}

/* Dark Background Sections */
.page-index__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-index__dark-section .page-index__btn-link {
    color: var(--text-light);
}

/* Intro Section */
.page-index__intro-content {
    font-size: 1.1em;
    text-align: justify;
    line-height: 1.8;
    color: var(--text-dark);
}

.page-index__intro-content p {
    margin-bottom: 20px;
}

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

/* Quick Access Section */
.page-index__access-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index__access-links a {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-index__btn-primary:hover {
    background: #1e87b8;
    border-color: #1e87b8;
    transform: translateY(-2px);
}

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

.page-index__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Games & Services Section */
.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-index__game-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-card .page-index__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 15px 15px 15px;
}

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

.page-index__game-card .page-index__card-title a:hover {
    color: #1e87b8;
}

.page-index__game-card p {
    font-size: 0.95em;
    color: #555;
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-index__btn-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__btn-link:hover {
    background: #1e87b8;
}

/* Promotions Section */
.page-index__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.page-index__promotion-card img {
    width: 100%;
    
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-index__promotion-card .page-index__card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-index__promotion-card .page-index__card-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__promotion-card .page-index__card-title a:hover {
    color: var(--secondary-color);
}

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

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

/* Security & Support Section */
.page-index__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-index__security-item {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__security-item img {
    
    
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.page-index__security-item .page-index__card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.page-index__security-item .page-index__card-title a:hover {
    color: #1e87b8;
}

.page-index__security-item p {
    font-size: 0.9em;
    color: #555;
}

.page-index__contact-cta {
    text-align: center;
}

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

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

.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;
    color: var(--text-dark);
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px !important;
    opacity: 1;
}

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

.page-index__faq-item.active .page-index__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

.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: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.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(--button-login);
    transform: rotate(45deg);
}

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

.page-index__blog-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 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(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.page-index__blog-card .page-index__card-title {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0 20px 10px 20px;
}

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

.page-index__blog-card .page-index__card-title a:hover {
    color: #1e87b8;
}

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

.page-index__blog-date {
    display: block;
    font-size: 0.85em;
    color: #888;
    padding: 0 20px 20px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__game-grid,
    .page-index__promotion-grid,
    .page-index__security-grid,
    .page-index__blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }
    .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: 2em;
        margin-bottom: 15px;
    }
    .page-index__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-index__cta-button {
        padding: 15px 35px;
        font-size: 1em;
        width: 100% !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
    }
    .page-index__container {
        padding: 40px 15px;
    }
    .page-index__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-index__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Mobile image adaptation */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index__game-card img,
    .page-index__promotion-card img,
    .page-index__blog-card img {
        
    }
    .page-index__security-item img {
        
        
    }

    /* Mobile button adaptation */
    .page-index__access-links {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__access-links a,
    .page-index__btn-primary,
    .page-index__btn-secondary,
    .page-index a[class*="button"],
    .page-index a[class*="btn"] {
        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__access-links,
    .page-index__view-all-promos,
    .page-index__contact-cta,
    .page-index__view-all-news {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__game-grid,
    .page-index__promotion-grid,
    .page-index__security-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
    }
}