/* style/index.css */
.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFFFFF; /* Default text color for dark background */
    background-color: #0A1A3A; /* Main background color */
}

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

.page-index__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .page-index__grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-index__grid--reverse {
        grid-template-columns: 1fr 1fr;
        .page-index__image-responsive { order: 2; }
        .page-index__register-content { order: 1; }
    }
}

.page-index__text-center {
    text-align: center;
}

.page-index__mt-40 {
    margin-top: 40px;
}

.page-index__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Accent color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index__section-subtitle {
    font-size: 1.2em;
    color: #E0E0E0;
    text-align: center;
    margin-bottom: 40px;
}

.page-index__hero-section {
    background: linear-gradient(135deg, #0A1A3A 0%, #3a0a5a 100%); /* Dark blue to slightly purple-dark for depth */
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-index__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,gaming,lights,dark_blue]') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.page-index__hero-section .page-index__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
}

.page-index__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-index__hero-description {
    font-size: 1.3em;
    color: #E0E0E0;
    margin-bottom: 40px;
    max-width: 800px;
}

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

.page-index__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
}

.page-index__btn--primary {
    background-color: #FFD700;
    color: #0A1A3A;
    border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-index__btn--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A1A3A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-index__btn--text {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-index__btn--text:hover {
    color: #e6c200;
}

.page-index__arrow {
    transition: transform 0.3s ease;
}

.page-index__btn--text:hover .page-index__arrow {
    transform: translateX(5px);
}

.page-index__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-index__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-index__hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none; /* Hide on small screens */
}

@media (min-width: 768px) {
    .page-index__hero-image {
        display: block;
    }
    .page-index__hero-section {
        padding: 100px 0;
    }
    .page-index__hero-title {
        font-size: 4.5em;
    }
}

/* About Section */
.page-index__about-section {
    padding: 80px 0;
    background-color: #0A1A3A;
}

.page-index__about-content h2 {
    text-align: left;
}

.page-index__about-content p {
    margin-bottom: 15px;
    color: #C0C0C0;
}

.page-index__about-content strong {
    color: #FFD700;
}

.page-index__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-index__features-section {
    padding: 80px 0;
    background-color: #1A2A4A;
}

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

.page-index__feature-card {
    background-color: #0A1A3A;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
}

.page-index__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__feature-card p {
    color: #C0C0C0;
    font-size: 0.95em;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: #0A1A3A;
}

.page-index__promotions-content h2 {
    text-align: left;
}

.page-index__promotions-content p {
    color: #C0C0C0;
    margin-bottom: 15px;
}

.page-index__promotions-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-index__promotions-content ul li {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #E0E0E0;
}

.page-index__promotions-content .page-index__btn {
    margin-right: 15px;
    margin-top: 10px;
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #1A2A4A;
}

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

.page-index__game-card {
    background-color: #0A1A3A;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #FFD700;
}

.page-index__game-card .page-index__card-title {
    margin-top: 20px;
    margin-bottom: 10px;
}

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

.page-index__game-card .page-index__btn {
    margin-bottom: 20px;
}

/* Testimonials Section */
.page-index__testimonials-section {
    padding: 80px 0;
    background-color: #0A1A3A;
}

.page-index__testimonials-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px; /* For scrollbar */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.page-index__testimonial-card {
    flex: 0 0 300px; /* Fixed width for cards */
    background-color: #1A2A4A;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    scroll-snap-align: start;
}

.page-index__testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #FFD700;
}

.page-index__testimonial-text {
    font-style: italic;
    color: #E0E0E0;
    margin-bottom: 15px;
}

.page-index__testimonial-author {
    font-weight: bold;
    color: #FFD700;
}

/* Download & Register Sections */
.page-index__download-register-section, .page-index__register-guide-section {
    padding: 80px 0;
    background-color: #1A2A4A;
}

.page-index__download-content h2, .page-index__register-content h2 {
    text-align: left;
}

.page-index__download-content p, .page-index__register-content p {
    color: #C0C0C0;
    margin-bottom: 15px;
}

.page-index__download-content ul, .page-index__register-content ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-index__download-content ul li {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #E0E0E0;
}

.page-index__register-content ol li {
    counter-increment: step-counter;
    margin-bottom: 10px;
    color: #E0E0E0;
    position: relative;
    padding-left: 40px;
}

.page-index__register-content ol li::before {
    content: counter(step-counter);
    background-color: #FFD700;
    color: #0A1A3A;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
}

/* Why Choose Section */
.page-index__why-choose-section {
    padding: 80px 0;
    background-color: #0A1A3A;
}

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

.page-index__why-item {
    background-color: #1A2A4A;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__why-item h3 {
    font-size: 1.6em;
    color: #FFD700;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-index__why-item p {
    color: #C0C0C0;
    font-size: 0.95em;
}

.page-index__why-icon {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 7px rgba(255, 215, 0, 0.7));
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 0;
    background-color: #1A2A4A;
}

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

.page-index__faq-item {
    background-color: #0A1A3A;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
    color: #FFD700;
    font-size: 1.3em;
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-index__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-index__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-index__faq-answer {
    color: #C0C0C0;
    padding: 0 25px 20px;
    margin: 0;
    display: none;
    font-size: 1em;
}

.page-index__faq-question.active + .page-index__faq-answer {
    display: block;
}

/* CTA Section */
.page-index__cta-section {
    background: linear-gradient(90deg, #0A1A3A, #3A0A5A); /* Dark blue to slightly purple-dark */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-index__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,gaming,lights,dark_blue]') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.page-index__cta-section .page-index__container {
    position: relative;
    z-index: 1;
}

.page-index__cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.page-index__cta-description {
    font-size: 1.2em;
    color: #E0E0E0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__cta-section .page-index__btn--text {
    margin-top: 20px;
    display: block;
}

.page-index__cta-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin-top: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Detail Pages Section */
.page-index__detail-pages-section {
    padding: 80px 0;
    background-color: #0A1A3A;
}

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

.page-index__detail-card {
    background-color: #1A2A4A;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

.page-index__detail-card h3 a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-index__detail-card h3 a:hover {
    color: #e6c200;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__btn {
        width: 100%;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-subtitle {
        font-size: 1em;
    }
    .page-index__cta-title {
        font-size: 1.8em;
    }
    .page-index__cta-description {
        font-size: 1em;
    }
    .page-index__promotions-content .page-index__btn {
        margin-right: 0;
        width: 100%;
        margin-bottom: 15px;
    }
    .page-index__testimonial-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__cta-title {
        font-size: 1.5em;
    }
    .page-index__container {
        padding: 0 15px;
    }
    .page-index__hero-section, .page-index__about-section, .page-index__features-section, .page-index__promotions-section, .page-index__games-section, .page-index__testimonials-section, .page-index__download-register-section, .page-index__register-guide-section, .page-index__why-choose-section, .page-index__faq-section, .page-index__cta-section, .page-index__detail-pages-section {
        padding: 50px 0;
    }
}

/* Ensure contrast for all text */
.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
    color: #FFD700; /* Gold on dark blue background */
}

.page-index p, .page-index li {
    color: #E0E0E0; /* Light gray on dark blue background */
}

.page-index__btn--primary {
    background-color: #FFD700;
    color: #0A1A3A; /* Dark blue on gold background */
}

.page-index__btn--secondary {
    background-color: transparent;
    color: #FFD700;
    border-color: #FFD700;
}

.page-index__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A1A3A;
}

.page-index__btn--text {
    color: #FFD700;
}

.page-index__faq-question {
    color: #FFD700;
}

.page-index__faq-answer {
    color: #C0C0C0;
}

.page-index__detail-card h3 a {
    color: #FFD700;
}

.page-index__detail-card p {
    color: #C0C0C0;
}