.page-index {
    background-color: #0A0A0A;
    color: #FFF6D6;
    font-family: Arial, sans-serif;
}

.page-index__ticker-section {
    background-color: #111111;
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid #3A2A12;
}

.page-index__ticker-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index__ticker-icon {
    color: #F2C14E;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.page-index__ticker-text-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 24px; /* Ensure consistent height for scrolling text */
}

.page-index__ticker-text {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: ticker-scroll 25s linear infinite;
    margin: 0;
    font-size: 0.9em;
    line-height: 24px;
}

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

.page-index__hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top spacing for the first section */
}

.page-index__carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #100224; /* Dark background for carousel */
}

.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 the bottom */
    padding-bottom: 50px;
    box-sizing: border-box;
}

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

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

.page-index__carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); /* Gradient for readability */
    width: 100%;
    box-sizing: border-box;
}

.page-index__carousel-slogan {
    color: #FFD36B;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__jackpot-counter {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(#ff9500,#ff5e3a);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 94, 58, 0.4);
}

.page-index__jackpot-label {
    color: #FFF6D6;
    font-size: 1.1em;
    margin-right: 10px;
    font-weight: 600;
}

.page-index__jackpot-amount {
    color: #FFF6D6;
    font-size: 2.5em;
    font-weight: 900;
    letter-spacing: 1px;
}

.page-index__carousel-subtext {
    color: #FFF6D6;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.page-index__carousel-cta {
    display: inline-block;
    background-color: #83a1f2;
    color: #FFF6D6;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-index__carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFF6D6;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.page-index__carousel-button--prev {
    left: 20px;
}

.page-index__carousel-button--next {
    right: 20px;
}

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

.page-index__carousel-button--prev::before {
    content: '<';
}

.page-index__carousel-button--next::before {
    content: '>';
}

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

.page-index__carousel-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__carousel-dot--active {
    background-color: #F2C14E;
}

.page-index__brand-intro {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-index__main-title {
    font-size: clamp(2em, 3vw, 2.5em); /* Using clamp for responsive h1 */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF6D6;
}

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

.page-index__intro-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #FFF6D6;
}

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

.page-index__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: #FFF6D6;
}

.page-index__popular-games,
.page-index__category-section,
.page-index__featured-promo,
.page-index__hot-winners,
.page-index__top-winners,
.page-index__blog-posts,
.page-index__faq-section {
    padding: 60px 20px;
}

.page-index__popular-games {
    background-color: #0A0A0A;
}

.page-index__category-section--slots,
.page-index__category-section--table,
.page-index__top-winners {
    background-color: #111111;
}

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

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

.page-index__game-card {
    background-color: #111111;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFF6D6;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    border: 1px solid #3A2A12;
}

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

.page-index__game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #3A2A12;
    min-width: 200px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
}

.page-index__game-name {
    display: block;
    padding: 15px 10px 5px;
    font-weight: bold;
    font-size: 1.1em;
}

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

.page-index__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-index__sports-content {
    flex: 1;
}

.page-index__sports-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__sports-cta {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

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

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

.page-index__promo-card {
    background-color: #111111;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid #3A2A12;
}

.page-index__promo-title {
    color: #FFD36B;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-index__promo-description {
    color: #FFF6D6;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-index__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__promo-button {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

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

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

.page-index__winner-card {
    background-color: #111111;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    border: 1px solid #3A2A12;
    overflow: hidden;
}

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

.page-index__winner-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
}

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

.page-index__winner-user,
.page-index__winner-date {
    color: #FFF6D6;
}

.page-index__winner-amount-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(#ff9500,#ff5e3a);
    color: #FFF6D6;
    padding: 8px 15px;
    border-top-left-radius: 10px;
    text-align: center;
    font-weight: bold;
    line-height: 1;
}

.page-index__winner-won {
    display: block;
    font-size: 0.8em;
}

.page-index__winner-amount {
    display: block;
    font-size: 1.2em;
}

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

.page-index__post-card {
    background-color: #111111;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3A2A12;
    transition: transform 0.3s ease;
}

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

.page-index__post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__post-title {
    font-size: 1.4em;
    font-weight: bold;
    padding: 15px 20px 0;
}

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

.page-index__post-title a:hover {
    text-decoration: underline;
}

.page-index__post-excerpt {
    padding: 10px 20px;
    color: #FFF6D6;
    line-height: 1.5;
    font-size: 0.95em;
}

.page-index__post-link {
    display: inline-block;
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px 20px;
}

.page-index__post-link:hover {
    text-decoration: underline;
}

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

.page-index__load-more-button {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

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

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

.page-index__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index__faq-question {
    padding: 20px;
    cursor: pointer;
    display: block;
    position: relative;
    color: #FFD36B;
    font-weight: bold;
    font-size: 1.1em;
}

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

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

.page-index__faq-answer {
    padding: 0 20px 20px;
    color: #FFF6D6;
    line-height: 1.6;
    font-size: 0.95em;
}

.page-index__faq-button {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

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

.page-index__brand-strip {
    text-align: center;
    padding: 40px 20px;
    background-color: #111111;
    border-top: 1px solid #3A2A12;
}

.page-index__brand-logo {
    max-width: 300px;
    height: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 100px; /* Enforce min size */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__carousel-container {
        height: 500px;
    }
    .page-index__carousel-slogan {
        font-size: 1.8em;
    }
    .page-index__jackpot-amount {
        font-size: 2em;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .page-index__game-grid--small {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .page-index__container--flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-index__sports-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-index__carousel-container {
        height: 400px;
    }
    .page-index__carousel-slogan {
        font-size: 1.5em;
    }
    .page-index__jackpot-amount {
        font-size: 1.8em;
    }
    .page-index__carousel-cta {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-index__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em);
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__game-grid,
    .page-index__game-grid--small {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .page-index__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-index__winners-grid {
        grid-template-columns: 1fr;
    }
    .page-index__post-grid {
        grid-template-columns: 1fr;
    }
    .page-index__ticker-text {
        animation-duration: 15s; /* Faster scroll on mobile */
    }
    .page-index__carousel-image, .page-index__game-image, .page-index__sports-image, .page-index__promo-image, .page-index__post-image, .page-index__winner-icon, .page-index__brand-logo {
      max-width: 100%;
      height: auto;
    }
    /* Ensure content images are not smaller than 200px in CSS */
    .page-index__game-image, .page-index__sports-image, .page-index__promo-image, .page-index__post-image {
        min-width: 200px;
        min-height: 150px;
    }
    .page-index__winner-icon {
        min-width: 70px;
        min-height: 70px;
    }
    .page-index__brand-logo {
        min-width: 200px;
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .page-index__carousel-container {
        height: 300px;
    }
    .page-index__carousel-slogan {
        font-size: 1.2em;
    }
    .page-index__jackpot-amount {
        font-size: 1.5em;
    }
    .page-index__jackpot-counter {
        padding: 8px 15px;
    }
    .page-index__carousel-cta {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .page-index__carousel-button {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
    .page-index__carousel-button--prev {
        left: 10px;
    }
    .page-index__carousel-button--next {
        right: 10px;
    }
    .page-index__game-grid,
    .page-index__game-grid--small {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__promo-card, .page-index__winner-card, .page-index__post-card {
        padding: 15px;
    }
    .page-index__post-title {
        font-size: 1.2em;
    }
    .page-index__faq-question {
        font-size: 1em;
    }
}