/**
 * Modern Slider / News Module
 * Visual Reference: IMAGE 2
 * Scope: .school-news-slider
 * Không breakpoint responsive (@media) theo yêu cầu
 */

.school-news-slider {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px 0;
}

/* ==================================================
   CỘT TRÁI: HERO CARD (63-65% width)
   ================================================== */
.school-news-slider__hero {
    flex: 0 0 64%;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #111827;
}

.school-news-slider__hero-panel {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.school-news-slider__hero-panel.is-active {
    display: block;
    animation: schoolNewsFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.school-news-slider__hero-card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
}

.school-news-slider__hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.school-news-slider__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.school-news-slider__hero-card:hover .school-news-slider__hero-img {
    transform: scale(1.04);
}

.school-news-slider__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.45) 65%, rgba(0, 0, 0, 0.88) 100%);
    pointer-events: none;
}

.school-news-slider__hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

/* Badge Chuyên mục / Thông báo */
.school-news-slider__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background-color: #008751;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 135, 81, 0.35);
}

.school-news-slider__badge-icon {
    display: block;
    flex-shrink: 0;
}

/* Tiêu đề bài viết lớn */
.school-news-slider__hero-title {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Footer Hero Card */
.school-news-slider__hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.school-news-slider__date--hero {
    color: #f3f4f6;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.school-news-slider__arrow--hero {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.school-news-slider__hero-card:hover .school-news-slider__arrow--hero {
    transform: translateX(4px);
    background: rgba(0, 0, 0, 0.6);
    border-color: #ffffff;
}

/* ==================================================
   CỘT PHẢI: 3 NEWS CARDS (35-37% width)
   ================================================== */
.school-news-slider__list {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
}

.school-news-slider__tab {
    flex: 1;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid #ececec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    overflow: hidden;
    cursor: pointer;
}

.school-news-slider__tab:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Card đang Active / Featured */
.school-news-slider__tab.is-active {
    border: 2px solid #008751;
    background-color: #f6fcf8;
    box-shadow: 0 4px 14px rgba(0, 135, 81, 0.12);
}

.school-news-slider__card {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    box-sizing: border-box;
    gap: 12px;
}

/* Thumbnail bên trái card */
.school-news-slider__thumb {
    flex: 0 0 135px;
    height: 94px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.school-news-slider__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.school-news-slider__card:hover .school-news-slider__thumb-img {
    transform: scale(1.05);
}

/* Phần nội dung bên phải card */
.school-news-slider__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 4px 2px 0;
}

.school-news-slider__title {
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.38;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.school-news-slider__tab.is-active .school-news-slider__title {
    color: #008751;
}

/* Meta ngày đăng & nút arrow */
.school-news-slider__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.school-news-slider__date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.school-news-slider__date.school-news-slider__date--hero {
    color: #fff;
}

.school-news-slider__icon-cal {
    display: block;
    flex-shrink: 0;
    opacity: 0.85;
}

.school-news-slider__arrow--tab {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.school-news-slider__card:hover .school-news-slider__arrow--tab {
    transform: translateX(2px);
}

.school-news-slider__tab.is-active .school-news-slider__arrow--tab {
    background-color: #008751;
    color: #ffffff;
}

/* ==================================================
   KEYFRAMES
   ================================================== */
@keyframes schoolNewsFadeIn {
    from {
        opacity: 0;
        transform: scale(0.99);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}