.page-index {
    padding-top: 10px; /* Small top padding for the first section, relying on body for header offset */
    background-color: #F5F7FA; /* Background color for the main content area */
    color: #333333; /* Main text color */
}

/* Hero Section */
.page-index__hero-section {
    width: 100%;
    margin-bottom: 30px;
}

.page-index__hero-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.page-index__hero-banner a {
    display: block;
}

.page-index__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/5; /* 1920x600 is 16:5 */
    object-fit: cover;
    object-position: center;
}

/* Main Title Section */
.page-index__main-title-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
    text-align: center;
}

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

.page-index__title-line {
    flex-grow: 1;
    height: 2px;
    background-color: #E0E0E0; /* Border color */
    max-width: 100px;
    margin: 0 15px;
}

.page-index__main-title {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem); /* Single clamp definition */
    font-weight: 700;
    line-height: 1.2;
    color: #E53935; /* Main color */
    margin: 0;
    padding: 0 10px;
    max-width: 800px; /* Limit title width for better readability */
}

.page-index__intro-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index__cta-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #FFFFFF; /* White text for contrast */
    border: none;
}

.page-index__cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-index__cta-btn--secondary {
    background: #FF5A4F; /* Auxiliary color for secondary button */
    border: 1px solid #E53935;
    color: #000000; /* Changed to black for better contrast with #FF5A4F */
}

.page-index__cta-btn--secondary:hover {
    background: #E53935; /* On hover, change to main color */
    border-color: #FF5A4F;
    color: #FFFFFF; /* Text becomes white on hover for contrast with main color */
}

/* Category Gateway Section */
.page-index__category-gateway-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

.page-index__section-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 30px;
}

.page-index__category-gateway {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr); /* Mobile default: 3 rows 2 columns */
}

.page-index__category-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #FFFFFF; /* Card BG */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline */
}

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

.page-index__category-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    filter: none; /* Prohibit grayscale */
    transition: transform 0.2s ease;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

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

/* Article Body Section */
.page-index__article-body-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 15px;
    background-color: #FFFFFF; /* Card BG for article container */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    font-size: 1rem;
}

.page-index__article-container {
    padding: 30px;
}

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

.page-index__article-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #E53935;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-index__article-subheading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FF5A4F;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-index__blockquote {
    border-left: 5px solid #FF5A4F; /* Auxiliary color for blockquote border */
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555555;
    background-color: #FFF8F8; /* Light background for blockquote */
    padding: 15px 20px;
    border-radius: 8px;
}

.page-index__blockquote a {
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
}

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

.page-index__article-figure {
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
}

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

.page-index__figcaption {
    font-size: 0.9rem;
    color: #777777;
    margin-top: 10px;
}

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

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

.page-index__article-list li strong {
    color: #E53935;
}

.page-index__article-list a {
    color: #E53935;
    text-decoration: none;
}

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

.page-index__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #E53935;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-index__faq-answer {
    margin-bottom: 1em;
}

/* Responsive Adjustments */
@media (min-width: 850px) {
    .page-index__category-gateway {
        grid-template-columns: repeat(6, 1fr); /* PC: one row 6 columns */
    }
}

@media (max-width: 768px) {
    .page-index__hero-banner img {
        aspect-ratio: 16/9; /* Slightly taller on mobile for better visibility */
    }
    .page-index__intro-description {
        font-size: 1rem;
    }
    .page-index__section-heading {
        font-size: 1.8rem;
    }
    .page-index__article-heading {
        font-size: 1.6rem;
    }
    .page-index__article-subheading {
        font-size: 1.2rem;
    }
    .page-index__faq-question {
        font-size: 1.1rem;
    }
    .page-index__article-container {
        padding: 20px;
    }
    .page-index__article-figure img,
    .page-index__category-card img {
        max-width: 100%; /* Ensure no overflow */
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-index__section-title-container {
        flex-direction: column;
    }
    .page-index__title-line {
        display: none; /* Hide decorative lines on very small screens */
    }
    .page-index__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-index__cta-btn {
        width: 100%;
        max-width: 300px; /* Limit button width */
        margin: 0 auto;
    }
    .page-index__article-container {
        padding: 15px;
    }
}