/* style/index.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #007bff; /* A slightly darker blue for hover/active states */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0;
    --btn-login: #EA7C07;
    --border-light: #e0e0e0;
}

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

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

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

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

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-align: center;
    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 transparent;
}

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

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

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

.page-index__btn-center {
    text-align: center;
    margin-top: 50px;
}

.page-index__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__btn-link:hover {
    background: var(--secondary-color);
}

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

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

.page-index__dark-section .page-index__section-title,
.page-index__dark-section .page-index__section-description,
.page-index__dark-section h3,
.page-index__dark-section p {
    color: var(--text-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;
}

.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;
    color: var(--text-light);
    line-height: 1.2;
}

.page-index__hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Introduction Section */
.page-index__introduction-section {
    padding: 80px 0;
}

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

.page-index__intro-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    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__intro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-index__intro-item p {
    font-size: 16px;
    color: #555555;
}

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

.page-index__quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

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

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

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

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

.page-index__quick-access-image {
    text-align: center;
    margin-top: 40px;
}

.page-index__quick-access-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

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

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

.page-index__game-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    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__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__game-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index__game-card p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-index__games-image {
    text-align: center;
    margin-top: 60px;
}

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

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

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

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

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

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

.page-index__promo-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.page-index__promotions-image {
    text-align: center;
    margin-top: 60px;
}

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

/* Security & Support Section */
.page-index__security-support-section {
    padding: 80px 0;
}

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

.page-index__security-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    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__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__security-heading {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-index__security-image {
    text-align: center;
    margin-top: 60px;
}

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

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

.page-index__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 5px 5px;
    color: var(--text-light);
}

.page-index__faq-answer p {
    color: var(--text-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;
}

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-light);
}

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

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

.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: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-dark);
    overflow: hidden;
    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.15);
}

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

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

.page-index__blog-card p {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 40px;
    }
    .page-index__section-title {
        font-size: 30px;
    }
    .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: 32px;
    }
    .page-index__hero-description {
        font-size: 16px;
    }
    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .page-index__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__container {
        padding: 20px 15px;
    }
    .page-index__section-title {
        font-size: 26px;
    }
    .page-index__section-description {
        font-size: 15px;
    }

    .page-index__intro-grid,
    .page-index__quick-access-grid,
    .page-index__games-grid,
    .page-index__promotions-grid,
    .page-index__security-support-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-index__intro-heading,
    .page-index__access-title,
    .page-index__game-title,
    .page-index__promo-title,
    .page-index__security-heading,
    .page-index__blog-card h3 {
        font-size: 20px;
    }

    .page-index__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 15px;
        font-size: 15px;
    }

    .page-index__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-index__faq-question h3 {
        font-size: 16px;
        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;
    }

    /* Mobile image adaptation */
    .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-section,
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index__hero-image img,
    .page-index__quick-access-image img,
    .page-index__games-image img,
    .page-index__promotions-image img,
    .page-index__security-image img,
    .page-index__blog-card img {
        border-radius: 4px;
    }
}

/* Ensure content area images are not too small */
.page-index img {
    min-width: 200px;
    min-height: 200px;
}

/* Override min-size for blog thumbnails to allow smaller display, but still large source images */
.page-index__blog-card img {
    min-width: unset;
    min-height: unset;
}