/* style/index.css */
:root {
    --primary-color: #CC0000; /* W88 Red */
    --secondary-color: #FFD700; /* Gold */
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --light-grey-bg: #f1f3f5;
    --border-color: #e0e0e0;
}

.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body bg */
}

/* Fixed Header Spacing */
.page-index__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

/* HERO Section */
.page-index__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #8B0000); /* Darker red gradient for hero bg */
    color: var(--text-color-dark-bg);
}

.page-index__hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 12px;
    margin-top: -80px; /* Overlap with image slightly */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-dark-bg);
}

.page-index__highlight-text {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin: 0 10px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    text-align: center;
}

.page-index__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-index__btn-primary:hover {
    background: #FFC107;
    color: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__btn-secondary {
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
    background: #8B0000;
    color: var(--text-color-dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
    padding: 60px 20px;
    background: var(--light-grey-bg);
    color: var(--text-color-light-bg);
}

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

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

.page-index__section-description {
    font-size: 18px;
    color: var(--text-color-light-bg);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__game-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-index__game-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card-segment {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.page-index__game-card-segment:not(:first-child) {
    border-left: 1px solid var(--border-color);
}

.page-index__segment-1 {
    min-width: 140px;
    max-width: 140px;
    padding-left: 0;
    position: relative;
    justify-content: flex-start;
    padding-top: 10px;
}

.page-index__rank-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #ffffff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-index__rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold */
}

.page-index__rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0); /* Silver */
}

.page-index__rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333); /* Bronze */
}

.page-index__game-icon {
    max-width: 100px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 25px; /* Adjust for badge position */
}

.page-index__segment-2 {
    flex: 1;
    text-align: center;
}

.page-index__game-name {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
    text-align: center;
}

.page-index__game-name-link {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index__game-name-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-index__game-description {
    font-size: 15px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-index__game-description a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.page-index__game-description a:hover {
    color: #004499;
    text-decoration: underline;
}

.page-index__segment-3 {
    min-width: 180px;
    max-width: 180px;
    text-align: center;
}

.page-index__game-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
}

.page-index__stars {
    color: var(--secondary-color);
    margin-right: 5px;
    font-weight: bold;
}

.page-index__rating-number {
    color: var(--primary-color);
    font-weight: bold;
}

.page-index__promotion-text {
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.page-index__promotion-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.page-index__promotion-link:hover {
    color: #004499;
    text-decoration: underline;
}

.page-index__hot-badge {
    background: var(--primary-color);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.page-index__segment-4 {
    min-width: 220px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-index__btn-download, .page-index__btn-review {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Brand Review Content Section */
.page-index__review-content-section {
    padding: 60px 20px;
    background: var(--light-grey-bg);
    color: var(--text-color-light-bg);
}

.page-index__review-content-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-index__review-content-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    line-height: 1.7;
}

.page-index__review-content-card .page-index__section-title {
    font-size: 32px;
    margin-bottom: 24px;
}

.page-index__review-body h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-index__review-body p {
    font-size: 16px;
    color: var(--text-color-light-bg);
    margin-bottom: 16px;
}

.page-index__review-body p a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.page-index__review-body p a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Homepage Introduction Section */
.page-index__intro-section {
    padding: 60px 20px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-index__intro-section .page-index__section-title {
    color: var(--secondary-color);
}

.page-index__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-index__intro-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.page-index__intro-image {
    flex: 1;
    max-width: 50%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Core Games/Services Section */
.page-index__games-services-section {
    padding: 60px 20px;
    background: var(--light-grey-bg);
    color: var(--text-color-light-bg);
}

.page-index__games-services-section .page-index__section-title {
    color: var(--primary-color);
}

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

.page-index__game-card-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-index__game-card-description {
    font-size: 16px;
    color: var(--text-color-light-bg);
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 60px 20px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-index__promotions-section .page-index__section-title {
    color: var(--secondary-color);
}

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

.page-index__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

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

.page-index__promo-card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__promo-card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index__promo-card-description {
    font-size: 16px;
    color: var(--text-color-dark-bg);
    margin-bottom: 20px;
}

/* Latest Blog Section */
.page-index__blog-section {
    padding: 60px 20px;
    background: var(--light-grey-bg);
    color: var(--text-color-light-bg);
}

.page-index__blog-section .page-index__section-title {
    color: var(--primary-color);
}

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

.page-index__blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__blog-card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-index__blog-card-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-card-link:hover {
    color: #8B0000;
    text-decoration: underline;
}

.page-index__blog-card-description {
    font-size: 15px;
    color: var(--text-color-light-bg);
    margin-bottom: 15px;
}

.page-index__read-more-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index__read-more-link:hover {
    color: #004499;
    text-decoration: underline;
}

.page-index__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 40px;
    }
    .page-index__hero-description {
        font-size: 18px;
    }
    .page-index__section-title {
        font-size: 30px;
    }
    .page-index__section-description {
        font-size: 16px;
    }
    .page-index__game-card {
        flex-wrap: wrap;
        padding: 15px;
    }
    .page-index__game-card-segment {
        padding: 10px;
    }
    .page-index__segment-1 {
        min-width: 100px;
        max-width: 100px;
        padding-top: 0;
    }
    .page-index__game-icon {
        margin-top: 15px;
        max-width: 80px;
    }
    .page-index__rank-badge {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .page-index__game-name {
        font-size: 20px;
    }
    .page-index__game-description {
        font-size: 14px;
    }
    .page-index__segment-3 {
        min-width: 150px;
        max-width: 150px;
    }
    .page-index__segment-4 {
        min-width: 180px;
        max-width: 180px;
    }
    .page-index__btn-download, .page-index__btn-review {
        font-size: 14px;
        padding: 10px 12px;
    }
    .page-index__intro-image {
        max-width: 40%;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: 10px !important; /* Mobile: Adjust for mobile fixed header height */
        padding-bottom: 40px;
    }
    .page-index__hero-container {
        padding: 0 15px;
    }
    .page-index__hero-content {
        margin-top: -60px;
        padding: 20px;
    }
    .page-index__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-index__hero-description {
        font-size: 16px;
    }
    .page-index__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        margin: 0 5px 10px;
        min-width: unset;
        width: calc(50% - 10px);
    }

    .page-index__section-title {
        font-size: 28px;
    }
    .page-index__section-description {
        font-size: 15px;
    }

    .page-index__game-card {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    .page-index__game-card-segment {
        width: 100%;
        padding: 10px 0;
        border-left: none !important;
        text-align: center;
    }
    .page-index__game-card-segment:not(:first-child) {
        border-top: 1px solid var(--border-color);
    }
    .page-index__segment-1 {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        min-width: unset;
        max-width: 100%;
        padding-top: 10px;
        position: relative;
    }
    .page-index__rank-badge {
        position: static;
        margin-right: 10px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .page-index__game-icon {
        margin-top: 0;
        max-width: 80px;
    }
    .page-index__segment-2 {
        padding-top: 15px;
    }
    .page-index__game-name {
        font-size: 22px;
    }
    .page-index__game-description {
        font-size: 14px;
    }
    .page-index__segment-3 {
        min-width: unset;
        max-width: 100%;
        padding-top: 15px;
    }
    .page-index__segment-4 {
        min-width: unset;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding-top: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-index__btn-download, .page-index__btn-review {
        width: calc(50% - 5px) !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        min-width: auto !important;
    }

    .page-index__review-content-card {
        padding: 24px 20px;
    }
    .page-index__review-content-card .page-index__section-title {
        font-size: 24px;
    }
    .page-index__review-body h3 {
        font-size: 20px;
    }
    .page-index__review-body p {
        font-size: 15px;
    }

    .page-index__grid-layout {
        flex-direction: column;
        gap: 30px;
    }
    .page-index__intro-image {
        max-width: 100%;
    }
    .page-index__intro-content p {
        font-size: 16px;
    }

    .page-index__game-cards-grid, .page-index__promo-grid, .page-index__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index__game-card-image, .page-index__promo-card-image, .page-index__blog-card-image {
        height: 180px;
    }
    .page-index__game-card-title, .page-index__promo-card-title, .page-index__blog-card-title {
        font-size: 20px;
    }
    .page-index__game-card-description, .page-index__promo-card-description, .page-index__blog-card-description {
        font-size: 15px;
    }

    /* Mobile specific 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__promo-card, .page-index__blog-card, .page-index__game-card-item, .page-index__review-content-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__game-leaderboard-section, .page-index__review-content-section, .page-index__intro-section, .page-index__games-services-section, .page-index__promotions-section, .page-index__blog-section {
        padding-left: 0;
        padding-right: 0;
    }
}