/*
Theme Name:  DCPS Convent Primary
Theme URI:   https://conventprimarybyo.com
Author:      Dominican Convent Primary School
Description: Official theme for Dominican Convent Primary School, Bulawayo. Multi-page school site with hero slider, admissions form, news, gallery, staff and contact.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
Text Domain: dcps
Tags:        education, school, responsive, custom-logo, custom-menu
*/

/* ============================================================
   1. CSS VARIABLES  (defaults — overridden by dynamic CSS)
   ============================================================ */
:root {
  --navy:        #0d2159;
  --blue:        #2e8bc0;
  --cyan:        #00b4d8;
  --sky:         #6bb8e0;
  --white:       #ffffff;
  --cream:       #f4f7fb;
  --light:       #f0f2f5;
  --text:        #1a1a2e;
  --muted:       #5a6070;
  --border:      #d0dae8;
  --green:       #1e7e3a;
  --red:         #c0392b;
  --gold:        #c8a430;
  --shadow:      0 2px 16px rgba(13,33,89,.1);
  --shadow-md:   0 6px 24px rgba(13,33,89,.14);
  --r:           8px;
  --r-lg:        12px;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
a    { text-decoration: none; color: inherit; transition: color .2s; }
img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}
p { line-height: 1.8; color: var(--muted); }

.lbl {
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  display: block;
  margin-bottom: .5rem;
}
.title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
}
.title em { font-style: italic; color: var(--blue); }
.divider {
  width: 44px; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  margin: .9rem 0 1.6rem;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max-w, 1180px);
  margin: 0 auto;
  padding: 0 5vw;
}
.section { padding: 5rem 5vw; width: 100%; }
.section.bg-white  { background: var(--white); }
.section.bg-light  { background: var(--light); border-top: 1px solid var(--border); }
.section.bg-navy   { background: var(--navy); }
.section.bg-cream  { background: var(--cream); }

/* 2-col grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .72rem 1.7rem; border-radius: 5px;
  font-size: .9rem; font-weight: 600; border: none;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue  { background: var(--blue);  color: var(--white); }
.btn-blue:hover  { background: var(--navy); box-shadow: 0 6px 18px rgba(46,139,192,.35); }
.btn-navy  { background: var(--navy);  color: var(--white); }
.btn-navy:hover  { background: #0a1a40; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cyan); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: .5rem 1.1rem; font-size: .82rem; }
.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   6. TOPBAR
   ============================================================ */
#topbar {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  padding: .5rem 5vw;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .4rem;
  width: 100%;
}
#topbar a { color: rgba(255,255,255,.8); }
#topbar a:hover { color: var(--cyan); }
.topbar-left  { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 1.25rem; align-items: center; }

/* ============================================================
   7. NAVIGATION
   ============================================================ */
#site-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow);
  width: 100%;
}
.nav-wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 74px;
  max-width: 100%;
}
.nav-brand { display: flex; align-items: center; gap: .85rem; flex-shrink: 0; }
/* Logo — all WP custom logo selectors. Height set via dynamic CSS. */
.nav-logo,
.nav-logo img,
.site-logo,
.custom-logo,
.custom-logo-link img,
a.custom-logo-link img,
.nav-brand img,
.nav-brand a img,
#site-header .nav-brand img { height: 56px; width: auto; display: block; }
/* custom-logo-link anchor must not force its own dimensions */
.custom-logo-link { display: flex; align-items: center; }
.nav-name strong {
  font-family: 'Merriweather', serif;
  font-size: .95rem; font-weight: 700;
  color: var(--navy); display: block; line-height: 1.25;
}
.nav-name span {
  font-size: .65rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--blue);
}

/* Desktop menu */
#nav-menu {
  display: flex; align-items: center;
  gap: .1rem; list-style: none;
}
#nav-menu li a {
  padding: .45rem .8rem;
  font-size: .84rem; border-radius: 4px;
  color: var(--text); display: block;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
#nav-menu li a:hover        { background: var(--light); color: var(--navy); }
#nav-menu li.current-menu-item > a { color: var(--blue); font-weight: 500; }
#nav-menu .menu-apply a {
  background: var(--blue); color: var(--white) !important;
  font-weight: 600; border-radius: 4px;
}
#nav-menu .menu-apply a:hover { background: var(--navy) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .3rem;
  cursor: pointer; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
#mobile-menu {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  width: 100%;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  display: block; padding: .75rem 5vw;
  font-size: .95rem; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
#mobile-menu a:hover         { background: var(--light); }
#mobile-menu .menu-apply-mob { color: var(--blue) !important; font-weight: 600; }

/* ============================================================
   8. HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  width: 100%; height: 90vh;
  min-height: 520px; max-height: 860px;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .9s ease;
}
.slide.is-active { opacity: 1; pointer-events: all; z-index: 2; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1); transition: transform 7s ease;
}
.slide.is-active .slide-bg { transform: scale(1.06); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    rgba(13,33,89,.82) 0%,
    rgba(13,33,89,.55) 55%,
    rgba(13,33,89,.2) 100%);
}
.slide-body {
  position: relative; z-index: 3;
  padding: 0 8vw; color: var(--white);
  max-width: 680px;
}
.slide-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.95);
  padding: .33rem .95rem; border-radius: 20px;
  font-size: .73rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.slide-body h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700; line-height: 1.18;
  color: var(--white); margin-bottom: 1.1rem;
}
.slide-body h1 em { font-style: italic; color: var(--cyan); }
.slide-body p {
  font-size: .98rem; color: rgba(255,255,255,.8);
  line-height: 1.8; max-width: 500px; margin-bottom: 1.9rem;
}
.slide-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.slide-stats {
  display: flex; gap: 2rem; margin-top: 2.8rem; flex-wrap: wrap;
}
.slide-stat { border-left: 3px solid var(--cyan); padding-left: .9rem; }
.slide-stat-num {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--white); line-height: 1;
}
.slide-stat-lbl {
  font-size: .7rem; color: rgba(255,255,255,.65); margin-top: .2rem;
}

/* Arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
  color: var(--white); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--blue); border-color: var(--blue); }
.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

/* Dots */
.hero-dots {
  position: absolute; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%); z-index: 10;
  display: flex; gap: .55rem;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer; transition: background .25s, transform .25s;
}
.hero-dot.is-active {
  background: var(--cyan); border-color: var(--cyan);
  transform: scale(1.25);
}

/* Progress bar */
.hero-progress {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 10;
}

/* ============================================================
   9. QUICK LINKS STRIP
   ============================================================ */
.ql-strip { background: var(--navy); width: 100%; }
.ql-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 100%;
}
.ql-item {
  padding: 1.4rem 1rem; text-align: center; color: var(--white);
  border-right: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: background .2s;
  text-decoration: none; display: block;
}
.ql-item:last-child { border-right: none; }
.ql-item:hover { background: rgba(46,139,192,.2); }
.ql-icon  { font-size: 1.5rem; margin-bottom: .4rem; }
.ql-label { font-size: .83rem; font-weight: 600; display: block; }
.ql-sub   { font-size: .7rem; color: rgba(255,255,255,.55); margin-top: .1rem; }

/* ============================================================
   10. STATS BAR
   ============================================================ */
.stats-bar { background: #1a3a8f; padding: 2.75rem 5vw; width: 100%; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; max-width: var(--max-w, 1180px);
  margin: 0 auto; text-align: center;
}
.stat-num {
  font-family: 'Merriweather', serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--cyan); line-height: 1;
}
.stat-lbl {
  font-size: .76rem; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .05em;
  margin-top: .4rem;
}

/* ============================================================
   11. CARDS (news, events, gallery, staff)
   ============================================================ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.card-img {
  aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-cat {
  position: absolute; top: .65rem; left: .65rem;
  background: var(--blue); color: var(--white);
  padding: .2rem .65rem; border-radius: 3px;
  font-size: .67rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
}
.card-body { padding: 1.2rem; }
.card-date  { font-size: .74rem; color: var(--muted); margin-bottom: .4rem; }
.card-title {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem; color: var(--navy);
  line-height: 1.35; margin-bottom: .45rem;
}
.card-excerpt { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ============================================================
   12. EVENTS LIST
   ============================================================ */
.event-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1.2rem;
  transition: border-color .2s, box-shadow .2s;
}
.event-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.event-date {
  background: var(--navy); color: var(--white);
  border-radius: 7px; padding: .55rem .85rem;
  text-align: center; flex-shrink: 0; min-width: 54px;
}
.event-day   { font-family: 'Merriweather', serif; font-size: 1.65rem; font-weight: 700; line-height: 1; }
.event-month { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.event-info strong { font-size: .92rem; color: var(--navy); display: block; margin-bottom: .18rem; }
.event-info span   { font-size: .8rem; color: var(--muted); }
.event-tag {
  display: inline-block; background: var(--light);
  color: var(--navy); border-radius: 3px;
  padding: .1rem .5rem; font-size: .68rem;
  font-weight: 500; margin-top: .3rem;
}

/* ============================================================
   13. GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  border-radius: var(--r); overflow: hidden;
  position: relative; aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; inset: auto 0 0;
  background: linear-gradient(transparent, rgba(13,33,89,.8));
  color: var(--white); padding: .7rem .85rem;
  font-size: .78rem; font-weight: 500;
  transform: translateY(100%); transition: transform .3s;
}
.gallery-item:hover .gallery-cap { transform: translateY(0); }

/* ============================================================
   14. STAFF GRID
   ============================================================ */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.staff-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem 1.1rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.staff-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.staff-avatar {
  width: 78px; height: 78px; border-radius: 50%;
  object-fit: cover; margin: 0 auto .85rem;
  border: 3px solid var(--blue);
}
.staff-initials {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--navy); color: var(--cyan);
  font-family: 'Merriweather', serif;
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .85rem; border: 3px solid var(--blue);
}
.staff-name { font-size: .95rem; color: var(--navy); font-weight: 700; margin-bottom: .2rem; }
.staff-role { font-size: .78rem; color: var(--blue); font-weight: 500; margin-bottom: .3rem; }
.staff-qual { font-size: .74rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   15. APPLICATION FORM
   ============================================================ */
.apply-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.25rem;
  box-shadow: var(--shadow);
}

/* Step progress */
.steps {
  display: flex; margin-bottom: 2.25rem;
  position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 18px; left: 0; right: 0; height: 2px;
  background: var(--border); z-index: 0;
}
.step-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; position: relative; z-index: 1;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  transition: background .25s, border-color .25s;
  margin-bottom: .4rem;
}
.step-item.active .step-num  { background: var(--blue);  border-color: var(--blue);  color: var(--white); }
.step-item.done   .step-num  { background: var(--navy);  border-color: var(--navy);  color: var(--white); }
.step-lbl { font-size: .67rem; color: var(--muted); text-align: center; white-space: nowrap; }
.step-item.active .step-lbl  { color: var(--blue);  font-weight: 500; }
.step-item.done   .step-lbl  { color: var(--navy); }

/* Form fields */
.fp { display: none; }
.fp.active { display: block; }
.fp h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 1.3rem; }
.fg { margin-bottom: 1.1rem; }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block; font-size: .79rem;
  font-weight: 500; color: var(--navy); margin-bottom: .32rem;
}
label .req { color: var(--red); }
input[type=text], input[type=email], input[type=tel],
input[type=date], input[type=number], select, textarea {
  width: 100%; padding: .62rem .9rem;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .875rem; color: var(--text);
  background: var(--cream); transition: border-color .2s, box-shadow .2s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(46,139,192,.1);
}
input.err, select.err { border-color: var(--red); }
textarea { resize: vertical; min-height: 78px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
.ferr { font-size: .72rem; color: var(--red); margin-top: .25rem; display: none; }
.fcheck {
  background: var(--cream); border-radius: 6px;
  padding: .9rem; border: 1px solid var(--border);
}
.fcheck label {
  display: flex; gap: .55rem; align-items: flex-start;
  cursor: pointer; font-size: .82rem; color: var(--muted); font-weight: 400;
}
.fcheck input[type=checkbox] { margin-top: .18rem; width: auto; flex-shrink: 0; }
.fnav { display: flex; justify-content: space-between; margin-top: 1.8rem; gap: 1rem; }
.btn-next {
  background: var(--blue); color: var(--white);
  padding: .68rem 1.65rem; border-radius: 5px;
  border: none; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn-next:hover { background: var(--navy); }
.btn-back {
  background: var(--light); color: var(--navy);
  padding: .68rem 1.35rem; border-radius: 5px;
  border: 1px solid var(--border); font-size: .875rem;
  font-weight: 500; cursor: pointer; transition: background .2s;
}
.btn-back:hover { background: var(--border); }

/* Fee summary */
.fee-box {
  background: var(--cream); border-radius: 8px;
  padding: 1.1rem; margin-bottom: 1.1rem; border: 1px solid var(--border);
}
.fee-row { display: flex; justify-content: space-between; font-size: .84rem; padding: .28rem 0; color: var(--muted); }
.fee-row.total {
  border-top: 1px solid var(--border); margin-top: .4rem;
  padding-top: .6rem; font-weight: 600; font-size: .94rem; color: var(--navy);
}

/* Payment methods */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.1rem; }
.pm-opt {
  border: 2px solid var(--border); border-radius: 8px;
  padding: .85rem .65rem; cursor: pointer; transition: border-color .2s;
  text-align: center; background: var(--white);
}
.pm-opt:hover     { border-color: var(--blue); }
.pm-opt.selected  { border-color: var(--blue); background: rgba(46,139,192,.06); }
.pm-icon  { font-size: 1.55rem; margin-bottom: .3rem; }
.pm-name  { font-size: .8rem; font-weight: 600; color: var(--navy); }
.pm-sub   { font-size: .68rem; color: var(--muted); }

/* Payment detail panels */
.pd-box {
  background: var(--cream); border-radius: 8px;
  padding: 1.1rem; border: 1px solid var(--border);
  margin-bottom: .9rem; display: none;
}
.pd-box.show { display: block; }
.pd-box h4 { font-size: .86rem; color: var(--navy); margin-bottom: .65rem; font-family: inherit; }
.bank-box {
  background: var(--navy); color: var(--white);
  border-radius: 8px; padding: 1.1rem;
  margin-bottom: .9rem; font-size: .82rem; display: none;
}
.bank-box.show { display: block; }
.bank-box h4 { font-size: .88rem; margin-bottom: .65rem; color: var(--cyan); font-family: inherit; }
.bank-row { display: flex; justify-content: space-between; padding: .26rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.bank-row:last-child { border-bottom: none; }
.cash-box {
  background: #edf7f1; border: 1px solid #a8d5b5;
  color: var(--green); font-size: .84rem;
  padding: .9rem; border-radius: 8px;
  margin-bottom: .9rem; display: none;
}
.cash-box.show { display: block; }

/* Success screen */
.success-screen { display: none; text-align: center; padding: 1.75rem .5rem; }
.success-screen.show { display: block; }
.success-icon { font-size: 3.25rem; margin-bottom: .9rem; animation: pop .45s ease; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.success-screen h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: .45rem; }
.ref-code {
  background: var(--navy); color: var(--cyan);
  padding: .45rem 1.4rem; border-radius: 4px;
  font-size: .86rem; display: inline-block;
  margin: .9rem 0; letter-spacing: .1em; font-weight: 600;
}

/* Apply sidebar */
.apply-sidebar { position: sticky; top: 84px; }
.aside-card {
  background: var(--navy); color: var(--white);
  border-radius: var(--r-lg); padding: 1.6rem;
  margin-bottom: 1.1rem;
}
.aside-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem; margin-bottom: .9rem; color: var(--cyan);
}
.aside-row {
  display: flex; justify-content: space-between;
  padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
}
.aside-row:last-child { border-bottom: none; }
.aside-row span:last-child { font-weight: 600; color: var(--cyan); }
.chk-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .4rem; }
.chk-list li {
  font-size: .79rem; color: rgba(255,255,255,.8);
  display: flex; gap: .45rem; align-items: flex-start; line-height: 1.45;
}
.chk-list li::before { content: '✓'; color: var(--cyan); flex-shrink: 0; font-weight: 700; }
.contact-aside {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.35rem;
}
.contact-aside h4 { font-size: .88rem; color: var(--navy); margin-bottom: .85rem; font-family: inherit; font-weight: 600; }
.ca-row { display: flex; gap: .5rem; font-size: .81rem; color: var(--muted); margin-bottom: .5rem; }

/* ============================================================
   16. ABOUT PAGE
   ============================================================ */
.about-img-wrap { position: relative; padding-bottom: 2.5rem; }
.about-img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute; bottom: 0; right: -1rem;
  background: var(--navy); color: var(--white);
  border-radius: var(--r-lg); padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .7rem;
}
.about-badge-icon { font-size: 1.5rem; }
.about-badge strong { display: block; font-size: .86rem; }
.about-badge span   { font-size: .7rem; color: rgba(255,255,255,.65); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.4rem; }
.pillar {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--r); padding: .95rem;
  display: flex; align-items: flex-start; gap: .7rem;
  transition: border-color .2s, box-shadow .2s;
}
.pillar:hover { border-color: var(--blue); box-shadow: 0 3px 10px rgba(46,139,192,.1); }
.pillar-icon { font-size: 1.2rem; flex-shrink: 0; }
.pillar strong { font-size: .82rem; display: block; color: var(--navy); margin-bottom: .18rem; }
.pillar span   { font-size: .74rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   17. CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cinfo-row {
  display: flex; align-items: flex-start; gap: .95rem; margin-bottom: 1.4rem;
}
.cinfo-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(46,139,192,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.cinfo-row h4 { font-size: .88rem; color: var(--navy); margin-bottom: .18rem; font-family: inherit; }
.cinfo-row p  { font-size: .84rem; margin: 0; line-height: 1.6; }
.contact-form-box {
  background: var(--cream); border-radius: var(--r-lg);
  padding: 1.9rem; border: 1px solid var(--border);
}
.contact-form-box h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1.2rem; }
.map-box {
  background: linear-gradient(135deg, var(--navy), #1a3a8f);
  border-radius: var(--r-lg); height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem; color: rgba(255,255,255,.8);
  font-size: .88rem; margin-top: 1.4rem;
}

/* ============================================================
   18. TABS (News & Events page)
   ============================================================ */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 2.25rem; }
.tab-btn {
  padding: .72rem 1.65rem; font-size: .875rem; font-weight: 500;
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color .2s, border-color .2s;
  color: var(--muted); background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================================
   19. TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 1.6rem;
}
.stars { color: var(--gold); font-size: .84rem; margin-bottom: .7rem; }
.testi-quote {
  font-family: 'Merriweather', serif; font-size: 1rem;
  line-height: 1.7; color: rgba(255,255,255,.9);
  font-style: italic; margin-bottom: .95rem;
}
.testi-author { display: flex; align-items: center; gap: .7rem; }
.testi-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; font-size: .76rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.testi-name strong { font-size: .83rem; display: block; color: var(--white); }
.testi-name span   { font-size: .72rem; color: rgba(255,255,255,.5); }

/* ============================================================
   20. NEWSLETTER
   ============================================================ */
.newsletter { background: #1a3a8f; padding: 2.75rem 5vw; width: 100%; }
.nl-inner {
  max-width: var(--max-w, 1180px); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.nl-text h3 { color: var(--white); font-size: 1.25rem; margin-bottom: .25rem; }
.nl-text p  { color: rgba(255,255,255,.72); font-size: .88rem; margin: 0; }
.nl-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.nl-form input {
  padding: .68rem 1.05rem; border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 5px; background: rgba(255,255,255,.1);
  color: var(--white); font-size: .875rem; min-width: 230px; outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,.5); }
.nl-form input:focus { border-color: var(--cyan); }

/* ============================================================
   21. FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy); color: rgba(255,255,255,.72);
  border-top: 4px solid var(--blue); width: 100%;
}
.footer-grid {
  padding: 3.75rem 5vw 2rem;
  max-width: var(--max-w, 1180px); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem;
}
.footer-logo   { height: 66px; width: auto; margin-bottom: .65rem; }
.footer-motto  { color: var(--cyan); font-style: italic; font-size: .86rem; margin-bottom: .6rem; }
.footer-about  { font-size: .79rem; line-height: 1.75; color: rgba(255,255,255,.62); }
.footer-social { display: flex; gap: .55rem; margin-top: .9rem; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; color: rgba(255,255,255,.65); transition: .2s;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.footer-col h4 {
  font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: .85rem; font-family: inherit;
}
.footer-col ul { display: flex; flex-direction: column; gap: .48rem; }
.footer-col li a { font-size: .82rem; color: rgba(255,255,255,.62); transition: color .2s; }
.footer-col li a:hover { color: var(--cyan); }
.footer-contact li {
  font-size: .79rem; display: flex; gap: .48rem;
  align-items: flex-start; margin-bottom: .42rem;
  color: rgba(255,255,255,.62); list-style: none;
}
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.35rem 5vw;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .75rem;
  max-width: 100%;
}
.footer-bar p   { font-size: .74rem; color: rgba(255,255,255,.38); }
.footer-bar a   { font-size: .74rem; color: rgba(255,255,255,.38); }
.footer-bar a:hover { color: var(--cyan); }

/* ============================================================
   22. WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 28px rgba(37,211,102,.7); }
}
.wa-tip {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: var(--white);
  padding: .35rem .8rem; border-radius: 4px;
  font-size: .76rem; white-space: nowrap;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.wa-float:hover .wa-tip { opacity: 1; }

/* ============================================================
   23. BACK TO TOP + PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 999;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .1s;
}
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  border: none; font-size: 1rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  box-shadow: 0 4px 14px rgba(46,139,192,.4);
  transition: opacity .3s, transform .2s;
}
.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-3px); }

/* ============================================================
   24. MODAL
   ============================================================ */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.68); backdrop-filter: blur(5px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--r-lg);
  max-width: 560px; width: 100%; padding: 1.9rem;
  position: relative; max-height: 88vh; overflow-y: auto;
  animation: slide-up .22s ease;
}
@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--light); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.modal-close:hover { background: var(--red); color: var(--white); }
.modal-img { width: 100%; height: 190px; object-fit: cover; border-radius: 8px; margin-bottom: 1.1rem; }
.modal-box h3 { font-size: 1.22rem; color: var(--navy); margin-bottom: .9rem; }

/* ============================================================
   25. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(110deg, var(--navy) 0%, #1a3a8f 60%, var(--blue) 100%);
  color: var(--white); padding: 3.5rem 5vw;
  position: relative; overflow: hidden; width: 100%;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px,
    transparent 0, transparent 50%);
  background-size: 22px 22px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: var(--max-w, 1180px); margin: 0 auto; }
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1rem; margin: 0; }
.breadcrumb { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--cyan); }

/* ============================================================
   26. UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }  .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ============================================================
   27. RESPONSIVE — MOBILE FIRST
   Breakpoints: 960px (tablet), 768px (large mobile), 480px (small)
   ============================================================ */

/* 960px — collapse nav to hamburger */
@media (max-width: 960px) {
  #nav-menu   { display: none; }
  .hamburger  { display: flex; }

  .ql-inner   { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid  { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2     { grid-template-columns: 1fr; gap: 2.5rem; }
  .apply-wrap { grid-template-columns: 1fr; }
  .apply-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .pillars    { grid-template-columns: 1fr 1fr; }
  .about-img  { height: 320px; }
  .about-badge { right: 0; }
}

/* 768px — single column most things */
@media (max-width: 768px) {
  .section { padding: 3.5rem 4vw; }
  .stats-bar, .newsletter { padding: 2rem 4vw; }

  .hero { height: 88vh; min-height: 480px; max-height: none; }
  .slide-body p { display: none; }
  .slide-actions { flex-direction: column; align-items: flex-start; }
  .slide-actions .btn { width: 100%; justify-content: center; padding: .7rem 1rem; }
  .hero-arrow { display: none; }
  .slide-stats { gap: 1.1rem; margin-top: 1.4rem; }
  .slide-stat-num { font-size: 1.4rem; }

  .ql-inner { grid-template-columns: repeat(2, 1fr); }
  .ql-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }

  .news-grid  { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }

  .fr { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nl-inner { flex-direction: column; }
  .nl-form  { flex-direction: column; width: 100%; }
  .nl-form input { min-width: unset; width: 100%; }

  .topbar { padding: .4rem 4vw; justify-content: center; }
  .topbar-left  { display: none; }
  .topbar-right { gap: 1rem; }

  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88vh; padding: 1.5rem; }
}

/* 480px — very small screens */
@media (max-width: 480px) {
  .hero { height: 100svh; }
  .slide-badge { font-size: .66rem; }
  .slide-body h1 { font-size: 1.55rem; }
  .slide-stats { flex-wrap: wrap; gap: .85rem; }
  .hero-dots { bottom: 1.2rem; }
  .hero-dot  { width: 7px; height: 7px; }

  .ql-sub { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .stat-num  { font-size: 1.9rem; }

  .staff-grid   { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .pillars { grid-template-columns: 1fr; }

  .form-card   { padding: 1.2rem; }
  .step-lbl    { display: none; }
  .step-num    { width: 30px; height: 30px; font-size: .74rem; }
  .pm-grid     { grid-template-columns: 1fr 1fr; gap: .5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar  { flex-direction: column; text-align: center; gap: .4rem; }

  .nav-logo, .nav-logo img, .custom-logo-link img,
  .nav-brand img, #site-header .nav-brand img { height: 44px !important; }
  .nav-name span  { display: none; }
  .nav-name strong { font-size: .85rem; }

  .page-hero { padding: 2.5rem 4vw; }
}

/* Touch devices — always show captions */
@media (hover: none) {
  .gallery-cap { transform: translateY(0); background: linear-gradient(transparent, rgba(13,33,89,.72)); }
}

/* ============================================================
   EVENTS CALENDAR
   ============================================================ */

/* View toggle */
.cal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.cal-nav { display: flex; align-items: center; gap: .75rem; }
.cal-nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light); border: 1px solid var(--border);
  cursor: pointer; font-size: 1rem; transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cal-month-label {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  min-width: 160px; text-align: center;
}
.cal-view-btns { display: flex; gap: .4rem; }
.cal-view-btn {
  padding: .4rem .9rem; border-radius: 5px; font-size: .82rem;
  font-weight: 500; cursor: pointer; border: 1px solid var(--border);
  background: var(--white); color: var(--muted); transition: .15s;
  font-family: inherit;
}
.cal-view-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Calendar grid */
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th {
  padding: .55rem .4rem; text-align: center; font-size: .75rem;
  font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 2px solid var(--border);
  background: var(--light);
}
.cal-cell {
  vertical-align: top; border: 1px solid var(--border);
  padding: .4rem; min-height: 90px; cursor: default;
}
.cal-cell:hover { background: rgba(46,139,192,.04); }
.cal-cell.other-month .cal-day-num { color: #c0c8d8; }
.cal-cell.today { background: rgba(46,139,192,.07); }
.cal-cell.today .cal-day-num {
  background: var(--blue); color: var(--white);
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.cal-day-num {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  margin-bottom: .3rem; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.cal-event-pill {
  display: block; border-radius: 3px; padding: .15rem .4rem;
  font-size: .68rem; font-weight: 500; color: var(--white);
  margin-bottom: 2px; cursor: pointer; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
  transition: filter .15s;
}
.cal-event-pill:hover { filter: brightness(1.15); }
.cal-more {
  font-size: .67rem; color: var(--blue); cursor: pointer;
  padding: .1rem .3rem; font-weight: 500;
}
.cal-more:hover { text-decoration: underline; }

/* Colour classes */
.ev-blue   { background: #2e8bc0; }
.ev-navy   { background: #0d2159; }
.ev-green  { background: #1e7e3a; }
.ev-red    { background: #c0392b; }
.ev-gold   { background: #c8a430; color: #1a1a2e !important; }
.ev-purple { background: #7c3aed; }

/* List view */
.cal-list { display: none; flex-direction: column; gap: .75rem; }
.cal-list.active { display: flex; }
.cal-grid-wrap { display: block; }
.cal-grid-wrap.hidden { display: none; }

/* Event list item — expanded with description */
.ev-list-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.ev-list-item:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.ev-list-head {
  display: flex; align-items: stretch; gap: 0;
}
.ev-list-stripe {
  width: 5px; flex-shrink: 0; border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.ev-list-date {
  background: var(--navy); color: var(--white);
  padding: .75rem 1rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex-shrink: 0; min-width: 64px;
}
.ev-list-day   { font-family: 'Merriweather',serif; font-size: 1.65rem; font-weight: 700; line-height: 1; }
.ev-list-month { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.ev-list-year  { font-size: .64rem; color: rgba(255,255,255,.5); margin-top: .1rem; }
.ev-list-body  { padding: .9rem 1.1rem; flex: 1; }
.ev-list-title { font-size: .98rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; font-family: 'Merriweather',serif; }
.ev-list-meta  { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.ev-list-meta span { display: flex; align-items: center; gap: .3rem; }
.ev-list-desc  { font-size: .83rem; color: var(--muted); line-height: 1.65; }
.ev-list-desc.collapsed { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-list-tag {
  display: inline-block; border-radius: 3px; padding: .12rem .55rem;
  font-size: .68rem; font-weight: 500; color: var(--white);
  margin-top: .4rem;
}

/* Modal event detail */
.ev-modal-stripe { height: 6px; border-radius: 4px 4px 0 0; margin: -1.9rem -1.9rem 1.25rem; }
.ev-modal-tag   { display: inline-block; border-radius: 4px; padding: .22rem .7rem; font-size: .72rem; font-weight: 600; color: var(--white); margin-bottom: .85rem; }
.ev-modal-meta  { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .86rem; margin-bottom: 1.1rem; }
.ev-modal-meta dt { color: var(--muted); font-weight: 500; }
.ev-modal-meta dd { color: var(--text); }
.ev-modal-desc  { font-size: .9rem; color: var(--muted); line-height: 1.75; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }

/* Responsive */
@media (max-width: 768px) {
  .cal-cell { min-height: 60px; padding: .25rem; }
  .cal-grid th { font-size: .65rem; padding: .4rem .2rem; }
  .cal-event-pill { font-size: .6rem; padding: .1rem .25rem; }
  .cal-day-num { font-size: .74rem; width: 22px; height: 22px; }
  .cal-month-label { font-size: 1rem; min-width: 130px; }
  .ev-list-date { min-width: 54px; padding: .6rem .7rem; }
  .ev-list-day  { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .cal-toolbar { flex-direction: column; align-items: flex-start; }
  .cal-cell { padding: .15rem; }
  .cal-event-pill { display: none; }
  .cal-cell.has-events::after { content: '•'; color: var(--blue); font-size: .9rem; display: block; text-align: center; }
}

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-inner {
  position: relative; max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.lb-img-wrap { position: relative; }
.lb-img {
  max-width: 88vw; max-height: 76vh;
  object-fit: contain; border-radius: 6px;
  display: block;
}
.lb-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: var(--white); width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lb-close:hover { background: var(--red); border-color: var(--red); }
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lb-arrow:hover { background: var(--blue); border-color: var(--blue); }
.lb-arrow.prev { left: 1rem; }
.lb-arrow.next { right: 1rem; }
.lb-caption {
  color: rgba(255,255,255,.85); font-size: .88rem;
  text-align: center; margin-top: .85rem; max-width: 600px; line-height: 1.5;
}
.lb-counter {
  color: rgba(255,255,255,.45); font-size: .76rem; margin-top: .35rem;
}
.lb-thumbs {
  display: flex; gap: .4rem; margin-top: .85rem;
  flex-wrap: wrap; justify-content: center; max-width: 88vw;
}
.lb-thumb {
  width: 52px; height: 42px; border-radius: 4px; object-fit: cover;
  opacity: .5; cursor: pointer; border: 2px solid transparent; transition: .15s;
}
.lb-thumb.active { opacity: 1; border-color: var(--cyan); }
.lb-thumb:hover  { opacity: .85; }
@media (max-width: 480px) {
  .lb-arrow.prev { left: .3rem; }
  .lb-arrow.next { right: .3rem; }
  .lb-img { max-width: 96vw; max-height: 65vh; }
  .lb-thumbs { display: none; }
}
