/* ===== Nightingale Nursing College — theme ===== */
:root {
  --teal-900: #4a0a78;
  --teal-700: #7912c3;
  --teal-500: #9a3fd6;
  --teal-050: #f3e8fb;
  --rose: #e85d75;
  --rose-dark: #c2415a;
  --ink: #16302f;
  --muted: #5b6e6d;
  --cream: #f6faf9;
  --line: #dfeae9;
  --shadow: 0 10px 30px rgba(74, 10, 120, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  margin: 0;
}
h1, h2, h3, h4, .display-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  letter-spacing: -.01em;
}
a { color: var(--teal-700); }
.program-link { color: inherit; text-decoration: none; font-weight: 600; transition: color .15s ease; }
.program-link:hover { color: var(--rose); }
.text-rose { color: var(--rose) !important; }
.bg-teal { background: var(--teal-700) !important; }
.section { padding: 5rem 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--rose);
}

/* ---- Navbar ---- */
.navbar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: 1.7rem; padding-bottom: 1.7rem; }
.navbar-brand { font-family: 'Fraunces', serif; font-weight: 700; color: var(--teal-900) !important; font-size: 3.35rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-700); color: #fff; margin-right: .55rem; font-size: 1.1rem;
}
.brand-logo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin-right: .8rem; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 2.35rem; font-weight: 700; color: var(--teal-900); }
.brand-acr { color: var(--teal-700); }
.brand-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500; font-size: .72rem; color: var(--teal-700);
  letter-spacing: .01em;
}
@media (max-width: 575.98px) {
  .brand-name { font-size: .9rem; }
  .brand-sub { font-size: .66rem; }
}
.navbar .nav-link { color: var(--ink) !important; font-weight: 500; padding: .4rem 1rem !important; border-radius: 8px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--teal-700) !important; background: var(--teal-050); }

/* ---- Buttons ---- */
.btn-teal { background: var(--teal-700); border-color: var(--teal-700); color: #fff; font-weight: 600; }
.btn-teal:hover { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.btn-rose { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 600; }
.btn-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
.btn-outline-teal { border-color: var(--teal-700); color: var(--teal-700); font-weight: 600; }
.btn-outline-teal:hover { background: var(--teal-700); color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(74,10,120,.92), rgba(121,18,195,.09)),
    url('../images/building_photo.png') center/cover;
  color: #fff;
  padding: 7rem 0 6rem;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 36rem; }
.page-hero {
  background: linear-gradient(120deg, var(--teal-900), var(--teal-700));
  color: #fff; padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---- Cards ---- */
.feature-card, .info-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.75rem; height: 100%; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-050); color: var(--teal-700); font-size: 1.5rem; margin-bottom: 1rem;
}
.stat-num { font-family: 'Fraunces', serif; font-size: 2.6rem; color: var(--teal-700); font-weight: 700; line-height: 1; }
.text-teal { color: var(--teal-700) !important; }
.faculty-photo {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--teal-050); box-shadow: var(--shadow);
}

/* ---- Enquiry floating button ---- */
.enquiry-fab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 1030; border: none; cursor: pointer;
  background: var(--rose); color: #fff; font-weight: 600; font-size: .95rem;
  padding: .75rem .55rem; border-radius: 12px 0 0 12px;
  box-shadow: -4px 4px 16px rgba(74, 10, 120, .22);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  writing-mode: vertical-rl; transition: background .2s, padding-right .2s;
}
.enquiry-fab i { writing-mode: horizontal-tb; font-size: 1.15rem; }
.enquiry-fab span { letter-spacing: .06em; }
.enquiry-fab:hover { background: var(--rose-dark); padding-right: .85rem; }
@media (max-width: 575.98px) {
  .enquiry-fab { font-size: .82rem; padding: .6rem .45rem; }
}

/* ---- Approvals ---- */
.approval-card {
  display: block; text-decoration: none; color: inherit; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s;
}
.approval-card:hover { transform: translateY(-4px); }
.approval-media {
  height: 240px; background: var(--teal-050);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.approval-media img { width: 100%; height: 100%; object-fit: contain; }
.approval-media iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.approval-cap { padding: .65rem .8rem; font-size: .85rem; font-weight: 600; text-align: center; color: var(--teal-900); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--teal-050); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; color: #fff;
  background: linear-gradient(transparent, rgba(10,74,74,.85)); font-size: .85rem; font-weight: 600;
}

/* ---- Forms ---- */
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 .2rem rgba(20,163,163,.18); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 2.25rem; }

/* ---- Notices ---- */
.notice-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--rose); border-radius: 12px; padding: 1.1rem 1.25rem; }
.notice-date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.badge-soft { background: var(--teal-050); color: var(--teal-700); font-weight: 600; }

/* ---- Footer ---- */
footer.site-footer { background: var(--teal-900); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; }
footer.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
footer.site-footer a:hover { color: #fff; }
footer .foot-title { color: #fff; font-weight: 700; margin-bottom: 1rem; }

/* ---- Admin ---- */
.admin-shell { min-height: 100vh; background: var(--cream); }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.table thead th { background: var(--teal-050); color: var(--teal-900); border: none; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(120deg, var(--teal-900), var(--teal-700)); }
