/* Home page — news sidebar panel */
.home-news-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(6, 26, 40, 0.1);
    border-left: 4px solid #f9c833;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 16px 40px rgba(6, 26, 40, 0.1);
    overflow: hidden;
}

.home-news-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px 16px;
    background: linear-gradient(135deg, #04121c 0%, #061a28 60%, #081f2f 100%);
    border-bottom: 1px solid rgba(249, 200, 51, 0.2);
}

.home-news-panel-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #061a28;
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(249, 200, 51, 0.3);
}

.home-news-panel-icon i {
    font-size: 1.1rem;
}

.home-news-panel-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.home-news-panel-subtitle {
    margin: 2px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.04em;
}

.home-news-list-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0 6px;
}

.home-news-type-section {
    margin: 0 12px 14px;
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(6, 26, 40, 0.05);
}

.home-news-marquee {
    position: relative;
    height: 132px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.home-news-marquee::before,
.home-news-marquee::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(6, 26, 40, 0.06);
    z-index: 1;
    pointer-events: none;
}

.home-news-marquee::before {
    top: 0;
}

.home-news-marquee::after {
    bottom: 0;
}

.home-news-marquee-track {
    display: flex;
    flex-direction: column;
    animation: home-news-marquee-scroll var(--marquee-duration, 18s) linear infinite;
    will-change: transform;
}

.home-news-marquee:hover .home-news-marquee-track,
.home-news-marquee:focus-within .home-news-marquee-track {
    animation-play-state: paused;
}

@keyframes home-news-marquee-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.home-news-type-section:last-child {
    margin-bottom: 10px;
}

.home-news-type-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #061a28;
    background: rgba(6, 26, 40, 0.04);
    border-bottom: 1px solid rgba(6, 26, 40, 0.06);
}

.home-news-type-title i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.home-news-type-section--administrative .home-news-type-title {
    color: #1e3a5f;
}

.home-news-type-section--administrative .home-news-type-title i {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.14);
}

.home-news-type-section--academic .home-news-type-title {
    color: #065f46;
}

.home-news-type-section--academic .home-news-type-title i {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

.home-news-type-section--recent-achievement .home-news-type-title {
    color: #92400e;
}

.home-news-type-section--recent-achievement .home-news-type-title i {
    color: #b45309;
    background: rgba(249, 200, 51, 0.22);
}

.home-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-news-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(6, 26, 40, 0.06);
    transition: background 0.2s ease;
}

.home-news-type-section .home-news-item:last-child {
    border-bottom: none;
}

.home-news-marquee .home-news-item:hover {
    background: rgba(249, 200, 51, 0.08);
}

.home-news-date {
    flex-shrink: 0;
    width: 54px;
    text-align: center;
    padding: 8px 6px;
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(6, 26, 40, 0.05);
}

.home-news-date-day {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #061a28;
    line-height: 1.1;
}

.home-news-date-month {
    display: block;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.2;
}

.home-news-content {
    min-width: 0;
    flex: 1;
}

.home-news-heading {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-news-heading i {
    margin-top: 3px;
    font-size: 0.72rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-news-heading:hover {
    color: #92400e;
}

.home-news-heading:hover i {
    color: #f9c833;
    transform: translateY(1px);
}

.home-news-heading--static {
    cursor: default;
}

.home-news-date-text {
    display: block;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #94a3b8;
}

.home-news-empty {
    padding: 28px 20px;
    text-align: center;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
}

.home-news-empty i {
    display: block;
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: #cbd5e1;
}

.home-news-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(6, 26, 40, 0.08);
    background: rgba(248, 250, 252, 0.9);
}

.home-news-archive-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #061a28 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(249, 200, 51, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-news-archive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(249, 200, 51, 0.38);
    color: #061a28 !important;
}

.home-news-archive-btn i {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.home-news-archive-btn:hover i {
    transform: translateX(3px);
}

/* Home page — three-column news section */
.home-news-columns-section {
    padding: 50px 0 56px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f8fafc 100%);
}

.home-news-columns-header {
    margin-bottom: 32px;
}

.home-news-columns-heading {
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 700;
    color: #061a28;
}

.home-news-columns-subheading {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
}

.home-news-columns-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 24px;
}

.home-news-column-col {
    display: flex;
}

.home-news-column-card {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(6, 26, 40, 0.08);
}

.home-news-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #04121c 0%, #061a28 60%, #081f2f 100%);
    border-bottom: 1px solid rgba(249, 200, 51, 0.18);
}

.home-news-column-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    flex-shrink: 0;
    color: #061a28;
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%);
    box-shadow: 0 4px 14px rgba(249, 200, 51, 0.28);
}

.home-news-column-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.home-news-column-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
}

.home-news-column-body .home-news-list {
    flex: 1;
}

.home-news-column-body .home-news-item {
    min-height: 80px;
}

.home-news-column-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 400px;
    padding: 40px 20px;
}

.home-news-column-card--administrative .home-news-column-icon {
    color: #1d4ed8;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.home-news-column-card--academic .home-news-column-icon {
    color: #047857;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.home-news-column-card--recent-achievement .home-news-column-icon {
    color: #b45309;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.home-news-columns-footer {
    margin-top: 28px;
}

.home-news-columns-archive-btn {
    display: inline-flex;
    width: auto;
    min-width: 220px;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 991px) {
    .home-news-column-body,
    .home-news-column-empty {
        min-height: 360px;
        max-height: 360px;
    }
}

@media (max-width: 767px) {
    .home-news-columns-section {
        padding: 40px 0 48px;
    }

    .home-news-column-body,
    .home-news-column-empty {
        min-height: 320px;
        max-height: none;
    }
}

/* News archive page */
.news-archive-page {
    padding: 50px 0 70px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.news-archive-header {
    margin-bottom: 28px;
    text-align: center;
}

.news-archive-header h1 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #061a28;
}

.news-archive-header p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #64748b;
    font-size: 0.95rem;
}

.news-archive-card {
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(6, 26, 40, 0.08);
    overflow: hidden;
}

.news-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-archive-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(6, 26, 40, 0.06);
    transition: background 0.2s ease;
}

.news-archive-item:last-child {
    border-bottom: none;
}

.news-archive-item:hover {
    background: rgba(249, 200, 51, 0.05);
}

.news-archive-date-badge {
    flex-shrink: 0;
    min-width: 92px;
    padding: 8px 10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #061a28;
    background: rgba(249, 200, 51, 0.18);
    border-radius: 10px;
}

.news-archive-link {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-archive-link:hover {
    color: #92400e;
}

.news-archive-link i {
    color: #f9c833;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .home-news-panel {
        min-height: 0;
        border-left: none;
        border-top: 4px solid #f9c833;
        border-radius: 0 0 16px 16px;
        margin-top: 0;
    }

    .home-news-marquee {
        height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-news-marquee-track {
        animation: none;
    }

    .home-news-marquee {
        height: auto;
        max-height: 180px;
        overflow-y: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}
