.page-index {
    background-color: var(--page-bg, #F4F7FB);
    color: var(--text-main, #1F2D3D);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-index__wrapper {
    max-width: 1390px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Slider */
.page-index__hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__hero-slide {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #333;
    display: none; /* Hidden by default, JS will manage */
}

.page-index__hero-slide:first-child {
    display: block; /* Show first slide by default */
}

.page-index__hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-index__hero-content {
    position: absolute;
    bottom: 10%; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

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

.page-index__title-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color, #D6E2FF);
    max-width: 200px; /* Adjust line length */
}

.page-index__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--custom-color-black, #000000);
    text-align: center;
    margin: 0 30px;
    max-width: 900px;
}

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

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

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

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

.page-index__category-card img {
    width: 100%;
    height: auto; /* For display size */
    object-fit: cover;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    min-height: 200px; /* Ensure images are not small */
}

.page-index__category-card-title {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--custom-color-black, #000000);
    text-align: center;
}

/* Article Body (Long SEO Content) */
.page-index__article-body {
    background-color: var(--card-bg, #FFFFFF);
    padding: 50px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.page-index__article-body .page-index__wrapper {
    max-width: 900px; /* Narrower for long-form content */
}

.page-index__blockquote {
    border-left: 5px solid var(--primary-color, #2F6BFF);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-main, #1F2D3D);
    font-size: 1.1em;
}

.page-index__blockquote a {
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: 600;
}

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

.page-index__article-heading {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--custom-color-black, #000000);
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: left;
}

.page-index__article-subheading {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--custom-color-black, #000000);
    margin-top: 35px;
    margin-bottom: 15px;
    text-align: left;
}

.page-index__article-body p,
.page-index__article-body li {
    color: var(--text-main, #1F2D3D);
    line-height: 1.8;
    margin-bottom: 15px;
}

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

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

.page-index__article-body strong {
    font-weight: 700;
    color: var(--custom-color-black, #000000);
}

.page-index__article-body a {
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
}

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

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

.page-index__article-figure.page-index__align-center {
    text-align: center;
}

.page-index__article-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure images are not small */
    min-height: 200px; /* Ensure images are not small */
}

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

.page-index__call-to-action {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Primary Button Style */
.page-index__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--glow-color, #A5C4FF);
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-index__btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 8px 20px var(--glow-color, #A5C4FF);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: clamp(1.8rem, 4vw, 3rem);
        margin: 0 20px;
    }
    .page-index__category-gateway-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .page-index__article-heading {
        font-size: 1.8em;
    }
    .page-index__article-subheading {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-index {
        padding-top: 8px;
    }
    .page-index__hero-slider {
        margin-bottom: 30px;
    }
    .page-index__hero-content {
        bottom: 5%;
    }
    .page-index__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin: 0 15px;
    }
    .page-index__section-title-container {
        margin: 40px 0;
    }
    .page-index__title-line {
        max-width: 100px;
    }
    .page-index__category-gateway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-index__category-card img {
        max-width: 100%;
        height: auto; /* Critical for mobile responsiveness */
        min-width: 200px; /* Enforce minimum size on mobile */
        min-height: 200px; /* Enforce minimum size on mobile */
    }
    .page-index__article-body {
        padding: 30px 0;
        margin-bottom: 40px;
    }
    .page-index__article-heading {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-index__article-subheading {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-index__article-figure img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size on mobile */
        min-height: 200px; /* Enforce minimum size on mobile */
    }
    .page-index__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-index__category-gateway-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
    .page-index__hero-content {
        bottom: 2%;
    }
}