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

.page-index__hero-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 12px;
}

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

.page-index__slider-link {
    min-width: 100%;
    display: block;
    text-decoration: none;
}

.page-index__slider-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.page-index__slider-link--hidden {
    display: none;
}

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

.page-index__slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.page-index__slider-dot--active {
    background-color: #2F6BFF; /* Main color */
}

.page-index__section-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.page-index__title-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, #D6E2FF, #2F6BFF, #D6E2FF); /* Border color with main color */
    margin: 0 20px;
}

.page-index__main-title {
    color: #1F2D3D;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px; /* Constrain h1 width */
    font-size: clamp(24px, 4vw, 48px); /* Responsive font size for H1 */
}

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

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

.page-index__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%; /* Ensure cards are same height */
}

.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; /* Maintain aspect ratio */
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
    display: block;
    filter: grayscale(0%); /* Ensure no grayscale by default */
    transition: filter 0.3s ease;
}

.page-index__category-card:hover img {
    filter: grayscale(0%); /* Explicitly remove grayscale on hover */
}

.page-index__card-label {
    color: #1F2D3D;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 10px;
    text-align: center;
    width: 100%;
    background-color: #FFFFFF;
}

.page-index__article-body {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.page-index__content-wrapper {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__blockquote {
    font-style: italic;
    border-left: 5px solid #2F6BFF;
    padding-left: 20px;
    margin: 30px 0;
    color: #1F2D3D;
    line-height: 1.6;
    font-size: 1.1rem;
}

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

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

.page-index__heading-2 {
    color: #2F6BFF; /* Main color for h2 */
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-index__heading-3 {
    color: #1F2D3D; /* Text Main color for h3 */
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-index__paragraph {
    color: #1F2D3D;
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-index__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #1F2D3D;
}

.page-index__list-item {
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.page-index__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-index__article-figure figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Link styles for article body */
.page-index__article-body a {
    color: #2F6BFF; /* Main color */
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index {
        padding-top: 10px;
    }

    .page-index__hero-slider {
        margin-bottom: 30px;
    }

    .page-index__slider-nav {
        bottom: 10px;
    }

    .page-index__main-title {
        font-size: clamp(20px, 6vw, 36px);
        margin: 30px auto;
    }

    .page-index__title-line {
        margin: 0 10px;
    }

    .page-index__category-gateway {
        margin: 40px auto;
        padding: 0 15px;
    }

    .page-index__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .page-index__category-card img {
        min-
    }

    .page-index__card-label {
        font-size: 1rem;
        padding: 10px 5px;
    }

    .page-index__article-body {
        margin: 50px auto;
        padding: 0 15px;
    }

    .page-index__content-wrapper {
        padding: 25px;
    }

    .page-index__blockquote {
        font-size: 1rem;
        padding-left: 15px;
    }

    .page-index__heading-2 {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-index__heading-3 {
        font-size: 1.4rem;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .page-index__paragraph {
        font-size: 0.95rem;
    }

    .page-index__list {
        margin-left: 20px;
    }
    
    .page-index__article-body img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__grid-container {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on smaller mobiles */
        gap: 10px;
    }

    .page-index__category-card img {
        min-
    }

    .page-index__main-title {
        font-size: clamp(18px, 7vw, 30px);
    }

    .page-index__heading-2 {
        font-size: 1.6rem;
    }

    .page-index__heading-3 {
        font-size: 1.2rem;
    }
}

/* Ensure content area images do not cause overflow on mobile */
@media (max-width: 768px) {
    .page-index__article-body img,
    .page-index__category-card img {
        max-width: 100%;
        height: auto;
    }
    .page-index__content-wrapper {
        overflow-x: hidden;
    }
}