.page-index {
    background-color: #F4F7FB;
    color: #1F2D3D;
    font-family: Arial, sans-serif;
}

.page-index__ticker-section {
    background-color: #2F6BFF;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.page-index__ticker-container {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: page-index__marquee 20s linear infinite;
}

.page-index__ticker-icon {
    color: #FFFFFF;
    font-size: 1.2em;
    margin-right: 10px;
    padding-left: 20px;
}

.page-index__ticker-text {
    color: #FFFFFF;
    margin: 0;
    font-size: 0.9em;
}

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

.page-index__hero-section {
    position: relative;
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
    overflow: hidden;
    padding-top: 10px; /* Small top padding for first section */
}

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

.page-index__hero-mobile-slider {
    display: block; /* Shown by default, hidden on desktop */
    width: 100%;
    overflow: hidden;
}

.page-index__hero-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-index__hero-slide--active {
    display: flex;
}

.page-index__hero-desktop-slider .page-index__hero-slide {
    flex-direction: row;
    position: absolute;
    top: 0; left: 0;
}

.page-index__hero-desktop-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-index__hero-content-overlay {
    position: absolute;
    bottom: 10%;
    left: 10%;
    max-width: 500px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 10;
}

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

.page-index__jackpot-counter {
    background: linear-gradient(90deg, #ff9500, #ff5e3a);
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.page-index__jackpot-amount {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1px;
}

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

.page-index__btn-cta {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.page-index__btn-cta:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

.page-index__hero-mobile-slider .page-index__hero-slide {
    flex-direction: column;
    min-height: auto;
}

.page-index__hero-mobile-slider .page-index__hero-visual {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.page-index__hero-mobile-slider .page-index__hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-index__hero-mobile-slider .page-index__hero-copy {
    background-color: #100224; /* Dark background for text */
    color: #FFFFFF;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-index__hero-mobile-slider .page-index__jackpot-counter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
    box-sizing: border-box;
    padding: 12px 16px;
}

.page-index__hero-mobile-slider .page-index__jackpot-amount {
    font-size: clamp(1.25rem, 6.5vw, 2.5rem);
    line-height: 1.2;
    word-break: break-all;
    overflow-wrap: anywhere;
}

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

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

.page-index__main-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(to right, #ff9500, #ff5e3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.page-index__intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #1F2D3D;
}

.page-index__hot-games,
.page-index__category-section,
.page-index__feature-promos,
.page-index__hot-winners,
.page-index__top-winners,
.page-index__blog-section,
.page-index__faq-section,
.page-index__brand-logo-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2em);
    text-align: center;
    margin-bottom: 20px;
    color: #1F2D3D;
}

.page-index__section-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1em;
    line-height: 1.6;
    color: #1F2D3D;
}

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

.page-index__game-tile {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.page-index__game-tile img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1; /* Square images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-index__category-section--slots .page-index__game-grid,
.page-index__category-section--fishing .page-index__game-grid,
.page-index__category-section--table-poker .page-index__game-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.page-index__category-section--sports {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

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

.page-index__btn-sports {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.page-index__btn-sports:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-index__sports-image {
    flex: 1;
    text-align: right;
}

.page-index__sports-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-index__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

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

.page-index__promo-title {
    font-size: 1.4em;
    color: #1F2D3D;
    margin-bottom: 15px;
}

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

.page-index__promo-text {
    font-size: 0.95em;
    color: #1F2D3D;
    margin-bottom: 20px;
    line-height: 1.5;
}

.page-index__btn {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.3s ease;
}

.page-index__btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

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

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

.page-index__winner-card img {
    
    
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    min- /* Enforce minimum size */
    min- /* Enforce minimum size */
}

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

.page-index__game-name {
    font-weight: bold;
    color: #1F2D3D;
    font-size: 1.1em;
}

.page-index__user-id,
.page-index__winner-info time {
    font-size: 0.9em;
    color: #666666;
}

.page-index__winner-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #ff5e3a;
    font-weight: bold;
}

.page-index__winner-amount span {
    font-size: 0.8em;
    color: #666666;
}

.page-index__amount-value {
    font-size: 1.2em;
    color: #ff5e3a;
}

.page-index__blog-section {
    background-color: #F4F7FB;
}

.page-index__section-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8em);
    text-align: center;
    margin-bottom: 30px;
    color: #1F2D3D;
}

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

.page-index__post-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

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

.page-index__post-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

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

.page-index__post-title a {
    color: #1F2D3D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-index__post-title a:hover {
    color: #2F6BFF;
}

.page-index__post-summary {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-index__btn-details {
    display: inline-block;
    color: #2F6BFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.page-index__btn-details:hover {
    color: #4A8BFF;
}

.page-index__view-all-posts {
    text-align: center;
    margin-top: 40px;
}

.page-index__btn-view-all {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.page-index__btn-view-all:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

.page-index__faq-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2em);
    text-align: center;
    margin-bottom: 30px;
    color: #1F2D3D;
}

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

.page-index__accordion-item {
    background-color: #FFFFFF;
    border: 1px solid #D6E2FF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-index__accordion-summary {
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.1em;
    color: #1F2D3D;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-index__accordion-summary::after {
    content: '+';
    font-size: 1.5em;
    color: #2F6BFF;
    transition: transform 0.2s 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: 0.95em;
    color: #333333;
    line-height: 1.6;
}

.page-index__accordion-content p {
    margin-bottom: 10px;
}

.page-index__brand-logo-section {
    text-align: center;
    padding: 50px 20px;
}

.page-index__brand-logo {
    max-width: 100%;
    height: auto;
    display: inline-block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 100px; /* Adjust min-height for logo aspect ratio */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__hero-content-overlay {
        left: 5%;
        max-width: 400px;
    }
}

@media (max-width: 849px) {
    .page-index__hero-desktop-slider {
        display: none;
    }
    .page-index__hero-mobile-slider {
        display: block;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .page-index__category-section--slots .page-index__game-grid,
    .page-index__category-section--fishing .page-index__game-grid,
    .page-index__category-section--table-poker .page-index__game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .page-index__category-section--sports {
        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__promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-index__winner-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-index__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index__ticker-text {
        font-size: 0.8em;
    }
    .page-index__main-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-index__intro-text {
        font-size: 1em;
    }
    .page-index__game-tile img, 
    .page-index__sports-image img, 
    .page-index__promo-card img, 
    .page-index__post-card img {
        max-width: 100%;
        height: auto;
    }
    .page-index__winner-card img {
        min- /* Ensure winner icons are not too small */
        min-
    }
    .page-index__brand-logo {
        min-width: 200px;
        min-height: 100px;
    }
}

@media (max-width: 549px) {
    .page-index__hero-mobile-slider .page-index__hero-copy {
        padding: 15px;
    }
    .page-index__hero-tagline {
        font-size: clamp(1.1rem, 5vw, 1.8rem);
    }
    .page-index__intro-section {
        padding: 30px 15px;
    }
    .page-index__hot-games,
    .page-index__category-section,
    .page-index__feature-promos,
    .page-index__hot-winners,
    .page-index__top-winners,
    .page-index__blog-section,
    .page-index__faq-section,
    .page-index__brand-logo-section {
        padding: 30px 15px;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .page-index__category-section--slots .page-index__game-grid,
    .page-index__category-section--fishing .page-index__game-grid,
    .page-index__category-section--table-poker .page-index__game-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .page-index__winner-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .page-index__post-grid {
        grid-template-columns: 1fr;
    }
    .page-index__accordion-summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-index__accordion-content {
        padding: 0 20px 15px;
    }
}