/* =================================================================
   A2Z Future Secure Education — main stylesheet
   Design system: navy + gold, Poppins/Inter type, card-based layout
   ================================================================= */

:root {
  --primary: #0b2545;
  --primary-dark: #071931;
  --primary-light: #12417d;
  --accent: #f2a71b;
  --accent-dark: #d6900d;
  --teal: #12897f;
  --ink: #1b2430;
  --muted: #5c6b7a;
  --line: #e6eaf0;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --danger: #d9455f;
  --success: #1e9e6b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, 0.18);
  --container: 1200px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; margin: 0 0 .5em; line-height: 1.25; color: var(--primary); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; scroll-margin-top: 76px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--primary); color: #cfd9e8; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(242, 167, 27, 0.12);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.align-left { margin: 0 0 40px; text-align: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* =================================================================
   Top bar
   ================================================================= */
.topbar {
  background: var(--primary-dark);
  color: #b9c6db;
  font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info a { display: inline-flex; align-items: center; gap: 6px; color: #b9c6db; }
.topbar-info a:hover { color: #fff; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #cfd9e8;
  transition: background .2s ease, color .2s ease;
}
.topbar-social a:hover { background: var(--accent); color: var(--primary-dark); }

/* =================================================================
   Main header / nav — two separate strips: a white logo strip, and a
   dark nav strip underneath it (which is the sticky part on scroll).
   ================================================================= */
/* display:contents removes site-header's own box so .brand-strip and
   .nav-strip act as if they were direct children of <body> — otherwise
   .nav-strip's sticky positioning has almost no room to work with, since
   its containing block (site-header) is only as tall as its 2 children. */
.site-header { display: contents; }

.brand-strip { background: #fff; box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.brand-strip-inner { display: flex; align-items: center; justify-content: center; padding: 18px 20px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand img { height: 64px; width: auto; flex-shrink: 0; }
.brand-text { line-height: 1.25; min-width: 0; text-align: left; }
.brand-text .name { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.3rem; display: block; }
.brand-text .tagline { display: block; font-size: .82rem; color: var(--accent-dark); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }

.nav-strip {
  background: var(--primary-dark);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.nav-strip-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; }

.main-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 17px 16px; font-weight: 600; font-size: .93rem;
  color: #dbe3f0; transition: color .2s ease, background .2s ease;
  position: relative;
}
.main-nav a.nav-link:hover, .main-nav li.active > a.nav-link { color: #fff; background: rgba(255,255,255,.08); }
.main-nav .nav-cta { margin-left: 14px; }
.main-nav .caret { font-size: .62rem; opacity: .7; transition: transform .2s ease; }
.main-nav li.has-children:hover > .nav-link .caret,
.main-nav li.has-children:focus-within > .nav-link .caret { transform: rotate(180deg); }
.submenu-toggle { display: none; }

/* Desktop dropdown */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 250px; margin-top: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease; z-index: 60;
}
.main-nav li.has-children:hover > .submenu,
.main-nav li.has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  color: var(--ink); white-space: nowrap;
}
.submenu li a:hover { background: var(--bg-soft); color: var(--primary); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* =================================================================
   Hero slider
   ================================================================= */
.hero { position: relative; overflow: hidden; background: var(--primary-dark); }
.hero-slides { position: relative; height: 560px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,25,49,.92) 0%, rgba(7,25,49,.65) 45%, rgba(7,25,49,.35) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; color: #fff; }
.hero-content .eyebrow { background: rgba(242,167,27,.18); color: var(--accent); }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .4em; }
.hero-content p { color: #d8e0ee; font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; opacity: .6; }
.hero-dots button.active { background: var(--accent); border-color: var(--accent); opacity: 1; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.hero-arrow:hover { background: var(--accent); color: var(--primary-dark); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* Quick stats strip below/over hero */
.stats-strip {
  position: relative; z-index: 4; background: var(--white);
  box-shadow: var(--shadow-md); border-radius: var(--radius);
  margin: -46px auto 0; max-width: calc(var(--container) - 40px);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { text-align: center; padding: 26px 10px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--primary); }
.stat-item .num span { color: var(--accent-dark); }
.stat-item .label { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* =================================================================
   Cards: courses / gallery / faculty / testimonials
   ================================================================= */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.course-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card .thumb { position: relative; height: 190px; overflow: hidden; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .thumb img { transform: scale(1.08); }
.course-card .thumb .tag {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--primary-dark);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 30px;
}
.course-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.course-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.course-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.course-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }
.course-card .meta a { color: var(--primary); font-weight: 700; }
.course-card .meta a:hover { color: var(--accent-dark); }

.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(11,37,69,.85), transparent);
  color: #fff; font-size: .85rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

.faculty-card { text-align: center; }
.faculty-card .photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 4px solid var(--bg-soft); box-shadow: var(--shadow-sm); }
.faculty-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card h4 { margin-bottom: 2px; }
.faculty-card .role { color: var(--accent-dark); font-weight: 600; font-size: .88rem; }

.testimonial-card {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); position: relative;
}
.testimonial-card .quote { color: var(--accent); font-size: 2.4rem; font-family: Georgia, serif; line-height: .4; }
.testimonial-card p.msg { color: var(--muted); font-style: italic; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card .person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card .person .name { font-weight: 700; color: var(--primary); font-size: .92rem; }
.testimonial-card .person .role { font-size: .8rem; color: var(--muted); }
.testimonial-card .stars { color: var(--accent); margin-bottom: 8px; }

/* =================================================================
   Homepage layout: main content + notice sidebar
   ================================================================= */
.home-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 34px; align-items: start; }

.notice-board { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; position: sticky; top: 76px; }
.notice-board .nb-head {
  background: var(--primary); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 10px;
}
.notice-board .nb-head h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.notice-board .nb-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.notice-list { max-height: 480px; overflow-y: auto; }
.notice-item { display: block; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.notice-item:hover { background: var(--bg-soft); }
.notice-item .date-chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: var(--bg-soft); border-radius: var(--radius-sm);
  color: var(--primary); font-weight: 700; float: left; margin-right: 14px; line-height: 1.1;
}
.notice-item .date-chip .d { font-size: 1.05rem; }
.notice-item .date-chip .m { font-size: .65rem; text-transform: uppercase; color: var(--accent-dark); }
.notice-item .nb-title { font-weight: 600; font-size: .92rem; color: var(--ink); display: block; margin-bottom: 2px; }
.notice-item .nb-excerpt { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-board .nb-foot { padding: 16px 22px; text-align: center; }
.notice-empty { padding: 30px 22px; text-align: center; color: var(--muted); font-size: .9rem; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,167,27,.6); } 70% { box-shadow: 0 0 0 8px rgba(242,167,27,0); } 100% { box-shadow: 0 0 0 0 rgba(242,167,27,0); } }

/* =================================================================
   Admission form
   ================================================================= */
.admission-panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  border: 1px solid var(--line); padding: 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: .88rem; color: var(--primary); }
.form-group label .req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color .2s ease, background .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .8rem; color: var(--muted); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .92rem; }
.alert-success { background: #e6f7ef; color: var(--success); border: 1px solid #b9e8cf; }
.alert-error { background: #fdeaee; color: var(--danger); border: 1px solid #f6c3cd; }

/* =================================================================
   CTA band
   ================================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; border-radius: var(--radius); padding: 46px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cfd9e8; margin: 0; }

/* =================================================================
   Page header (inner pages banner)
   ================================================================= */
.page-banner {
  background: linear-gradient(rgba(7,25,49,.86), rgba(7,25,49,.86)), var(--primary-dark) center/cover;
  color: #fff; padding: 64px 0; text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.breadcrumb { color: #b9c6db; font-size: .9rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* =================================================================
   Footer
   ================================================================= */
.site-footer { background: var(--primary-dark); color: #a9b8cf; }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-col p { font-size: .9rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 44px; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9rem; transition: color .2s ease, padding-left .2s ease; display: inline-block; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: .9rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); }
.newsletter-form { display: flex; margin-top: 14px; }
.newsletter-form input { flex: 1; border: none; padding: 12px 14px; border-radius: 30px 0 0 30px; }
.newsletter-form button { border: none; background: var(--accent); color: var(--primary-dark); padding: 0 18px; border-radius: 0 30px 30px 0; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a:hover { color: var(--accent); }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease; z-index: 500; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--primary-dark); }

.whatsapp-float {
  position: fixed; left: 24px; bottom: 24px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow-md); z-index: 500;
}

/* =================================================================
   Scroll reveal animation
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* =================================================================
   Misc: breadcrumbs page content, tables, badges (shared w/ admin)
   ================================================================= */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-new { background: #e7edff; color: #2952cc; }
.badge-contacted { background: #fff3d6; color: #a5720b; }
.badge-enrolled { background: #e6f7ef; color: var(--success); }
.badge-rejected { background: #fdeaee; color: var(--danger); }

.prose { color: var(--ink); font-size: 1rem; }
.prose p { margin-bottom: 1.1em; color: var(--muted); }
.prose h2, .prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; color: var(--muted); }
.prose li { margin-bottom: .4em; }
.prose img { max-width: 100%; border-radius: var(--radius-sm); margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--bg-soft); color: var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.prose a:hover { color: var(--accent-dark); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--line); margin-bottom: 12px; }

/* =================================================================
   Lightbox — click-to-enlarge for image grids (news clippings, etc.)
   ================================================================= */
.lightbox-trigger { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(7,25,49,.92); z-index: 3000;
  display: none; align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-figure { max-width: 90vw; max-height: 90vh; margin: 0; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: #fff; margin-top: 14px; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer; transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .home-layout { grid-template-columns: 1fr; }
  .notice-board { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

/* Nav collapses to the hamburger drawer well before brand text + 8 links
   + Apply Now button would otherwise start cramping into each other
   (measured: nav ~973px + brand ~256px + gaps/padding needs ~1290px). */
@media (max-width: 1300px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 20px 20px; box-shadow: var(--shadow-lg);
    transition: right .3s ease; z-index: 1000; overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .nav-cta { margin: 16px 0 0; }

  /* The drawer has a white background, so nav links need dark text again
     (the default is light text, styled for the dark desktop nav strip). */
  .main-nav a.nav-link { padding: 14px 12px; justify-content: space-between; color: var(--ink); }
  .main-nav a.nav-link:hover, .main-nav li.active > a.nav-link { color: var(--primary); background: var(--bg-soft); }

  /* Submenus become tap-to-expand accordions inside the drawer */
  .main-nav li.has-children { display: flex; flex-direction: column; }
  .main-nav li.has-children > .nav-link { flex: 1; }
  .submenu-toggle {
    display: flex; align-items: center; justify-content: center; position: absolute; top: 2px; right: 0;
    width: 46px; height: 46px; background: none; border: none; color: var(--muted); font-size: .8rem;
  }
  .submenu-toggle i { transition: transform .2s ease; }
  .main-nav li.has-children.open > .submenu-toggle i { transform: rotate(180deg); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    margin: 0; padding: 0 0 0 14px; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav li.has-children.open > .submenu { max-height: 400px; padding-top: 4px; padding-bottom: 8px; }
  .submenu li a { padding: 10px 14px; color: var(--muted); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-slides { height: 620px; }
  .hero-arrow { display: none; }
  .cta-band { flex-direction: column; text-align: center; }
  .brand-strip-inner { padding: 14px 20px; }
  .brand img { height: 48px; }
  .brand-text .name { font-size: 1.05rem; }
  .brand-text .tagline { font-size: .7rem; }
}
