.page-index {
    font-family: 'Arial', sans-serif;
    color: #FFFFFF;
    background-color: #017439; /* Main brand color for overall background */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

.page-index__ticker-section {
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker for contrast */
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 40px; /* Fixed height for ticker */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.page-index__ticker-wrapper {
    display: inline-block;
    animation: page-index__ticker-scroll 20s linear infinite;
    padding: 0 100%; /* Ensure seamless loop */
}

.page-index__ticker-text {
    margin: 0;
    color: #FFFF00; /* Register/Login font color for ticker */
    font-size: 1.1rem;
    text-transform: uppercase;
}

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

.page-index__hero-section {
    width: 100%;
    background: #100224; /* Deep purple background for hero */
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px; /* Padding below content */
}

.page-index__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/5; /* Wider aspect ratio for hero */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-index__hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-index__hero-tagline {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-index__jackpot-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 15px 25px;
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #ff9500, #ff5e3a) 1;
    border-radius: 15px;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.4);
}

.page-index__jackpot-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #FFD700; /* Gold color for Jackpot label */
}

.page-index__jackpot-amount {
    font-size: clamp(1.8rem, 7vw, 3.5rem); /* Responsive font size for jackpot */
    font-weight: 900;
    color: #FFFFFF;
    word-break: break-all;
    line-height: 1.1;
}

.page-index__hero-sub {
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 30px;
}

.page-index__btn-cta {
    display: inline-block;
    background-color: #83a1f2; /* Blue pill button */
    color: #FFFFFF;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.page-index__btn-cta:hover {
    background-color: #688cec;
}

.page-index__intro-section {
    padding: 40px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.page-index__main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* H1 responsive font size */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index__description {
    font-size: 1.1rem;
    color: #E0E0E0;
    max-width: 800px;
    margin: 0 auto;
}

.page-index__section-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.page-index__section-description {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #E0E0E0;
}

.text-gradient {
    background: linear-gradient(to right, #FFD700, #FFA500); /* Gold to Orange gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-index__popular-games-section,
.page-index__category-section,
.page-index__featured-promotions-section,
.page-index__winners-section,
.page-index__top-winners-section,
.page-index__blog-section,
.page-index__faq-section,
.page-index__brand-footer-section {
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker background for sections */
    margin-top: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Alternating background for category sections */
.page-index__category-section:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.4);
}

.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid for games */
    gap: 15px;
    margin-top: 30px;
}

.page-index__game-tile {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.page-index__game-tile img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3; /* Consistent aspect ratio for game images */
    object-fit: cover;
    display: block;
}

.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;
    text-align: center;
}

.page-index__btn--primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: none;
}

.page-index__btn--primary:hover {
    background-color: #A00707;
}

.page-index__btn--secondary {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.page-index__btn--secondary:hover {
    background-color: #005C2C;
    border-color: #FFD700;
}

.page-index__btn--text {
    color: #FFD700; /* Gold color for text links */
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
}

.page-index__btn--text:hover {
    text-decoration: underline;
}

.page-index__category-sports {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-index__sports-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

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

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

.page-index__promo-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700; /* Gold color for promo titles */
}

.page-index__promo-description {
    font-size: 1rem;
    color: #E0E0E0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__app-mockup {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

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

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

.page-index__winner-game-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFD700;
}

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

.page-index__winner-game {
    font-weight: bold;
    font-size: 1.1rem;
    color: #FFD700;
}

.page-index__winner-user,
.page-index__winner-date {
    font-size: 0.9rem;
    color: #B0B0B0;
}

.page-index__won-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background-color: #C30808; /* Register/Login color */
    padding: 5px 10px;
    border-radius: 5px;
    color: #FFFF00;
    font-weight: bold;
    text-align: right;
}

.page-index__won-label {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.page-index__won-value {
    font-size: 1.2rem;
    white-space: nowrap;
}

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

.page-index__blog-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.page-index__blog-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.page-index__blog-card h4 {
    padding: 15px 15px 0;
    margin: 0;
}

.page-index__blog-card h4 a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD700; /* Gold color for blog titles */
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.page-index__blog-card h4 a:hover {
    text-decoration: underline;
}

.page-index__blog-excerpt {
    font-size: 0.95rem;
    color: #E0E0E0;
    padding: 0 15px 15px;
    flex-grow: 1;
}

.page-index__blog-card .page-index__btn--text {
    padding: 0 15px 15px;
    align-self: flex-start;
}

.page-index__load-more-container {
    text-align: center;
    margin-top: 40px;
}

.page-index__accordion {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__accordion-item {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.page-index__accordion-summary {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: #FFD700;
    background-color: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    list-style: none; /* Hide default marker */
}

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

.page-index__accordion-summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.page-index__accordion-content {
    padding: 15px 20px;
    font-size: 1rem;
    color: #E0E0E0;
}

.page-index__brand-footer-section {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__brand-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 849px) {
    .page-index__hero-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-index__hero-visual img {
        aspect-ratio: 4/3;
        margin-bottom: 0;
    }

    .page-index__hero-content {
        padding: 20px;
    }

    .page-index__jackpot-counter {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 300px;
    }

    .page-index__jackpot-amount {
        font-size: clamp(1.5rem, 6.5vw, 2.5rem);
    }

    .page-index__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

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

    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .page-index__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-index__winner-grid {
        grid-template-columns: 1fr;
    }

    .page-index__post-grid {
        grid-template-columns: 1fr;
    }
}

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

    .page-index__ticker-text {
        font-size: 1rem;
    }

    .page-index__main-title {
        font-size: clamp(1.3rem, 5.5vw, 2rem);
    }

    .page-index__section-title {
        font-size: 1.6rem;
    }

    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .page-index__winner-card {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .page-index__winner-info {
        align-items: center;
    }

    .page-index__won-amount {
        width: 100%;
        margin-top: 10px;
        align-items: center;
    }
}

@media (max-width: 549px) {
    .page-index__game-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    }

    .page-index__winner-grid {
        grid-template-columns: 1fr; /* 1 column for smaller mobile */
    }

    .page-index__main-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .page-index__section-title {
        font-size: 1.4rem;
    }
}

/* Ensure content area images are not too small */
.page-index img:not(.page-index__winner-game-icon) {
    min-width: 200px; /* Applies to all images except specific small icons */
    min-height: 200px;
}

/* Override for specific small icons that are allowed */
.page-index__winner-game-icon {
    min-width: unset;
    min-height: unset;
}