.page-index {
    background-color: #08160F;
    color: #F2FFF6;
    font-family: Arial, sans-serif;
}

.page-index__ticker-section {
    background-color: #11A84E;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    height: 48px; /* Fixed height for ticker */
    display: flex;
    align-items: center;
}

.page-index__ticker-content {
    white-space: nowrap;
    animation: page-index__marquee 20s linear infinite;
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
}

.page-index__ticker-text {
    margin: 0;
    padding: 0 20px;
    color: #F2FFF6;
    font-size: 16px;
    font-weight: bold;
}

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

@media (prefers-reduced-motion: reduce) {
    .page-index__ticker-content {
        animation-play-state: paused;
    }
}

.page-index__hero-section {
    position: relative;
    width: 100%;
    height: 675px; /* Base height for desktop 16:9 for 1200px width */
    overflow: hidden;
    background-color: #0A4B2C; /* Deep Green for background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-index__hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-index__carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Align content to bottom */
    padding-bottom: 50px;
}

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

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

.page-index__hero-content-overlay {
    position: relative; /* Changed from absolute to relative to avoid overlay issues */
    z-index: 2; /* Ensure content is above image */
    text-align: center;
    padding: 20px;
    max-width: 90%;
    background: linear-gradient(to top, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0) 100%); /* Gradient for better text readability */
    width: 100%;
}

.page-index__hero-slogan {
    font-size: 32px;
    margin-bottom: 15px;
    color: #F2FFF6;
    font-weight: bold;
}

.page-index__jackpot-counter-wrapper {
    background: linear-gradient(#ff9500,#ff5e3a);
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #F2FFF6;
}

.page-index__jackpot-label {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.page-index__jackpot-amount {
    font-size: 38px;
    font-weight: bold;
}

.page-index__hero-subtext {
    font-size: 18px;
    margin-bottom: 25px;
    color: #A7D9B8;
}

.page-index__hero-cta-button {
    display: inline-block;
    background-color: #83a1f2;
    color: #F2FFF6;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.page-index__carousel-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #F2FFF6;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.page-index__carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.page-index__carousel-dots {
    display: flex;
}

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

.page-index__carousel-dot.active {
    background: #F2FFF6;
}

.page-index__brand-intro-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #08160F;
}

.page-index__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp as per instructions */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #F2FFF6;
}

.text-gradient {
    background: linear-gradient(90deg, #F2C14E, #FFD700, #F2C14E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.page-index__intro-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #A7D9B8;
}

.page-index__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #F2FFF6;
}

.page-index__section-description {
    font-size: 16px;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 30px auto;
    text-align: center;
    color: #A7D9B8;
}

.page-index__popular-games-section,
.page-index__category-section,
.page-index__feature-promo-section,
.page-index__winners-section,
.page-index__blog-section,
.page-index__faq-section,
.page-index__brand-bar-section {
    padding: 60px 20px;
}

.page-index__section--dark-bg {
    background-color: #08160F;
}

.page-index__game-grid,
.page-index__winner-grid,
.page-index__post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* More flexible for games */
}

.page-index__game-card {
    background-color: #11271B;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #F2FFF6;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
    border: 1px solid #2E7A4E;
}

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

.page-index__game-thumbnail {
    width: 100%;
    height: 120px; /* Consistent height for game thumbnails */
    object-fit: cover;
    border-bottom: 1px solid #2E7A4E;
    margin-bottom: 10px;
}

.page-index__game-title {
    font-size: 16px;
    font-weight: bold;
    padding: 0 10px;
}

.page-index__sports-section {
    background-image: linear-gradient(to right, #0A4B2C, #08160F);
}

.page-index__sports-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-index__sports-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__sports-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-index__sports-cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.page-index__sports-cta-button:hover {
    opacity: 0.9;
}

.page-index__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__promo-card {
    background-color: #11271B;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid #2E7A4E;
}

.page-index__card--bg-green {
    background-color: #0A4B2C;
}

.page-index__card--bg-dark {
    background-color: #11271B;
}

.page-index__promo-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-index__promo-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #A7D9B8;
}

.page-index__promo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    display: block;
}

.page-index__promo-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.page-index__winner-card {
    background-color: #11271B;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #2E7A4E;
    position: relative;
    overflow: hidden;
}

.page-index__winner-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #57E38D;
    flex-shrink: 0;
}

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

.page-index__game-name {
    font-weight: bold;
    font-size: 18px;
    color: #F2FFF6;
}

.page-index__user-date {
    font-size: 14px;
    color: #A7D9B8;
}

.page-index__won-badge {
    background: linear-gradient(#ff9500,#ff5e3a);
    color: #F2FFF6;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    position: absolute;
    bottom: 10px;
    right: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__won-amount {
    margin-left: 5px;
}

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

.page-index__post-card {
    background-color: #11271B;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2E7A4E;
    display: flex;
    flex-direction: column;
}

.page-index__post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #2E7A4E;
}

.page-index__post-title {
    font-size: 20px;
    font-weight: bold;
    margin: 15px;
    line-height: 1.4;
}

.page-index__post-title a {
    color: #F2FFF6;
    text-decoration: none;
}

.page-index__post-title a:hover {
    color: #22C768;
}

.page-index__post-excerpt {
    font-size: 15px;
    color: #A7D9B8;
    margin: 0 15px 15px;
    flex-grow: 1;
}

.page-index__view-details-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin: 0 15px 15px;
    transition: opacity 0.3s ease;
}

.page-index__view-details-button:hover {
    opacity: 0.9;
}

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

.page-index__load-more-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-index__faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__faq-item {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index__faq-question {
    display: block;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #F2FFF6;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-index__faq-question::marker {
    content: '';
}

.page-index__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #22C768;
    transition: transform 0.3s ease;
}

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

.page-index__faq-item[open] .page-index__faq-question {
    background-color: #0A4B2C;
}

.page-index__faq-answer {
    padding: 0 25px 18px;
    font-size: 16px;
    line-height: 1.6;
    color: #A7D9B8;
}

.page-index__brand-bar-section {
    text-align: center;
    padding: 40px 20px;
}

.page-index__brand-logo {
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index__hero-section {
        height: 550px;
    }
    .page-index__hero-slogan {
        font-size: 28px;
    }
    .page-index__jackpot-amount {
        font-size: 32px;
    }
    .page-index__sports-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-index__sports-text-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        height: 450px;
    }
    .page-index__hero-slogan {
        font-size: 24px;
    }
    .page-index__jackpot-amount {
        font-size: 28px;
    }
    .page-index__hero-subtext {
        font-size: 16px;
    }
    .page-index__hero-cta-button {
        padding: 10px 25px;
        font-size: 16px;
    }
    .page-index__main-title {
        font-size: clamp(24px, 5vw, 36px);
    }
    .page-index__intro-description {
        font-size: 16px;
    }
    .page-index__section-title {
        font-size: clamp(22px, 4.5vw, 32px);
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .page-index__game-thumbnail {
        height: 100px;
    }
    .page-index__game-title {
        font-size: 14px;
    }
    .page-index__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-index__winner-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-index__winner-icon {
        width: 60px;
        height: 60px;
    }
    .page-index__game-name {
        font-size: 16px;
    }
    .page-index__user-date {
        font-size: 13px;
    }
    .page-index__won-badge {
        font-size: 13px;
        padding: 6px 10px;
    }
    .page-index__post-grid {
        grid-template-columns: 1fr;
    }
    .page-index__post-thumbnail {
        height: 180px;
    }
    .page-index__post-title {
        font-size: 18px;
    }
    .page-index__post-excerpt {
        font-size: 14px;
    }
    .page-index__view-details-button {
        font-size: 13px;
        padding: 7px 12px;
    }
    .page-index__load-more-button {
        padding: 10px 25px;
        font-size: 16px;
    }
    .page-index__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-index__faq-question::after {
        right: 20px;
    }
    .page-index__faq-answer {
        font-size: 14px;
        padding: 0 20px 15px;
    }

    /* Ensure content images are responsive and do not overflow */
    .page-index__game-thumbnail, .page-index__sports-image, .page-index__promo-image, .page-index__winner-icon, .page-index__post-thumbnail, .page-index__brand-logo {
        max-width: 100%;
        height: auto;
    }

    /* Prevent horizontal scrolling */
    .page-index {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-index__hero-section {
        height: 350px;
    }
    .page-index__hero-slogan {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-index__jackpot-amount {
        font-size: 24px;
    }
    .page-index__jackpot-label {
        font-size: 14px;
    }
    .page-index__jackpot-counter-wrapper {
        padding: 8px 15px;
        margin-bottom: 10px;
    }
    .page-index__hero-subtext {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .page-index__hero-cta-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    .page-index__carousel-arrow {
        font-size: 20px;
        padding: 8px 12px;
    }
    .page-index__main-title {
        font-size: clamp(20px, 6vw, 28px);
    }
    .page-index__intro-description {
        font-size: 15px;
    }
    .page-index__section-title {
        font-size: clamp(20px, 5.5vw, 28px);
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .page-index__game-thumbnail {
        height: 80px;
    }
    .page-index__game-title {
        font-size: 13px;
    }
    .page-index__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-index__winner-grid {
        grid-template-columns: 1fr;
    }
    .page-index__winner-card {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .page-index__winner-info {
        align-items: center;
    }
    .page-index__won-badge {
        position: static;
        margin-top: 10px;
    }
    .page-index__post-thumbnail {
        height: 150px;
    }
}