.page-index {
    background-color: #FFFFFF;
    color: #000000;
}

.page-index__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #FFFFFF;
}

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

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

.page-index__main-title-section {
    padding: 20px 15px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__section-title-container {
    position: relative;
    padding-bottom: 20px;
}

.page-index__section-title-container::before,
.page-index__section-title-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #26A9E0;
    width: 30%;
    max-width: 150px;
}

.page-index__section-title-container::before {
    left: 50%;
    transform: translateX(-100%) translateX(-10px);
}

.page-index__section-title-container::after {
    right: 50%;
    transform: translateX(100%) translateX(10px);
}

.page-index__main-title {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__intro-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    max-width: 900px;
    margin: 0 auto;
}

.page-index__category-gateway-section {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-index__category-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index__category-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.page-index__article-body {
    padding: 40px 15px;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
    color: #000000;
}

.page-index__content-wrapper {
    padding: 0 15px;
}

.page-index__blockquote {
    border-left: 5px solid #26A9E0;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #000000;
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: 5px;
}

.page-index__blockquote p {
    margin-bottom: 0;
}

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

.page-index__section-heading {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 10px;
}

.page-index__sub-heading {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-weight: 600;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

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

.page-index__article-body a {
    color: #26A9E0;
    text-decoration: none;
}

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

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

.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);
    min-width: 200px;
    min-height: 200px;
}

.page-index__article-figure.page-index__aligncenter {
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-index__category-gateway {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-index__section-title-container::before,
    .page-index__section-title-container::after {
        width: 20%;
        max-width: 80px;
    }
}

@media (min-width: 850px) {
    .page-index__category-gateway {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .page-index__hero-banner img,
    .page-index__category-card img,
    .page-index__article-figure img {
        max-width: 100%;
        height: auto;
    }
    .page-index__main-title {
        font-size: clamp(1.1rem, 4.5vw, 1.75rem);
    }
    .page-index__section-heading {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
    .page-index__sub-heading {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }
    .page-index__content-wrapper {
        padding: 0;
    }
}

@media (max-width: 549px) {
    .page-index__section-title-container::before,
    .page-index__section-title-container::after {
        width: 15%;
        max-width: 50px;
    }
    .page-index__blockquote {
        border-left: 3px solid #26A9E0;
        padding-left: 15px;
    }
}

/* Ensure all content area images are not too small */
.page-index img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific button style for login/register if needed */
.page-index__article-body a[href*="redirect"] {
    background-color: #EA7C07;
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.page-index__article-body a[href*="redirect"]:hover {
    background-color: #d66a00;
}