/* ============================================================
   COLLEGE CMS — PUBLIC SITE STYLESHEET
   Aesthetic: Refined academic — deep navy, gold accents
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

:root {
  --navy:      #0d2d5e;
  --navy-dark: #071a38;
  --gold:      #c8922a;
  --gold-lt:   #e8b354;
  --cream:     #fdf8f0;
  --gray-100:  #f8f9fa;
  --gray-600:  #6c757d;
  --text:      #1a1a2e;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(13,45,94,.10);
  --transition: 0.3s ease;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  font-size: 15px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 700;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ── TOP BAR ──────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.topbar a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.topbar a:hover { color: var(--gold-lt); }
.topbar-right a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }

/* Quick Menu — topbar centre */
.topbar-quickmenu { gap: 0; }
.topbar-qlink {
  display: inline-flex;
  align-items: center;
  padding: 3px 3px 11px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.12);
  letter-spacing: .03em;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.topbar-qlink:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.topbar-qlink:hover { color: var(--gold-lt); background: rgba(255,255,255,.05); }

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  z-index: 1000;
}
.college-logo { height: 56px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.college-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.college-tagline { font-size: 11px; color: var(--gold); font-weight: 500; letter-spacing: .04em; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb-bar { background: var(--cream); border-bottom: 1px solid #e8e0d0; }
.breadcrumb-item a { color: var(--gold); }
.breadcrumb-item.active { color: var(--gray-600); }

/* ── HERO CAROUSEL ────────────────────────────────────────── */
.hero-carousel { position: relative; overflow: hidden; }
.hero-slide {
  height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (max-width: 768px) { .hero-slide { height: 280px; } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,26,56,.75) 0%, rgba(13,45,94,.4) 100%);
}
.hero-content {
  position: absolute;
  bottom: 15%;
  left: 5%;
  color: #fff;
  max-width: 600px;
}
.hero-content h2 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-content p { font-size: .95rem; opacity: .9; }
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: .5rem;
}
.carousel-control-prev-icon,
.carousel-control-next-icon { background-color: var(--gold); border-radius: 50%; padding: 14px; }

/* ── SECTION TITLES ───────────────────────────────────────── */
.section-title {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ── EVENT CARD ───────────────────────────────────────────── */
.event-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card .card-img-top { height: 180px; object-fit: cover; }
.event-card .event-date-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: #fff;
  border-radius: 6px;
  text-align: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.event-card .card-title { font-family: 'Playfair Display', serif; font-size: 1rem; }
.event-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: .4rem;
}
.badge-event  { background: #e8f0ff; color: #2563eb; }
.badge-news   { background: #e8fff0; color: #16a34a; }
.badge-notice { background: #fff8e8; color: #d97706; }

/* ── FACULTY CARD ─────────────────────────────────────────── */
.faculty-card {
  text-align: center;
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.faculty-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin: 0 auto .75rem;
}
.faculty-name { font-family: 'Playfair Display', serif; font-size: .95rem; margin-bottom: .2rem; }
.faculty-designation { font-size: .82rem; color: var(--gold); font-weight: 600; }
.faculty-qualification { font-size: .78rem; color: var(--gray-600); }
.hod-ribbon {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: .4rem;
}

/* ── GALLERY GRID ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(7,26,56,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── ALBUM CARD ───────────────────────────────────────────── */
.album-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform var(--transition);
}
.album-card:hover { transform: translateY(-3px); }
.album-card .album-cover { height: 170px; object-fit: cover; width: 100%; }
.album-count {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── DOWNLOADS ────────────────────────────────────────────── */
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border: 1px solid #e8e0d0;
  border-radius: var(--radius);
  background: #fff;
  transition: background var(--transition), box-shadow var(--transition);
}
.download-item:hover { background: var(--cream); box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.download-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.icon-pdf  { background: #fee2e2; color: #dc2626; }
.icon-doc  { background: #dbeafe; color: #2563eb; }
.icon-xls  { background: #dcfce7; color: #16a34a; }
.icon-zip  { background: #fef9c3; color: #ca8a04; }
.icon-file { background: #f3f4f6; color: #6b7280; }
.download-title { font-weight: 500; font-size: .92rem; margin-bottom: .1rem; }
.download-meta  { font-size: .78rem; color: var(--gray-600); }
.download-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}
.download-btn:hover { background: var(--gold); color: #fff; }

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contact-card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem;
}
.form-control, .form-select {
  border-radius: 6px;
  border-color: #d8cfc0;
  font-size: .9rem;
  padding: .65rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,146,42,.15);
}
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  font-weight: 600;
  letter-spacing: .03em;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-outline-primary {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}
.btn-outline-primary:hover { background: var(--navy); color: #fff; }
.contact-info-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: var(--cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── VIDEO CARD ───────────────────────────────────────────── */
.video-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform var(--transition);
}
.video-card:hover { transform: translateY(-3px); }
.video-thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff; font-size: 2.5rem;
  transition: background var(--transition);
}
.video-card:hover .video-play-btn { background: rgba(200,146,42,.75); }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar { background: var(--navy); color: #fff; padding: 2rem 0; }
.stat-item { text-align: center; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold-lt); font-weight: 700; }
.stat-label { font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }

/* ── NOTICE TICKER ────────────────────────────────────────── */
.notice-ticker {
  background: var(--cream);
  border-top: 1px solid #e8e0d0;
  border-bottom: 1px solid #e8e0d0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: .4rem 0;
}
.ticker-label {
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 12px;
  white-space: nowrap;
  letter-spacing: .08em;
  border-radius: 0 20px 20px 0;
  margin-right: 1rem;
  flex-shrink: 0;
}
.ticker-content { overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex;
  gap: 2rem;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}
.ticker-inner a { font-size: .82rem; color: var(--navy); text-decoration: none; }
.ticker-inner a:hover { color: var(--gold); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── DEPT TABS ────────────────────────────────────────────── */
.dept-tabs .nav-link { color: var(--navy); font-weight: 500; border-radius: 6px 6px 0 0; }
.dept-tabs .nav-link.active { background: var(--navy); color: #fff; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { background: #0d1b2a; color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; }
.footer-heading { font-size: 1rem; color: var(--gold-lt); margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-lt); }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  transition: background var(--transition);
}
.social-btn:hover { background: var(--gold); color: #fff; }

/* ── UTILITIES ────────────────────────────────────────────── */
.bg-cream { background: var(--cream); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.btn-gold { background: var(--gold); color: #fff; border: none; font-weight: 600; }
.btn-gold:hover { background: var(--gold-lt); color: #fff; }
.main-content { min-height: 60vh; }
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2.5rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero p { opacity: .8; }

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.hamburger-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: var(--navy); border: none; border-radius: 10px;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s;
}
.hamburger-btn:hover { background: var(--gold); }
.hb-bar {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              opacity   .25s ease,
              width     .3s ease;
  transform-origin: center;
}
.hb-bar:nth-child(3) { width: 14px; }
.hamburger-btn:hover .hb-bar:nth-child(3) { width: 20px; }
.hamburger-btn.open .hb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open .hb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open .hb-bar:nth-child(3) { width: 20px; transform: translateY(-7px) rotate(-45deg); }

/* ── FULL-PAGE MENU OVERLAY ───────────────────────────────── */
body.menu-open { overflow: hidden; }

/* Transparent container — covers full screen to catch click-outside */
.fullmenu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1070;
  visibility: hidden; pointer-events: none;
}
.fullmenu.open { visibility: visible; pointer-events: all; }

/* Dark backdrop — separate so it can fade independently */
.fullmenu-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1069;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility 0s .42s;
}
.fullmenu-backdrop.show {
  opacity: 1; visibility: visible;
  transition: opacity .4s ease, visibility 0s 0s;
}

/* The sliding panel */
.fullmenu-inner {
  position: absolute; top: 0; right: 0;
  width: min(680px, 100vw); height: 100%;
  background: linear-gradient(160deg, #071a38 0%, #0d2d5e 55%, #0a2040 100%);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  overflow-y: auto; overflow-x: hidden;
}
.fullmenu.open .fullmenu-inner { transform: translateX(0); }

/* Top bar inside overlay */
.fullmenu-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.fullmenu-logo {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none;
}
.fullmenu-logo img { height: 44px; width: auto; object-fit: contain; filter: brightness(1.1); }
.fullmenu-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: #fff;
  line-height: 1.25;
}
.fullmenu-close-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s, transform .2s;
  flex-shrink: 0;
}
.fullmenu-close-btn:hover { background: rgba(255,255,255,.18); color: #fff; transform: rotate(90deg); }

/* Body: nav + aside side by side on desktop */
.fullmenu-body {
  display: flex; flex: 1; min-height: 0;
  padding: 2rem 0;
}

/* ── Nav items ── */
.fullmenu-nav { flex: 1; padding: 0 1.5rem 0 2rem; }
.fullmenu-nav ul { list-style: none; margin: 0; padding: 0; }

.fm-item {
  opacity: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.fm-item:last-child { border-bottom: none; }

/* Stagger slide-in when overlay opens */
.fullmenu.open .fm-item {
  animation: fmSlideIn .5s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--fi, 1) * 55ms + 80ms);
}
@keyframes fmSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fm-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem .5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600; color: rgba(255,255,255,.85);
  text-decoration: none; background: none; border: none; text-align: left;
  cursor: pointer; border-radius: 8px;
  transition: color .2s, padding-left .2s;
  gap: 1rem;
}
.fm-link:hover, .fm-link:focus { color: var(--gold-lt); padding-left: .85rem; outline: none; }
.fm-link-arrow {
  font-size: .75rem; color: rgba(255,255,255,.25);
  transition: transform .2s, color .2s;
  flex-shrink: 0;
}
.fm-link:hover .fm-link-arrow { color: var(--gold-lt); transform: translateX(4px); }

/* Parent button (has submenu) */
.fm-parent-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem .5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600; color: rgba(255,255,255,.85);
  background: none; border: none; text-align: left; cursor: pointer;
  border-radius: 8px; gap: 1rem;
  transition: color .2s, padding-left .2s;
}
.fm-parent-btn:hover, .fm-parent-btn:focus { color: var(--gold-lt); padding-left: .85rem; outline: none; }
.fm-chevron {
  font-size: .7rem; color: rgba(255,255,255,.3);
  transition: transform .3s ease, color .2s;
  flex-shrink: 0;
}
.fm-has-sub.sub-open .fm-chevron { transform: rotate(180deg); color: var(--gold-lt); }
.fm-has-sub.sub-open .fm-parent-btn { color: var(--gold-lt); }

/* Submenu */
.fm-sub {
  list-style: none;
  margin: 0 0 0 1.25rem;
  padding: .35rem 0 .75rem .9rem;
  border-left: 2px solid rgba(255,255,255,.1);
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1),
              border-color .35s ease;
}
.fm-has-sub.sub-open .fm-sub {
  max-height: 700px;
  border-color: rgba(200,146,42,.45);
}
.fm-sub li + li { margin-top: 2px; }
.fm-sub-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .75rem; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.55); text-decoration: none;
  transition: color .18s, background .18s, padding-left .18s;
}
.fm-sub-link:hover {
  color: var(--gold-lt);
  background: rgba(255,255,255,.06);
  padding-left: 1.1rem;
}
.fm-sub-arrow {
  font-size: .55rem; color: rgba(255,255,255,.2);
  transition: color .18s, transform .18s;
  flex-shrink: 0;
}
.fm-sub-link:hover .fm-sub-arrow { color: var(--gold); transform: translateX(3px); }

/* Level-3 sub-submenu */
.fm-sub-parent-btn {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  padding: .55rem .75rem; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.55); background: none; border: none; cursor: pointer;
  transition: color .18s, background .18s;
  text-align: left;
}
.fm-sub-parent-btn:hover { color: var(--gold-lt); background: rgba(255,255,255,.06); }
.fm-sub-chevron { font-size: .6rem; transition: transform .3s; }
.fm-sub-has-sub.sub-sub-open .fm-sub-chevron { transform: rotate(90deg); color: var(--gold-lt); }
.fm-sub-has-sub.sub-sub-open .fm-sub-parent-btn { color: var(--gold-lt); }

.fm-sub-sub {
  list-style: none;
  margin: 0 0 0 1.5rem;
  padding: .25rem 0 .5rem .75rem;
  border-left: 2px solid rgba(200,146,42,.25);
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.fm-sub-has-sub.sub-sub-open .fm-sub-sub { max-height: 500px; }
.fm-sub-sub li + li { margin-top: 2px; }

.fm-sub-sub-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .75rem; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: .83rem; font-weight: 400;
  color: rgba(255,255,255,.42); text-decoration: none;
  transition: color .18s, background .18s, padding-left .18s;
}
.fm-sub-sub-link:hover {
  color: var(--gold-lt);
  background: rgba(255,255,255,.05);
  padding-left: 1.1rem;
}

/* ── Aside sidebar ── */
.fullmenu-aside {
  width: 200px; flex-shrink: 0;
  padding: 0 2rem 0 1.5rem;
  border-left: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 2rem;
}
.fma-section { display: flex; flex-direction: column; gap: .6rem; }
.fma-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .2rem;
}
.fma-contact {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .18s;
  line-height: 1.4;
}
.fma-contact i { font-size: .75rem; color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.fma-contact:hover { color: #fff; }
.fma-address {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.5);
  line-height: 1.5; margin: 0;
}
.fma-address i { font-size: .75rem; color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.fma-socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.fma-social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: .8rem; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.fma-social-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.fma-tagline {
  font-family: 'Playfair Display', serif;
  font-size: .8rem; font-style: italic;
  color: rgba(255,255,255,.25); line-height: 1.6;
  margin-top: auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .fullmenu-inner { width: 100vw; }
  .fullmenu-aside { display: none; }
  .fullmenu-nav { padding: 0 1.25rem; }
  .fullmenu-topbar { padding: 1rem 1.25rem; }
}
@media (max-width: 480px) {
  .fm-link, .fm-parent-btn { font-size: 1.1rem; padding: .85rem .25rem; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 576px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .download-item { flex-wrap: wrap; }
}

/* ── SEARCH BUTTON (in navbar) ────────────────────────────── */
.site-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem;
  background: var(--cream); border: 1.5px solid #e2d9c8;
  color: var(--navy); font-size: .8rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; letter-spacing: .02em;
  padding: 5px 14px 5px 10px; border-radius: 20px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.site-search-btn i { font-size: .75rem; color: var(--gold); }
.site-search-btn:hover {
  background: var(--gold); border-color: var(--gold);
  color: #fff; box-shadow: 0 2px 10px rgba(200,146,42,.3);
}
.site-search-btn:hover i { color: #fff; }

/* ── SEARCH OVERLAY ───────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 1080;
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay.open .search-panel {
  transform: translateY(0); opacity: 1;
}

/* Frosted glass backdrop */
.search-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(7,26,56,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Floating panel */
.search-panel {
  position: relative; z-index: 1;
  width: min(760px, 94vw);
  margin-top: clamp(60px, 10vh, 110px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  transform: translateY(-18px); opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .28s ease;
}

/* Input row */
.search-box-row {
  display: flex; align-items: center; gap: 0;
  padding: 0 1.5rem;
  border-bottom: 1.5px solid #f0eee8;
}
.search-icon-lead {
  color: var(--gold); font-size: 1.1rem; flex-shrink: 0;
  margin-right: .75rem;
}
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--navy); font-size: clamp(1rem, 3vw, 1.25rem);
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  padding: 1.15rem 0; caret-color: var(--gold);
}
.search-input::placeholder { color: #bbb; font-weight: 400; }

.search-close-btn {
  flex-shrink: 0; background: var(--cream); border: 1.5px solid #e2d9c8;
  color: var(--gray-600); font-size: .75rem;
  padding: 4px 10px; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: background .2s, color .2s;
  white-space: nowrap;
}
.search-close-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Results list */
.search-results {
  list-style: none; margin: 0; padding: .5rem .75rem;
  max-height: min(420px, 52vh); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #ddd transparent;
}
.search-results:empty { padding: 0; }
.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.search-results li a {
  display: flex; align-items: center; gap: 1rem;
  padding: .65rem .85rem; border-radius: 10px;
  color: var(--navy); text-decoration: none;
  font-size: .93rem; font-family: 'DM Sans', sans-serif;
  transition: background .14s, color .14s;
}
.search-results li a:hover,
.search-results li.active a {
  background: var(--cream); color: var(--gold);
}
.search-results li.active a .sr-icon { background: var(--gold); color: #fff; }

.search-results li a .sr-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #f0eee8;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; color: var(--gold); flex-shrink: 0;
  transition: background .14s, color .14s;
}
.search-results li a .sr-label {
  flex: 1; min-width: 0; line-height: 1.3;
}
.search-results li a .sr-label small {
  display: block; font-size: .72rem; color: #94a3b8; margin-top: 1px;
  font-weight: 400;
}
.search-results li a mark {
  background: transparent; color: var(--gold); font-weight: 700;
}
.search-results li a .sr-arrow {
  font-size: .7rem; color: #c8c8c8;
  transition: transform .15s, color .15s;
}
.search-results li a:hover .sr-arrow,
.search-results li.active a .sr-arrow { transform: translateX(3px); color: var(--gold); }

/* No-results message */
.search-noresult {
  padding: 1.75rem 1.5rem; text-align: center;
  color: var(--gray-600); font-family: 'DM Sans', sans-serif; font-size: .9rem;
}
.search-noresult i { display: block; font-size: 1.6rem; color: #d1d5db; margin-bottom: .6rem; }

/* Footer hint bar */
.search-hint {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: .75rem 1.5rem;
  border-top: 1.5px solid #f0eee8;
  background: #fafafa;
  font-size: .73rem; color: #a0aec0; font-family: 'DM Sans', sans-serif;
}
.search-hint kbd {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 5px;
  padding: 1px 6px; font-size: .68rem; color: #64748b;
  font-family: inherit; box-shadow: 0 1px 0 #ccc;
  margin: 0 2px;
}
.search-hint-left, .search-hint-right { display: flex; align-items: center; gap: .35rem; }

.search-backdrop { display: none; }
