/* General container for content within main */
.page-index__container {
    max-width: 1390px; /* Aligns with boxed layout request */
    margin: 0 auto;
    padding: 0 20px;
}

/* 2.1 Hero Slider Section */
.page-index__hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #F4F7FB; /* Use provided background color */
}

.page-index__hero-slide-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.page-index__hero-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
}

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

.page-index__hero-prev,
.page-index__hero-next {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

.page-index__hero-prev:hover,
.page-index__hero-next:hover {
    opacity: 1;
}

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

.page-index__hero-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__hero-dot.page-index__active {
    background-color: #2F6BFF; /* Main color */
    transform: scale(1.2);
}

/* 2.2 Main Title Section */
.page-index__main-title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    gap: 20px;
}

.page-index__main-title-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #2F6BFF, transparent); /* Main color gradient */
    max-width: 150px;
}

.page-index__main-title {
    color: #1F2D3D; /* Text Main color */
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    max-width: 60ch; /* Ensure it doesn't get too wide on large screens */
}

/* 2.3 Category Gateway Section */
.page-index__category-gateway-section {
    background-color: #F4F7FB; /* Background color */
    padding: 60px 0;
}

.page-index__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
    justify-content: center;
}

.page-index__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFFFFF; /* Card background color */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF; /* Border color */
}

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

.page-index__category-card img {
    width: 100%;
    height: 350px; /* Fixed height for vertical images */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    min-width: 200px; /* Minimum size for product images */
    min-height: 200px;
}

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

.page-index__category-label {
    padding: 15px 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2D3D; /* Text Main color */
    text-align: center;
    width: 100%;
    background-color: #FFFFFF; /* Card background color */
}

/* 2.4 Long-form SEO Body */
.page-index__article-body {
    padding: 80px 0;
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D; /* Text Main color */
}

.page-index__article-content {
    max-width: 900px; /* Single column width for article */
    margin: 0 auto;
    line-height: 1.8;
}

.page-index__article-content p {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
}

.page-index__article-content a {
    color: #2F6BFF; /* Main color for links */
    text-decoration: none;
    font-weight: 500;
}

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

.page-index__blockquote {
    border-left: 5px solid #2F6BFF; /* Main color for blockquote line */
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #000000; /* Custom Color_1776249996415 */
    background-color: rgba(47, 107, 255, 0.05); /* Light tint */
    padding: 20px;
    border-radius: 5px;
}

.page-index__section-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #1F2D3D; /* Text Main color */
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

.page-index__sub-heading {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: #2F6BFF; /* Main color for subheadings */
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.page-index__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Minimum size for article images */
    min-height: 200px;
}

.page-index__article-figure figcaption {
    font-size: 0.95rem;
    color: #6FA3FF; /* Auxiliary color for caption */
    margin-top: 10px;
}

.page-index__process-list,
.page-index__promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}

.page-index__process-list li,
.page-index__promo-list li {
    background-color: #FFFFFF; /* Card background color */
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__process-list li h3,
.page-index__promo-list li strong {
    color: #2F6BFF; /* Main color */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.page-index__faq-item {
    background-color: #FFFFFF; /* Card background color */
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2D3D; /* Text Main color */
    margin-top: 0;
    margin-bottom: 10px;
}

.page-index__faq-answer {
    font-size: 1.05rem;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 0;
}

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

@media (max-width: 768px) {
    .page-index__hero-slider {
        margin-top: 0; /* Remove top margin on mobile, body padding handles it */
    }
    .page-index__main-title-section {
        flex-direction: column;
        gap: 10px;
        margin: 30px auto;
    }

    .page-index__main-title-line {
        max-width: 100px;
    }

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

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

    .page-index__category-card img {
        height: 250px; /* Adjust height for mobile */
    }

    .page-index__article-body {
        padding: 40px 0;
    }

    .page-index__section-heading {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-index__sub-heading {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-top: 30px;
        margin-bottom: 10px;
    }

    /* Crucial: Prevent image overflow on mobile */
    .page-index__article-body img,
    .page-index__category-card img,
    .page-index__hero-slide img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__category-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .page-index__hero-nav {
        flex-direction: column;
        gap: 5px;
    }
    .page-index__hero-prev,
    .page-index__hero-next {
        padding: 8px 12px;
        font-size: 16px;
    }
}

/* Ensure content area images don't go below 200px display width/height */
/* This rule applies to all img elements within .page-index that are NOT header/footer shared components */
.page-index img:not(.shared-header img, .shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}
/* Overwrite for mobile to ensure responsiveness without shrinking below 200px if possible,
   but prioritizing max-width: 100% for overflow prevention. */
@media (max-width: 768px) {
    .page-index img:not(.shared-header img, .shared-footer img) {
        max-width: 100%;
        height: auto;
    }
}