.page-index {
    padding-top: 10px;
    background-color: #F4F7FB;
    color: #1F2D3D;
}

.page-index__hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    padding-bottom: 60px; /* Space for CTA */
}

.page-index__slider-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 500px; /* Fixed height for desktop, adjusted for mobile */
}

.page-index__slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.page-index__slider-item {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.page-index__slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.page-index__slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(47, 107, 255, 0.7);
    color: #FFFFFF;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.page-index__slider-nav:hover {
    background-color: #2F6BFF;
}

.page-index__slider-nav--prev {
    left: 10px;
}

.page-index__slider-nav--next {
    right: 10px;
}

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

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

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

.page-index__hero-content {
    text-align: center;
    margin-top: 20px;
}

.page-index__hero-cta {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-index__hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

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

.page-index__decorative-line {
    flex-grow: 1;
    height: 2px;
    background-color: #D6E2FF;
    margin: 0 20px;
}

.page-index__main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #1F2D3D;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

.page-index__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.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 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 250px; /* Ensure minimum height for cards */
}

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

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

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

.page-index__category-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(47, 107, 255, 0.9);
    color: #FFFFFF;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.page-index__article-body {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 16px;
    color: #1F2D3D;
}

.page-index__blockquote {
    border-left: 4px solid #2F6BFF;
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    color: #000000;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-index__blockquote p {
    margin: 0;
}

.page-index__article-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #2F6BFF;
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 1px solid #D6E2FF;
    padding-bottom: 10px;
}

.page-index__article-subheading {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #1F2D3D;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-index__article-body p {
    margin-bottom: 20px;
}

.page-index__article-body ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-index__article-body ul li {
    margin-bottom: 10px;
}

.page-index__article-body a {
    color: #2F6BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__article-body a:hover {
    color: #6FA3FF;
    text-decoration: underline;
}

.page-index__article-figure {
    margin: 40px 0;
    text-align: center;
}

.page-index__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

.page-index__article-figure figcaption {
    font-size: 14px;
    color: #000000;
    margin-top: 10px;
}

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

@media (max-width: 768px) {
    .page-index__slider-container {
        height: 300px;
    }

    .page-index__slider-nav {
        padding: 10px 8px;
        font-size: 20px;
    }

    .page-index__hero-cta {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-index__section-title-container {
        margin: 30px auto;
    }

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

    .page-index__main-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }

    .page-index__category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-index__category-label {
        font-size: 14px;
        padding: 8px 0;
    }

    .page-index__article-body {
        padding: 0 15px;
        font-size: 15px;
    }

    .page-index__article-heading {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-index__article-subheading {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        margin-top: 30px;
        margin-bottom: 12px;
    }

    .page-index__article-body img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__slider-container {
        height: 200px;
    }

    .page-index__hero-cta {
        padding: 10px 20px;
        font-size: 14px;
    }

    .page-index__category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-index__main-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .page-index__article-body ul {
        margin-left: 20px;
    }

    .page-index__article-body img {
        max-width: 100%;
        height: auto;
    }
}