/* style/index.css */

/* Base styles for the page-index content */
.page-index {
    font-family: 'Arial', sans-serif;
    color: #f5e6d0; /* Light text on dark background */
    background-color: #0A192F; /* Main dark background */
    line-height: 1.6;
    padding-bottom: 50px; /* Space for sticky elements or just general padding */
}

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

.page-index__section {
    padding: 60px 0;
    text-align: center;
}

.page-index__section:nth-of-type(even) {
    background-color: #1a2a44; /* Slightly lighter dark background for contrast */
}

.page-index__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Auxiliary gold color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__section-description {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__btn--primary {
    background-color: #FFD700; /* Gold background */
    color: #0A192F; /* Dark text */
    border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-index__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
    margin-left: 15px;
}

.page-index__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-index__btn--outline {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 10px 20px;
    font-size: 1em;
}

.page-index__btn--outline:hover {
    background-color: #FFD700;
    color: #0A192F;
}

.page-index__btn--text {
    background: none;
    border: none;
    color: #FFD700;
    text-decoration: underline;
    padding: 5px 10px;
    font-size: 0.95em;
}

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

.page-index__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #FFD700;
    color: #0A192F;
    border: 1px solid #FFD700;
}

.page-index__btn--small:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

/* Hero Section */
.page-index__hero-section {
    background: linear-gradient(135deg, #0A192F 0%, #1a2a44 100%);
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-index__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('[GALLERY:bg:abstract_pattern,dark_blue,gold_accents]'); /* Abstract background pattern */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

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

.page-index__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-index__hero-subtitle {
    font-size: 1.4em;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index__hero-image-wrapper {
    margin-top: 50px;
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* About 18win1 Section */
.page-index__about-18win1 {
    background-color: #0A192F;
    text-align: left;
}

.page-index__about-18win1 .page-index__section-title {
    text-align: center;
    color: #FFD700;
}

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

.page-index__content-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-index__content-text strong {
    color: #FFD700;
}

.page-index__content-image {
    text-align: center;
}

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

/* Why Choose Section */
.page-index__why-choose {
    background-color: #1a2a44;
}

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

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

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

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px #FFD700);
}

.page-index__feature-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-index__feature-card p {
    color: #e0e0e0;
    font-size: 1em;
}

.page-index__cta-center {
    margin-top: 50px;
}

/* Featured Games Section */
.page-index__featured-games {
    background-color: #0A192F;
}

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

.page-index__game-card {
    background-color: #1a2a44;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    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.5);
}

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

.page-index__game-title {
    font-size: 1.4em;
    color: #FFD700;
    margin: 20px 0 10px;
    padding: 0 15px;
}

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

/* How to Start Section */
.page-index__how-to-start {
    background-color: #1a2a44;
}

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

.page-index__step-card {
    background-color: #0A192F;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
}

.page-index__step-number {
    background-color: #FFD700;
    color: #0A192F;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: -55px auto 20px;
    border: 3px solid #0A192F;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-index__step-card:first-child .page-index__step-number {
    margin-top: 0; /* Adjust for first card if needed */
}

.page-index__step-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

/* Promotions Section */
.page-index__promotions {
    background-color: #0A192F;
}

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

.page-index__promo-card {
    background-color: #1a2a44;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    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.5);
}

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

.page-index__promo-title {
    font-size: 1.4em;
    color: #FFD700;
    margin: 20px 0 10px;
    padding: 0 15px;
}

.page-index__promo-card p {
    color: #e0e0e0;
    font-size: 0.95em;
    padding: 0 15px 20px;
}

/* Safety & Responsibility Section */
.page-index__safety-responsibility {
    background-color: #1a2a44;
}

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

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

.page-index__safety-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px #FFD700);
}

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

.page-index__safety-item p {
    color: #e0e0e0;
    font-size: 1em;
}

/* Testimonials Section */
.page-index__testimonials {
    background-color: #0A192F;
}

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

.page-index__testimonial-card {
    background-color: #1a2a44;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: left;
    position: relative;
    border-left: 5px solid #FFD700;
}

.page-index__testimonial-card::before {
    content: '“';
    font-size: 4em;
    color: #FFD700;
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.7;
    line-height: 0.8;
}

.page-index__testimonial-text {
    font-style: italic;
    color: #f5e6d0;
    font-size: 1.05em;
    margin-bottom: 15px;
    padding-left: 40px;
}

.page-index__testimonial-author {
    font-weight: bold;
    color: #FFD700;
    font-size: 1em;
    text-align: right;
}

/* Detail Pages Section */
.page-index__detail-pages {
    background-color: #1a2a44;
}

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

.page-index__detail-card {
    background-color: #0A192F;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__detail-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

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

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

.page-index__detail-description {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Final CTA Section */
.page-index__final-cta {
    background-color: #0A192F;
    padding: 80px 0;
}

.page-index__final-cta-content {
    background: linear-gradient(90deg, #1a2a44, #0A192F);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-index__final-cta .page-index__section-title {
    color: #FFD700;
    margin-bottom: 15px;
}

.page-index__final-cta .page-index__section-description {
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-subtitle {
        font-size: 1.2em;
    }
    .page-index__section-title {
        font-size: 2.2em;
    }
    .page-index__content-grid {
        grid-template-columns: 1fr;
    }
    .page-index__content-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-subtitle {
        font-size: 1em;
    }
    .page-index__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__btn--secondary {
        margin-left: 0;
    }
    .page-index__section {
        padding: 40px 0;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__features-grid, .page-index__game-grid, .page-index__steps-grid, .page-index__promotions-grid, .page-index__safety-content, .page-index__testimonials-grid, .page-index__detail-grid {
        grid-template-columns: 1fr;
    }
    .page-index__step-number {
        margin-top: -35px; /* Adjust for smaller cards */
    }
    .page-index__final-cta-content {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-subtitle {
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.6em;
    }
    .page-index__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-index__feature-card, .page-index__game-card, .page-index__step-card, .page-index__promo-card, .page-index__safety-item, .page-index__testimonial-card, .page-index__detail-card {
        padding: 20px;
    }
    .page-index__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        margin: -45px auto 15px;
    }
}