.page-index {
    padding-top: 10px; /* Minimal top padding to prevent header overlap, assuming body handles --header-offset */
    background-color: #F4F7FB;
    color: #1F2D3D;
}

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

/* Hero Slider */
.page-index__hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #000000; /* Dark background for slider area */
}

.page-index__slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.page-index__slide {
    min-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.page-index__slide img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

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

.page-index__nav-prev, .page-index__nav-next {
    background-color: rgba(47, 107, 255, 0.7); /* Primary color with transparency */
    border: none;
    color: #FFFFFF;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2em;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.page-index__nav-prev:hover, .page-index__nav-next:hover {
    background-color: #2F6BFF;
}

.page-index__nav-prev::before { content: '‹'; }
.page-index__nav-next::before { content: '›'; }

.page-index__dots {
    display: flex;
    gap: 8px;
}

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

.page-index__dot.page-index__active {
    background-color: #2F6BFF;
    transform: scale(1.2);
}

/* Section Title */
.page-index__section-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-index__title-line {
    flex-grow: 1;
    height: 2px;
    background-color: #D6E2FF;
    max-width: 300px;
}

.page-index__main-title {
    color: #000000; /* Custom Color_1776249996415 */
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    /* Using clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(2em, 4vw, 3.2em);
}

/* Category Gateway Grid */
.page-index__category-gateway {
    margin-bottom: 60px;
}

.page-index__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

.page-index__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #1F2D3D; /* Text Main */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px; /* Ensure cards are not too small */
}

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

.page-index__category-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
    transition: transform 0.3s ease;
}

.page-index__category-card:hover img {
    transform: scale(1.03);
}

.page-index__card-label {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    color: #000000; /* Custom Color_1776249996415 */
}

/* Article Body */
.page-index__article-body {
    background-color: #FFFFFF; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

.page-index__blockquote {
    border-left: 5px solid #2F6BFF; /* Primary color for emphasis */
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #F4F7FB; /* Background */
    font-style: italic;
    color: #1F2D3D;
    border-radius: 5px;
}

.page-index__blockquote a {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}

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

.page-index__article-heading {
    color: #000000; /* Custom Color_1776249996415 */
    font-size: 2.2em;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-index__article-subheading {
    color: #000000; /* Custom Color_1776249996415 */
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-index__article-paragraph {
    margin-bottom: 15px;
    color: #1F2D3D; /* Text Main */
}

.page-index__article-paragraph a {
    color: #2F6BFF;
    text-decoration: none;
}

.page-index__article-paragraph a:hover {
    text-decoration: underline;
}

.page-index__article-figure {
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.page-index__article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 200px; /* Minimum image size */
}

.page-index__figcaption {
    font-size: 0.9em;
    color: #6FA3FF; /* Secondary color for caption */
    margin-top: 10px;
}

.page-index__numbered-list, .page-index__bullet-list {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #1F2D3D; /* Text Main */
}

.page-index__numbered-list li, .page-index__bullet-list li {
    margin-bottom: 8px;
}

.page-index__bullet-list li strong {
    color: #000000; /* Custom Color_1776249996415 */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__container {
        padding: 15px;
    }

    .page-index__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-index__article-heading {
        font-size: 1.8em;
    }

    .page-index__article-subheading {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-index__section-title-container {
        flex-direction: column;
        gap: 10px;
    }

    .page-index__title-line {
        max-width: 150px;
    }

    .page-index__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .page-index__grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust for smaller screens */
    }

    .page-index__category-card {
        min-height: 250px;
    }

    .page-index__article-body {
        padding: 20px;
    }

    .page-index__article-figure {
        margin: 20px auto;
    }

    /* Crucial: Prevent image overflow on mobile */
    .page-index__hero-slider img,
    .page-index__category-card img,
    .page-index__article-figure img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure minimum size is still met */
        min-height: 200px; /* Ensure minimum size is still met */
    }
}

@media (max-width: 480px) {
    .page-index__grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on very small screens */
    }

    .page-index__category-card {
        min-height: 200px;
    }

    .page-index__article-heading {
        font-size: 1.6em;
    }

    .page-index__article-subheading {
        font-size: 1.2em;
    }

    .page-index__blockquote {
        padding: 10px 15px;
    }
}

/* Slider specific styles for JS */
.page-index__slider-container {
    scroll-behavior: smooth;
}

.page-index__slider-container.no-transition {
    scroll-behavior: auto;
}