/* =========================================================
   Nakachari College — Modern Theme (2026)
   Drop-in stylesheet. Fonts: Fraunces (headings) + Source Sans 3 (text)
   ========================================================= */

:root {
  --green-900: #0b2e22;
  --green-800: #0f3d2e;
  --green-700: #155240;
  --green-600: #1d6b53;
  --green-100: #e4efe9;
  --gold-600:  #b07d1f;
  --gold-500:  #c8962c;
  --gold-300:  #e9c979;
  --gold-100:  #fbf3df;
  --ivory:     #faf7f0;
  --paper:     #ffffff;
  --ink:       #1c2420;
  --ink-soft:  #4d5a54;
  --line:      #e4e0d5;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11,46,34,.06), 0 2px 8px rgba(11,46,34,.05);
  --shadow:    0 6px 24px rgba(11,46,34,.10);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap:      1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover, a:focus { color: var(--gold-600); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold-500); color: var(--green-900); padding: 8px 14px; border-radius: 6px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-300); color: var(--green-900); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-900); }
.btn-green { background: var(--green-800); color: #fff; }
.btn-green:hover { background: var(--green-700); color: #fff; }
.link-arrow { font-weight: 600; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: #cfe0d8; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #cfe0d8; }
.topbar a:hover { color: var(--gold-300); }
.topbar-contact, .topbar-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar-links a { font-weight: 600; letter-spacing: .02em; }
.topbar-links .pill { background: var(--gold-500); color: var(--green-900); padding: 2px 10px; border-radius: 999px; }
.topbar-links .pill:hover { background: var(--gold-300); color: var(--green-900); }

/* ---------- Brand header ---------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 100; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand:hover { color: inherit; }
.crest {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green-600), var(--green-900));
  display: grid; place-items: center; color: var(--gold-300);
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  box-shadow: inset 0 0 0 3px var(--gold-500), inset 0 0 0 6px var(--green-800);
}
.crest img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--green-900); line-height: 1.1; }
.brand-sub { font-size: .85rem; color: var(--ink-soft); letter-spacing: .02em; }
.brand-motto { font-style: italic; color: var(--gold-600); font-family: var(--font-head); font-size: .95rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-900); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Main nav ---------- */
.main-nav { background: var(--green-800); }
.nav-list { list-style: none; margin: 0 auto; padding: 0 12px; display: flex; flex-wrap: wrap; max-width: var(--wrap); }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 14px; color: #fff; font: 600 .95rem var(--font-body);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list > li > button:hover,
.nav-list > li.open > button, .nav-list > li > a.active { color: var(--gold-300); }
.nav-list > li > a.active { box-shadow: inset 0 -3px 0 var(--gold-500); }
.nc-caret { width: 10px; height: 10px; transition: transform .2s; }
.nav-list li.open .nc-caret { transform: rotate(180deg); }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--paper); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow);
  border-top: 3px solid var(--gold-500);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 50;
}
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: .95rem; }
.dropdown a:hover, .dropdown a.active { background: var(--green-100); color: var(--green-800); }
@media (hover: hover) and (min-width: 1025px) {
  .nav-list > li:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.nav-list > li.open > .dropdown { opacity: 1; visibility: visible; transform: none; }

/* ---------- Hero / slider ---------- */
.hero { position: relative; min-height: min(78vh, 640px); color: #fff; overflow: hidden; background: var(--green-900); display: flex; align-items: flex-end; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04);
}
.hero-slide.active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,46,34,.15) 0%, rgba(11,46,34,.35) 40%, rgba(11,46,34,.92) 100%),
    linear-gradient(90deg, rgba(11,46,34,.55), transparent 65%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 20px 70px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero p.lead { font-size: 1.2rem; max-width: 52ch; color: #e7efe9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-dots { position: absolute; z-index: 3; right: 24px; bottom: 28px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: all .25s; }
.hero-dots button.active { width: 28px; background: var(--gold-500); }

/* ---------- Notice ticker ---------- */
.ticker { background: var(--gold-500); color: var(--green-900); }
.ticker .container { display: flex; align-items: center; gap: 16px; min-height: 48px; overflow: hidden; }
.ticker-label { flex: none; background: var(--green-900); color: var(--gold-300); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 38s linear infinite; padding-left: 100%; }
.ticker-items a { color: var(--green-900); font-weight: 600; }
.ticker-items a:hover { text-decoration: underline; }
.ticker:hover .ticker-items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .eyebrow { color: var(--gold-600); margin-bottom: 8px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--ink-soft); max-width: 60ch; margin: 8px 0 0; }

/* Stats */
.stats { margin-top: -46px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--green-800); line-height: 1; }
.stat-label { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }

/* Principal + news */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.principal-card { display: grid; grid-template-columns: 200px 1fr; gap: 28px; background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.principal-photo { position: relative; }
.principal-photo img, .principal-photo .ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); background: var(--green-100); }
.principal-photo::after { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 2px solid var(--gold-500); border-radius: var(--radius-sm); z-index: -1; }
.principal-card blockquote { margin: 0; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.55; color: var(--green-900); }
.principal-card blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: .6; color: var(--gold-500); margin-bottom: 8px; }
.principal-name { margin-top: 16px; font-weight: 700; }
.principal-role { color: var(--ink-soft); font-size: .92rem; }

.news-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.news-card-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: var(--green-800); color: #fff; }
.news-card-head h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.news-card-head a { color: var(--gold-300); font-size: .9rem; font-weight: 600; }
.news-list { list-style: none; margin: 0; padding: 6px 0; max-height: 440px; overflow-y: auto; }
.news-item { display: flex; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--gold-100); }
.news-date { flex: none; width: 58px; text-align: center; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green-800); padding: 6px 0; line-height: 1.1; }
.news-date b { display: block; font-family: var(--font-head); font-size: 1.4rem; }
.news-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.news-title { color: var(--ink); font-weight: 600; }
.news-title:hover { color: var(--green-700); }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: #fde8e6; color: #a33a2c; margin-left: 6px; vertical-align: middle; }
.badge-new { background: var(--gold-500); color: var(--green-900); }

/* Vision / mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { border-radius: var(--radius); padding: 36px; position: relative; overflow: hidden; }
.vm-card.vision { background: var(--green-800); color: #e3eee8; }
.vm-card.vision h3 { color: var(--gold-300); }
.vm-card.mission { background: var(--paper); border: 1px solid var(--line); }
.vm-card h3 { font-size: 1.6rem; }
.vm-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(200,150,44,.18); color: var(--gold-500); }
.vm-card.mission .vm-icon { background: var(--green-100); color: var(--green-700); }
.vm-card ol { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.vm-card ol li { counter-increment: m; position: relative; padding-left: 46px; margin-bottom: 16px; }
.vm-card ol li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-head); font-weight: 700; color: var(--gold-600); font-size: 1.15rem; }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.dept-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); color: var(--ink); }
.dept-glyph { width: 48px; height: 48px; border-radius: 12px; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.dept-card:hover .dept-glyph { background: var(--gold-500); color: var(--green-900); }
.dept-card h3 { margin: 0; font-size: 1.15rem; }
.dept-card small { color: var(--ink-soft); }

/* Quick links */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 22px 10px; border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); color: #e3eee8; font-weight: 600; transition: all .2s;
}
.quick svg { width: 30px; height: 30px; color: var(--gold-300); }
.quick:hover { background: var(--gold-500); color: var(--green-900); border-color: var(--gold-500); }
.quick:hover svg { color: var(--green-900); }
.band-dark { background: var(--green-900); color: #cfe0d8; }
.band-dark h2 { color: #fff; }
.band-dark .section-head p { color: #a9c2b6; }
.band-dark .eyebrow { color: var(--gold-300); }

/* Campus life */
.life-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(200px, auto); gap: 18px; }
.life-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--green-700) center/cover; color: #fff; display: flex; align-items: flex-end; min-height: 220px; }
.life-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11,46,34,.9)); }
.life-tile.big { grid-row: span 2; }
.life-tile .inner { position: relative; padding: 22px; }
.life-tile h3 { color: #fff; margin-bottom: 4px; }
.life-tile p { margin: 0; color: #dbe8e1; font-size: .95rem; }
.life-tile.plain { background: var(--gold-100); color: var(--ink); }
.life-tile.plain::before { display: none; }
.life-tile.plain h3 { color: var(--green-900); }
.life-tile.plain p { color: var(--ink-soft); }

/* External links */
.ext-links { display: flex; flex-wrap: wrap; gap: 12px; }
.ext-links a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: .95rem; }
.ext-links a:hover { border-color: var(--green-700); color: var(--green-700); }

/* ---------- Inner page hero + legacy content styling ---------- */
.page-hero { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; padding: 56px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(200,150,44,.15); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.nc-crumb { font-size: .9rem; color: #a9c2b6; margin-top: 8px; }
.nc-crumb a { color: var(--gold-300); }
.page-body { padding: 48px 20px 80px; }
.content-card { background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* Make old 2016 markup look modern automatically */
.content-card h1, .content-card h2 { font-size: 1.7rem; border-bottom: 2px solid var(--gold-300); padding-bottom: 8px; margin-top: 1.2em; }
.content-card h1:first-child, .content-card h2:first-child { margin-top: 0; }
.content-card table { width: 100% !important; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .97rem; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; }
.content-card { overflow-x: auto; }
.content-card table[border] { border: 0; }
.content-card th, .content-card td { padding: 11px 14px; border: 1px solid var(--line) !important; text-align: left; vertical-align: top; }
.content-card th, .content-card tr:first-child td[bgcolor], .content-card thead td { background: var(--green-800) !important; color: #fff !important; font-weight: 600; }
.content-card tr:nth-child(even) td { background: #fbfaf6; }
.content-card img { border-radius: var(--radius-sm); }
.content-card font { font-family: inherit !important; color: inherit; size: inherit; }
.content-card center { text-align: left; }
.content-card a[href$=".pdf"]::before, .content-card a[href$=".PDF"]::before { content: "PDF"; font-size: .65rem; font-weight: 700; background: #fde8e6; color: #a33a2c; padding: 1px 5px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.content-card ul li, .content-card ol li { margin-bottom: .4em; }
.content-card .gallery, .content-card .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #a9c2b6; padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; font-family: var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: #cfe0d8; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-line svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); color: var(--green-900); border: 0; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; font-size: 1.2rem; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; max-height: calc(100vh - 90px); overflow-y: auto; }
  .nav-list { flex-direction: column; padding: 8px 12px 16px; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: rgba(255,255,255,.05); margin: 4px 0 8px; }
  .nav-list > li.open > .dropdown { display: block; }
  .dropdown a { color: #e3eee8; }
  .dropdown a:hover, .dropdown a.active { background: rgba(255,255,255,.1); color: var(--gold-300); }
  .split, .vm-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-tile.big { grid-column: span 2; grid-row: auto; min-height: 280px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar-contact .hide-sm { display: none; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .76rem; }
  .brand-motto { display: none; }
  .crest { width: 48px; height: 48px; font-size: 1.1rem; }
  .hero { min-height: 560px; }
  .hero-content { padding: 90px 20px 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .principal-card { grid-template-columns: 1fr; }
  .principal-photo { max-width: 220px; }
  .section { padding: 60px 0; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .life-grid { grid-template-columns: 1fr; }
  .life-tile.big { grid-column: auto; }
  .vm-card { padding: 26px; }
}


/* =========================================================
   Old 2016 pages (Bootstrap 3 markup) inside the new theme
   ========================================================= */
.nc-legacy { padding: 44px 0 80px; }
.nc-legacy .content-card { min-height: 240px; }
.content-card .container, .content-card .container-fluid { width: auto !important; max-width: none; padding: 0; margin: 0; }
.content-card .breadcrumb, .content-card > br:first-child { display: none; }
.content-card .container > br:first-child, .content-card > .container > br { display: none; }
.content-card font[size] { font-size: inherit !important; }
.content-card center { text-align: inherit; }
.content-card .text-justify { text-align: left; }
.content-card hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.content-card img[src*="news.gif"], .content-card img[src*="new.png"] { display: none; }
.content-card a[style*="yellow"] {
  background: var(--green-800) !important; color: #fff !important; padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; display: inline-block; margin: 6px 0 2px;
}
.content-card a[style*="yellow"] i { font-style: normal; }
.content-card a[style*="yellow"]:hover { background: var(--gold-500) !important; color: var(--green-900) !important; }
.content-card .well { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; padding: 22px; }
.content-card .well u { text-decoration: none; font-family: var(--font-head); font-size: 1.2rem; color: var(--green-900); }
.content-card .thumbnail { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; background: var(--paper); box-shadow: var(--shadow-sm); }
.content-card .thumbnail img { border-radius: var(--radius-sm); }
.content-card .col-md-4 .thumbnail img { width: 100% !important; height: 240px !important; object-fit: cover; }
.content-card .col-md-4 .thumbnail { transition: transform .2s, box-shadow .2s; }
.content-card .col-md-4 .thumbnail:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.content-card .img-rounded { border-radius: var(--radius); width: auto; max-height: 320px; margin: 0 auto 12px; box-shadow: var(--shadow); }
.content-card .panel { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; float: none !important; width: 100% !important; padding: 0; }
.content-card .panel-primary > .panel-heading { background: var(--green-800); border-color: var(--green-800); }
.content-card .table { width: 100% !important; }
.content-card .table > thead > tr > th, .content-card tr.success > th { background: var(--green-800) !important; color: #fff !important; border-color: var(--green-800) !important; font-weight: 600; }
.content-card .table > tbody > tr.warning > td { background: transparent; }
.content-card .table > tbody > tr:nth-child(even) > td { background: #fbfaf6; }
.content-card .table > tbody > tr:hover > td { background: var(--gold-100); }
.content-card .form-control { height: auto; padding: 10px 13px; border-radius: 8px; border-color: #cfcabd; box-shadow: none; font-size: 1rem; }
.content-card .form-control:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(29,107,83,.18); }
.content-card .btn-primary, .content-card .btn-success, .content-card .btn-danger { background: var(--green-800); border: 0; border-radius: 999px; padding: 10px 24px; font-weight: 600; }
.content-card .btn-primary:hover, .content-card .btn-success:hover { background: var(--gold-500); color: var(--green-900); }
.content-card marquee { color: #a33a2c; font-weight: 700; }
.content-card .row { margin-left: -12px; margin-right: -12px; }
.content-card ul[style*="list-style-type:none"] { padding-left: 0; }
.nc-empty { color: var(--ink-soft); font-style: italic; padding: 14px 22px; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper select { border: 1px solid #cfcabd; border-radius: 8px; padding: 4px 8px; }
.dataTables_wrapper .pagination > .active > a { background: var(--green-800); border-color: var(--green-800); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-cards > div { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-cards b { display: block; font-family: var(--font-head); color: var(--green-900); font-size: 1.1rem; margin-bottom: 6px; }

.content-card td img.img-rounded, .content-card td img { width: 120px !important; height: 140px !important; object-fit: cover; border-radius: 10px; margin: 0 0 8px; box-shadow: var(--shadow-sm); max-height: none; }
.content-card .table > tbody > tr > td { vertical-align: middle; }

/* Bootstrap 3 adds ::before/::after clearfix to .container; they break flex/grid layouts */
.topbar .container::before, .topbar .container::after, .brand-row::before, .brand-row::after,
.ticker .container::before, .ticker .container::after, .split::before, .split::after,
.footer-grid::before, .footer-grid::after, .footer-bottom::before, .footer-bottom::after { display: none; content: none; }
.content-card::after { content: ""; display: table; clear: both; }
