.page-index {
    background-color: #F4F7FB;
    color: #1F2D3D;
    padding-top: 10px; /* Small top padding for the first section */
}

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

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

.page-index__hero-slider img {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

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

.page-index__slider-arrow {
    background-color: rgba(47, 107, 255, 0.7);
    border: none;
    color: #FFFFFF;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-index__slider-dots {
    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--active {
    background-color: #2F6BFF;
}

.page-index__hero-cta-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.page-index__hero-button {
    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: 1.2em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

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

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

.page-index__main-title {
    color: #1F2D3D;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
}

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

.page-index__grid-container {
    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: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #1F2D3D;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__category-card img {
    width: 100%;
    height: 250px; /* Approximate 3:5 aspect ratio for desktop */
    object-fit: cover;
    transition: transform 0.3s ease;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

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

.page-index__category-label {
    padding: 15px 10px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    width: 100%;
    color: #1F2D3D;
}

.page-index__article-body {
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 1.05em;
}

.page-index__blockquote {
    border-left: 5px solid #2F6BFF;
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    color: #1F2D3D;
    background-color: #EBF2FF;
    padding: 20px;
    border-radius: 8px;
}

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

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

.page-index__section-heading {
    color: #1F2D3D;
    font-size: 2.2em;
    margin-top: 60px;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-index__sub-heading {
    color: #1F2D3D;
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index__article-body p {
    margin-bottom: 1em;
}

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

.page-index__article-body li {
    margin-bottom: 0.5em;
}

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

.page-index__article-body 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; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

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

.page-index__aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index__step-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 1em;
}

.page-index__promotion-list {
    list-style: none;
    padding-left: 0;
}

.page-index__promotion-list li {
    background-color: #FFFFFF;
    border-left: 4px solid #6FA3FF;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: 2.2em;
    }
    .page-index__section-heading {
        font-size: 1.8em;
    }
    .page-index__sub-heading {
        font-size: 1.3em;
    }
    .page-index__hero-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .page-index__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em); /* Use clamp for H1 */
        margin-top: 40px;
    }
    .page-index__section-title-container {
        margin: 40px auto;
    }
    .page-index__line {
        display: none;
    }
    .page-index__hero-slider {
        margin-bottom: 30px;
    }
    .page-index__category-gateway {
        margin-bottom: 40px;
    }
    .page-index__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .page-index__category-card img {
        height: 200px;
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }
    .page-index__article-body {
        padding: 0 15px;
        font-size: 1em;
    }
    .page-index__article-body img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }
    .page-index__hero-slider img, 
    .page-index__category-card img, 
    .page-index__article-figure img {
        max-width: 100%;
        height: auto;
    }
    .page-index__hero-cta-wrapper {
        top: 60%;
    }
}

@media (max-width: 480px) {
    .page-index__grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-index__category-card img {
        
    }
    .page-index__hero-button {
        font-size: 1em;
        padding: 10px 20px;
    }
}