/* style/index.css */
/* Reset & Base */
.page-index {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text on dark background */
    background-color: #0A1931; /* Primary dark background */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.page-index-section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-index-section-title .page-index-highlight {
    color: #fff; /* White for keyword highlight */
}

.page-index-text-content {
    font-size: 1.1em;
    color: #e0e0e0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-index-center-content {
    text-align: center;
}

/* Buttons */
.page-index-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    border: none;
}

.page-index-btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #0A1931; /* Dark text on gold */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index-btn-primary:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-index-btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700; /* Gold border */
}

.page-index-btn-secondary:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #0A1931; /* Dark text on gold */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-index-btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-index-btn-large {
    padding: 15px 35px;
    font-size: 1.25em;
}

.page-index-text-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-index-text-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Hero Section */
.page-index-hero {
    background: linear-gradient(135deg, #0A1931 0%, #1a3a6b 100%); /* Dark blue gradient */
    padding: 100px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-index-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract_pattern,dark_blue,gold_accents,subtle_texture]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-index-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding: 20px;
}

.page-index-hero-title {
    font-size: 3.5em;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-index-hero-description {
    font-size: 1.3em;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-hero-image {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-index-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* About Section */
.page-index-about {
    padding: 80px 0;
    background-color: #0A1931;
}

/* Features Section */
.page-index-features {
    padding: 80px 0;
    background-color: #1a2c4e; /* Slightly lighter dark blue */
}

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

.page-index-feature-item {
    background-color: #0A1931;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index-feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index-feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-index-feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index-feature-description {
    font-size: 1em;
    color: #c0c0c0;
}

/* Game Categories Section */
.page-index-game-categories {
    padding: 80px 0;
    background-color: #0A1931;
}

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

.page-index-category-card {
    background-color: #1a2c4e;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index-category-card h3 {
    font-size: 1.4em;
    color: #FFD700;
    padding: 15px 20px 5px;
    margin: 0;
    font-weight: 700;
}

.page-index-category-card p {
    font-size: 0.95em;
    color: #c0c0c0;
    padding: 0 20px 20px;
    margin: 0;
}

/* How-To Section */
.page-index-how-to {
    padding: 80px 0;
    background-color: #1a2c4e;
}

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

.page-index-step-item {
    background-color: #0A1931;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index-step-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-index-step-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-index-step-description {
    font-size: 0.95em;
    color: #c0c0c0;
}

/* Promotions Section */
.page-index-promotions {
    padding: 80px 0;
    background-color: #0A1931;
}

.page-index-promo-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 30px auto 50px auto;
    text-align: left;
}

.page-index-promo-list li {
    background-color: #1a2c4e;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #e0e0e0;
    border-left: 5px solid #FFD700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index-promo-list li strong {
    color: #FFD700;
}

/* Download App Section */
.page-index-download-app {
    padding: 80px 0;
    background-color: #1a2c4e;
}

.page-index-download-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-index-download-text {
    flex: 1;
    min-width: 300px;
}

.page-index-download-text .page-index-section-title {
    text-align: left;
}

.page-index-download-text .page-index-text-content {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index-download-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-index-app-img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Why Choose Section */
.page-index-why-choose {
    padding: 80px 0;
    background-color: #0A1931;
}

/* FAQ Section */
.page-index-faq {
    padding: 80px 0;
    background-color: #1a2c4e;
}

.page-index-accordion {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-index-accordion-item {
    background-color: #0A1931;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index-accordion-header {
    width: 100%;
    background-color: #1a2c4e;
    color: #FFD700;
    padding: 18px 25px;
    border: none;
    text-align: left;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-index-accordion-header:hover {
    background-color: #2b4572;
}

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

.page-index-accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-index-accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #e0e0e0;
}

.page-index-accordion-content p {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.page-index-accordion-content .page-index-text-link {
    display: block;
    margin-bottom: 15px;
    text-align: left;
}

/* Detail Pages Section */
.page-index-detail-pages {
    padding: 80px 0;
    background-color: #0A1931;
}

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

.page-index-detail-card {
    background-color: #1a2c4e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
}

.page-index-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index-detail-card .page-index-detail-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index-detail-card .page-index-detail-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-detail-card .page-index-detail-title a:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-index-detail-card .page-index-detail-description {
    font-size: 0.95em;
    color: #c0c0c0;
    margin-bottom: 25px;
}

/* Final Call to Action */
.page-index-cta-final {
    padding: 100px 0;
    background: linear-gradient(45deg, #0A1931, #1a3a6b);
    text-align: center;
}

.page-index-cta-final .page-index-section-title {
    color: #fff;
    margin-bottom: 25px;
}

.page-index-cta-final .page-index-text-content {
    color: #e0e0e0;
    margin-bottom: 40px;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hero {
        flex-direction: column;
        padding: 80px 0;
    }

    .page-index-hero-title {
        font-size: 2.8em;
    }

    .page-index-hero-description {
        font-size: 1.1em;
    }

    .page-index-hero-image {
        margin-top: 40px;
    }

    .page-index-download-flex {
        flex-direction: column;
        text-align: center;
    }

    .page-index-download-text .page-index-section-title,
    .page-index-download-text .page-index-text-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-index-section-title {
        font-size: 2em;
    }

    .page-index-hero-title {
        font-size: 2.2em;
    }

    .page-index-hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-btn {
        width: 80%;
        max-width: 300px;
    }

    .page-index-feature-grid,
    .page-index-category-grid,
    .page-index-steps,
    .page-index-detail-grid {
        grid-template-columns: 1fr;
    }

    .page-index-promo-list {
        padding: 0 10px;
    }

    .page-index-accordion {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .page-index-section-title {
        font-size: 1.8em;
    }

    .page-index-hero-title {
        font-size: 1.8em;
    }

    .page-index-hero-description {
        font-size: 1em;
    }

    .page-index-btn {
        font-size: 1em;
        padding: 10px 20px;
    }

    .page-index-feature-item,
    .page-index-category-card,
    .page-index-step-item,
    .page-index-detail-card {
        padding: 20px;
    }

    .page-index-feature-title,
    .page-index-category-card h3,
    .page-index-step-title,
    .page-index-detail-card .page-index-detail-title {
        font-size: 1.2em;
    }

    .page-index-accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-index-accordion-content {
        padding: 0 20px;
    }
}