:root {
    --page-index-main-bg: #140C0C;
    --page-index-card-bg: #2A1212;
    --page-index-text-main: #FFF1E8;
    --page-index-border-color: #6A1E1E;
    --page-index-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --page-index-gold-color: #F3C54D;
    --page-index-deep-red: #7E0D0D;
    --page-index-hero-cta-blue: #83a1f2;
    --page-index-hero-cta-blue-hover: #688cec;
    --page-index-jackpot-gradient: linear-gradient(#ff9500,#ff5e3a);
}

.page-index {
    font-family: sans-serif;
    background-color: var(--page-index-main-bg);
    color: var(--page-index-text-main);
    line-height: 1.6;
}

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

.page-index__ticker-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    box-sizing: border-box;
}

.page-index__ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.page-index__ticker-icon {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--page-index-gold-color);
}

.page-index__marquee {
    display: inline-block;
    animation: page-index__marquee-animation 30s linear infinite;
}

.page-index__marquee-text {
    margin: 0;
    padding: 0;
}

@keyframes page-index__marquee-animation {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small padding to avoid being flush with header */
}

.page-index__hero-carousel {
    position: relative;
    width: 100%;
    height: 600px; /* Default height for desktop */
    overflow: hidden;
}

.page-index__carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.page-index__carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
    border-radius: 10px;
    max-width: 600px;
}

.page-index__hero-slogan {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__jackpot-counter {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__jackpot-label {
    display: block;
    font-size: 0.6em;
    font-weight: normal;
}

.page-index__hero-subtext {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.page-index__hero-cta-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-index__hero-cta-btn:hover {
    background-color: var(--page-index-hero-cta-blue-hover) !important;
}

.page-index__carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 15px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-index__carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.page-index__carousel-control--prev {
    left: 10px;
}

.page-index__carousel-control--next {
    right: 10px;
}

.page-index__carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.page-index__dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-index__dot--active {
    background-color: var(--page-index-gold-color);
}

/* Intro Section */
.page-index__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(to right, var(--page-index-gold-color), var(--page-index-button-gradient));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
}

.page-index__description {
    font-size: 1.1em;
}

/* Games Section */
.page-index__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__section-description {
    font-size: 1em;
    margin-bottom: 40px;
}

.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.page-index__game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: var(--page-index-card-bg);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-image {
    width: 100%;
    height: 120px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--page-index-border-color);
}

.page-index__game-name {
    margin-top: 10px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
}

/* Category Section (reusing game grid) */
.page-index__category-section .page-index__game-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.page-index__sports-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.page-index__sports-image {
    flex: 1 1 45%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
}

.page-index__sports-text {
    flex: 1 1 45%;
    min-width: 200px;
}

.page-index__sub-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-index__cta-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.page-index__cta-btn:hover {
    opacity: 0.9;
}

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

.page-index__promo-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-index__promo-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-index__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
}

.page-index__promo-description {
    font-size: 1em;
    margin-bottom: 25px;
}

.page-index__promo-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.page-index__promo-btn:hover {
    opacity: 0.9;
}

/* Winners Section */
.page-index__winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-index__winner-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.page-index__winner-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-index__winner-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-index__game-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.page-index__user-id, .page-index__win-date {
    font-size: 0.9em;
    opacity: 0.8;
}

.page-index__win-amount {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Blog Section */
.page-index__blog-section {
    padding-bottom: 70px;
}

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

.page-index__post-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--page-index-border-color);
    min-width: 200px;
}

.page-index__post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-index__post-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-index__post-title a:hover {
    color: var(--page-index-gold-color) !important;
}

.page-index__post-excerpt {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-index__read-more {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.page-index__read-more:hover {
    opacity: 0.8;
}

.page-index__load-more-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: opacity 0.3s ease;
}

.page-index__load-more-btn:hover {
    opacity: 0.9;
}

/* FAQ Section */
.page-index__accordion {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    list-style: none;
}

.page-index__accordion-summary::-webkit-details-marker {
    display: none;
}

.page-index__faq-question {
    margin: 0;
    font-size: 1em;
    flex-grow: 1;
}

.page-index__accordion-icon {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-index__accordion-item[open] .page-index__accordion-icon {
    transform: rotate(45deg);
}

.page-index__accordion-content {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
}

/* Brand Strip */
.page-index__brand-logo {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__hero-carousel {
        height: 550px;
    }
    .page-index__hero-slogan {
        font-size: 2em;
    }
    .page-index__jackpot-counter {
        font-size: 1.5em;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .page-index__category-section .page-index__game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .page-index__post-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .page-index__winner-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index__hero-carousel {
        height: 500px;
    }
    .page-index__hero-slogan {
        font-size: 1.8em;
    }
    .page-index__jackpot-counter {
        font-size: 1.3em;
        padding: 8px 15px;
    }
    .page-index__hero-cta-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-index__section-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .page-index__game-image {
        height: 100px;
    }
    .page-index__category-section .page-index__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-index__sports-content {
        flex-direction: column;
    }
    .page-index__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-index__winner-grid {
        grid-template-columns: 1fr;
    }
    .page-index__post-grid {
        grid-template-columns: 1fr;
    }
    .page-index__post-image {
        height: 180px;
    }
    .page-index__ticker-icon {
        font-size: 1em;
        margin-right: 10px;
    }
    .page-index__marquee-text {
        font-size: 0.9em;
    }
    .page-index__hero-image, .page-index__game-image, .page-index__sports-image, .page-index__promo-image, .page-index__post-image, .page-index__winner-icon {
        max-width: 100%;
        height: auto;
    }
    .page-index__winner-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-carousel {
        height: 400px;
    }
    .page-index__hero-slogan {
        font-size: 1.5em;
    }
    .page-index__jackpot-counter {
        font-size: 1.1em;
        padding: 6px 12px;
    }
    .page-index__hero-subtext {
        font-size: 1em;
    }
    .page-index__hero-cta-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-index__game-image {
        height: 80px;
    }
    .page-index__category-section .page-index__game-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .page-index__post-image {
        height: 150px;
    }
    .page-index__winner-card {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }
    .page-index__winner-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .page-index__winner-info {
        align-items: center;
    }
    .page-index__win-amount {
        position: static;
        margin-top: 15px;
    }
    .page-index__accordion-summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-index__accordion-content {
        padding: 15px 20px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-index__marquee {
        animation-play-state: paused;
    }
    .page-index__carousel-inner {
        transition: none;
    }
}