/* ============================================================
   RJMC — Notice Page Styles  v3.0
   Matches: style.css  · Red · Teal · Deep palette
   Mini Hero: mirrors ourmission.css  (nt- prefix)
   § 2 REDESIGNED: List layout (replaces card grid)
   Fonts: Playfair Display (display) · DM Sans (body)
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   § 1 — MINI HERO
══════════════════════════════════════════════════════════ */
.nt-mini-hero {
    position: relative;
    background-image: linear-gradient(145deg, rgba(22,55,69,.95) 0%, rgba(44,104,123,.88) 55%, rgba(140,199,196,.30) 100%), url('../images/rjmc-mini-banner.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 310px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.nt-hero-geo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nt-hero-geo--1 {
    top: -70px;
    right: -70px;
    width: 340px;
    height: 340px;
    border: 1.5px solid rgba(140,199,196,.12);
    animation: ntGeoSpin 24s linear infinite;
}

.nt-hero-geo--2 {
    bottom: -90px;
    left: 8%;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(219,26,26,.08);
    animation: ntGeoSpin 36s linear infinite reverse;
}

.nt-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(140,199,196,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(140,199,196,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

@keyframes ntGeoSpin {
    to {
        transform: rotate(360deg);
    }
}

.nt-hero-inner {
    position: relative;
    z-index: 2;
    padding: 68px 0 60px;
}

/* Breadcrumb */
.nt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

    .nt-breadcrumb a {
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba(140,199,196,.65) !important;
        transition: color .25s;
    }

        .nt-breadcrumb a:hover {
            color: var(--teal, #8CC7C4) !important;
        }

    .nt-breadcrumb .bc-sep {
        font-size: 11px;
        color: rgba(255,255,255,.22);
    }

    .nt-breadcrumb .bc-current {
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba(255,255,255,.40);
    }

/* Title row */
.nt-hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.nt-hero-accent {
    display: inline-block;
    width: 5px;
    height: 56px;
    background: linear-gradient(180deg, var(--red, #DB1A1A) 0%, var(--red-dark, #b31212) 100%);
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(219,26,26,.35);
}

.nt-hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white, #fff);
    line-height: 1.15;
    letter-spacing: -.3px;
    margin: 0 0 6px;
}

    .nt-hero-h1 em {
        font-style: italic;
        color: #8CC7C4;
    }

.nt-hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: .5px;
    color: rgba(255,255,255,.50);
    margin: 0;
}

/* Pill tags */
.nt-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nt-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .5px;
    color: rgba(255,255,255,.70);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    transition: all .25s var(--ease);
}

    .nt-pill i {
        color: #8CC7C4;
        font-size: 12px;
    }

    .nt-pill:hover {
        background: rgba(140,199,196,.15);
        border-color: rgba(140,199,196,.30);
        color: #fff;
    }

/* ══════════════════════════════════════════════════════════
   § 2 — LISTINGS SECTION
══════════════════════════════════════════════════════════ */
.nt-listings-section {
    background: var(--white, #ffffff);
}

/* Count badge */
.nt-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--deep, #2C687B);
    background: var(--teal-pale, #e6f5f4);
    border: 1px solid rgba(140,199,196,.35);
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

    .nt-count-badge i {
        color: var(--teal-dark, #6aadaa);
        font-size: 13px;
    }

    .nt-count-badge span {
        font-family: 'Playfair Display', serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--red, #DB1A1A);
    }

/* ── Search toolbar ── */
.nt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
    background: var(--white, #ffffff);
    border: 1px solid var(--gray-200, #dde4e7);
    border-radius: var(--radius-md, 14px);
    padding: 16px 22px;
    box-shadow: var(--shadow-xs);
}

.nt-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
}

    .nt-search-wrap i {
        color: var(--teal-dark, #6aadaa);
        font-size: 16px;
        flex-shrink: 0;
    }

    .nt-search-wrap input {
        border: none;
        outline: none;
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        color: var(--text-dark, #1a1a2e);
        background: transparent;
        width: 100%;
    }

        .nt-search-wrap input::placeholder {
            color: var(--text-muted, #7a8c94);
        }

.nt-toolbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted, #7a8c94);
    background: var(--gray-100, #f0f3f4);
    border: 1px solid var(--gray-200, #dde4e7);
    padding: 6px 14px;
    border-radius: 50px;
}

    .nt-toolbar-badge i {
        color: var(--teal-dark, #6aadaa);
        font-size: 12px;
    }


/* ══════════════════════════════════════════════════════════
   § 2b — NOTICE LIST  (replaces card grid)
══════════════════════════════════════════════════════════ */

/* Outer wrapper */
.nt-list-wrap {
    border: 1px solid var(--gray-200, #dde4e7);
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(44,104,123,.06);
}

/* Column-header bar */
.nt-list-header {
    display: grid;
    grid-template-columns: 44px 140px 1fr 130px 90px;
    align-items: center;
    gap: 0;
    background: linear-gradient(90deg, var(--deep-deeper, #163745) 0%, var(--deep, #2C687B) 100%);
    padding: 13px 20px;
}

.nt-lh-col {
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}

/* List reset */
.nt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each row */
.nt-list-item {
    display: grid;
    grid-template-columns: 44px 140px 1fr 130px 90px;
    align-items: center;
    gap: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200, #dde4e7);
    background: #fff;
    transition: background .2s, box-shadow .2s;
    position: relative;
}

    .nt-list-item:last-child {
        border-bottom: none;
    }

    /* Alternating row tint */
    .nt-list-item:nth-child(even) {
        background: var(--gray-50, #f8fafc);
    }

    /* Hover highlight */
    .nt-list-item:hover {
        background: #f0f8f7;
        box-shadow: inset 4px 0 0 var(--teal, #8CC7C4);
    }

/* Left accent stripe by category */
.nt-list-item--general:hover {
    box-shadow: inset 4px 0 0 var(--red, #DB1A1A);
}

.nt-list-item--academic:hover,
.nt-list-item--admission:hover {
    box-shadow: inset 4px 0 0 var(--deep, #2C687B);
}

.nt-list-item--disciplinary:hover {
    box-shadow: inset 4px 0 0 #1a7a4a;
}

.nt-list-item--tender:hover {
    box-shadow: inset 4px 0 0 var(--text-muted, #7a8c94);
}

/* Serial number */
.nt-li-sno {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted, #7a8c94);
    letter-spacing: .5px;
}

/* Category badge cell */
.nt-li-category {
    display: flex;
    align-items: center;
}

/* Title cell */
.nt-li-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
}

    .nt-li-title a {
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-dark, #1a1a2e) !important;
        text-decoration: none !important;
        line-height: 1.5;
        transition: color .2s;
    }

        .nt-li-title a:hover {
            color: var(--deep, #2C687B) !important;
        }

/* "New" indicator dot */
.nt-new-dot {
    font-size: 7px;
    color: var(--red, #DB1A1A);
    flex-shrink: 0;
    animation: ntPulse 1.8s ease-in-out infinite;
}

@keyframes ntPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

/* Date cell */
.nt-li-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted, #7a8c94);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

    .nt-li-date i {
        color: var(--teal-dark, #6aadaa);
        font-size: 11px;
    }

/* Action cell */
.nt-li-action {
    display: flex;
    justify-content: flex-end;
}

/* View button */
.nt-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--deep, #2C687B) !important;
    background: var(--teal-pale, #e6f5f4);
    border: 1px solid rgba(140,199,196,.35);
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all .22s var(--ease);
    white-space: nowrap;
}

    .nt-view-btn i {
        font-size: 12px;
    }

    .nt-view-btn:hover {
        background: var(--deep, #2C687B);
        color: #fff !important;
        border-color: var(--deep, #2C687B);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(44,104,123,.22);
    }

/* Category badges (shared) */
.nt-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 50px;
}

.nt-badge--red {
    color: var(--red, #DB1A1A);
    background: var(--red-pale, #fde8e8);
    border: 1px solid rgba(219,26,26,.18);
}

.nt-badge--teal {
    color: var(--deep, #2C687B);
    background: var(--teal-pale, #e6f5f4);
    border: 1px solid rgba(140,199,196,.35);
}

.nt-badge--green {
    color: #1a7a4a;
    background: #e8f8ef;
    border: 1px solid rgba(26,122,74,.20);
}

.nt-badge--muted {
    color: var(--text-muted, #7a8c94);
    background: var(--gray-100, #f0f3f4);
    border: 1px solid var(--gray-200, #dde4e7);
}


/* ══════════════════════════════════════════════════════════
   § 3 — QUICK-LINKS PANEL
══════════════════════════════════════════════════════════ */
.nt-links-panel {
    background: linear-gradient(155deg, var(--deep-deeper, #163745) 0%, var(--deep, #2C687B) 100%);
    border-radius: var(--radius-lg, 22px);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

    .nt-links-panel::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        border: 1.5px solid rgba(140,199,196,.10);
        pointer-events: none;
    }

.nt-links-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white, #fff);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

    .nt-links-panel-header i {
        color: #8CC7C4;
        font-size: 18px;
    }

.nt-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nt-quick-links li {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

        .nt-quick-links li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

.nt-ql-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(140,199,196,.14);
    border: 1px solid rgba(140,199,196,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #8CC7C4;
    margin-top: 1px;
}

.nt-quick-links li a {
    font-size: 13px;
    color: rgba(255,255,255,.72) !important;
    line-height: 1.55;
    transition: color .2s;
    text-decoration: none !important;
}

    .nt-quick-links li a:hover {
        color: #8CC7C4 !important;
    }


/* ══════════════════════════════════════════════════════════
   § 4 — CTA OUTLINE BUTTON
══════════════════════════════════════════════════════════ */
.nt-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,.55);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    background: transparent;
    transition: all .3s var(--ease);
    text-decoration: none !important;
}

    .nt-btn-outline:hover {
        background: rgba(255,255,255,.12);
        border-color: #fff;
        transform: translateY(-2px);
    }


/* ══════════════════════════════════════════════════════════
   § 5 — RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .nt-mini-hero {
        background-attachment: scroll;
        min-height: 260px;
    }

    .nt-hero-h1 {
        font-size: 2.2rem;
    }

    /* Collapse grid to simpler columns on tablet */
    .nt-list-header,
    .nt-list-item {
        grid-template-columns: 36px 120px 1fr 100px 80px;
        padding: 13px 14px;
    }
}

@media (max-width: 767px) {
    .nt-hero-inner {
        padding: 52px 0 44px;
    }

    .nt-hero-h1 {
        font-size: 1.9rem;
    }

    .nt-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nt-links-panel {
        padding: 28px 22px;
    }

    /* Stack list to card-like rows on mobile */
    .nt-list-header {
        display: none;
    }
    /* hide header on tiny screens */

    .nt-list-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 8px;
        padding: 16px;
        border-left: 4px solid var(--gray-200, #dde4e7);
    }

    .nt-list-item--general {
        border-left-color: var(--red, #DB1A1A);
    }

    .nt-list-item--academic,
    .nt-list-item--admission {
        border-left-color: var(--deep, #2C687B);
    }

    .nt-list-item--disciplinary {
        border-left-color: #1a7a4a;
    }

    .nt-list-item--tender {
        border-left-color: var(--text-muted, #7a8c94);
    }

    .nt-list-item:hover {
        box-shadow: none;
    }

    .nt-li-sno {
        display: none;
    }
    /* hide serial on mobile */

    .nt-li-category {
        order: 1;
    }

    .nt-li-title {
        order: 2;
    }

    .nt-li-date {
        order: 3;
    }

    .nt-li-action {
        order: 4;
        justify-content: flex-start;
    }

    .nt-list-item:nth-child(even) {
        background: #fff;
    }

        .nt-list-item:nth-child(even) .nt-li-title a {
            color: var(--text-dark, #1a1a2e) !important;
        }
}

@media (max-width: 480px) {
    .nt-hero-h1 {
        font-size: 1.65rem;
    }

    .nt-hero-accent {
        height: 42px;
    }
}
