.page-index {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    padding-top: 10px; /* Small top padding for first section */
}

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

.page-index__ticker-section {
    background-color: var(--card-bg);
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--divider);
}

.page-index__ticker-wrapper {
    display: flex;
    width: 100%;
    white-space: nowrap;
}

.page-index__ticker-text {
    display: inline-block;
    animation: page-index__marquee 30s linear infinite;
    padding-left: 100%; /* Start off-screen */
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

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

.page-index__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Align content to the bottom */
    padding-bottom: 50px; /* Space for content above the bottom edge */
    overflow: hidden;
    background-color: #100224; /* Fallback for hero section */
}

.page-index__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.page-index__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-main);
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.page-index__hero-slogan {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: var(--gold);
}

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

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

.page-index__jackpot-amount {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
}

.page-index__hero-description {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--text-main);
}

.page-index__hero-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.4);
}

.page-index__brand-intro-section {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--background);
}

.page-index__main-title {
    font-size: clamp(2em, 3.5vw, 2.5em); /* Using clamp for H1 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index__intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-secondary);
}

.page-index__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-index__section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

.page-index__popular-games-section,
.page-index__category-section,
.page-index__promo-section,
.page-index__winners-section,
.page-index__blog-section,
.page-index__faq-section {
    padding: 60px 20px;
}

.page-index__popular-games-section,
.page-index__promo-section,
.page-index__blog-section,
.page-index__faq-section {
    background-color: var(--card-bg);
}

.page-index__category-section:nth-of-type(odd) {
    background-color: var(--background);
}

.page-index__category-section:nth-of-type(even) {
    background-color: var(--card-bg);
}

.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.page-index__game-card {
    background-color: var(--background);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-index__game-card img {
    width: 100%;
    
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

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

.page-index__subtitle {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

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

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

.page-index__sports-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.page-index__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.4);
}

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

.page-index__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-index__promo-title {
    font-size: 1.8em;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-index__promo-description {
    font-size: 1.05em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

.page-index__promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.3);
}

.page-index__winners-section {
    background-color: var(--background);
}

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

.page-index__winner-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.page-index__game-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-index__game-icon-wrapper img {
    
    
    object-fit: contain;
}

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

.page-index__winner-game {
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
}

.page-index__winner-user,
.page-index__winner-date {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.page-index__won-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(#ff9500,#ff5e3a);
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.8em;
    border-bottom-left-radius: 10px;
}

.page-index__won-amount {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2em;
    margin-left: auto;
    flex-shrink: 0;
}

.page-index__blog-section {
    background-color: var(--card-bg);
}

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

.page-index__post-card {
    background-color: var(--background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-index__post-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.page-index__post-title {
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px;
    line-height: 1.4;
}

.page-index__post-title a {
    color: var(--text-main);
    text-decoration: none;
}

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

.page-index__post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95em;
    padding: 0 15px 15px;
    line-height: 1.5;
}

.page-index__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px 15px;
    transition: color 0.3s ease;
}

.page-index__read-more:hover {
    color: var(--secondary-color);
}

.page-index__load-more-wrapper {
    text-align: center;
}

.page-index__load-more-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__load-more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.4);
}

.page-index__faq-section {
    background-color: var(--background);
}

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

.page-index__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index__faq-question {
    display: block;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
}

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

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

.page-index__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-index__faq-answer p {
    margin-bottom: 15px;
}

.page-index__faq-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__faq-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(42, 209, 111, 0.3);
}

.page-index__brand-strip-section {
    background-color: var(--card-bg);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--divider);
}

.page-index__brand-logo {
    max-width: 150px;
    height: auto;
}

.text-gradient {
    background: linear-gradient(90deg, var(--gold) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for non-webkit browsers */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__hero-section {
        height: 550px;
    }
    .page-index__hero-slogan {
        font-size: 1.8em;
    }
    .page-index__jackpot-amount {
        font-size: 1.8em;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .page-index__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        height: 500px;
        padding-bottom: 30px;
    }
    .page-index__hero-slogan {
        font-size: 1.5em;
    }
    .page-index__jackpot-amount {
        font-size: 1.5em;
    }
    .page-index__hero-description {
        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 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    .page-index__game-card img {
        
    }
    .page-index__promo-section .page-index__container {
        grid-template-columns: 1fr;
    }
    .page-index__winner-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-index__post-grid {
        grid-template-columns: 1fr;
    }
    .page-index__post-image {
        height: 200px;
    }
    .page-index__sports-section .page-index__container {
        flex-direction: column;
    }
    /* Mobile overflow prevention */
    .page-index__container img,
    .page-index__game-card img,
    .page-index__hero-image,
    .page-index__sports-image,
    .page-index__promo-image,
    .page-index__post-image {
        max-width: 100%;
        height: auto; /* Ensure images scale down */
    }
    .page-index__game-icon-wrapper img {
         /* Specific size for icons */
        
    }
}

@media (max-width: 480px) {
    .page-index__hero-section {
        height: 450px;
    }
    .page-index__hero-slogan {
        font-size: 1.3em;
    }
    .page-index__jackpot-amount {
        font-size: 1.3em;
    }
    .page-index__jackpot-counter-wrapper {
        padding: 8px 15px;
    }
    .page-index__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-index__section-title {
        font-size: 1.6em;
    }
    .page-index__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .page-index__game-card img {
        
    }
    .page-index__winner-grid {
        grid-template-columns: 1fr;
    }
    .page-index__post-image {
        height: 180px;
    }
}