﻿:root {
    --aof-primary: #007A5E;
    --aof-primary-dark: #004D3E;
    --aof-primary-deep: #00261e;
    --aof-primary-light: #00A37E;
    --aof-gold: #EAAA00;
    --aof-gold-light: #FFD15C;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f1f5f3;
    --card-shadow: 0 10px 30px rgba(0, 77, 62, 0.04);
    --card-shadow-hover: 0 20px 40px rgba(0, 77, 62, 0.09);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 16px;
    --radius-md: 12px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
}

.custom-container {
    width: 85%;
    max-width: 1440px;
    margin: 0 auto;
}

/* TOP UTILITY BAR */
.top-utility-bar {
    background: var(--aof-primary-dark);
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    .top-utility-bar a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: var(--transition);
    }

        .top-utility-bar a:hover {
            color: var(--aof-gold-light);
        }

/* BRANDING HEADER SYSTEM */
.brand-header-zone {
    background: #ffffff;
    padding: 20px 0;
}

.logo-box {
    width: 75px;
    height: 75px;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    box-shadow: 0 12px 24px rgba(0, 122, 94, 0.12);
}

    .logo-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.title-large {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--aof-primary-dark) 0%, var(--aof-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* STICKY NAVIGATION BAR */
.sticky-nav-holder {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--aof-primary-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--aof-gold);
}

    .sticky-nav-holder .nav-link {
        color: rgba(255,255,255,0.85) !important;
        font-weight: 700;
        font-size: 0.85rem;
        padding: 20px 18px !important;
        text-transform: uppercase;
        transition: var(--transition);
    }

        .sticky-nav-holder .nav-link:hover,
        .sticky-nav-holder .nav-item.active .nav-link {
            color: #ffffff !important;
            background: var(--aof-primary);
        }

.btn-nav-highlight {
    background: var(--aof-gold);
    color: #000000 !important;
    font-weight: 800 !important;
    height: 100%;
    display: flex;
    align-items: center;
}

/* [💡 SỬA ĐỒNG BỘ TIÊU ĐỀ & MARGIN PHÂN KHU THOÁNG ĐẠT] */
.section-space {
    padding: 50px 0;
}
/* Tăng khoảng cách margin giữa các phân đoạn chính */
.section-title-wrap {
    margin-bottom: 30px;
}

    .section-title-wrap h2 {
        font-size: 1.45rem;
        font-weight: 800;
        position: relative;
        padding-left: 15px;
        text-transform: uppercase; /* Đồng bộ IN HOA toàn hệ thống */
        color: var(--aof-primary-dark);
        letter-spacing: 0.3px;
    }

        .section-title-wrap h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10%;
            bottom: 10%;
            width: 5px;
            background: var(--aof-gold);
            border-radius: 4px;
        }

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 5px;
    margin-bottom: 0;
}

/* [🛠️ TỐI ƯU 1: KHỐI BANNER TUYỂN SINH] */
.admission-hero-zone {
    padding: 40px 0 20px 0;
}

.admission-card {
    height: 340px;
    border-radius: var(--radius-md); /* [SỬA] Bo tròn góc nhẹ đồng bộ hệ thống nút */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 77, 62, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

    .admission-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 45, 36, 0.15);
    }

    .admission-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .admission-card:hover img {
        transform: scale(1.05);
    }

.admission-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 31, 24, 0.98) 0%, rgba(0, 56, 43, 0.6) 60%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px 35px 40px 35px; /* [SỬA] Đẩy không gian thở bên trong rộng ra, sửa chữ bị dính sát lề */
}

    .admission-overlay h3 {
        font-size: 1.4rem;
        font-weight: 800;
        line-height: 1.45;
        text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }

.btn-admission-action {
    align-self: flex-start;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.card-master .btn-admission-action {
    background: var(--aof-gold);
    color: #000000;
}

.card-phd .btn-admission-action {
    background: #dc3545;
    color: #ffffff;
}

.btn-admission-action i {
    transition: transform 0.3s ease;
}

.admission-card:hover .btn-admission-action i {
    transform: translateX(5px);
}

/* [🛠️ TỐI ƯU 2: THÔNG TIN NỔI BẬT & VĂN BẢN THÔNG BÁO (TỶ LỆ 50% - 50%)] */
.featured-news-zone {
    padding: 20px 0;
}

.news-universe-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #edf2f0;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

    .news-universe-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--card-shadow-hover);
        border-color: rgba(0, 122, 94, 0.15);
    }

.news-media-frame {
    height: 170px;
    overflow: hidden;
}

    .news-media-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-content-block {
    padding: 20px;
}

.news-date-tag {
    font-size: 0.75rem;
    color: var(--aof-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.news-anchor-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.5;
    display: block;
}

    .news-anchor-title:hover {
        color: var(--aof-primary);
    }

/* Khối thông báo dạng scan danh mục biểu tượng */
.notice-list-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid #edf2f0;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-notice-row {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* [SỬA] Bố cục dạng dòng có icon định hướng quét thị giác nhanh */
    padding-bottom: 18px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 18px;
}

    .mini-notice-row:last-child {
        border: none;
        margin: 0;
        padding-bottom: 0;
    }

.notice-icon-indicator {
    width: 36px;
    height: 36px;
    background: rgba(0, 122, 94, 0.06);
    color: var(--aof-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mini-notice-link {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.45;
    display: block;
}

    .mini-notice-link:hover {
        color: var(--aof-primary);
    }

/* [🛠️ TỐI ƯU 3: KHỐI LUẬN ÁN - GOM CỤM THÔNG TIN HÀNH ĐỘNG] */
.thesis-item-row {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid #eef3f1;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

    .thesis-item-row:hover {
        border-color: rgba(0, 122, 94, 0.2);
        box-shadow: var(--card-shadow-hover);
        transform: translateX(4px);
    }

.thesis-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(234, 170, 0, 0.1);
    color: #b58400;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.thesis-texts-wrapper {
    flex-grow: 1;
}

    .thesis-texts-wrapper h4 {
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 8px 0;
        line-height: 1.5;
    }

        .thesis-texts-wrapper h4 a {
            color: var(--text-main);
            text-decoration: none;
        }

            .thesis-texts-wrapper h4 a:hover {
                color: var(--aof-primary);
            }

.thesis-meta-chips {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
/* Phân tách nhẹ khoảng cách */
.meta-chip {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* [SỬA] Đưa cụm nút tương tác trực tiếp lên ngay dưới khối text để giảm tối đa rà chuột đường dài */
.thesis-action-cluster {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-thesis-interactive {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Nút hành động xem thêm tập trung ở chân trang (Loadmore style) */
.section-loadmore-holder {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* [🛠️ TỐI ƯU 4: LỊCH BẢO VỆ PHONG CÁCH LỊCH TRÌNH BAY CAO CẤP] */
.magazine-schedule-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 10px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 122, 94, 0.05);
}

.timeline-magazine-row {
    display: grid;
    grid-template-columns: 110px 1fr auto; /* Cột 1 cố định ngày, Cột 2 text trung tâm, Cột 3 nút bấm */
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eef3f1;
    transition: var(--transition);
}

    .timeline-magazine-row:last-child {
        border-bottom: none;
    }

/* Cột 1: Ngày tháng */
.magazine-date-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 2px solid var(--aof-gold);
    padding-right: 15px;
}

    .magazine-date-column .day-big {
        font-size: 2rem;
        font-weight: 800;
        color: var(--aof-primary-dark);
        line-height: 1;
    }

    .magazine-date-column .month-small {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-top: 4px;
    }

/* Cột 2: Text Phân tầng rõ rệt (Tên NCS & Đề tài lên làm trọng tâm chữ to đậm) */
.magazine-info-column {
    padding-left: 25px;
    padding-right: 20px;
}

.magazine-meta-line {
    display: flex;
    gap: 15px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--aof-primary-light);
    margin-bottom: 8px;
    align-items: center;
}

.magazine-thesis-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.5;
    display: block;
    transition: var(--transition);
}

    .magazine-thesis-title:hover {
        color: var(--aof-primary);
    }

.magazine-council-text {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* Cột 3: Nút điều hướng vòng tròn */
.magazine-action-column .btn-circle-explore {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--aof-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.timeline-magazine-row:hover .btn-circle-explore {
    background: var(--aof-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 122, 94, 0.2);
}

/* THƯ VIỆN ẢNH MOSAIC */
.mosaic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 130px;
    gap: 14px;
}

.mosaic-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

    .mosaic-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

    .mosaic-item:hover img {
        transform: scale(1.08);
    }

.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 77, 62, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
    font-size: 1.2rem;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.span-h2 {
    grid-row: span 2;
}

.span-w2 {
    grid-column: span 2;
}



.main-article-wrapper {
    padding: 15px 0 60px 0;
}

.article-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 122, 94, 0.05);
}

.article-category {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--aof-primary);
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--aof-primary-dark);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.article-meta-bar {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-weight: 500;
}

    .article-meta-bar span i {
        color: var(--aof-gold);
    }

.breadcrumb-wrapper {
    padding: 25px 0 5px 0;
}

.breadcrumb-item a {
    color: var(--aof-primary);
    text-decoration: none;
    font-weight: 600;
}

    .breadcrumb-item a:hover {
        color: var(--aof-primary-dark);
    }

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}


/* NỘI DUNG CHI TIẾT (TYPOGRAPHY) */
.article-body-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}

    .article-body-content p {
        margin-bottom: 24px;
        text-align: justify;
    }

    .article-body-content strong {
        color: var(--text-main);
        font-weight: 700;
    }

.article-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--aof-primary-dark);
    border-left: 4px solid var(--aof-gold);
    padding-left: 20px;
    margin-bottom: 30px;
    line-height: 1.65;
}

.article-image-box {
    margin: 35px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

    .article-image-box img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

.article-image-caption {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 12px;
    display: block;
    text-align: center;
}

/* KHỐI ĐÍNH KÈM TÀI LIỆU VĂN BẢN */
.download-attachments-zone {
    background: rgba(0, 122, 94, 0.03);
    border: 1px solid rgba(0, 122, 94, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 45px;
}

.download-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #cbd5e1;
    gap: 15px;
}

    .download-item-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .download-item-row:first-child {
        padding-top: 0;
    }

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .file-info i {
        font-size: 1.4rem;
    }

    .file-info .fa-file-pdf {
        color: #ef4444;
    }

    .file-info .fa-file-word {
        color: #2563eb;
    }

.file-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

    .file-name:hover {
        color: var(--aof-primary);
    }

/* SIDEBAR TIN TỨC LIÊN QUAN */
.sidebar-sticky-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 122, 94, 0.05);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--aof-primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--aof-gold);
    letter-spacing: 0.5px;
}

.sidebar-news-item {
    padding: 14px 0;
    border-bottom: 1px solid #edf2f0;
    display: block;
    text-decoration: none;
}

    .sidebar-news-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .sidebar-news-item:first-child {
        padding-top: 0;
    }

.sidebar-news-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.45;
    display: block;
    transition: var(--transition);
}

.sidebar-news-item:hover .sidebar-news-title {
    color: var(--aof-primary);
}

.sidebar-news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
}



/* FOOTER */
.footer-universe {
    background: linear-gradient(135deg, var(--aof-primary-deep) 0%, var(--aof-primary-dark) 100%);
    color: #cbd5e1;
    padding: 60px 0 30px 0;
    border-top: 6px solid var(--aof-gold);
    font-size: 0.88rem;
}

.footer-head-title {
    color: var(--aof-gold);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-link-item {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    transition: var(--transition);
}

    .footer-link-item:hover {
        color: var(--aof-gold-light);
        transform: translateX(4px);
    }

.footer-hotline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-hotline-list li {
        margin-bottom: 12px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.4;
    }

.hotline-tag {
    background: rgba(234, 170, 0, 0.15);
    color: var(--aof-gold-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.hotline-number {
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

    .hotline-number:hover {
        color: var(--aof-gold-light);
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .timeline-magazine-row {
        grid-template-columns: 1fr;
        gap: 15px;
        align-items: flex-start;
    }

    .magazine-date-column {
        border-right: none;
        border-left: 3px solid var(--aof-gold);
        padding-right: 0;
        padding-left: 15px;
    }

    .magazine-info-column {
        padding-left: 0;
    }

    .magazine-action-column {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .admission-card {
        height: 320px;
    }

    .admission-overlay {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .custom-container {
        width: 92%;
    }

    .mosaic-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-w2 {
        grid-column: span 1;
    }
}
.hover-tag {
    transition: var(--transition);
}

    .hover-tag:hover {
        background-color: var(--aof-primary) !important;
        color: #ffffff !important;
        border-color: var(--aof-primary) !important;
    }
/* BỐ CỤC CHI TIẾT TIN */
.main-article-wrapper {
    padding: 15px 0 60px 0;
}

.article-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 122, 94, 0.05);
}

.article-category {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--aof-primary);
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--aof-primary-dark);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.article-meta-bar {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-weight: 500;
}

    .article-meta-bar span i {
        color: var(--aof-gold);
    }

/* ĐỊNH DẠNG KHỐI NỘI DUNG LỊCH BẢO VỆ */
.defense-info-box {
    background: rgba(0, 122, 94, 0.02);
    border-left: 5px solid var(--aof-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 30px;
    margin-bottom: 30px;
}

.defense-table th {
    font-weight: 700;
    color: var(--aof-primary-dark);
    width: 25%;
    background-color: rgba(0, 122, 94, 0.04) !important;
}

.defense-table td {
    color: #334155;
    line-height: 1.6;
}

.invitation-alert {
    background-color: rgba(234, 170, 0, 0.1);
    border: 1px dashed var(--aof-gold);
    color: var(--aof-primary-dark);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
/* FILTER TABS AT TOP OF LIST */
.news-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}

    .filter-btn:hover, .filter-btn.active {
        background: var(--aof-primary);
        color: #ffffff;
        border-color: var(--aof-primary);
    }

/* GRID/LIST LAYOUT FOR NEWS */
.main-content-layout {
    padding: 50px 0;
}

/* News Item Style (Dạng Card Ngang Cao Cấp) */
.news-row-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #edf2f0;
    transition: var(--transition);
    display: flex;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    .news-row-card {
        flex-direction: column;
    }
}

.news-row-img {
    width: 280px;
    min-width: 280px;
    height: 210px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .news-row-img {
        width: 100%;
    }
}

.news-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-row-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-row-tag {
    font-size: 0.75rem;
    color: var(--aof-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.news-row-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 10px;
    display: block;
}

    .news-row-title:hover {
        color: var(--aof-primary);
    }

.news-row-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.news-row-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 122, 94, 0.15);
}

    .news-row-card:hover .news-row-img img {
        transform: scale(1.05);
    }

/* PAGINATION */
.aof-pagination .page-link {
    border-radius: 10px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    font-weight: 700;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.aof-pagination .page-item.active .page-link {
    background: var(--aof-primary);
    border-color: var(--aof-primary);
    color: #ffffff;
}

.aof-pagination .page-link:hover {
    background: var(--bg-light);
    color: var(--aof-primary);
}

/* SIDEBAR COMPONENTS */
.sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid #edf2f0;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--aof-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    color: var(--aof-primary-dark);
}

/* Mini Hot News in Widget */
.mini-hot-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #edf2f0;
}

    .mini-hot-item:last-child {
        margin: 0;
        padding: 0;
        border: none;
    }

.mini-hot-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

    .mini-hot-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.mini-hot-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

    .mini-hot-title:hover {
        color: var(--aof-primary);
    }

/* Quick Docs Link in Widget */
.quick-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

    .quick-doc-row:hover {
        background: var(--aof-primary-dark);
        color: #ffffff;
    }
.academic-breadcrumb-zone {
    background: linear-gradient(135deg, var(--aof-primary-deep) 0%, var(--aof-primary-dark) 100%);
    padding: 40px 0;
    color: #ffffff;
}

    .academic-breadcrumb-zone h2 {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

/* ======================================================================= */
/* STYLE ĐỘC LẬP CHO KHỐI SLIDER LỊCH BẢO VỆ CẤP HỌC VIỆN */
/* ======================================================================= */

/* ======================================================================= */
/* STYLE ĐỘC LẬP CHO KHỐI SLIDER LỊCH BẢO VỆ CẤP HỌC VIỆN (4 ITEMS/SLIDE)  */
/* ======================================================================= */
.defense-news-slider-zone {
    position: relative;
}

.defense-slider-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    padding: 10px 0;
}

.defense-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.defense-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: 100%;
}

/* Ép cấu hình hiển thị chuẩn 4 items trên màn hình lớn (> 1200px) */
.defense-slide-card {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px; /* Thu hẹp nhẹ khoảng cách padding để vừa vặn layout 4 card */
    box-sizing: border-box;
}

.defense-card-inner {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #eef4f1;
    padding: 20px; /* Thu nhỏ padding trong card một chút giúp text thoáng hơn */
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 77, 62, 0.03);
    transition: all 0.4s ease;
}

    .defense-card-inner:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0, 77, 62, 0.08);
        border-color: rgba(0, 122, 94, 0.2);
    }

/* Khung Media thu nhỏ chiều cao từ 380px -> 220px giúp ảnh không nuốt trọn card */
.defense-card-media-frame {
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    position: relative;
    background-color: #f8fafc; /* Tạo nền sáng phía sau nếu ảnh dạng transparent */
}

    .defense-card-media-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Chuyển từ contain sang cover để ảnh lấp đầy khung trông hiện đại hơn */
    }

/* Khối ruy-băng ngày tháng tinh chỉnh nhỏ gọn, đặt góc trên ảnh */
.defense-card-date-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #198754;
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    z-index: 2;
}

    .defense-card-date-ribbon .day {
        font-size: 1.25rem;
        font-weight: 800;
        line-height: 1;
        color: #fff !important;
    }

    .defense-card-date-ribbon .month-year {
        font-size: 0.68rem;
        font-weight: 700;
        color: #fff;
        margin-top: 1px;
    }

.defense-card-status {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    z-index: 2;
}

    .defense-card-status .badge {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.defense-card-body-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.defense-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

    .defense-card-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

/* Khống chế tiêu đề hiển thị chuẩn tối đa 2 dòng (Hạ chiều cao cố định xuống 3.0em) */
.defense-card-title-link {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.9em;
    transition: color 0.3s ease;
}

    .defense-card-title-link:hover {
        color: var(--aof-primary);
    }

.defense-card-footer-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    margin-bottom: 12px;
}

.text-truncate-2-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
}

.btn-read-defense {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--aof-primary);
    text-decoration: none !important;
    text-transform: uppercase;
    transition: gap 0.3s ease;
}

    .btn-read-defense i {
        transition: transform 0.3s ease;
    }

.defense-card-inner:hover .btn-read-defense i {
    transform: translateX(4px);
}

/* --- HỆ THỐNG NÚT ĐIỀU HƯỚNG CHUẨN Z-INDEX --- */
.defense-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #198754;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15; /* Nổi hoàn toàn trên các bề mặt card */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

    .defense-nav-btn:hover {
        background-color: #198754;
        color: #ffffff;
        border-color: #198754;
    }

    .defense-nav-btn.prev-btn {
        left: -20px;
    }

    .defense-nav-btn.next-btn {
        right: -20px;
    }

/* Responsive quy định số lượng cột hiển thị linh hoạt */
@media (max-width: 1400px) {
    .defense-slide-card {
        flex: 0 0 33.3333%; /* 3 items trên laptop phổ thông */
        max-width: 33.3333%;
    }
}

@media (max-width: 992px) {
    .defense-slide-card {
        flex: 0 0 50%; /* 2 items trên máy tính bảng */
        max-width: 50%;
    }

    .defense-nav-btn.prev-btn {
        left: -5px;
    }

    .defense-nav-btn.next-btn {
        right: -5px;
    }
}

@media (max-width: 576px) {
    .defense-slide-card {
        flex: 0 0 100%; /* 1 item trên mobile */
        max-width: 100%;
    }
}






.fab-container {
    position: fixed;
    right: 0rem;
    z-index: 9999;
}

.fab1 {
    top: 40%;
}

.fab2 {
    top: calc(40% + 4.0625rem);
}

.fab3 {
    top: calc(40% + 8.125rem);
}

.fab4 {
    top: calc(40% + 12.1875rem);
}

/* ITEM */
.fab-item {
    display: flex;
    align-items: center;
    width: 3.125rem;
    height: 3.125rem;
    background: #15AC8C;
    border-radius: 3.125rem 0 0 3.125rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 5px 0 5px 5px;
    text-decoration: none; /* bỏ gạch chân */
}

    /* ICON WRAP */
    .fab-item .icon {
        width: 2.5rem;
        height: 2.5rem;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        /* ICON */
        .fab-item .icon i {
            color: #15AC8C;
            font-size: 1.125rem;
        }

    /* TEXT */
    .fab-item span {
        opacity: 0;
        width: 0;
        white-space: nowrap;
        overflow: hidden;
        margin-left: 0.625rem;
        transition: 0.3s;
        color: #fff;
    }

    /* ACTIVE */
    .fab-item.active {
        width: 11.25rem;
    }

        /* SHOW TEXT */
        .fab-item.active span {
            opacity: 1;
            width: auto;
            margin-right: 0.9375rem;
        }

    .fab-item:hover {
        width: 11.25rem;
    }
        /* show text */

        .fab-item:hover span {
            opacity: 1;
            width: auto;
            margin-right: 0.9375rem;
        }
/* ======================================================================= */
/* SIÊU PHÓNG TO THƯ VIỆN ẢNH (MEGA MOSAIC GALLERY WALL)                   */
/* ======================================================================= */
.mosaic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Đẩy từ 200px lên hẳn 280px. Ô đôi span-h2 sẽ cao lên tới gần 580px! */
    grid-auto-rows: 280px;
    gap: 20px; /* Nới rộng khoảng cách lên 20px để các thớ ảnh lớn có không gian thở */
    margin-top: 30px;
}

.mosaic-item {
    position: relative;
    border-radius: 20px; /* Bo tròn góc mạnh hơn (20px) nhìn cực kỳ sang trọng khi ảnh rất to */
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 77, 62, 0.12); /* Đổ bóng sâu dầy hơn để đỡ cho khối ảnh nặng */
    background-color: #f8fafc;
}

    .mosaic-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Giữ nguyên để ảnh không bị méo khi kéo giãn cực đại */
        transition: opacity 0.6s ease-in-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Hiệu ứng chuyển động cinematic khi hover vào ảnh khổng lồ */
    .mosaic-item:hover img {
        transform: scale(1.06);
    }

.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 45, 36, 0.95) 0%, rgba(0, 122, 94, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: all 0.4s ease;
}

    .mosaic-overlay i {
        font-size: 2.5rem; /* Icon expand to rõ nét giữa tâm ảnh */
        transform: scale(0.7);
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

    .mosaic-item:hover .mosaic-overlay i {
        transform: scale(1);
    }

/* Các thuộc tính cấu trúc ô */
.span-h2 {
    grid-row: span 2; /* Chiều cao chiếm 2 hàng liên tiếp (~580px) */
}

.span-w2 {
    grid-column: span 2; /* Chiều rộng chiếm 2 cột liên tiếp */
}

/* --- RESPONSIVE THÔNG MINH (HẠ BẬC ĐỂ TRÁNH TRÀN MÀN HÌNH NHỎ) --- */
@media (max-width: 1400px) {
    .mosaic-gallery-grid {
        grid-auto-rows: 220px; /* Vừa vặn với màn hình laptop phổ thông */
    }
}

@media (max-width: 992px) {
    .mosaic-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Thu về layout 2 cột */
        grid-auto-rows: 180px;
        gap: 12px;
    }

    .span-w2 {
        grid-column: span 1; /* Hủy trải rộng bề ngang trên tablet/mobile */
    }
}

@media (max-width: 576px) {
    .mosaic-gallery-grid {
        grid-auto-rows: 150px;
    }

    .mosaic-item {
        border-radius: 12px; /* Mobile dùng góc bo nhỏ hơn để trông thanh thoát */
    }
}
/* ======================================================================= */
/* PHONG CÁCH LẠ: SPLIT MAGAZINE DASHBOARD CHO LỊCH BẢO VỆ                 */
/* ======================================================================= */
.defense-magazine-dashboard {
    padding: 60px 0;
}

/* CỘT TRÁI: KHỐI HIỂN THỊ POSTER/HERO */
.magazine-hero-preview {
    position: relative;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 77, 62, 0.15);
    background: var(--aof-primary-deep);
}

.hero-preview-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .hero-preview-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.4; /* Làm mờ ảnh để nổi bật thông tin chữ */
        transition: all 0.5s ease;
    }

.hero-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 38, 30, 0.95) 0%, rgba(0, 77, 62, 0.4) 70%, transparent 100%);
}

/* Khối ngày tháng đặt bay lơ lửng góc trên */
.hero-date-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

    .hero-date-badge #heroPreviewDay {
        font-size: 1.8rem;
        font-weight: 900;
        line-height: 1;
    }

    .hero-date-badge #heroPreviewMonth {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-top: 2px;
    }

.hero-preview-overlay h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.hero-preview-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-hero-action {
    align-self: flex-start;
    padding: 12px 24px;
    background-color: var(--aof-gold);
    color: #000000 !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 12px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(234, 170, 0, 0.3);
    transition: all 0.3s ease;
}

    .btn-hero-action:hover {
        background-color: #ffffff;
        transform: translateY(-3px);
    }

/* CỘT PHẢI: DANH SÁCH THẺ TRƯỢT SANG TRỌNG */
.magazine-slider-wrapper {
    overflow: hidden;
    height: 480px; /* Bằng chiều cao khối ảnh bên trái */
    padding-right: 10px;
}

.magazine-slider-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.magazine-compact-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Định dạng số thứ tự chạy cách điệu */
.mag-card-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #cbd5e1;
    font-style: italic;
    min-width: 35px;
}

.mag-card-body {
    flex-grow: 1;
}

.mag-card-time {
    font-size: 0.75rem;
    color: var(--aof-primary-light);
    font-weight: 700;
    margin-bottom: 4px;
}

.mag-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mag-card-arrow {
    color: #94a3b8;
    transition: transform 0.3s ease;
}

/* TRẠNG THÁI ACTIVE: Thẻ được chọn sẽ tự sáng lên cực đẹp */
.magazine-compact-card:hover,
.magazine-compact-card.active-card {
    border-color: var(--aof-primary);
    background-color: rgba(0, 122, 94, 0.03);
    box-shadow: 0 10px 25px rgba(0, 77, 62, 0.05);
}

    .magazine-compact-card.active-card .mag-card-num {
        color: var(--aof-primary);
    }

    .magazine-compact-card.active-card .mag-card-arrow {
        transform: translateX(4px);
        color: var(--aof-primary);
    }

/* CỤM NÚT ĐIỀU HƯỚNG FLOATING */
.magazine-nav-cluster {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.mag-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

    .mag-nav-btn:hover {
        background: var(--aof-primary-dark);
        color: #ffffff;
        border-color: var(--aof-primary-dark);
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .magazine-hero-preview {
        height: 380px;
    }

    .magazine-slider-wrapper {
        height: auto;
        overflow: visible;
    }

    .magazine-nav-cluster {
        display: none; /* Ẩn nút điều hướng trên điện thoại */
    }
}