/* ============================================
   NDDC JAAM College - Design System Theme
   New design tokens and components (ds- prefix to avoid collisions)
   ============================================ */

/* Design Tokens - New Brand Colors */
:root {
    --ds-navy: #0b3d82;
    --ds-navy-dark: #082f66;
    --ds-gold: #f5a623;
    --ds-text: #1e293b;
    --ds-muted: #64748b;
    --ds-line: #dbe3ee;
    --ds-bg: #ffffff;
    --ds-soft: #eef4fc;
    --ds-c-blue: #0b4aa2;
    --ds-c-orange: #f26b0f;
    --ds-c-green: #118a4a;
    --ds-c-purple: #5b2aa8;
    --ds-c-teal: #0e9aa7;
    --ds-c-red: #d6203c;
    --ds-font: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
    --ds-wrap-max: 1280px;
}

/* Reset additions for new components */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--ds-font); color: var(--ds-text); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   WRAPPER / CONTAINER
   ============================================ */
.ds-wrap { width: 100%; max-width: var(--ds-wrap-max); margin: 0 auto; padding: 0 24px; }

/* ============================================
   TOP BAR (Header with contact info)
   ============================================ */
.ds-topbar { background: #fff; }
.ds-topbar .ds-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.ds-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ds-brand img { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.ds-brand-text h1 { font-size: 1.9rem; font-weight: 800; color: var(--ds-navy); letter-spacing: .5px; line-height: 1.15; text-transform: uppercase; }
.ds-brand-text h2 { font-size: 1.15rem; font-weight: 600; color: var(--ds-navy); line-height: 1.3; }
.ds-brand-text p { font-size: .82rem; font-style: italic; color: var(--ds-muted); }
.ds-contact-info { display: flex; align-items: center; gap: 0; }
.ds-ci { display: flex; align-items: flex-start; gap: 10px; padding: 0 20px; border-left: 1px solid var(--ds-line); font-size: .78rem; color: var(--ds-text); }
.ds-ci:first-child { border-left: 0; }
.ds-ci svg { width: 24px; height: 24px; color: var(--ds-navy); flex-shrink: 0; margin-top: 2px; }
.ds-ci small { display: block; color: var(--ds-muted); font-size: .78rem; }
.ds-ci span { display: block; line-height: 1.35; }

/* ============================================
   NAVBAR
   ============================================ */
.ds-navbar { background: var(--ds-navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ds-navbar .ds-wrap { display: flex; align-items: center; justify-content: space-between; }
.ds-menu { display: flex; align-items: stretch; }
.ds-menu > li { position: relative; }
.ds-menu > li > a { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 24px; color: #fff; font-weight: 500; font-size: .92rem; white-space: nowrap; transition: background .2s; }
.ds-menu > li > a:hover { background: var(--ds-navy-dark); }
.ds-menu > li > a.ds-active { background: var(--ds-gold); color: #fff; font-weight: 600; }
.ds-menu .ds-caret { width: 10px; height: 10px; transition: transform .2s; }
.ds-dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-top: 3px solid var(--ds-gold); box-shadow: 0 10px 24px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 60; }
.ds-dropdown a { display: block; padding: 11px 18px; font-size: .86rem; color: var(--ds-text); border-bottom: 1px solid #f1f5f9; }
.ds-dropdown a:hover { background: var(--ds-soft); color: var(--ds-navy); }
.ds-menu > li:hover > .ds-dropdown, .ds-menu > li:focus-within > .ds-dropdown { opacity: 1; visibility: visible; transform: none; }
.ds-menu > li:hover .ds-caret { transform: rotate(180deg); }
.ds-nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 12px; cursor: pointer; }
.ds-nav-toggle svg { width: 28px; height: 28px; }

/* ============================================
   HERO BANNER
   ============================================ */
.ds-hero { position: relative; background: var(--ds-navy-dark); overflow: hidden; min-height: 210px; }
.ds-hero-img { position: absolute; top: 0; bottom: 0; right: 0; width: 68%; background: url('../images/Building Front Face.jpg') center 40%/cover no-repeat; }
.ds-hero-panel { position: relative; z-index: 2; background: linear-gradient(100deg, #0a3573 0%, #0b4090 100%); width: 56%; min-height: 210px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); display: flex; align-items: center; }
.ds-hero-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 70px; background: linear-gradient(110deg, transparent 40%, var(--ds-gold) 40%, var(--ds-gold) 55%, transparent 55%); opacity: .95; }
.ds-hero-text { position: relative; padding: 26px 80px 26px calc((100vw - min(100vw,1280px))/2 + 24px + 40px); color: #fff; }
.ds-hero-text h3 { font-size: 1.95rem; font-weight: 700; line-height: 1.2; }
.ds-hero-text h3 span { color: var(--ds-gold); }
.ds-hero-text p { font-size: 1.1rem; font-weight: 500; margin: 10px 0 14px; }
.ds-pill { display: inline-block; background: var(--ds-gold); color: var(--ds-navy-dark); font-weight: 700; font-size: 1rem; padding: 8px 24px; border-radius: 30px; letter-spacing: .3px; box-shadow: 0 3px 8px rgba(0,0,0,.25); text-transform: uppercase; }

/* ============================================
   QUICK CARDS (6 cards)
   ============================================ */
.ds-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin: 22px 0 20px; }
.ds-card { background: #fff; border: 1px solid var(--ds-line); border-radius: 6px; box-shadow: 0 2px 8px rgba(15,23,42,.07); padding: 16px 12px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .2s, box-shadow .2s; }
.ds-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(15,23,42,.14); }
.ds-ico { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 10px; }
.ds-ico svg { width: 28px; height: 28px; }
.ds-card h4 { font-size: .98rem; font-weight: 700; color: var(--ds-navy); line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.ds-card p { font-size: .78rem; color: var(--ds-muted); margin: 6px 0 12px; flex: 1; line-height: 1.4; }
.ds-btn-card { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: .78rem; font-weight: 600; padding: 7px 16px; border-radius: 3px; min-width: 132px; }
.ds-btn-card svg { width: 13px; height: 13px; }
.ds-btn-card:hover { filter: brightness(1.12); }
.ds-bg-blue { background: var(--ds-c-blue); }
.ds-bg-orange { background: var(--ds-c-orange); }
.ds-bg-green { background: var(--ds-c-green); }
.ds-bg-purple { background: var(--ds-c-purple); }
.ds-bg-teal { background: var(--ds-c-teal); }
.ds-bg-red { background: var(--ds-c-red); }

/* ============================================
   MAIN GRID (Mandatory Disclosure + Sidebar)
   ============================================ */
.ds-main-grid { display: grid; grid-template-columns: 1fr 400px; gap: 20px; margin-bottom: 28px; align-items: start; }
.ds-panel { border: 1px solid var(--ds-line); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.ds-panel-head { background: var(--ds-navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 1.1rem; font-weight: 600; }
.ds-panel-head svg { width: 22px; height: 22px; }

.ds-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ds-table thead th { background: #e6eef9; color: var(--ds-navy-dark); font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ds-line); }
.ds-table td { padding: 10px 14px; border-bottom: 1px solid #e8edf4; }
.ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table tbody tr:hover { background: #f6f9fd; }
.ds-table td:first-child, .ds-table th:first-child { width: 80px; text-align: center; border-right: 1px solid #e8edf4; }
.ds-table td:last-child, .ds-table th:last-child { width: 210px; border-left: 1px solid #e8edf4; }
.ds-dl { display: inline-flex; align-items: center; gap: 8px; color: #1a56c8; text-decoration: underline; }
.ds-dl svg { width: 20px; height: 20px; color: #d6203c; flex-shrink: 0; }
.ds-dl:hover { color: var(--ds-navy); }

.ds-side { display: flex; flex-direction: column; gap: 14px; }
.ds-ncte { background: var(--ds-soft); border: 1px solid #cfdcee; border-radius: 6px; padding: 16px 18px; display: flex; gap: 14px; }
.ds-ncte > svg { width: 30px; height: 30px; color: var(--ds-navy); flex-shrink: 0; margin-top: 2px; }
.ds-ncte h4 { font-size: 1.1rem; color: var(--ds-navy); font-weight: 700; }
.ds-ncte p { font-size: .8rem; color: var(--ds-muted); margin: 4px 0 12px; }
.ds-btn-navy { display: inline-flex; align-items: center; gap: 8px; background: var(--ds-navy); color: #fff; font-size: .8rem; font-weight: 600; padding: 8px 18px; border-radius: 3px; }
.ds-btn-navy svg { width: 14px; height: 14px; }
.ds-btn-navy:hover { background: var(--ds-navy-dark); }

.ds-notices { border: 1px solid var(--ds-line); border-radius: 6px; background: #fff; padding: 14px 18px 12px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.ds-notices h4 { display: flex; align-items: center; gap: 10px; color: var(--ds-navy); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.ds-notices h4 svg { width: 20px; height: 20px; }
.ds-notices li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--ds-line); }
.ds-notices li:last-of-type { border-bottom: 0; }
.ds-notices li svg { width: 16px; height: 16px; color: var(--ds-navy); margin-top: 3px; flex-shrink: 0; }
.ds-notices li a { font-size: .82rem; font-weight: 500; color: var(--ds-text); display: block; line-height: 1.35; }
.ds-notices li a:hover { color: var(--ds-navy); text-decoration: underline; }
.ds-notices li small { display: flex; align-items: center; gap: 5px; font-size: .7rem; color: var(--ds-muted); margin-top: 2px; }
.ds-notices li small svg { width: 11px; height: 11px; margin: 0; }
.ds-view-all { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--ds-navy); }
.ds-view-all svg { width: 14px; height: 14px; }
.ds-view-all:hover { text-decoration: underline; }

/* ============================================
   LIBRARY PAGE EXTENSIONS
   ============================================ */
.ds-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.ds-stat { background: #fff; border: 1px solid var(--ds-line); border-radius: 12px; padding: 18px; text-align: center; }
.ds-stat strong { display: block; font-size: 1.7rem; font-weight: 700; color: var(--ds-navy); }
.ds-stat span { font-size: .85rem; color: var(--ds-muted); }

.ds-panel-body { padding: 18px; line-height: 1.7; }
.ds-panel-body p { margin: 0 0 10px; }

.ds-list { list-style: none; margin: 0; padding: 0; }
.ds-list li { display: flex; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--ds-line); align-items: flex-start; }
.ds-list li:first-child { border-top: 0; }
.ds-list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ds-navy); }
.ds-list li small { display: block; color: var(--ds-muted); }
.ds-list li a { font-weight: 500; }

.ds-kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; padding: 14px 18px; margin: 0; }
.ds-kv dt { color: var(--ds-muted); font-size: .9rem; }
.ds-kv dd { margin: 0; font-weight: 500; }

.ds-notices li .ds-ext { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; }

.lib-faq details { border-top: 1px solid var(--ds-line); padding: 12px 18px; }
.lib-faq details:first-of-type { border-top: 0; }
.lib-faq summary { cursor: pointer; font-weight: 600; }
.lib-faq p { margin: 8px 0 0; color: var(--ds-muted); line-height: 1.6; }

@media (max-width: 800px) {
    .ds-stats { grid-template-columns: repeat(2, 1fr); }
    .ds-kv { grid-template-columns: 1fr; padding: 14px 18px; }
    .ds-kv dt { padding-bottom: 2px; }
}

/* ============================================
   FOOTER
   ============================================ */
.ds-footer { background: var(--ds-navy); color: #fff; font-size: .78rem; }
.ds-footer .ds-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.ds-footer .ds-copy { flex: 1; text-align: center; padding-left: 200px; }
.ds-footer nav { display: flex; gap: 0; }
.ds-footer nav a { padding: 0 12px; border-left: 1px solid rgba(255,255,255,.5); }
.ds-footer nav a:first-child { border-left: 0; }
.ds-footer nav a:hover { text-decoration: underline; }

/* ============================================
   PAGE HERO (for gallery.html, documents.html, contact.html)
   ============================================ */
.ds-page-hero { background: var(--ds-navy); color: #fff; padding: 3rem 0; text-align: center; }
.ds-page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 0.5rem; }
.ds-page-hero p { font-size: 1.1rem; opacity: 0.9; }

/* ============================================
   SECTION BASE (for content sections on subpages)
   ============================================ */
.ds-section { padding: 3rem 0; }
.ds-section-header { text-align: center; margin-bottom: 2rem; }
.ds-section-tag { display: inline-block; padding: 0.375rem 1rem; background: var(--ds-navy); color: #fff; font-size: .875rem; font-weight: 600; border-radius: 30px; margin-bottom: 0.75rem; }
.ds-section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--ds-navy); margin-bottom: 0.75rem; }
.ds-section-subtitle { font-size: 1rem; color: var(--ds-muted); max-width: 600px; margin: 0 auto; }

/* ============================================
   BUTTON VARIANTS (complementing existing .btn)
   ============================================ */
.ds-btn-primary { background: var(--ds-navy); color: #fff; }
.ds-btn-primary:hover { background: var(--ds-navy-dark); color: #fff; }
.ds-btn-gold { background: var(--ds-gold); color: var(--ds-navy-dark); }
.ds-btn-gold:hover { background: #e6961e; color: var(--ds-navy-dark); }
.ds-btn-outline { border: 2px solid var(--ds-navy); color: var(--ds-navy); background: transparent; }
.ds-btn-outline:hover { background: var(--ds-navy); color: #fff; }

/* ============================================
   FORM STYLES (for contact.html, documents.html)
   ============================================ */
.ds-form-group { margin-bottom: 1.25rem; }
.ds-form-label { display: block; font-weight: 500; color: var(--ds-text); margin-bottom: 0.5rem; }
.ds-form-input, .ds-form-textarea, .ds-form-select { width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--ds-line); border-radius: 6px; background: #fff; color: var(--ds-text); font-family: var(--ds-font); font-size: .9375rem; transition: border-color .2s, box-shadow .2s; }
.ds-form-input:focus, .ds-form-textarea:focus, .ds-form-select:focus { outline: none; border-color: var(--ds-navy); box-shadow: 0 0 0 3px rgba(11,61,130,.15); }
.ds-form-input.ds-error, .ds-form-textarea.ds-error, .ds-form-select.ds-error { border-color: var(--ds-c-red); }
.ds-form-error { display: none; color: var(--ds-c-red); font-size: .8125rem; margin-top: 0.375rem; }
.ds-form-error.ds-visible { display: block; }
.ds-form-textarea { min-height: 150px; resize: vertical; }
.ds-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================
   DOCUMENT CARD (for documents.html grid)
   ============================================ */
.ds-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.ds-doc-card { background: #fff; border: 1px solid var(--ds-line); border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ds-doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15,23,42,.12); border-color: var(--ds-line); }
.ds-doc-card-header { background: var(--ds-soft); padding: 1rem 1.25rem; border-bottom: 1px solid var(--ds-line); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ds-doc-category { font-size: .75rem; font-weight: 600; color: #fff; background: var(--ds-navy); padding: 0.25rem 0.75rem; border-radius: 30px; white-space: nowrap; }
.ds-doc-card-body { padding: 1.25rem; }
.ds-doc-card-title { font-size: 1.125rem; font-weight: 600; color: var(--ds-navy); margin-bottom: 0.5rem; }
.ds-doc-card-desc { font-size: .875rem; color: var(--ds-muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-doc-card-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; color: var(--ds-muted); margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ds-line); }
.ds-doc-card-meta span { display: flex; align-items: center; gap: 0.375rem; }
.ds-doc-card-footer { display: flex; gap: 0.75rem; padding: 0 1.25rem 1.25rem; }
.ds-doc-card-footer .ds-btn { flex: 1; }

/* ============================================
   GALLERY GRID (for gallery.html)
   ============================================ */
.ds-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.ds-gallery-item { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(15,23,42,.08); cursor: pointer; }
.ds-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ds-gallery-item:hover img { transform: scale(1.08); }
.ds-gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,61,130,.7), transparent); opacity: 0; transition: opacity .3s; }
.ds-gallery-item:hover::after { opacity: 1; }

/* ============================================
   LIGHTBOX (override existing)
   ============================================ */
.ds-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s; }
.ds-lightbox.active { opacity: 1; visibility: visible; }
.ds-lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; transform: scale(0.9); transition: transform .3s; }
.ds-lightbox.active .ds-lightbox-content { transform: scale(1); }
.ds-lightbox-image { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.ds-lightbox-close, .ds-lightbox-nav { position: absolute; width: 50px; height: 50px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s; }
.ds-lightbox-close:hover, .ds-lightbox-nav:hover { background: var(--ds-gold); }
.ds-lightbox-close { top: -70px; right: 0; }
.ds-lightbox-prev { left: -70px; top: 50%; transform: translateY(-50%); }
.ds-lightbox-next { right: -70px; top: 50%; transform: translateY(-50%); }
.ds-lightbox-caption { position: absolute; bottom: -50px; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: .9375rem; }

/* ============================================
   CONTACT PAGE GRID
   ============================================ */
.ds-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
@media (max-width: 900px) {
    .ds-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ds-contact-map { height: 250px !important; }
    .ds-contact-form-card { padding: 1.5rem; }
    .ds-contact-form-card h2 { font-size: 1.5rem; }
    .ds-contact-form-card .ds-form-row { grid-template-columns: 1fr; }
    .ds-form-submit { width: 100%; }
    .ds-contact-map { height: 250px; }
    .ds-contact-map iframe { height: 250px !important; }
}
.ds-contact-info h2 { font-size: 1.75rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 1rem; }
.ds-contact-info > p { color: var(--ds-muted); margin-bottom: 2rem; }
.ds-contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.ds-contact-detail { display: flex; gap: 1rem; }
.ds-contact-detail-icon { width: 50px; height: 50px; background: var(--ds-navy); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds-contact-detail-icon svg { width: 22px; height: 22px; }
.ds-contact-detail-text h3 { font-weight: 600; color: var(--ds-navy); margin-bottom: 0.25rem; }
.ds-contact-detail-text p { color: var(--ds-muted); margin: 0; line-height: 1.6; }
.ds-contact-map { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 24px rgba(15,23,42,.12); margin-top: 2rem; }
.ds-contact-form-card { background: var(--ds-soft); padding: 2.5rem; border-radius: 16px; box-shadow: 0 4px 16px rgba(15,23,42,.08); }
.ds-contact-form-card h2 { font-size: 1.75rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 1.5rem; }
.ds-form-submit { width: 100%; padding: 1rem 2rem; font-size: 1.0625rem; }

/* ============================================
   STATS COUNTER (keep existing, restyled)
   ============================================ */
.ds-stats { background: var(--ds-navy); color: #fff; padding: 3rem 0; }
.ds-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.ds-stat-number { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; color: var(--ds-gold); line-height: 1; margin-bottom: 0.5rem; }
.ds-stat-label { font-size: 1.125rem; font-weight: 500; opacity: 0.9; }

/* ============================================
   ABOUT SECTION (keep existing, restyled)
   ============================================ */
.ds-about { background: var(--ds-soft); padding: 4rem 0; }
.ds-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ds-about-content h2 { font-size: 2rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 1rem; }
.ds-about-content p { color: var(--ds-muted); margin-bottom: 1rem; }
.ds-about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.ds-feature-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(15,23,42,.07); transition: transform .2s, box-shadow .2s; }
.ds-feature-item:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(15,23,42,.14); }
.ds-feature-icon { width: 48px; height: 48px; background: var(--ds-navy); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds-feature-icon svg { width: 24px; height: 24px; }
.ds-feature-text h4 { font-weight: 600; color: var(--ds-navy); margin-bottom: 0.25rem; }
.ds-feature-text p { font-size: .875rem; color: var(--ds-muted); margin: 0; }
.ds-about-image img { border-radius: 16px; box-shadow: 0 20px 40px rgba(15,23,42,.15); }

/* ============================================
   GALLERY PREVIEW (homepage)
   ============================================ */
.ds-gallery-preview { background: #fff; padding: 4rem 0; }
.ds-gallery-preview .ds-section-header { margin-bottom: 2rem; }
.ds-gallery-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ds-gallery-preview-item { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; cursor: pointer; }
.ds-gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ds-gallery-preview-item:hover img { transform: scale(1.05); }
.ds-gallery-view-all { text-align: center; margin-top: 2rem; }

/* ============================================
   LATEST DOCUMENTS (homepage)
   ============================================ */
.ds-latest-docs { background: var(--ds-soft); padding: 4rem 0; }
.ds-latest-docs .ds-section-header { margin-bottom: 2rem; }
.ds-doc-grid-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.ds-doc-card-home { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(15,23,42,.07); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ds-doc-card-home:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15,23,42,.12); }
.ds-doc-card-home-header { padding: 1.25rem; border-bottom: 1px solid var(--ds-line); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ds-doc-icon { width: 48px; height: 48px; background: var(--ds-navy); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.ds-doc-icon svg { width: 24px; height: 24px; }
.ds-doc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; font-size: .75rem; color: var(--ds-muted); }
.ds-doc-card-home-body { padding: 1.25rem; }
.ds-doc-card-home-title { font-weight: 600; color: var(--ds-navy); margin-bottom: 0.5rem; font-size: 1.0625rem; }
.ds-doc-card-home-desc { font-size: .875rem; color: var(--ds-muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-doc-card-home-footer { display: flex; gap: 0.75rem; padding: 0 1.25rem 1.25rem; }
.ds-doc-card-home-footer .ds-btn { flex: 1; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .ds-contact-info .ds-ci:nth-child(3) { display: none; }
    .ds-cards { grid-template-columns: repeat(3, 1fr); }
    .ds-main-grid { grid-template-columns: 1fr; }
    .ds-menu > li > a { padding: 0 16px; }
    .ds-gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .ds-contact-info { display: none; }
    .ds-brand-text h1 { font-size: 1.4rem; }
    .ds-brand-text h2 { font-size: 1rem; }
    .ds-nav-toggle { display: block; margin-left: auto; }
    .ds-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ds-navy); flex-direction: column; max-height: 75vh; overflow-y: auto; }
    .ds-menu.ds-open { display: flex; }
    .ds-menu > li > a { height: auto; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.12); }
    .ds-dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border-top: 0; background: var(--ds-navy-dark); }
    .ds-dropdown a { color: #dbe6f6; border-bottom: 1px solid rgba(255,255,255,.08); padding-left: 40px; }
    .ds-menu > li.ds-open-sub > .ds-dropdown { display: block; }
    .ds-hero-img { width: 100%; }
    .ds-hero-panel::before { display: none; }
    .ds-hero-panel { width: 100%; clip-path: none; min-height: 0; background: linear-gradient(100deg, rgba(10,53,115,.94), rgba(11,64,144,.84)); }
    .ds-hero-text { padding: 24px; }
    .ds-hero-text h3 { font-size: 1.45rem; }
    .ds-hero { min-height: 0; }
    .ds-footer .ds-copy { padding-left: 0; order: 2; flex-basis: 100%; }
    .ds-about-grid { grid-template-columns: 1fr; }
    .ds-about-image { order: -1; }
    .ds-contact-grid { grid-template-columns: 1fr; }
    .ds-contact-map { order: -1; }
    .ds-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ds-wrap { padding: 0 14px; }
    .ds-brand img { width: 72px; height: 72px; }
    .ds-brand-text h1 { font-size: 1.05rem; }
    .ds-brand-text h2 { font-size: .85rem; }
    .ds-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ds-pill { font-size: .8rem; padding: 7px 16px; }
    .ds-table td:last-child, .ds-table th:last-child { width: auto; }
    .ds-table td:first-child, .ds-table th:first-child { width: 46px; }
    .ds-table { font-size: .8rem; }
    .ds-footer .ds-wrap { justify-content: center; text-align: center; }
    .ds-stats-grid { grid-template-columns: 1fr; }
    .ds-about-features { grid-template-columns: 1fr; }
    .ds-gallery-preview-grid { grid-template-columns: 1fr; }
    .ds-form-row { grid-template-columns: 1fr; }
}

/* ============================================
   SKELETON LOADING (compatible with existing)
   ============================================ */
.ds-skeleton-card { background: #fff; border: 1px solid var(--ds-line); border-radius: 8px; padding: 1.25rem; overflow: hidden; }
.ds-skeleton { background: linear-gradient(90deg, var(--ds-line) 25%, var(--ds-soft) 50%, var(--ds-line) 75%); background-size: 200% 100%; animation: ds-shimmer 1.5s infinite; border-radius: 4px; }
.ds-skeleton-image { height: 180px; margin: -1.25rem -1.25rem 1rem; border-radius: 8px 8px 0 0; }
.ds-skeleton-text { height: 16px; margin-bottom: 0.75rem; }
.ds-skeleton-title { height: 24px; width: 70%; }
@keyframes ds-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================
   TOAST NOTIFICATIONS (compatible with existing)
   ============================================ */
.ds-toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.75rem; }
.ds-toast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: #fff; border-radius: 8px; box-shadow: 0 12px 24px rgba(15,23,42,.15); border-left: 4px solid var(--ds-navy); min-width: 300px; max-width: 450px; transform: translateX(120%); opacity: 0; transition: all .3s; }
.ds-toast.ds-show { transform: translateX(0); opacity: 1; }
.ds-toast.ds-success { border-left-color: var(--ds-c-green); }
.ds-toast.ds-error { border-left-color: var(--ds-c-red); }
.ds-toast.ds-warning { border-left-color: var(--ds-gold); }
.ds-toast-close { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--ds-muted); border-radius: 4px; flex-shrink: 0; }
.ds-toast-close:hover { background: var(--ds-line); color: var(--ds-text); }

/* ============================================
   EMPTY STATE (compatible with existing)
   ============================================ */
.ds-empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; }
.ds-empty-state-icon { width: 80px; height: 80px; background: var(--ds-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--ds-muted); }
.ds-empty-state-icon svg { width: 40px; height: 40px; }
.ds-empty-state h3 { font-size: 1.5rem; font-weight: 600; color: var(--ds-text); margin-bottom: 0.5rem; }
.ds-empty-state p { color: var(--ds-muted); margin-bottom: 1.5rem; }

/* ============================================
   MODAL (compatible with existing)
   ============================================ */
.ds-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: all .3s; }
.ds-modal.active { opacity: 1; visibility: visible; }
.ds-modal-content { background: #fff; border-radius: 16px; box-shadow: 0 20px 40px rgba(15,23,42,.2); max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform .3s; }
.ds-modal.active .ds-modal-content { transform: scale(1); }
.ds-modal-header { padding: 1.5rem; border-bottom: 1px solid var(--ds-line); display: flex; align-items: center; justify-content: space-between; }
.ds-modal-header h3 { font-size: 1.125rem; font-weight: 600; color: var(--ds-navy); }
.ds-modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ds-muted); transition: all .2s; }
.ds-modal-close:hover { background: var(--ds-line); color: var(--ds-text); }
.ds-modal-body { padding: 1.5rem; }
.ds-modal-footer { padding: 1.5rem; border-top: 1px solid var(--ds-line); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ============================================
   ADMIN HEADER (light alignment)
   ============================================ */
.ds-admin-header { background: #fff; border-bottom: 1px solid var(--ds-line); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.ds-admin-header .ds-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.ds-admin-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; color: var(--ds-navy); }
.ds-admin-brand img { width: 36px; height: 36px; border-radius: 8px; }
.ds-admin-nav { display: flex; gap: 0.5rem; }
.ds-admin-nav-link { padding: 0.5rem 1rem; font-weight: 500; color: var(--ds-muted); border-radius: 6px; transition: all .2s; }
.ds-admin-nav-link:hover, .ds-admin-nav-link.ds-active { background: var(--ds-navy); color: #fff; }
.ds-admin-user { display: flex; align-items: center; gap: 1rem; }
.ds-admin-user-email { font-size: .875rem; color: var(--ds-muted); }
.ds-admin-nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; background: none; border: 0; cursor: pointer; }
.ds-admin-nav-toggle span { width: 24px; height: 2px; background: var(--ds-navy); transition: .2s; }

@media (max-width: 768px) {
    .ds-admin-nav { display: none; flex-direction: column; width: 100%; background: #fff; padding: 1rem 0; border-top: 1px solid var(--ds-line); }
    .ds-admin-nav.ds-open { display: flex; }
    .ds-admin-nav-link { width: 100%; text-align: center; }
    .ds-admin-user { justify-content: center; flex-direction: column; gap: 0.5rem; }
    .ds-admin-nav-toggle { display: flex; }
}

/* ============================================
   FACULTY CARDS (.fc-*)
   ============================================ */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.fc-card { background: #fff; border: 1px solid var(--ds-line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.fc-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.12); transform: translateY(-2px); }
.fc-photo { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: var(--ds-line); position: relative; }
.fc-photo img { width: 100%; height: 100%; object-fit: cover; }
.fc-photo .fc-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--ds-navy); color: #fff; font-weight: 700; font-size: clamp(1.5rem, 5vw, 3rem); text-transform: uppercase; }
.fc-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.fc-name { font-weight: 700; color: var(--ds-navy); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.fc-desig { color: var(--ds-muted); font-size: 0.8125rem; margin-bottom: 0.5rem; }
.fc-meta { font-size: 0.75rem; color: var(--color-gray-500); line-height: 1.6; }
.fc-meta .fc-label { font-weight: 600; color: var(--color-gray-700); }
.fc-badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 999px; }
.fc-badge--active { background: var(--ds-soft); color: var(--ds-green); }
.fc-badge--inactive { background: var(--ds-line); color: var(--ds-muted); }
.fc-badge--role { background: var(--ds-soft); color: var(--ds-navy); }
.fc-footer { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--ds-line); display: flex; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--ds-line); display: flex; gap: 0.5rem; }
.fc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 500; border-radius: 6px; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-text); cursor: pointer; transition: all .2s; }
.fc-btn:hover { background: var(--ds-soft); border-color: var(--ds-navy); }
.fc-btn--danger { color: var(--color-error); border-color: var(--color-error); }
.fc-badge--status { display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 999px; }
.fc-badge--active { background: rgba(22, 163, 74, 0.12); color: var(--ds-green); }
.fc-badge--inactive { background: var(--ds-line); color: var(--ds-muted); }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.fc-heading { margin-bottom: 1.5rem; }
.fc-heading h2 { font-size: 1.5rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 0.25rem; }
.fc-heading p { color: var(--ds-muted); font-size: 0.9375rem; }
.fc-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem; color: var(--ds-muted); }
.fc-empty-icon { width: 80px; height: 80px; background: var(--ds-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--ds-muted); }
.fc-photo { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: var(--ds-line); position: relative; }
.fc-photo img { width: 100%; height: 100%; object-fit: cover; }
.fc-photo .fc-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--ds-navy); color: #fff; font-weight: 700; font-size: clamp(1.5rem, 5vw, 3rem); text-transform: uppercase; }
.fc-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.fc-name { font-weight: 700; color: var(--ds-navy); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.fc-desig { color: var(--ds-muted); font-size: 0.8125rem; margin-bottom: 0.5rem; }
.fc-meta { font-size: 0.75rem; color: var(--color-gray-500); line-height: 1.6; }
.fc-meta .fc-label { font-weight: 600; color: var(--color-gray-700); }
.fc-badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 999px; }
.fc-badge--active { background: var(--ds-soft); color: var(--ds-green); }
.fc-badge--inactive { background: var(--ds-line); color: var(--ds-muted); }
.fc-badge--role { background: var(--ds-soft); color: var(--ds-navy); }
.fc-footer { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--ds-line); display: flex; gap: 0.5rem; }
.fc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 500; border-radius: 6px; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-text); cursor: pointer; transition: all .2s; }
.fc-btn:hover { background: var(--ds-soft); border-color: var(--ds-navy); }
.fc-btn--danger { color: var(--color-error); border-color: var(--color-error); }
.fc-badge--status { display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 999px; }
.fc-badge--active { background: rgba(22, 163, 74, 0.12); color: var(--ds-green); }
.fc-badge--inactive { background: var(--ds-line); color: var(--ds-muted); }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.fc-heading { margin-bottom: 1.5rem; }
.fc-heading h2 { font-size: 1.5rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 0.25rem; }
.fc-heading p { color: var(--ds-muted); font-size: 0.9375rem; }
.fc-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem; color: var(--ds-muted); }
.fc-empty-icon { width: 80px; height: 80px; background: var(--ds-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--ds-muted); }


.fc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.fc-stat { background: #fff; border: 1px solid var(--ds-line); border-radius: 12px; padding: 1.25rem 1rem; text-align: center; }
.fc-stat-value { display: block; font-size: 2rem; font-weight: 700; color: var(--ds-navy); line-height: 1.2; }
.fc-stat-label { display: block; font-size: 0.8125rem; color: var(--ds-muted); margin-top: 0.5rem; }

.fc-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding: 1rem; background: #fff; border: 1px solid var(--ds-line); border-radius: 12px; }

.fc-search { position: relative; flex: 1; min-width: 200px; max-width: 400px; }
.fc-search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ds-muted); pointer-events: none; }
.fc-search input { width: 100%; padding: 0.625rem 0.75rem 0.625rem 2.5rem; border: 1px solid var(--ds-line); border-radius: 8px; font-size: 0.875rem; background: #fff; color: var(--ds-text); }
.fc-search input:focus { outline: none; border-color: var(--ds-navy); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15); }

.fc-tabs { display: flex; gap: 0.5rem; }
.fc-tab { padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 500; color: var(--ds-muted); background: transparent; border: 1px solid var(--ds-line); border-radius: 999px; cursor: pointer; transition: all .2s; }
.fc-tab:hover { background: var(--ds-soft); color: var(--ds-navy); }
.fc-tab.active { background: var(--ds-navy); color: #fff; border-color: var(--ds-navy); }
.fc-tab:focus-visible { outline: 2px solid var(--ds-navy); outline-offset: 2px; }
.fc-select { padding: 0.5rem 2.5rem 0.5rem 0.875rem; border: 1px solid var(--ds-line); border-radius: 8px; font-size: 0.8125rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.625rem center / 16px 16px; background-color: #fff; appearance: none; cursor: pointer; }
.fc-select:focus { outline: none; border-color: var(--ds-navy); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15); }
.fc-count { font-size: 0.8125rem; color: var(--ds-muted); white-space: nowrap; }

.fc-heading { margin-bottom: 1.5rem; }
.fc-heading h2 { font-size: 1.5rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 0.25rem; }
.fc-heading p { color: var(--ds-muted); font-size: 0.9375rem; }

.fc-section { margin-bottom: 2rem; }
.fc-section h3 { font-size: 1.25rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.fc-section h3::after { content: ''; flex: 1; height: 1px; background: var(--ds-line); }

.fc-movement { overflow-x: auto; margin-top: 1.5rem; }
.fc-movement table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.fc-movement th { padding: 0.75rem; text-align: left; background: var(--ds-soft); color: var(--ds-navy); font-weight: 600; border-bottom: 2px solid var(--ds-line); white-space: nowrap; }
.fc-movement td { padding: 0.75rem; border-bottom: 1px solid var(--ds-line); vertical-align: top; }
.fc-movement tr:last-child td { border-bottom: none; }
.fc-movement th:first-child, .fc-movement td:first-child { width: 60px; }
.fc-movement th:nth-child(2), .fc-movement td:nth-child(2) { min-width: 180px; }
.fc-movement th:nth-child(3), .fc-movement td:nth-child(3) { min-width: 160px; }
.fc-movement th:nth-child(6), .fc-movement td:nth-child(6) { min-width: 140px; }

.fc-dept-heading { font-size: 1.125rem; font-weight: 600; color: var(--ds-navy); margin: 1.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ds-navy); }

.fc-section { margin-bottom: 2rem; }
.fc-section h3 { font-size: 1.25rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.fc-section h3::after { content: ''; flex: 1; height: 1px; background: var(--ds-line); }

.fc-movement { overflow-x: auto; margin-top: 1.5rem; }
.fc-movement table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.fc-movement th { padding: 0.75rem; text-align: left; background: var(--ds-soft); color: var(--ds-navy); font-weight: 600; border-bottom: 2px solid var(--ds-line); white-space: nowrap; }
.fc-movement td { padding: 0.75rem; border-bottom: 1px solid var(--ds-line); vertical-align: top; }
.fc-movement tr:last-child td { border-bottom: none; }
.fc-movement th:first-child, .fc-movement td:first-child { width: 60px; }
.fc-movement th:nth-child(2), .fc-movement td:nth-child(2) { min-width: 180px; }
.fc-movement th:nth-child(3), .fc-movement td:nth-child(3) { min-width: 160px; }
.fc-movement th:nth-child(6), .fc-movement td:nth-child(6) { min-width: 140px; }

.fc-dept-heading { font-size: 1.125rem; font-weight: 600; color: var(--ds-navy); margin: 1.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ds-navy); }

.fc-section { margin-bottom: 2rem; }
.fc-section h3 { font-size: 1.25rem; font-weight: 700; color: var(--ds-navy); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.fc-section h3::after { content: ''; flex: 1; height: 1px; background: var(--ds-line); }

.fc-note { margin-top: 2rem; padding: 1.5rem; background: var(--ds-soft); border-radius: 12px; border: 1px solid var(--ds-line); }
.fc-note p { margin: 0 0 0.75rem; color: var(--ds-text); }
.fc-note a { color: var(--ds-navy); text-decoration: underline; }
.fc-note a:hover { color: var(--ds-navy-dark); }

/* ============================================
   FACULTY PAGE - TEACHING STAFF (.fp-*)
   ============================================ */

.fp-intro{display:grid;grid-template-columns:1.6fr 1fr;gap:1.5rem;margin-bottom:2.5rem}
.fp-info{background:#fff;border:1px solid var(--ds-line);border-left:5px solid var(--ds-navy);border-radius:12px;padding:1.6rem 1.8rem;box-shadow:0 4px 14px rgba(15,23,42,.06)}
.fp-info h2{font-size:1.4rem;font-weight:700;color:var(--ds-navy);margin:0 0 .7rem}
.fp-info p{color:#334155;line-height:1.8;margin:0 0 .8rem;font-size:.97rem}
.fp-badge{display:inline-block;background:#e8eefc;color:var(--ds-navy);font-size:.75rem;font-weight:600;padding:.3rem .85rem;border-radius:999px;margin-bottom:.9rem}
.fp-list{margin:.5rem 0 0;padding-left:1.1rem;color:#334155;line-height:1.9;font-size:.93rem}
.fp-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;align-content:start}
.fp-stat{background:linear-gradient(135deg,var(--ds-navy),#1e3a8a);color:#fff;border-radius:12px;padding:1.2rem .8rem;text-align:center;box-shadow:0 6px 16px rgba(15,23,42,.15)}
.fp-stat b{display:block;font-size:2.1rem;line-height:1.1;font-weight:700}
.fp-stat span{font-size:.78rem;opacity:.85}
.fp-h{display:flex;align-items:center;gap:.8rem;font-size:1.45rem;font-weight:700;color:var(--ds-navy);margin:2.6rem 0 1.3rem}
.fp-h::after{content:'';flex:1;height:2px;background:linear-gradient(90deg,var(--ds-line),transparent)}
.fp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem}
.fp-person{background:#fff;border:1px solid var(--ds-line);border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(15,23,42,.06);transition:transform .2s,box-shadow .2s}
.fp-person:hover{transform:translateY(-5px);box-shadow:0 14px 28px rgba(15,23,42,.14)}
.fp-photo{aspect-ratio:1/1;background:#eef2f9;display:flex;align-items:center;justify-content:center;overflow:hidden}
.fp-photo img{width:100%;height:100%;object-fit:cover}
.fp-initials{width:96px;height:96px;border-radius:50%;background:var(--ds-navy);color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700}
.fp-body{padding:1.1rem 1.2rem 1.3rem}
.fp-name{font-size:1.1rem;font-weight:700;color:#0f172a;margin:0 0 .15rem}
.fp-desig{font-size:.9rem;font-weight:600;color:var(--ds-navy);margin:0 0 .8rem}
.fp-meta{list-style:none;margin:0 0 .8rem;padding:0;font-size:.85rem;color:#475569}
.fp-meta li{display:flex;justify-content:space-between;gap:.8rem;padding:.4rem 0;border-top:1px solid var(--ds-line)}
.fp-meta li span:first-child{color:var(--ds-muted)}
.fp-meta li span:last-child{text-align:right;font-weight:500}
.fp-chip{display:inline-block;background:#e8eefc;color:var(--ds-navy);font-size:.72rem;font-weight:600;padding:.25rem .7rem;border-radius:999px}
.fp-tablewrap{overflow-x:auto;background:#fff;border:1px solid var(--ds-line);border-radius:12px;box-shadow:0 2px 8px rgba(15,23,42,.05)}
.fp-table{width:100%;border-collapse:collapse;font-size:.9rem}
.fp-table th{background:var(--ds-navy);color:#fff;text-align:left;padding:.85rem 1rem;font-weight:600;white-space:nowrap}
.fp-table td{padding:.8rem 1rem;border-bottom:1px solid var(--ds-line);color:#334155}
.fp-table tbody tr:nth-child(even){background:#f8fafc}
.fp-table tbody tr:hover{background:#eef2f9}
.fp-empty{padding:2rem;text-align:center;color:var(--ds-muted)}
.fp-note{margin-top:2.5rem;background:var(--ds-soft);border:1px solid var(--ds-line);border-radius:12px;padding:1.4rem 1.6rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center}
.fp-note p{margin:0;color:#475569;font-size:.9rem;line-height:1.7}
.fp-links a{display:inline-block;margin-right:.6rem;padding:.5rem 1rem;border-radius:8px;background:var(--ds-navy);color:#fff;text-decoration:none;font-size:.85rem;font-weight:500}
.fp-links a:hover{opacity:.9}
@media(max-width:800px){.fp-intro{grid-template-columns:1fr}}
