/* ═══════════════════════════════════════════════
   MHSI Website — style.css
   Color scheme: Dark Red primary with complementary palette
═══════════════════════════════════════════════ */
:root {
  --primary:      #8B0000;
  --primary-l:    #A80000;
  --primary-d:    #5C0000;
  --accent:       #C0392B;
  --gold:         #C9943A;
  --gold-l:       #E8BF6E;
  --gold-d:       #9E7220;
  --dark:         #1C0505;
  --mid:          #3D1010;
  --light:        #FDF6F6;
  --cream:        #FAF0E6;
  --white:        #FFFFFF;
  --text:         #2D1010;
  --muted:        #8A6060;
  --border:       rgba(139,0,0,.12);
  --nav-h:        72px;
  --topbar-h:     38px;
  --radius:       8px;
  --shadow:       0 4px 24px rgba(28,5,5,.12);
  --shadow-lg:    0 16px 48px rgba(28,5,5,.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── TOP BAR ─────────────────────────────────── */
.topbar {
  background: var(--primary-d);
  color: rgba(255,255,255,.75);
  font-size: .76rem;
  letter-spacing: .04em;
  height: var(--topbar-h);
  transition: transform .3s, height .3s;
}
.topbar-inner {
  max-width: 1240px; margin: auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 20px; align-items: center; }
.topbar-contact a { color: rgba(255,255,255,.7); transition: color .2s; display:flex;align-items:center;gap:5px; }
.topbar-contact a:hover { color: var(--gold-l); }
.topbar-contact i { color: var(--gold); }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  color: rgba(255,255,255,.5); width: 24px; height: 24px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
  display: grid; place-items: center; font-size: .65rem; transition: all .2s;
}
.topbar-social a:hover { color: #fff; border-color: var(--gold); background: var(--gold-d); }

/* ─── NAVBAR ──────────────────────────────────── */
#navbar {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  z-index: 999; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, top .35s;
}
#navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 24px rgba(28,5,5,.12);
}
#navbar.transparent { background: transparent; }
#navbar.hidden { top: calc(-1 * var(--nav-h)); }

.nav-inner {
  max-width: 1240px; margin: auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; gap: 8px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: auto; }
.logo-crest {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.logo-crest img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.logo-crest-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--gold-l); letter-spacing: .02em;
}
.logo-text { line-height: 1.15; }
.logo-text strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 700; color: var(--dark); letter-spacing: .01em;
}
.logo-text span { font-size: .62rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
#navbar.transparent .logo-text strong { color: var(--white); }
#navbar.transparent .logo-text span { color: rgba(255,255,255,.6); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 12px; font-size: .8rem; font-weight: 500;
  letter-spacing: .03em; color: var(--dark); border-radius: var(--radius);
  transition: color .2s, background .2s; white-space: nowrap;
}
#navbar.transparent .nav-links > li > a { color: rgba(255,255,255,.9); }
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary); background: rgba(139,0,0,.07);
}
#navbar.transparent .nav-links > li > a:hover { background: rgba(255,255,255,.15); color: #fff; }
#navbar.transparent .nav-links > li > a.active { color: var(--gold-l); background: rgba(255,255,255,.1); }

/* Dropdown */
.has-dropdown { position: relative; }
.chevron { font-size: .65rem; transition: transform .25s; }
.has-dropdown:hover > a .chevron { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 230px; padding: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.has-dropdown:hover .dropdown {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: .82rem; color: var(--text);
  border-radius: 8px; transition: background .15s, color .15s;
}
.dropdown li a:hover { background: var(--light); color: var(--primary); }
.drop-icon {
  width: 30px; height: 30px; background: rgba(139,0,0,.08);
  border-radius: 6px; display: grid; place-items: center;
  color: var(--primary); font-size: .75rem; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.dropdown li a:hover .drop-icon { background: var(--primary); color: #fff; }

/* CTA button */
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: var(--white) !important;
  border-radius: 50px; padding: 9px 18px !important;
  font-size: .8rem !important; font-weight: 600 !important;
  border: 2px solid var(--primary); margin-left: 6px;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--primary-d) !important; transform: translateY(-1px); }
#navbar.transparent .nav-cta { background: var(--gold); border-color: var(--gold); color: var(--dark) !important; }
#navbar.transparent .nav-cta:hover { background: var(--gold-d) !important; color: var(--white) !important; }

/* Progress bar */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  z-index: 1100; width: 0%; transition: width .1s linear;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all .3s;
}
#navbar.transparent .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: min(320px, 90vw); height: 100vh;
  background: var(--white); box-shadow: -8px 0 40px rgba(0,0,0,.15);
  z-index: 1000; transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-nav.open { right: 0; }
.mnav-header {
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
}
.mnav-header .logo-text strong { color: #fff; }
.mnav-header .logo-text span { color: rgba(255,255,255,.6); }
.mnav-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.mnav-links { padding: 8px 0; flex: 1; }
.mnav-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; font-size: .88rem; font-weight: 500; color: var(--text);
  transition: background .15s, color .15s; border-left: 3px solid transparent;
}
.mnav-links a i { width: 18px; color: var(--primary); text-align: center; }
.mnav-links a:hover, .mnav-links a.active { background: var(--light); color: var(--primary); border-left-color: var(--primary); }
.mnav-sub { padding-left: 54px; }
.mnav-sub a { padding: 8px 24px 8px 0; font-size: .82rem; color: var(--muted); border: none; }
.mnav-sub a:hover { background: none; color: var(--primary); }
.mnav-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.mnav-cta {
  display: block; text-align: center; background: var(--primary);
  color: #fff; padding: 12px; border-radius: 50px;
  font-weight: 600; font-size: .88rem; transition: background .2s;
}
.mnav-cta:hover { background: var(--primary-d); color: #fff; }
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.active { opacity: 1; pointer-events: all; }

/* ─── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
  padding-top: calc(var(--topbar-h) + var(--nav-h));
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 60%, var(--accent) 100%);
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1240px; margin: auto; padding: 0 24px 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: rgba(255,255,255,.6); margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-l); }
.breadcrumb i { font-size: .6rem; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); color: var(--white);
  font-weight: 700; margin-bottom: 10px;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: .95rem; max-width: 560px; line-height: 1.7; }

/* ─── SECTIONS ────────────────────────────────── */
section { padding: 80px 0; }
.container { max-width: 1240px; margin: auto; padding: 0 24px; }

.section-tag {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.section-tag::before { content: ''; width: 18px; height: 2px; background: var(--gold); }
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--dark); margin-bottom: 14px;
}
.section-lead {
  color: var(--muted); font-size: .93rem; line-height: 1.75; max-width: 560px;
}
.section-head { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::before { display: none; }
.text-center .section-lead { margin: 0 auto; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-size: .88rem;
  font-weight: 600; letter-spacing: .04em; transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,0,0,.3); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-d); color: #fff; transform: translateY(-2px); }
.btn-outline-red { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-red:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* Cards */
.card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Fade up animation */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in-view { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }

/* ─── HOME HERO ────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 600px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(92,0,0,.88) 0%, rgba(28,5,5,.7) 50%, rgba(28,5,5,.4) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1240px; margin: auto; padding: 0 24px; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-l); margin-bottom: 16px;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; font-weight: 700;
  max-width: 680px; line-height: 1.1; margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-sub {
  color: rgba(255,255,255,.78); font-size: .95rem; max-width: 500px;
  line-height: 1.75; margin-bottom: 34px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-controls {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 10px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer;
  border: none; transition: all .3s;
}
.hero-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }
.hero-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 100%; display: flex; justify-content: space-between;
  padding: 0 18px; pointer-events: none;
}
.hero-arrow {
  pointer-events: all; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  font-size: .8rem; backdrop-filter: blur(6px); transition: background .2s;
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }

/* Stats strip */
.stats-strip { background: var(--dark); padding: 20px 0; }
.stats-grid {
  max-width: 1240px; margin: auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.stat-box {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.07);
}
.stat-box:last-child { border-right: none; }
.stat-icon {
  width: 40px; height: 40px; background: rgba(139,0,0,.3);
  border-radius: 10px; display: grid; place-items: center;
  color: var(--gold-l); font-size: .95rem; flex-shrink: 0;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: 1.55rem;
  font-weight: 700; color: #fff; line-height: 1;
}
.stat-label { font-size: .68rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }

/* About section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main {
  border-radius: 20px; overflow: hidden; height: 460px;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.about-img-main:hover img { transform: scale(1.05); }
.about-img-badge {
  position: absolute; bottom: -18px; right: -18px;
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  color: #fff; border-radius: 16px; padding: 18px 22px; text-align: center;
  box-shadow: 0 12px 32px rgba(139,0,0,.35);
}
.about-img-badge strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; line-height: 1; color: var(--gold-l);
}
.about-img-badge span { font-size: .72rem; letter-spacing: .06em; opacity: .85; }
.about-body p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; font-size: .93rem; }
.about-feats { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.about-feat { display: flex; align-items: flex-start; gap: 12px; }
.feat-icon {
  width: 36px; height: 36px; background: rgba(139,0,0,.08);
  border-radius: 8px; display: grid; place-items: center;
  color: var(--primary); flex-shrink: 0; font-size: .85rem;
}
.feat-text strong { display: block; font-size: .86rem; color: var(--dark); margin-bottom: 2px; }
.feat-text span { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* Course cards */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb { height: 190px; overflow: hidden; position: relative; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-thumb img { transform: scale(1.08); }
.course-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff; font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 50px;
}
.course-body { padding: 22px; }
.course-title { font-size: 1.12rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; }
.course-desc { font-size: .82rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.course-meta { display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.meta-tag { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); }
.meta-tag i { color: var(--primary); }

/* Tuition table */
.fees-table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: var(--shadow); }
.fees-table { width: 100%; border-collapse: collapse; background: var(--white); }
.fees-table th {
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  color: #fff; padding: 14px 18px; text-align: left;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.fees-table th:first-child { border-radius: 12px 0 0 0; }
.fees-table th:last-child { border-radius: 0 12px 0 0; }
.fees-table td { padding: 13px 18px; font-size: .88rem; border-bottom: 1px solid var(--border); }
.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: var(--light); }
.fees-table .total-row td { background: rgba(139,0,0,.06); font-weight: 700; color: var(--primary); }
.fees-highlight { color: var(--primary); font-weight: 700; }

/* Registration Form */
.reg-form { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--dark); letter-spacing: .04em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .88rem; color: var(--text);
  font-family: 'DM Sans', sans-serif; background: var(--light);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,0,0,.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: .78rem; color: var(--muted); }
.form-note a { color: var(--primary); }
.form-success, .form-error {
  display: none; padding: 14px 18px; border-radius: var(--radius);
  font-size: .88rem; margin-top: 14px;
}
.form-success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.form-error { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(92,0,0,.6);
  display: grid; place-items: center; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.8rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 2000; display: none; place-items: center;
}
.lightbox.active { display: grid; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 80vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}
.lightbox-caption {
  text-align: center; color: rgba(255,255,255,.7);
  font-size: .85rem; margin-top: 12px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; width: calc(100% + 80px); left: -40px;
  justify-content: space-between; pointer-events: none;
}
.lightbox-nav button {
  pointer-events: all; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; transition: background .2s; font-size: .8rem;
}
.lightbox-nav button:hover { background: var(--primary); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  padding: 60px 0; position: relative; overflow: hidden;
}
.cta-banner::after {
  content: '✛'; position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  font-size: 14rem; color: rgba(255,255,255,.04); line-height: 1; pointer-events: none;
}
.cta-inner { max-width: 700px; margin: auto; padding: 0 24px; text-align: center; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,.72); margin-bottom: 28px; font-size: .93rem; line-height: 1.7; }

/* Footer */
footer { background: var(--dark); padding: 64px 0 0; }
.footer-grid {
  max-width: 1240px; margin: auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 44px;
}
.footer-brand p { color: rgba(255,255,255,.45); font-size: .83rem; line-height: 1.8; margin: 12px 0 18px; max-width: 280px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; color: rgba(255,255,255,.45);
  font-size: .72rem; transition: all .15s;
}
.footer-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-col h5 {
  color: #fff; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.45); font-size: .83rem;
  transition: color .15s; display: flex; align-items: center; gap: 7px;
}
.footer-links a:hover { color: var(--gold-l); }
.footer-links i { font-size: .72rem; color: var(--primary-l); }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-list i { color: var(--gold); font-size: .82rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-list span { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.6; }
.footer-contact-list strong { display: block; color: rgba(255,255,255,.75); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.footer-bottom {
  max-width: 1240px; margin: 44px auto 0; padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .78rem; }
.footer-bottom a { color: var(--gold); }

/* Info boxes */
.info-box {
  background: var(--light); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px;
  margin: 20px 0;
}
.info-box.gold { border-left-color: var(--gold); }
.info-box p { font-size: .88rem; color: var(--text); line-height: 1.7; }
.info-box strong { color: var(--primary); }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 20px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.value-icon {
  width: 52px; height: 52px; background: rgba(139,0,0,.08);
  border-radius: 50%; display: grid; place-items: center;
  color: var(--primary); font-size: 1.2rem; margin: 0 auto 14px;
  transition: background .25s, color .25s;
}
.value-card:hover .value-icon { background: var(--primary); color: #fff; }
.value-card h4 { font-size: .9rem; color: var(--dark); margin-bottom: 6px; }
.value-card p { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--gold)); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -28px; top: 4px;
  width: 16px; height: 16px; background: var(--primary);
  border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date { font-size: .72rem; font-weight: 700; color: var(--primary); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.timeline-title { font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.timeline-text { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* Library specific */
.resources-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.resource-card { background: var(--white); border-radius: 16px; padding: 28px 24px; border: 1px solid var(--border); text-align: center; transition: all .25s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.resource-icon { width: 60px; height: 60px; background: rgba(139,0,0,.08); border-radius: 50%; display: grid; place-items: center; color: var(--primary); font-size: 1.5rem; margin: 0 auto 16px; }
.resource-card h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.resource-card p { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* Support page */
.support-ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support-card {
  background: var(--white); border-radius: 16px; padding: 32px 26px;
  border: 1px solid var(--border); text-align: center; transition: all .25s;
}
.support-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.support-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; margin: 0 auto 16px;
}
.support-icon.red { background: rgba(139,0,0,.1); color: var(--primary); }
.support-icon.gold { background: rgba(201,148,58,.12); color: var(--gold-d); }
.support-icon.teal { background: rgba(13,110,110,.1); color: #0d6e6e; }
.support-card h4 { font-size: 1.1rem; color: var(--dark); margin-bottom: 10px; }
.support-card p { font-size: .83rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; background: rgba(139,0,0,.08);
  border-radius: 10px; display: grid; place-items: center;
  color: var(--primary); font-size: 1rem; flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: .85rem; color: var(--dark); margin-bottom: 4px; }
.contact-item-text span, .contact-item-text a { color: var(--muted); font-size: .88rem; line-height: 1.7; display: block; }
.contact-item-text a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .courses-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid, .support-ways-grid { grid-template-columns: 1fr; }
  .about-img-badge { right: 8px; bottom: -8px; }
  section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .courses-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .topbar-contact { display: none; }
}

/* ─── LOGO IMAGE ─────────────────────────────── */
.logo-crest { overflow: hidden; }
.logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
