.page-index {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --accent-orange-gradient: linear-gradient(#ff9500, #ff5e3a);

    color: var(--text-main);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

.page-index__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-index__section-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.page-index__btn-cta {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background: var(--btn-gradient);
    color: var(--card-bg);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 150px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.page-index__btn-cta:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-index__btn-link {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-index__btn-link:hover {
    color: var(--secondary-color);
}

.text-gradient {
    background: linear-gradient(90deg, #ff9500, #ff5e3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
}

/* Ticker Section */
.page-index__ticker-section {
    background-color: var(--primary-color);
    color: var(--card-bg);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    font-size: 0.9rem;
}

.page-index__ticker-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
}

.page-index__ticker-icon {
    margin-right: 10px;
    font-size: 1.2em;
    flex-shrink: 0;
}

.page-index__ticker-text span {
    padding-right: 50px; /* Space between repeated text */
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    background-color: #100224; /* Dark background for hero */
    padding-top: 10px; /* Small top padding */
}

.page-index__hero-carousel-desktop {
    display: none; /* Hidden by default, shown on desktop */
    position: relative;
    width: 100%;
    min-height: clamp(420px, 50vw, 800px);
    overflow: hidden;
}

.page-index__hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-index__hero-slide--active {
    opacity: 1;
}

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

.page-index__hero-content-overlay {
    position: relative;
    z-index: 10;
    color: var(--card-bg);
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-index__hero-tagline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.page-index__jackpot-counter {
    background: var(--accent-orange-gradient);
    padding: 15px 25px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 20px rgba(255, 94, 58, 0.4);
}

.page-index__jackpot-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--card-bg);
}

.page-index__jackpot-amount {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--card-bg);
    letter-spacing: 1px;
    line-height: 1;
}

.page-index__hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
}

.page-index__hero-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.page-index__hero-dots {
    display: flex;
    gap: 8px;
    margin: 0 20px;
}

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

.page-index__hero-dot--active {
    background-color: var(--card-bg);
}

.page-index__hero-prev, .page-index__hero-next {
    background: none;
    border: none;
    color: var(--card-bg);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    transition: opacity 0.3s ease;
}

.page-index__hero-prev:hover, .page-index__hero-next:hover {
    opacity: 0.7;
}

/* Mobile Hero Carousel */
.page-index__hero-carousel-mobile {
    display: flex; /* Shown by default, hidden on desktop */
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 500px; /* Minimum height for mobile hero */
}

.page-index__hero-carousel-mobile .page-index__hero-slide {
    position: static;
    opacity: 0;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    min-height: 500px;
}

.page-index__hero-carousel-mobile .page-index__hero-slide--active {
    opacity: 1;
    position: relative;
}

.page-index__hero-visual {
    width: 100%;
    aspect-ratio: 4/3;
    margin: 0;
    position: relative;
    overflow: hidden;
}

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

.page-index__hero-copy {
    background-color: #100224; /* Dark background for mobile copy */
    color: var(--card-bg);
    padding: 20px 15px 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.page-index__hero-carousel-mobile .page-index__jackpot-counter {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.page-index__hero-carousel-mobile .page-index__jackpot-amount {
    font-size: clamp(1.25rem, 6.5vw, 2.5rem);
}

.page-index__hero-carousel-mobile .page-index__btn-cta {
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
    min-height: 44px;
}

.page-index__hero-carousel-mobile .page-index__hero-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
}

/* Intro Section */
.page-index__intro-section {
    background-color: var(--card-bg);
    padding: 50px 0;
    text-align: center;
}

.page-index__main-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.page-index__description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main);
    padding: 0 10px;
}

/* Game Grids */
.page-index__popular-games-section, .page-index__category-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-index__category-section--slots {
    background-color: #f8fafd; /* Slightly different background for visual separation */
}

.page-index__category-section--table-poker {
    background-color: #f8fafd;
}

.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

.page-index__game-tile {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

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

/* Sports Section Specific */
.page-index__category-section--sports .page-index__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-index__sports-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-index__sports-content .page-index__section-title {
    text-align: left;
}

.page-index__sports-content .page-index__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

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

.page-index__sports-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Featured Promotions */
.page-index__featured-promotions-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

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

.page-index__promotion-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index__promotion-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index__promotion-description {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__promotion-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    min-width: 200px;
    min-height: 200px;
}

/* Winners Section */
.page-index__hot-winners-section, .page-index__top-casino-winners-section {
    padding: 60px 0;
    background-color: #100224;
    color: var(--card-bg);
}

.page-index__hot-winners-section .page-index__section-title,
.page-index__top-casino-winners-section .page-index__section-title {
    color: var(--card-bg);
    /* text-gradient applied in HTML */
}

.page-index__winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center;
}

.page-index__winner-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-index__winner-game-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--secondary-color);
    min-width: 70px;
    min-height: 70px;
}

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

.page-index__winner-game-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--card-bg);
    margin-bottom: 5px;
}

.page-index__winner-user, .page-index__winner-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-index__winner-amount-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-orange-gradient);
    color: var(--card-bg);
    padding: 8px 15px;
    border-top-left-radius: 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.page-index__winner-won-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.page-index__winner-amount {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Blog Section */
.page-index__blog-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-index__blog-title {
    margin-bottom: 30px;
}

.page-index__blog-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
    color: var(--primary-color);
}

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

.page-index__blog-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-index__blog-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-index__blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 20px 10px;
    line-height: 1.4;
}

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

.page-index__blog-card-title a:hover {
    color: var(--primary-color);
}

.page-index__blog-card-summary {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-index__blog-card .page-index__btn-link {
    margin: 0 20px 20px;
    align-self: flex-start;
}

.page-index__blog-load-more {
    text-align: center;
    margin-top: 50px;
}

.page-index__btn-load-more {
    background: var(--btn-gradient);
    color: var(--card-bg);
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.page-index__btn-load-more:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

/* FAQ Section */
.page-index__faq-section {
    padding: 60px 0;
    background-color: #f8fafd;
}

.page-index__accordion {
    max-width: 800px;
    margin: 0 auto;
}

.page-index__accordion-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__accordion-summary {
    display: block;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    outline: none;
}

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

.page-index__accordion-summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-index__accordion-item[open] .page-index__accordion-summary::after {
    content: '-';
    transform: rotate(180deg);
}

.page-index__accordion-content {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

/* Brand Strip */
.page-index__brand-strip {
    padding: 40px 0;
    background-color: #100224;
    text-align: center;
}

.page-index__brand-logo {
    max-width: 200px;
    height: auto;
    display: inline-block;
    min-width: 200px;
    min-height: 60px;
}

/* Responsive Styles */
@media (min-width: 850px) {
    .page-index__hero-carousel-desktop {
        display: block;
    }
    .page-index__hero-carousel-mobile {
        display: none;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .page-index__category-section--sports .page-index__container {
        flex-wrap: nowrap;
    }
    .page-index__sports-content {
        order: 1;
    }
    .page-index__sports-image {
        order: 2;
    }
    .page-index__winners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 849px) {
    .page-index__hero-carousel-desktop {
        display: none;
    }
    .page-index__hero-carousel-mobile {
        display: flex;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-index__category-section--sports .page-index__container {
        flex-direction: column;
        text-align: center;
    }
    .page-index__sports-content .page-index__section-title,
    .page-index__sports-content .page-index__section-description {
        text-align: center;
    }
    .page-index__winners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-index__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 549px) {
    .page-index__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-index__winners-grid {
        grid-template-columns: 1fr;
    }
    .page-index__winner-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-bottom: 80px; /* Make space for absolute positioned badge */
    }
    .page-index__winner-game-icon {
        margin-bottom: 10px;
    }
    .page-index__winner-amount-badge {
        width: 100%;
        left: 0;
        border-radius: 0 0 15px 15px;
        border-top-left-radius: 0;
        align-items: center;
        padding: 10px 15px;
    }
    .page-index__blog-card-image {
        height: 180px;
    }
    .page-index__promotions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index {
        overflow-x: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-index__ticker-container {
        animation-play-state: paused;
    }
    .page-index__hero-slide {
        transition: none;
    }
}