/* ============================================================
   Aqsa Women's Degree College — Design System (v2)
   ============================================================ */
:root {
  --navy: #1a2f4b;
  --navy-deep: #122238;
  --teal: #0e7c7b;
  --teal-light: #e6f4f3;
  --gold: #c9a227;
  --gold-light: #f7ecd2;
  --ink: #2b3440;
  --muted: #64707d;
  --line: #e3e8ee;
  --bg: #f6f8fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(18, 34, 56, 0.07);
  --shadow-lg: 0 12px 32px rgba(18, 34, 56, 0.14);
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-deep); color: #cfd9e4; font-size: 13px; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 7px; padding-bottom: 7px;
}
.topbar a { color: #cfd9e4; }
.topbar a:hover { color: #fff; }
.topbar .left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .right { display: flex; gap: 14px; align-items: center; }
.topbar .badge-adm {
  background: var(--gold); color: #1d1608; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.topbar .badge-adm:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(18,34,56,.04);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img {
  width: 60px; height: 60px; object-fit: contain; border-radius: 10px;
  flex-shrink: 0;
}
.brand .name {
  font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.15;
  letter-spacing: .1px; white-space: nowrap;
}
.brand .sub {
  font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 4px;
  max-width: 400px; line-height: 1.4; white-space: normal;
}
/* keep name+sub block left-aligned next to logo */
.brand > div { display: flex; flex-direction: column; justify-content: center; }

.nav-wrap { margin-left: auto; display: flex; align-items: center; min-width: 0; }
nav.main-nav > ul { display: flex; list-style: none; gap: 0; align-items: center; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav a.top-link {
  display: flex; align-items: center; padding: 10px 9px; color: var(--navy);
  font-weight: 600; font-size: 13.5px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
}
nav.main-nav a.top-link:hover { background: var(--teal-light); color: var(--teal); }
nav.main-nav a.top-link .arrow {
  font-size: 8px; margin-left: 4px; opacity: .6; transition: transform .15s;
}
nav.main-nav li.has-sub.open > a.top-link,
nav.main-nav li.has-sub:hover > a.top-link { background: var(--teal-light); color: var(--teal); }
nav.main-nav li.has-sub.open > a.top-link .arrow { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); min-width: 235px; padding: 8px;
  list-style: none; display: none; z-index: 60;
}
/* invisible bridge so the dropdown doesn't close crossing the 4px gap */
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
/* keep last dropdowns on screen */
nav.main-nav > ul > li:nth-last-child(-n+3) .dropdown { left: auto; right: 0; }
nav.main-nav li.has-sub.open > .dropdown,
nav.main-nav li.has-sub:hover > .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 12px; color: var(--ink);
  font-size: 14px; border-radius: 7px; text-decoration: none;
}
.dropdown a:hover { background: var(--teal-light); color: var(--teal); }
.dropdown a.active { background: var(--teal-light); color: var(--teal); font-weight: 700; }

/* hamburger */
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--navy);
  border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--navy);
  font-size: 15px; font-weight: 700; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background:
    linear-gradient(100deg, rgba(18,34,56,.88) 0%, rgba(18,34,56,.62) 45%, rgba(18,34,56,.25) 100%),
    url("../img/campus-main.jpg") center / cover no-repeat;
  color: #fff;
}
.hero .container { padding-top: 70px; padding-bottom: 70px; }
.hero .kicker {
  display: inline-block; background: rgba(201,162,39,.18); border: 1px solid rgba(201,162,39,.55);
  color: #f3dd9a; padding: 6px 14px; border-radius: 30px;
  font-size: 13px; font-weight: 600; letter-spacing: .6px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.12;
  max-width: 720px; margin-bottom: 16px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 18px; max-width: 640px; color: #dbe4ee; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero stats strip */
.stats-strip { background: var(--navy-deep); color: #fff; }
.stats-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding-top: 26px; padding-bottom: 26px;
}
.stat { text-align: center; padding: 6px 8px; }
.stat b { display: block; font-size: 30px; color: var(--gold); font-weight: 800; }
.stat span { font-size: 13.5px; color: #b9c6d4; }

/* ---------- Sections ---------- */
section.pad { padding: 64px 0; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 42px; }
.sec-head .eyebrow {
  color: var(--teal); font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 13px;
}
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--navy); margin: 8px 0 10px; }
.sec-head p { color: var(--muted); }
.sec-head::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--gold); margin: 16px auto 0; border-radius: 2px;
}

.grid { display: grid; gap: 22px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block; color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px; color: var(--teal);
}
.card h3 { color: var(--navy); font-size: 18.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }

/* programme card */
.prog-card { border-top: 4px solid var(--teal); }
.prog-card .tag {
  display: inline-block; background: var(--gold-light); color: #7a5e10;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: none; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1d1608; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(100deg, rgba(18,34,56,.92) 0%, rgba(14,124,123,.78) 100%);
  color: #fff; padding: 46px 0;
}
.page-banner h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.page-banner .crumbs { font-size: 13.5px; color: #c9d6e2; margin-top: 6px; }
.page-banner .crumbs a { color: #e8d9a8; }

/* ---------- Content blocks ---------- */
.page-body { padding: 52px 0; }
.page-body h2 { color: var(--navy); font-size: 26px; margin: 34px 0 14px; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { color: var(--navy); font-size: 20px; margin: 26px 0 10px; }
.page-body p { margin-bottom: 14px; color: var(--ink); }
.page-body ul, .page-body ol { margin: 0 0 16px 22px; }
.page-body li { margin-bottom: 7px; }

.callout {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 22px 0;
}
.callout.gold { background: var(--gold-light); border-left-color: var(--gold); }
.callout b { color: var(--navy); }

blockquote.vision {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: 0 12px 12px 0; padding: 22px 26px; margin-bottom: 16px;
  font-size: 18px; color: var(--navy); font-weight: 600;
}
blockquote.vision small { display: block; margin-top: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }

/* ---------- Table ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tbl th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-size: 14.5px; }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:nth-child(even) td { background: #fafbfd; }

/* ---------- Principal quote ---------- */
.principal-sec { background: #fff; }
.principal-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.principal-photo {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--teal-light);
}
.principal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.principal-quote { font-size: 17px; color: var(--ink); }
.principal-quote .qmark { font-size: 54px; color: var(--gold); line-height: .6; }
.principal-name { margin-top: 18px; font-weight: 800; color: var(--navy); }
.principal-name span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }

/* ---------- Teachers / staff ---------- */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.person .photo { aspect-ratio: 3/3.4; background: var(--teal-light); overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person .info { padding: 14px 14px 18px; }
.person .info b { display: block; color: var(--navy); font-size: 15px; line-height: 1.35; }
.person .info span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; line-height: 1.45; }
.person.no-photo .photo { display: flex; align-items: center; justify-content: center; font-size: 44px; color: #b8c6d2; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gallery-grid a { border-radius: 10px; overflow: hidden; display: block; aspect-ratio: 4/3; background: #dde5ec; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(10,16,24,.92);
  z-index: 200; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px;
  cursor: pointer; background: none; border: none;
}

/* ---------- Notice / downloads ---------- */
.dl-list { list-style: none; margin: 0; }
.dl-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; transition: box-shadow .15s;
}
.dl-list li:hover { box-shadow: var(--shadow); }
.dl-list .ico { font-size: 22px; flex-shrink: 0; }
.dl-list .ttl { flex: 1; font-weight: 600; color: var(--navy); font-size: 15px; }
.dl-list .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dl-list a.dl {
  background: var(--teal-light); color: var(--teal); font-weight: 700; font-size: 13px;
  padding: 7px 14px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.dl-list a.dl:hover { background: var(--teal); color: #fff; }
.dl-list a.dl.dead, .dl-list span.dl.dead {
  background: #f1f3f6; color: #98a2ad; cursor: not-allowed;
  border: 1px dashed #c9d2db; font-weight: 600; text-decoration: line-through;
  display: inline-block;
}
.dl-list a.dl:hover, .dl-list span.dl:hover { background: var(--teal); color: #fff; }
.dl-list a.dl.dead:hover, .dl-list span.dl.dead:hover { background: #f1f3f6; color: #98a2ad; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h3 { color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.contact-card .row { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.contact-card .row .ico { color: var(--teal); font-size: 18px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: #fff; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c6d4; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px; padding: 52px 0 38px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer a { color: #b9c6d4; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; }
.footer-brand .n { color: #fff; font-weight: 800; font-size: 17px; }
.footer-brand .d { font-size: 13px; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  nav.main-nav a.top-link { padding: 10px 7px; font-size: 12.5px; }
  .brand .sub { max-width: 300px; }
}
@media (max-width: 1080px) {
  nav.main-nav a.top-link { padding: 10px 6px; font-size: 12px; }
  .brand .name { font-size: 17px; }
  .brand .sub { display: none; }
}
@media (max-width: 1020px) {
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principal-grid { grid-template-columns: 1fr; }
  .principal-photo { max-width: 340px; }
}
@media (max-width: 940px) {
  /* Header: brand text truncates, hamburger stays visible on the right */
  .header-inner { flex-wrap: nowrap; gap: 10px; padding: 10px 16px; }
  .brand { min-width: 0; flex: 1; }
  .brand > div { min-width: 0; }
  .brand .name {
    font-size: 15.5px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 100%;
  }
  .brand .sub { display: none; }
  .brand img { width: 44px; height: 44px; }
  .nav-wrap { flex-shrink: 0; margin-left: 8px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 12px; font-size: 14px; border-radius: 8px;
  }
  .nav-toggle .bars { font-size: 15px; line-height: 1; }
  .nav-toggle .txt { font-size: 13.5px; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); max-height: 78vh; overflow-y: auto;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; }
  nav.main-nav a.top-link { padding: 13px 12px; font-size: 15px; justify-content: space-between; }
  .dropdown {
    position: static; display: none; box-shadow: none;
    border: none; border-left: 3px solid var(--teal); border-radius: 0;
    margin: 0 0 6px 14px; padding: 2px 0;
  }
  nav.main-nav li.has-sub.open > .dropdown { display: block; }
  .grid.g3, .grid.g2, .contact-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  /* Topbar: compact, single row, no overflow */
  .topbar .container { gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .topbar .left { display: none; }
  .topbar .right { width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; }
  .topbar .badge-adm { font-size: 12px; padding: 3px 10px; white-space: nowrap; }
  .topbar a { font-size: 12.5px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .grid.g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Header on small phones: logo + name + compact ☰ icon button */
  .header-inner { padding: 10px 12px; gap: 8px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand .name { font-size: 13.5px; }
  .nav-toggle { padding: 7px 10px; }
  .nav-toggle .txt { display: none; }  /* icon-only ☰ on narrow screens */
  .page-body { padding: 36px 0; }
  .dl-list li { flex-wrap: wrap; }
  .dl-list .ttl { flex-basis: calc(100% - 60px); }
  .dl-list a.dl { margin-left: 36px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .person-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
/* ---------- Mobile tables: horizontal scroll ---------- */
@media (max-width: 940px) {
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .page-banner { padding: 34px 0; }
}
