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

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

.page-index__highlight {
    color: #FFD700; /* Accent color */
}

.page-index__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

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

.page-index__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

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

.page-index__btn--primary:hover {
    background-color: #e6c200;
    color: #000;
    transform: translateY(-2px);
}

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

.page-index__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
    transform: translateY(-2px);
}

.page-index__btn--tertiary {
    background-color: #1a3a60;
    color: #FFD700;
    border: 2px solid #1a3a60;
}

.page-index__btn--tertiary:hover {
    background-color: #2a4a70;
    color: #FFD700;
    transform: translateY(-2px);
}

.page-index__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-index__btn--large {
    padding: 15px 40px;
    font-size: 1.2em;
}

/* Hero Section */
.page-index__hero {
    background: linear-gradient(135deg, #0A192F 0%, #1a3a60 100%);
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.page-index__hero-content {
    max-width: 600px;
    text-align: left;
    z-index: 1;
    padding-left: 20px;
}

.page-index__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #f5e6d0;
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #c0c0c0;
}

.page-index__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__hero-image-wrapper {
    flex-shrink: 0;
    width: 500px;
    height: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-right: 20px;
}

.page-index__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

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

.page-index__feature-item:hover {
    transform: translateY(-5px);
}

.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.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-index__feature-text {
    color: #c0c0c0;
    font-size: 1em;
}

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

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

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

.page-index__game-card:hover {
    transform: translateY(-5px);
}

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-index__game-text {
    color: #c0c0c0;
    padding: 0 20px 20px;
}

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

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

.page-index__promotions-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-index__promotions-text {
    flex: 1;
    text-align: left;
}

.page-index__promotions-text .page-index__section-title,
.page-index__promotions-text .page-index__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index__promotions-text .page-index__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-index__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    color: #f5e6d0;
    font-size: 1.1em;
}

.page-index__promo-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-index__promo-list li::before {
    content: '✓';
    color: #FFD700;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.page-index__promotions-image-wrapper {
    flex: 1;
    min-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__promotions-image {
    width: 100%;
    height: auto;
    display: block;
}

/* App Download Section */
.page-index__app-download {
    padding: 80px 0;
    background-color: #0D213B;
}

.page-index__app-download-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-direction: row-reverse; /* Image on left, text on right */
}

.page-index__app-text {
    flex: 1;
    text-align: left;
}

.page-index__app-text .page-index__section-title,
.page-index__app-text .page-index__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index__app-text .page-index__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-index__app-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-index__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__app-image {
    width: 100%;
    height: auto;
    display: block;
}

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

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

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

.page-index__detail-item:hover {
    transform: translateY(-5px);
}

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

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

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

.page-index__detail-description {
    color: #c0c0c0;
    margin-bottom: 20px;
}

/* Call to Action Bottom */
.page-index__cta-bottom {
    background: linear-gradient(90deg, #FFD700, #e6c200);
    padding: 60px 0;
    text-align: center;
}

.page-index__cta-bottom .page-index__section-title {
    color: #0A192F;
}

.page-index__cta-bottom .page-index__section-title::after {
    background-color: #0A192F;
}

.page-index__cta-bottom .page-index__section-description {
    color: #0A192F;
    margin-bottom: 30px;
}

.page-index__cta-bottom .page-index__btn--primary {
    background-color: #0A192F;
    color: #FFD700;
    border-color: #0A192F;
}

.page-index__cta-bottom .page-index__btn--primary:hover {
    background-color: #1a3a60;
    color: #FFD700;
}

/* Floating Ad Menu */
.page-index__floating-ad-menu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.page-index__floating-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #1a3a60;
    color: #f5e6d0;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    min-width: 120px;
}

.page-index__floating-btn:hover {
    background-color: #FFD700;
    color: #0A192F;
    transform: translateX(-5px);
}

.page-index__floating-btn:hover .page-index__floating-icon {
    filter: invert(1);
}

.page-index__floating-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(20deg); /* Goldish tint for icons */
    transition: filter 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px;
    }

    .page-index__hero-content {
        padding-left: 0;
        text-align: center;
    }

    .page-index__hero-title {
        font-size: 3em;
    }

    .page-index__hero-image-wrapper {
        width: 100%;
        max-width: 500px;
        height: 350px;
        margin-right: 0;
    }

    .page-index__promotions-inner,
    .page-index__app-download-inner {
        flex-direction: column;
        text-align: center;
    }

    .page-index__promotions-text,
    .page-index__app-text {
        text-align: center;
    }

    .page-index__promotions-text .page-index__section-title,
    .page-index__promotions-text .page-index__section-description,
    .page-index__app-text .page-index__section-title,
    .page-index__app-text .page-index__section-description {
        text-align: center;
    }

    .page-index__promotions-text .page-index__section-title::after,
    .page-index__app-text .page-index__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .page-index__app-download-inner {
        flex-direction: column;
    }

    .page-index__app-image-wrapper {
        order: -1; /* Move image above text for app section */
        margin-bottom: 30px;
    }

    .page-index__floating-ad-menu {
        right: 10px;
        bottom: 10px;
        gap: 10px;
    }

    .page-index__floating-btn {
        padding: 8px 12px;
        min-width: unset;
        width: 50px; /* Make buttons smaller on mobile */
        height: 50px;
        justify-content: center;
    }

    .page-index__floating-btn span {
        display: none;
    }

    .page-index__floating-icon {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.5em;
    }

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

    .page-index__section-title {
        font-size: 2em;
    }

    .page-index__hero-buttons {
        justify-content: center;
    }

    .page-index__promotions-inner,
    .page-index__app-download-inner {
        gap: 30px;
    }

    .page-index__floating-ad-menu {
        flex-direction: row;
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        right: unset;
        width: fit-content;
        padding: 10px;
        background-color: rgba(10, 25, 47, 0.9);
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .page-index__floating-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }

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

    .page-index__hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-index__btn {
        width: 80%;
    }

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

    .page-index__floating-ad-menu {
        gap: 8px;
        padding: 8px;
    }

    .page-index__floating-btn {
        width: 40px;
        height: 40px;
    }
}