/**
 * Module: List V2 (Thông tin - Thông báo)
 * Visual Redesign based on IMAGE 2
 * Scope: .school-notice-v2
 * Desktop-first layout, KHÔNG breakpoint responsive (@media) theo yêu cầu
 */

.school-notice-v2 {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px 0;
}

/* ==================================================
   HEADER MODULE
   ================================================== */
.school-notice-v2__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #047857 0%, #008751 55%, #059669 100%);
    border-radius: 16px;
    padding: 14px 24px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 135, 81, 0.15);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.school-notice-v2__header::after {
    content: "";
    position: absolute;
    right: -10px;
    top: -20px;
    width: 150px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 10%, transparent 70%);
    pointer-events: none;
}

.school-notice-v2__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    font-weight: 700;
    font-size: 18px;
    z-index: 1;
}

.school-notice-v2__header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.school-notice-v2__title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-transform: uppercase;
}

.school-notice-v2__see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e6f4ea;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.school-notice-v2__see-all:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* ==================================================
   DANH SÁCH CARDS
   ================================================== */
.school-notice-v2__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.school-notice-v2__card {
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

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

/* Card đầu tiên (Featured) */
.school-notice-v2__card.is-featured {
    border: 1.5px solid #a7f3d0;
    background-color: #f6fcf8;
    box-shadow: 0 2px 10px rgba(0, 135, 81, 0.06);
}

.school-notice-v2__card.is-featured .school-notice-v2__item-title a {
    color: #008751;
}

/* ==================================================
   DOCUMENT ICON BÊN TRÁI
   ================================================== */
.school-notice-v2__icon-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.school-notice-v2__card:hover .school-notice-v2__icon-box {
    transform: scale(1.05);
}

.school-notice-v2__doc-svg {
    display: block;
}

/* Themes màu pastel xoay vòng */
.school-notice-v2__card--theme-green .school-notice-v2__icon-box {
    background-color: #e8f8f0;
    color: #008751;
}

.school-notice-v2__card--theme-red .school-notice-v2__icon-box {
    background-color: #fef2f2;
    color: #ef4444;
}

.school-notice-v2__card--theme-blue .school-notice-v2__icon-box {
    background-color: #f0f9ff;
    color: #0284c7;
}

/* ==================================================
   NỘI DUNG Ở GIỮA
   ================================================== */
.school-notice-v2__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.school-notice-v2__item-title {
    margin: 0;
    padding: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
}

.school-notice-v2__item-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.school-notice-v2__item-title a:hover {
    color: #008751;
}

.school-notice-v2__excerpt {
    margin: 2px 0 0 0;
    padding: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-notice-v2__date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.school-notice-v2__cal-icon {
    display: block;
    opacity: 0.8;
}

/* ==================================================
   NÚT TẢI VỀ BÊN PHẢI
   ================================================== */
.school-notice-v2__action {
    flex-shrink: 0;
    padding-left: 24px;
    border-left: 1px solid #f1f5f9;
    margin-left: 4px;
}

.school-notice-v2__btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #e8f8f0;
    color: #008751;
    padding: 8px 10px 8px 20px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.school-notice-v2__btn-download:hover {
    background-color: #d1fae5;
    color: #007042;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 135, 81, 0.16);
}

.school-notice-v2__btn-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #008751;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.school-notice-v2__btn-download:hover .school-notice-v2__btn-arrow {
    transform: translateY(3px);
}

.school-notice-v2__empty {
    margin: 16px;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}