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

/* General Layout & Typography */
.page-index__section-title-area,
.page-index__category-gateway,
.page-index__article-body {
    max-width: 1300px; /* Adjusted to 1300px for a slightly wider boxed feel */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-index__article-body {
    padding-top: 40px;
    padding-bottom: 60px;
}

.page-index__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--custom-color-1776249996415, #000000); /* Use custom color for main title */
    text-align: center;
    max-width: 900px;
    margin: 20px auto;
    /* No fixed font-size, rely on clamp for responsiveness if needed, but for now, let it scale naturally */
}

.page-index__intro-text {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 10px auto 40px auto;
    line-height: 1.6;
    color: var(--text-main-color, #1F2D3D);
}

.page-index__article-heading {
    font-size: 2.2em;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 25px;
    color: var(--custom-color-1776249996415, #000000);
    text-align: left; /* Default to left for article headings */
}

.page-index__article-subheading {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-main-color, #1F2D3D);
}

.page-index__article-paragraph,
.page-index__step-list li,
.page-index__offer-list li,
.page-index__faq-answer {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-main-color, #1F2D3D);
}

.page-index__blockquote {
    border-left: 5px solid var(--primary-color, #2F6BFF);
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #e0eaff; /* Lighter background for blockquote */
    color: var(--text-main-color, #1F2D3D);
    font-style: italic;
    line-height: 1.6;
}

.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-figure {
    margin: 40px auto;
    text-align: center;
}

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

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

.page-index__step-list,
.page-index__offer-list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-index__step-list li,
.page-index__offer-list li {
    margin-bottom: 8px;
}

.page-index__offer-list strong {
    color: var(--custom-color-1776249996415, #000000);
}

.page-index__faq-question {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--primary-color, #2F6BFF);
}

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

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

/* 2.1 Hero Slider */
.page-index__hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: var(--primary-color, #2F6BFF); /* Fallback background */
}

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

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

.page-index__slider-item img {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.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;
}

.page-index__dot--active {
    background-color: #ffffff;
}

.page-index__slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    border-radius: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.page-index__slider-arrow:hover {
    opacity: 1;
}

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

.page-index__slider-arrow--next {
    right: 10px;
    content: '>'; /* Adding content for the arrows */
}

.page-index__slider-arrow--prev::before {
    content: '‹';
}

.page-index__slider-arrow--next::before {
    content: '›';
}

/* 2.2 Section Title with lines */
.page-index__section-title-area {
    margin-top: 20px;
    margin-bottom: 50px;
}

.page-index__section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.page-index__title-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color, #D6E2FF), transparent);
    max-width: 200px;
}

/* 2.3 Category Gateway */
.page-index__category-gateway {
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-index__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Min 200px to ensure no small icons */
    gap: 25px;
}

.page-index__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: var(--card-bg-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;
    min-height: 300px; /* Ensure cards have some 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: 250px; /* Fixed height for consistency, will be covered by object-fit */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-index__category-label {
    padding: 15px 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--custom-color-1776249996415, #000000);
    text-align: center;
    width: 100%;
    background-color: var(--card-bg-color, #FFFFFF);
    border-top: 1px solid var(--border-color, #D6E2FF);
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-index__category-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    }
}

@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-index__article-heading {
        font-size: 1.8em;
    }
    .page-index__article-subheading {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-index__section-title-area,
    .page-index__category-gateway,
    .page-index__article-body {
        padding: 15px;
    }

    .page-index__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em); /* Smaller clamp for mobile h1 */
    }

    .page-index__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-index__article-heading {
        font-size: 1.6em;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-index__article-subheading {
        font-size: 1.2em;
        margin-top: 30px;
        margin-bottom: 10px;
    }

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

    .page-index__category-card img {
        height: 200px; /* Slightly smaller height for mobile cards */
    }

    /* Enforce image max-width for content area to prevent overflow */
    .page-index__article-body img,
    .page-index__hero-slider img,
    .page-index__category-card img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure min size is still met */
        min-height: 200px; /* Ensure min size is still met */
    }

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

@media (max-width: 480px) {
    .page-index__category-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
    .page-index__category-card img {
        height: auto; /* Auto height for single column to prevent distortion */
    }
}

/* Buttons for promotional links - if needed */
.page-index__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    color: #FFFFFF; /* White text for buttons */
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}