:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --card-bg-color: #FFFFFF;
    --background-color: #F4F7FB;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-index {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

/* Base styles for sections and containers */
.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-index__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index__section-title--white {
    color: #FFFFFF;
}

.page-index__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__section-description--white {
    color: #E0E0E0;
}

/* HERO Section */
.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-index__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Important for flex items */
}

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative; /* For potential overlay effects if needed */
}

.page-index__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-index__hero-content h1 {
    font-size: clamp(28px, 4.5vw, 48px); /* Using clamp for H1 font-size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-index__hero-content p {
    font-size: 19px;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-index__cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping for primary CTA */
}

.page-index__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
    background: #FFFFFF;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.page-index__cta-button--secondary:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-index__intro-section {
    background-color: var(--background-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-index__intro-item {
    background: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__intro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__intro-item h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index__intro-item p {
    font-size: 16px;
    color: var(--text-main-color);
}

/* Quick Access Section */
.page-index__quick-access-section {
    background: var(--primary-color);
    padding-top: 60px;
    padding-bottom: 60px;
    color: #FFFFFF;
}

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

.page-index__access-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block; /* Make the whole card clickable */
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
}

.page-index__access-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.page-index__access-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #FFFFFF;
}

.page-index__access-card p {
    font-size: 15px;
    color: #E0E0E0;
}

/* Games Section */
.page-index__games-section {
    background-color: var(--background-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-index__game-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-index__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index__game-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 15px 10px;
    line-height: 1.3;
}

.page-index__game-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__game-card h3 a:hover {
    color: var(--secondary-color);
}

.page-index__game-card p {
    font-size: 15px;
    color: var(--text-main-color);
    padding: 0 15px 20px;
}

.page-index__btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-index__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-index__view-all-games {
    text-align: center;
    margin-top: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    background: var(--primary-color);
    padding-top: 60px;
    padding-bottom: 60px;
    color: #FFFFFF;
}

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

.page-index__promo-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__promo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.page-index__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index__promo-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 15px 10px;
    color: #FFFFFF;
}

.page-index__promo-card p {
    font-size: 15px;
    color: #E0E0E0;
    padding: 0 15px 20px;
}

.page-index__view-all-promos {
    text-align: center;
    margin-top: 20px;
}

/* Safety & Support Section */
.page-index__safety-support-section {
    background-color: var(--background-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-index__safety-support-item {
    background: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__safety-support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__safety-support-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index__safety-support-item h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index__safety-support-item p {
    font-size: 16px;
    color: var(--text-main-color);
}

.page-index__responsible-gaming-link {
    text-align: center;
    margin-top: 30px;
}

.page-index__responsible-gaming-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    font-size: 17px;
}

.page-index__responsible-gaming-link a:hover {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-index__faq-section {
    background-color: var(--background-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

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

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}
details.page-index__faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

details.page-index__faq-item summary.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
    display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
    background: #f9f9f9;
}
.page-index__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}
.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
    padding: 0 25px 25px;
    background: #fcfcfc;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}
.page-index__faq-answer p {
    font-size: 16px;
    color: var(--text-main-color);
}

/* Blog Section */
.page-index__blog-section {
    background: var(--primary-color);
    padding-top: 60px;
    padding-bottom: 60px;
    color: #FFFFFF;
}

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

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

.page-index__blog-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.page-index__blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-index__blog-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 15px 10px;
    line-height: 1.3;
}

.page-index__blog-card h3 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
    color: var(--glow-color);
}

.page-index__blog-card p {
    font-size: 15px;
    color: #E0E0E0;
    padding: 0 15px;
    margin-bottom: 15px;
}

.page-index__blog-card time {
    display: block;
    font-size: 14px;
    color: var(--glow-color);
    padding: 0 15px 20px;
}

.page-index__view-all-blog {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__hero-content h1 {
        font-size: clamp(28px, 5vw, 42px);
    }
    .page-index__section-title {
        font-size: 30px;
    }
    .page-index__section-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index__section,
    .page-index__card,
    .page-index__container,
    .page-index__hero-section,
    .page-index__intro-section,
    .page-index__quick-access-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__safety-support-section,
    .page-index__faq-section,
    .page-index__blog-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }
    .page-index__hero-content h1 {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 10px;
    }
    .page-index__hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-index__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__cta-button,
    .page-index__btn-small,
    .page-index a[class*="button"],
    .page-index a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 14px 20px;
        font-size: 16px;
    }
    .page-index__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-index__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-index__intro-grid,
    .page-index__access-grid,
    .page-index__games-carousel,
    .page-index__promo-grid,
    .page-index__safety-support-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index__intro-item,
    .page-index__access-card,
    .page-index__game-card,
    .page-index__promo-card,
    .page-index__safety-support-item {
        padding: 20px;
    }
    .page-index__intro-item h3,
    .page-index__access-card h3,
    .page-index__game-card h3,
    .page-index__promo-card h3,
    .page-index__safety-support-item h3 {
        font-size: 20px;
    }
    .page-index__game-card img,
    .page-index__promo-card img {
        
    }
    details.page-index__faq-item summary.page-index__faq-question {
        padding: 15px;
    }
    .page-index__faq-qtext {
        font-size: 16px;
    }
    .page-index__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-index__faq-item .page-index__faq-answer {
        padding: 0 15px 15px;
    }
    .page-index__blog-card img {
        
    }
}