.page-index {
    background-color: #F4F7FB; /* Nền chung của trang */
    color: #1F2D3D; /* Màu chữ chính */
    font-family: Arial, sans-serif;
}

.page-index__hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Nhỏ hơn header offset */
    background-color: #2F6BFF; /* Màu nền cho slider */
}

.page-index__slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.page-index__slider-image {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-index__hero-content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.page-index__login-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.page-index__login-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

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

.page-index__slider-prev, .page-index__slider-next {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.page-index__slider-prev:hover, .page-index__slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.page-index__slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-index__slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-index__slider-dot.page-index__active {
    background: #FFFFFF;
}

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

.page-index__decoration-line {
    flex-grow: 1;
    height: 2px;
    background-color: #D6E2FF;
    max-width: 150px;
}

.page-index__main-title {
    color: #1F2D3D;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive H1 font size */
}

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

.page-index__grid-wrapper {
    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;
    text-decoration: none;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #1F2D3D;
    min-width: 200px; /* Đảm bảo kích thước tối thiểu cho card */
    min-height: 300px;
}

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

.page-index__category-image {
    width: 100%;
    height: 250px; /* Adjusted height for 3:5 aspect ratio feel */
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: filter 0.3s ease;
    min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-index__category-card:hover .page-index__category-image {
    filter: brightness(1.1);
}

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

.page-index__article-body {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
}

.page-index__blockquote {
    border-left: 5px solid #2F6BFF;
    padding: 20px 25px;
    margin: 30px 0;
    background-color: #F4F7FB;
    font-style: italic;
    color: #1F2D3D;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.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: clamp(1.5rem, 3vw, 2rem);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
}

.page-index__sub-heading {
    color: #2F6BFF;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-index__paragraph {
    margin-bottom: 15px;
    color: #1F2D3D;
}

.page-index__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #1F2D3D;
}

.page-index__list-item {
    margin-bottom: 8px;
}

.page-index__list-item a {
    color: #2F6BFF;
    text-decoration: none;
}

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

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

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

.page-index__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    min-width: 200px; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px;
}

.page-index__figure-caption {
    font-size: 0.9rem;
    color: #6FA3FF;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-index__section-title-container {
        margin: 30px auto;
        padding: 0 15px;
    }

    .page-index__decoration-line {
        max-width: 50px;
    }

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

    .page-index__category-gateway {
        padding: 0 15px;
    }

    .page-index__grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .page-index__category-card {
        min-width: 150px;
        min-height: 250px;
    }

    .page-index__category-image {
        height: 200px;
        min-height: 150px;
    }

    .page-index__article-body {
        margin: 30px auto;
        padding: 0 15px;
    }

    .page-index__article-body img {
        max-width: 100%;
        height: auto;
    }

    .page-index__hero-slider {
        padding-top: 0; /* body padding-top handles space */
    }

    .page-index__login-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-index__grid-wrapper {
        grid-template-columns: 1fr 1fr; /* 2 columns for very small screens */
    }
}