/* =================================================================
   HUCMS · News & Events Section  —  news-events.css
   Brand Colors aligned with landing page variables
   ================================================================= */

/* ---- Root overrides / aliases for this section ---- */
.ne-section {
    --ne-navy:        #071D43;
    --ne-blue:        #0b3d91;   /* matches landing --primary */
    --ne-blue-accent: #2367E8;
    --ne-blue-light:  #EAF2FF;
    --ne-text-dark:   #17243B;
    --ne-text-muted:  #65738B;
    --ne-bg:          #F6F8FC;
    --ne-white:       #FFFFFF;
    --ne-border:      #E2E8F0;
    --ne-radius:      14px;
    --ne-radius-lg:   20px;
    --ne-shadow:      0 4px 24px rgba(11,61,145,0.09);
    --ne-shadow-lg:   0 16px 56px rgba(11,61,145,0.14);
    --ne-transition:  all 0.35s cubic-bezier(0.4,0,0.2,1);
    background: var(--ne-bg);
    padding: 4rem 0;
}

/* ======================== SECTION HEADER ======================== */
.ne-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.ne-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ne-blue-accent);
    margin-bottom: 0.75rem;
}
.ne-main-title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--ne-text-dark);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.ne-main-title .highlight {
    color: var(--ne-blue);
    position: relative;
    display: inline-block;
}
.ne-main-title .highlight::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--ne-blue-accent), var(--ne-blue));
    border-radius: 2px;
    opacity: 0.5;
}
.ne-description {
    color: var(--ne-text-muted);
    font-size: 1rem;
    max-width: 540px;
    line-height: 1.65;
}
.ne-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: white;
    color: var(--ne-blue);
    border: 2px solid var(--ne-blue);
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--ne-transition);
    flex-shrink: 0;
}
.ne-view-all-btn:hover {
    background: var(--ne-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35,103,232,0.25);
}
.ne-view-all-btn i {
    transition: transform 0.25s ease;
}
.ne-view-all-btn:hover i {
    transform: translateX(4px);
}

/* ======================== MAIN LAYOUT ======================== */
.ne-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 1199px) {
    .ne-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 991px) {
    .ne-layout { grid-template-columns: 1fr; }
}

/* ======================== FILTER + SEARCH BAR ======================== */
.ne-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.ne-filter-btns {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex: 1;
}
.ne-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--ne-border);
    background: white;
    color: var(--ne-text-muted);
    cursor: pointer;
    transition: var(--ne-transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.ne-filter-btn:hover {
    border-color: var(--ne-blue);
    color: var(--ne-blue);
    background: var(--ne-blue-light);
}
.ne-filter-btn.active {
    background: var(--ne-blue);
    color: white;
    border-color: var(--ne-blue);
    box-shadow: 0 4px 14px rgba(11,61,145,0.25);
}
.ne-search-box {
    position: relative;
    flex-shrink: 0;
}
.ne-search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1.5px solid var(--ne-border);
    border-radius: 50px;
    background: white;
    font-size: 0.85rem;
    color: var(--ne-text-dark);
    width: 210px;
    transition: var(--ne-transition);
    outline: none;
    font-family: inherit;
}
.ne-search-input:focus {
    border-color: var(--ne-blue);
    box-shadow: 0 0 0 3px rgba(11,61,145,0.1);
    width: 240px;
}
.ne-search-input::placeholder { color: var(--ne-text-muted); }
.ne-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ne-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ======================== FEATURED NEWS CARD ======================== */
.ne-featured-card {
    border-radius: var(--ne-radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--ne-shadow-lg);
    border: 1px solid var(--ne-border);
    margin-bottom: 1.5rem;
    position: relative;
    transition: var(--ne-transition);
    cursor: pointer;
}
.ne-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(11,61,145,0.18);
}
.ne-featured-img-wrap {
    position: relative;
    overflow: hidden;
    height: 280px;
}
.ne-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.ne-featured-card:hover .ne-featured-img-wrap img {
    transform: scale(1.04);
}
.ne-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,29,67,0) 40%, rgba(7,29,67,0.82) 100%);
}
.ne-badge {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ne-badge-featured {
    background: linear-gradient(135deg, var(--ne-blue-accent), var(--ne-blue));
    color: white;
    box-shadow: 0 4px 12px rgba(35,103,232,0.4);
}
.ne-badge-urgent {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}
.ne-badge-important {
    background: #f59e0b;
    color: white;
}
.ne-featured-body {
    padding: 1.75rem;
}
.ne-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
/* Category badge colors */
.cat-academic     { background: #dbeafe; color: #1d4ed8; }
.cat-announcement { background: #ede9fe; color: #7c3aed; }
.cat-achievement  { background: #d1fae5; color: #059669; }
.cat-student-life { background: #fef3c7; color: #d97706; }
.cat-sports       { background: #fee2e2; color: #dc2626; }
.cat-community    { background: #f0f9ff; color: #0369a1; }
.cat-examination  { background: #fce7f3; color: #be185d; }
.cat-cultural     { background: #f5f0ff; color: #7c3aed; }
.cat-meeting      { background: #ecfdf5; color: #047857; }
.cat-workshop     { background: #fff7ed; color: #ea580c; }
.cat-holiday      { background: #fdf4ff; color: #a21caf; }

.ne-date {
    font-size: 0.78rem;
    color: var(--ne-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.ne-featured-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ne-text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
.ne-featured-desc {
    color: var(--ne-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.ne-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ne-blue);
    color: white;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--ne-transition);
    text-decoration: none;
}
.ne-read-btn:hover {
    background: var(--ne-navy);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11,61,145,0.3);
}
.ne-read-btn:hover .ne-arrow {
    transform: translateX(4px);
}
.ne-arrow { transition: transform 0.25s ease; }

/* ======================== NEWS CARD GRID ======================== */
.ne-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
@media (max-width: 1199px) {
    .ne-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ne-cards-grid { grid-template-columns: 1fr; }
}

.ne-news-card {
    background: white;
    border-radius: var(--ne-radius);
    overflow: hidden;
    border: 1px solid var(--ne-border);
    box-shadow: var(--ne-shadow);
    transition: var(--ne-transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.ne-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(11,61,145,0.14);
    border-color: rgba(11,61,145,0.15);
}
.ne-news-img-wrap {
    position: relative;
    overflow: hidden;
    height: 160px;
    flex-shrink: 0;
}
.ne-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.ne-news-card:hover .ne-news-img-wrap img {
    transform: scale(1.04);
}
.ne-news-body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ne-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ne-text-dark);
    line-height: 1.4;
    margin-bottom: 0.45rem;
}
.ne-card-excerpt {
    font-size: 0.82rem;
    color: var(--ne-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0.85rem;
}
.ne-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ne-blue);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: var(--ne-transition);
}
.ne-card-link:hover { color: var(--ne-navy); }
.ne-card-link:hover .ne-arrow { transform: translateX(4px); }

/* No results message */
.ne-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ne-text-muted);
    display: none;
}
.ne-no-results i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }

/* ======================== EVENTS SIDEBAR ======================== */
.ne-events-panel {
    position: sticky;
    top: 90px;
}
.ne-events-header {
    background: linear-gradient(135deg, var(--ne-navy) 0%, var(--ne-blue) 100%);
    border-radius: var(--ne-radius-lg) var(--ne-radius-lg) 0 0;
    padding: 1.5rem 1.5rem 1.25rem;
    color: white;
}
.ne-events-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.3rem;
}
.ne-events-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}
.ne-events-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.ne-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    background: rgba(255,255,255,0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--ne-transition);
    border: 1px solid rgba(255,255,255,0.25);
}
.ne-calendar-link:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}

/* ======================== MINI CALENDAR ======================== */
.ne-calendar-wrap {
    background: white;
    padding: 1.2rem;
    border-left: 1px solid var(--ne-border);
    border-right: 1px solid var(--ne-border);
}
.ne-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}
.ne-cal-month {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ne-text-dark);
}
.ne-cal-arrow {
    background: none;
    border: none;
    color: var(--ne-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: var(--ne-transition);
}
.ne-cal-arrow:hover {
    background: var(--ne-blue-light);
    color: var(--ne-blue);
}
.ne-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.ne-cal-weekday {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ne-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0;
}
.ne-cal-day {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ne-text-dark);
    padding: 0.35rem 0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--ne-transition);
    position: relative;
}
.ne-cal-day:hover:not(.empty):not(.other-month) {
    background: var(--ne-blue-light);
    color: var(--ne-blue);
}
.ne-cal-day.today {
    background: var(--ne-blue);
    color: white;
    font-weight: 700;
}
.ne-cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ne-blue-accent);
}
.ne-cal-day.today.has-event::after { background: white; }
.ne-cal-day.selected {
    background: var(--ne-blue-light);
    color: var(--ne-blue);
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--ne-blue);
}
.ne-cal-day.other-month { color: #c8d0dc; cursor: default; }
.ne-cal-day.empty { cursor: default; }

/* Calendar selected event popup */
.ne-cal-event-preview {
    background: var(--ne-blue-light);
    border-radius: var(--ne-radius);
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
    border-left: 3px solid var(--ne-blue);
    display: none;
}
.ne-cal-event-preview.show { display: block; animation: fadeIn 0.2s ease; }
.ne-cal-event-preview p { font-size: 0.8rem; margin: 0; color: var(--ne-text-dark); }
.ne-cal-event-preview small { color: var(--ne-text-muted); font-size: 0.72rem; }

/* ======================== EVENT CARDS ======================== */
.ne-events-list {
    background: white;
    padding: 1rem 1.2rem;
    border-left: 1px solid var(--ne-border);
    border-right: 1px solid var(--ne-border);
}
.ne-event-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--ne-border);
    cursor: pointer;
    transition: var(--ne-transition);
    border-radius: 0;
}
.ne-event-card:last-child { border-bottom: none; }
.ne-event-card:hover { background: transparent; }
.ne-event-card:hover .ne-event-date-block {
    background: var(--ne-blue);
    color: white;
}
.ne-event-date-block {
    min-width: 50px;
    width: 50px;
    background: var(--ne-blue-light);
    border-radius: 10px;
    text-align: center;
    padding: 0.5rem 0.3rem;
    transition: var(--ne-transition);
    flex-shrink: 0;
}
.ne-event-day {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ne-blue);
    line-height: 1;
    display: block;
    transition: var(--ne-transition);
}
.ne-event-card:hover .ne-event-day { color: white; }
.ne-event-month {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ne-text-muted);
    display: block;
    transition: var(--ne-transition);
}
.ne-event-card:hover .ne-event-month { color: rgba(255,255,255,0.75); }
.ne-event-info { flex: 1; min-width: 0; }
.ne-event-title {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--ne-text-dark);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}
.ne-event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ne-event-meta span {
    font-size: 0.73rem;
    color: var(--ne-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.ne-event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ne-blue);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: var(--ne-transition);
    margin-top: 0.4rem;
}
.ne-event-link:hover { color: var(--ne-navy); }
.ne-event-link:hover .ne-arrow { transform: translateX(3px); }

/* ======================== HIGHLIGHTED EVENT ======================== */
.ne-highlight-card {
    background: linear-gradient(135deg, var(--ne-blue) 0%, var(--ne-navy) 100%);
    border-radius: 0 0 var(--ne-radius-lg) var(--ne-radius-lg);
    padding: 1.5rem;
    color: white;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ne-hl-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 0.75rem;
}
.ne-hl-title {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.ne-hl-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
}
.ne-hl-meta span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.ne-hl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    color: var(--ne-blue);
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--ne-transition);
    border: none;
    cursor: pointer;
}
.ne-hl-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--ne-navy);
    transform: translateY(-1px);
}

/* ======================== COUNTDOWN ======================== */
.ne-countdown-wrap {
    background: var(--ne-blue-light);
    border-radius: var(--ne-radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(11,61,145,0.12);
}
.ne-cd-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ne-blue);
    margin-bottom: 0.25rem;
}
.ne-cd-event-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ne-text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.ne-cd-blocks {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.ne-cd-block {
    flex: 1;
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 0.7rem 0.3rem;
    box-shadow: 0 2px 8px rgba(11,61,145,0.1);
}
.ne-cd-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ne-blue);
    line-height: 1;
    display: block;
}
.ne-cd-unit {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--ne-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ======================== ACHIEVEMENTS ======================== */
.ne-achievements {
    background: white;
    border-radius: var(--ne-radius-lg);
    border: 1px solid var(--ne-border);
    box-shadow: var(--ne-shadow);
    padding: 1.75rem;
    margin-top: 1.5rem;
}
.ne-ach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.ne-ach-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ne-text-dark);
    letter-spacing: -0.3px;
}
.ne-ach-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ne-border);
    transition: var(--ne-transition);
    cursor: default;
}
.ne-ach-item:last-child { border-bottom: none; }
.ne-ach-item:hover { background: transparent; }
.ne-ach-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ne-blue-light);
    border-radius: 10px;
}
.ne-ach-info { flex: 1; }
.ne-ach-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ne-text-dark);
    margin-bottom: 0.15rem;
}
.ne-ach-date {
    font-size: 0.72rem;
    color: var(--ne-text-muted);
    margin-bottom: 0.2rem;
}
.ne-ach-desc {
    font-size: 0.78rem;
    color: var(--ne-text-muted);
    line-height: 1.5;
}

/* ======================== NOTIFICATIONS BAR ======================== */
.ne-notifications {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.ne-notif {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: white;
    border-radius: var(--ne-radius);
    padding: 0.85rem 1rem;
    border: 1px solid var(--ne-border);
    box-shadow: var(--ne-shadow);
    transition: var(--ne-transition);
}
.ne-notif:hover { box-shadow: 0 8px 28px rgba(11,61,145,0.1); }
.ne-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ne-notif.urgent .ne-notif-icon { background: #fef2f2; color: #ef4444; }
.ne-notif.important .ne-notif-icon { background: #fffbeb; color: #f59e0b; }
.ne-notif-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.2rem;
}
.ne-notif.urgent .ne-notif-badge { background: #fef2f2; color: #ef4444; }
.ne-notif.important .ne-notif-badge { background: #fffbeb; color: #d97706; }
.ne-notif-text {
    font-size: 0.83rem;
    color: var(--ne-text-dark);
    font-weight: 500;
    line-height: 1.4;
}
.ne-notif-close {
    background: none;
    border: none;
    color: var(--ne-text-muted);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.2s ease;
}
.ne-notif-close:hover { color: var(--ne-text-dark); }

/* ======================== CTA BOTTOM ======================== */
.ne-bottom-cta {
    background: linear-gradient(135deg, var(--ne-navy) 0%, var(--ne-blue) 60%, #1565c0 100%);
    border-radius: var(--ne-radius-lg);
    /* Reduced vertical space by 20% for a more compact CTA. */
    padding: 1.1rem 2rem;
    text-align: center;
    margin-top: 2.8rem;
    position: relative;
    overflow: hidden;
}
.ne-bottom-cta::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.ne-bottom-cta::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.ne-cta-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.45rem;
    letter-spacing: -0.5px;
}
.ne-cta-desc {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 1.3rem;
    line-height: 1.5;
}
.ne-cta-btns {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.ne-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: white;
    color: var(--ne-blue);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--ne-transition);
    border: none;
    cursor: pointer;
}
.ne-cta-btn-primary:hover {
    background: rgba(255,255,255,0.92);
    color: var(--ne-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.ne-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: var(--ne-transition);
    cursor: pointer;
}
.ne-cta-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
}

/* ======================== MODALS ======================== */
.ne-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(7,29,67,0.2);
    overflow: hidden;
}
.ne-modal .modal-header {
    border-bottom: 1px solid var(--ne-border);
    padding: 1.25rem 1.75rem;
}
.ne-modal .modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ne-text-dark);
}
.ne-modal .modal-body {
    padding: 0;
}
.ne-modal .modal-footer {
    border-top: 1px solid var(--ne-border);
    padding: 1rem 1.75rem;
    gap: 0.75rem;
}
.ne-modal-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.ne-modal-content-body {
    padding: 1.75rem;
}
.ne-modal-article-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ne-text-dark);
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}
.ne-modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ne-border);
}
.ne-modal-meta span {
    font-size: 0.8rem;
    color: var(--ne-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.ne-modal-body-text {
    font-size: 0.9rem;
    color: var(--ne-text-dark);
    line-height: 1.75;
}
.ne-share-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ne-border);
}
.ne-share-btns span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ne-text-muted);
    align-self: center;
    margin-right: 0.25rem;
}
.ne-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ne-transition);
}
.ne-share-fb  { background: #1877f2; color: white; }
.ne-share-tg  { background: #229ed9; color: white; }
.ne-share-wa  { background: #25d366; color: white; }
.ne-share-em  { background: #6b7280; color: white; }
.ne-share-btn:hover { opacity: 0.85; color: white; transform: translateY(-1px); }

/* Event modal details */
.ne-event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.ne-event-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.ne-event-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ne-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ne-event-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ne-text-dark);
}
.ne-add-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ne-blue);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--ne-transition);
}
.ne-add-cal-btn:hover {
    background: var(--ne-navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11,61,145,0.3);
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ne-fade-in { animation: fadeIn 0.4s ease forwards; }

.ne-news-card, .ne-featured-card, .ne-event-card {
    animation: fadeIn 0.4s ease forwards;
}

/* ======================== DARK MODE ======================== */
body.dark-mode .ne-section {
    --ne-bg:       #0d1526;
    --ne-white:    #151f35;
    --ne-border:   rgba(255,255,255,0.08);
    --ne-text-dark: #e2e8f0;
    --ne-text-muted: #94a3b8;
    --ne-blue-light: rgba(11,61,145,0.2);
    --ne-shadow:   0 4px 24px rgba(0,0,0,0.3);
    --ne-shadow-lg: 0 16px 56px rgba(0,0,0,0.4);
}
body.dark-mode .ne-news-card,
body.dark-mode .ne-featured-card,
body.dark-mode .ne-events-list,
body.dark-mode .ne-calendar-wrap,
body.dark-mode .ne-achievements,
body.dark-mode .ne-notif,
body.dark-mode .ne-cd-block {
    background: #151f35;
    border-color: rgba(255,255,255,0.08);
}
body.dark-mode .ne-filter-btn {
    background: #151f35;
    border-color: rgba(255,255,255,0.12);
    color: #94a3b8;
}
body.dark-mode .ne-search-input {
    background: #151f35;
    border-color: rgba(255,255,255,0.12);
    color: #e2e8f0;
}
body.dark-mode .ne-cal-day { color: #e2e8f0; }
body.dark-mode .ne-cal-day.other-month { color: #3d4f6b; }

/* ======================== RESPONSIVE TWEAKS ======================== */
@media (max-width: 767px) {
    .ne-section { padding: 3rem 0; }
    .ne-header-row { flex-direction: column; align-items: flex-start; }
    .ne-filter-bar { flex-direction: column; align-items: flex-start; }
    .ne-search-input, .ne-search-input:focus { width: 100%; }
    .ne-search-box { width: 100%; }
    .ne-event-detail-grid { grid-template-columns: 1fr; }
    .ne-cta-btns { flex-direction: column; align-items: center; }
    .ne-bottom-cta { padding: 2.5rem 1.25rem; }
    .ne-featured-img-wrap { height: 220px; }
    .ne-featured-body { padding: 1.25rem; }
}
