/* ==========================================
   ST. CLARE BIHARAMULO
   MODERN SCHOOL WEBSITE
   HTML + CSS + SMALL NAVIGATION SCRIPT
   ========================================== */

:root {
  --navy: #062b59;
  --navy-dark: #031d3d;
  --blue: #1167c9;
  --gold: #f2b72f;
  --green: #16a765;
  --orange: #f4a51c;
  --purple: #8a45c2;
  --red: #dc3545;
  --text: #173b63;
  --muted: #60758c;
  --border: #dce8f3;
  --pale: #f2f7fc;
  --white: #fff;
  --shadow: 0 8px 25px rgba(18,65,110,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #fff; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }
.container { width: min(90%, 1200px); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000;
			background: var(--gold); color: #071d37;
			padding: 10px 15px;
			border-radius: 5px;
			font-weight: 800; }
.skip-link:focus { top: 12px; }

/* TOP BAR */
.topbar { background: var(--navy-dark); color: #fff; font-size: 13px; font-weight: 600; }
.topbar-inner { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.topbar-contacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.topbar a:hover { color: var(--gold); }
.school-clock { display: flex; align-items: center; gap: 7px; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock-icon { color: var(--gold); font-size: 20px; }
#school-date { color: #dbe8f4; }
#school-clock { color: var(--gold); font-weight: 800; letter-spacing: .4px; }
.clock-separator { color: rgba(255,255,255,.4); }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 3px 18px rgba(0,0,0,.09); }
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.brand h1 { font-family: Georgia, serif; color: var(--navy); font-size: 20px; line-height: 1.05; }
.brand p { color: #c18a16; font-size: 10px; font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { font-size: 13px; font-weight: 600; padding: 9px 11px; border-radius: 7px; transition: .25s; }
.nav-links a:hover, .nav-links .active { background: var(--navy); color: #fff; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; border-radius: 6px; }
.menu-toggle span { display: block; width: 25px; height: 3px; margin: 4px 0; background: var(--navy); border-radius: 3px; }

/* HERO */
.hero { min-height: 470px; position: relative; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy-dark); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; 
			inset: 0; width: 100%; height: 100%; 
			object-fit: cover; opacity: 0; transform: scale(1.02); 
			transition: opacity 1s ease, transform 3s ease; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(2,25,52,.88), rgba(2,25,52,.38) 65%, rgba(2,25,52,.22)); }
.hero-content { position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: #d79a18; font-size: 14px; font-weight: 800; letter-spacing: 1.2px; margin-bottom: 7px; }
.hero .eyebrow { font-size: 20px; }
.hero .gold { color: var(--gold); }
.hero h2 { font-family: Georgia, serif; font-size: clamp(34px, 5vw, 50px); line-height: 1; margin: 6px 0 15px; letter-spacing: -.5px; }
.hero-motto { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.hero-description { max-width: 600px; font-size: 15px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 25px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 21px; border-radius: 7px; font-size: 13px; font-weight: 800; transition: transform .25s, box-shadow .25s, background .25s; }
.btn-gold { background: var(--gold); color: #071d37; }
.btn-outline { border: 1px solid #fff; color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.hero-dots { position: absolute; z-index: 3; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #fff; opacity: .75; cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.hero-dot.active { background: var(--gold); opacity: 1; transform: scale(1.15); }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* MOVING NAVIGATION / ANNOUNCEMENT TICKER */
.news-ticker {
  display: flex;
  align-items: stretch;
  background: var(--navy);
  color: #fff;
  min-height: 42px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--gold);
  color: #071d37;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  z-index: 2;
}
.ticker-window { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 42px;
  padding-left: 24px;
  animation: schoolTicker 34s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  white-space: nowrap;
}
.ticker-track a:hover { color: var(--gold); }
.ticker-track > span { color: var(--gold); font-weight: 900; }
@keyframes schoolTicker {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 11px)); }
}
.ticker-separator { color: var(--gold); font-weight: 900; padding: 0 4px; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-slide { transition: none; }
}

/* QUICK LINKS */
.quick-links { background: #fff; padding: 22px 0 35px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.quick-card { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: var(--shadow); transition: .25s; }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(18,65,110,.12); }
.quick-card h3 { font-size: 12px; line-height: 1.2; }
.quick-card p { color: var(--muted); font-size: 10px; margin: 5px 0; }
.quick-card b { font-size: 12px; color: var(--blue); }
.circle { min-width: 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 18px; }
.circle.large { width: 46px; height: 46px; margin: 0 auto 12px; }
.blue { background: var(--blue); } .green { background: var(--green); } .orange { background: var(--orange); } .purple { background: var(--purple); } .red { background: var(--red); }

/* SECTIONS */
.section { padding: 65px 0; }
.pale { background: var(--pale); }
.section-heading { margin-bottom: 10px; }
.section-heading h2, .section-copy h2 { font-family: Georgia, serif; color: var(--navy); font-size: 25px; line-height: 1.15; margin-bottom: 6px; }
.section-heading p { color: var(--muted); font-size: 14px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 45px; }
.image-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.image-card img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.image-card img:first-child { margin-top: 28px; }
.image-card img:last-child { margin-bottom: 28px; }
.section-copy > p { color: #49657f; font-size: 14px; margin: 10px 0; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 22px; }
.info-box { display: flex; gap: 11px; border: 1px solid var(--border); padding: 10px; border-radius: 7px; background: #fff; }
.info-box h3 { font-size: 13px; margin-bottom: 4px; }
.info-box p { font-size: 11px; color: var(--muted); }

/* CARDS */
.four-grid2, .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 17px; text-align: center; box-shadow: 0 5px 18px rgba(16,62,105,.05); transition: transform .25s, box-shadow .25s; }
.feature-card h3 { font-size: 14px; margin-bottom: 8px; }
.feature-card p { font-size: 12px; color: var(--muted); }
.feature-card:hover, .news-card:hover, .download-card:hover, .staff-card:hover, .info-box:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,62,105,.12); }

/* STAFF */
.staff-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.staff-card { border: 1px solid var(--border); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 17px rgba(0,0,0,.05); transition: transform .25s, box-shadow .25s; }
.staff-card img { width: 100%; height: 220px; object-fit: cover; background: #e8eef5; }
.staff-card h3 { font-size: 14px; padding: 12px 14px 2px; }
.staff-card p { color: var(--muted); font-size: 11px; padding: 0 14px 14px; }
.staff-grid .staff-card h3, .staff-grid .staff-card p { text-align: center; }

/* DOWNLOADS */
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.download-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: grid; grid-template-columns: 45px 1fr; gap: 20px; align-items: center; transition: transform .25s, box-shadow .25s; }
.file-icon { width: 42px; height: 52px; display: grid; place-items: center; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 900; }
.download-card h3 { font-size: 12px; } .download-card p { color: var(--muted); font-size: 10px; margin-top: 4px; }
.download-card a { grid-column: 1 / -1; background: var(--navy); color: #fff; text-align: center; padding: 9px; border-radius: 5px; font-size: 11px; font-weight: 800; }
.download-card a:hover { background: var(--blue); }

/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-body { padding: 16px; } .news-body small { color: #d39513; font-size: 9px; font-weight: 800; }
.news-body h3 { font-size: 15px; margin: 6px 0; } .news-body p { color: var(--muted); font-size: 11px; margin-bottom: 8px; }

/* GALLERY */
.gallery-section { padding-top: 65px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-card { margin: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 5px 17px rgba(0,0,0,.05); }
.gallery-card img { width: 100%; height: 190px; object-fit: cover; transition: transform .3s; }
.gallery-card figcaption { padding: 10px 12px; font-size: 11px; font-weight: 700; color: var(--text); }
.gallery-card:hover img { transform: scale(1.04); }

/* SUBJECTS */
.subjects-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.subjects-grid .staff-card { min-height: 75px; display: grid; place-items: center; text-align: center; padding: 10px; }
.subjects-grid .staff-card h3 { padding: 0; font-size: 12px; }

/* CONTACT */
.contact-section { background: linear-gradient(110deg, #063d79, #021d3d); color: #fff; padding: 55px 0 0; }
.light-heading h2 { color: #fff; } .light-heading p { color: #c5d4e3; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.contact-item { display: flex; gap: 13px; padding: 23px 15px; border-right: 1px solid rgba(255,255,255,.18); }
.contact-item:last-child { border-right: 0; }
.contact-item > span { color: var(--gold); font-size: 22px; }
.contact-item h3 { font-size: 12px; margin-bottom: 5px; } .contact-item p { color: #cbd9e7; font-size: 11px; }
.contact-item a { color: #cbd9e7; } .contact-item a:hover { color: var(--gold); text-decoration: underline; }

/* FOOTER */
.footer { background: #021a35; color: #fff; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 55px; padding-bottom: 30px; }
.footer h3 { font-size: 13px; margin-bottom: 10px; } .footer p, .footer a { color: #b9c9da; font-size: 10px; }
.footer a:hover { color: var(--gold); } .footer-grid > div:not(:first-child) a { display: block; margin: 5px 0; }
.footer-brand-row { display: flex; 
					align-items: center; gap: 10px;
					margin-bottom: 12px; } 
.footer-brand-row img { width: 55px; 
						height: 55px; 
						object-fit: contain; } 
.footer-brand-row h3 { font-family: Georgia, serif; 
						font-size: 15px; margin: 0; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding: 10px; color: #9eb1c5; font-size: 12px; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--gold); color: #071d37; border-radius: 50%; font-size: 22px; font-weight: 900; box-shadow: 0 5px 18px rgba(0,0,0,.2); z-index: 99; transition: transform .2s; }
.back-to-top:hover { transform: translateY(-3px); }

/* ACCESSIBILITY */
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 12px; padding: 8px 7px; }
  .quick-grid, .four-grid2, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .subjects-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-item:nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
  .topbar-inner { padding: 7px 0; flex-direction: column; gap: 5px; text-align: center; }
  .school-clock { margin-left: 0; order: -1; }
  .topbar-contacts { justify-content: center; gap: 8px 12px; }
  .navbar { min-height: 70px; padding: 9px 0; flex-wrap: wrap; }
  .brand { flex: 1; }
  .brand h1 { font-size: 17px; }
  .brand img { width: 50px; height: 50px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 3px; padding: 8px 0 5px; border-top: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .hero { min-height: 520px; }
  .hero h2 { font-size: clamp(32px, 9vw, 44px); }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .image-card { grid-template-columns: 1fr 1fr; }
  .image-card img { height: 250px; }
  .mini-grid, .download-grid, .footer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .contact-item:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .container { width: 92%; }
  .topbar { font-size: 10px; }
  .school-clock { font-size: 10px; gap: 5px; }
  .ticker-label { padding: 0 10px; font-size: 9px; }
  .ticker-track { gap: 14px; min-height: 38px; animation-duration: 28s; }
  .ticker-track a { font-size: 10px; }
  .topbar-contacts { flex-direction: column; gap: 2px; }
  .brand h1 { font-size: 15px; }
  .brand p { font-size: 9px; }
  .hero { min-height: 560px; }
  .hero .eyebrow { font-size: 15px; }
  .hero-motto { font-size: 16px; }
  .hero-description { font-size: 13px; }
  .section { padding: 50px 0; }
  .section-heading h2, .section-copy h2 { font-size: 27px; }
  .quick-grid, .four-grid2, .stats-grid, .news-grid, .staff-grid, .gallery, .subjects-grid { grid-template-columns: 1fr; }
  .image-card { grid-template-columns: 1fr; }
  .image-card img, .image-card img:first-child, .image-card img:last-child { height: 250px; margin: 0; }
  .gallery-card img { height: 220px; }
  .staff-card img { height: 240px; }
  .hero-buttons { width: 100%; }
  .btn { width: 100%; }
  .back-to-top { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}


/* AUTOMATIC WEBSITE VISITOR COUNTER */
.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 14px 12px;
  background: #031d3d;
  color: #dbe8f4;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  text-align: center;
}
.visitor-counter-icon { font-size: 18px; }
.visitor-counter-label { font-weight: 700; }
#visitor-count {
  display: inline-block;
  min-width: 38px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--gold);
  color: #071d37;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}


/* GRADUATION GALLERY — page-specific layout */
.graduation-page .gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.graduation-page .gallery-card img { height: 250px; }

@media (max-width: 760px) {
  .graduation-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .graduation-page .gallery { grid-template-columns: 1fr; }
  .graduation-page .gallery-card img { height: 220px; }
}

/* About section: use the available screen width on desktop and mobile */
#about .container {
  width: min(96%, 1600px);
}
#about .about-grid {
  display: block;
  width: 100%;
}
#about .section-copy {
  width: 100%;
  max-width: none;
  text-align: left;
}
#about .section-copy > p {
  width: 100%;
  max-width: none;
  text-align: left;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  #about .container {
    width: 94%;
  }
}


/* ABOUT ST. CLARE — refined, welcoming presentation */
#about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 58%, #fffaf0 100%);
  border-top: 1px solid #e5edf5;
  border-bottom: 1px solid #e5edf5;
}
#about::before,
#about::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
#about::before {
  width: 270px;
  height: 270px;
  top: -155px;
  right: -70px;
  border: 28px solid rgba(211, 149, 19, .07);
}
#about::after {
  width: 190px;
  height: 190px;
  bottom: -125px;
  left: -75px;
  background: rgba(6, 43, 89, .035);
}
#about .section-copy {
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, .88);
  border: 1px solid #e5edf5;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(6, 43, 89, .075);
}
#about .section-copy h2 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 10px;
  color: #062b59;
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.2;
  letter-spacing: -.35px;
}
#about .section-copy h2::before {
  display: block;
  margin-bottom: 11px;
  color: #b77c08;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
#about .section-copy h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 76px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #d39513, #f0c65c);
}
#about .section-copy > p {
  box-sizing: border-box;
  margin: 0 0 15px;
  padding: 0 0 0 16px;
  border-left: 2px solid #e8eef5;
  color: #405a73;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.85;
  text-align: left;
  overflow-wrap: break-word;
}
#about .section-copy > p:first-of-type {
  padding: 17px 20px;
  border: 0;
  border-left: 4px solid #d39513;
  border-radius: 0 10px 10px 0;
  background: #f5f8fc;
  color: #233f5c;
  font-weight: 500;
}
#about .section-copy > p:last-of-type {
  margin-bottom: 0;
}
#about .section-copy strong {
  color: #062b59;
}
#about .mini-grid {
  gap: 15px;
  margin-top: 30px;
}
#about .info-box {
  min-width: 0;
  padding: 19px 17px;
  border: 1px solid #e3eaf2;
  border-top: 4px solid #d39513;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(6, 43, 89, .045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#about .info-box:nth-child(2) { border-top-color: #2e7d62; }
#about .info-box:nth-child(3) { border-top-color: #245b91; }
#about .info-box h3 {
  margin-bottom: 8px;
  color: #062b59;
  font-family: Georgia, serif;
  font-size: 16px;
}
#about .info-box p {
  color: #5a6f83;
  font-size: 13px;
  line-height: 1.65;
}
#about .info-box:hover {
  transform: translateY(-5px);
  border-color: #d7e2ee;
  box-shadow: 0 13px 26px rgba(6, 43, 89, .11);
}
@media (max-width: 760px) {
  #about .section-copy { padding: 23px 18px; border-radius: 13px; }
  #about .section-copy h2 { margin-bottom: 21px; }
  #about .section-copy > p { padding-left: 12px; line-height: 1.75; }
  #about .section-copy > p:first-of-type { padding: 14px 15px; }
  #about .mini-grid { gap: 12px; margin-top: 23px; }
  #about .info-box { padding: 17px; }
}

/* ==========================================
   REFINED SECTION SPACING & VISUAL RHYTHM
   Keeps the page compact without feeling crowded.
   ========================================== */
main > .section {
  padding-block: 44px;
}

main > .section.gallery-section {
  padding-block: 44px;
}

.quick-links {
  padding: 16px 0 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 9px;
  margin-bottom: 7px;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), #f7d77f);
}

.section-heading p {
  margin-top: 2px;
  line-height: 1.5;
}

/* Slightly tighter card layouts help sections feel connected. */
.quick-grid,
.four-grid2,
.stats-grid,
.download-grid,
.news-grid,
.gallery,
.subjects-grid {
  row-gap: 13px;
}

#about.section {
  padding-block: 44px;
}

#about .section-copy {
  padding: clamp(20px, 3vw, 34px);
}

#about .section-copy h2 {
  margin-bottom: 21px;
}

#about .mini-grid {
  margin-top: 22px;
}

.contact-section {
  padding-top: 42px;
}

.contact-section .section-heading {
  margin-bottom: 16px;
}

.footer {
  padding-top: 32px;
}

.footer-grid {
  padding-bottom: 24px;
  gap: 38px;
}

@media (max-width: 760px) {
  main > .section,
  main > .section.gallery-section,
  #about.section {
    padding-block: 32px;
  }

  .quick-links {
    padding: 12px 0 18px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 22px;
    padding-bottom: 8px;
  }

  #about .section-copy {
    padding: 21px 17px;
  }

  #about .section-copy h2 {
    margin-bottom: 18px;
  }

  #about .mini-grid {
    margin-top: 18px;
  }

  .contact-section {
    padding-top: 32px;
  }

  .footer {
    padding-top: 26px;
  }

  .footer-grid {
    gap: 22px;
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  main > .section,
  main > .section.gallery-section,
  #about.section {
    padding-block: 27px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .quick-links {
    padding-block: 10px 15px;
  }
}

/* ==========================================
   COMPACT SECTION LAYOUT WITH DIVIDER LINES
   Reduces outer gaps and uses fine lines to
   distinguish one website section from another.
   ========================================== */
main > section {
  margin-block: 0 !important;
}

main > section + section {
  border-top: 1px solid #d7e2ed;
}

main > .section,
main > .section.gallery-section,
#about.section {
  padding-block: 14px !important;
}

main > .quick-links {
  padding: 10px 0 !important;
  border-top: 1px solid #d7e2ed;
  border-bottom: 1px solid #d7e2ed;
}

main > .section .section-heading,
main > .contact-section .section-heading {
  margin-bottom: 10px !important;
}

main > .section .section-heading h2 {
  margin-bottom: 5px;
}

main > .contact-section {
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(242, 183, 47, .7);
}

.site-header + main > section:first-child {
  border-top: 0;
}

.footer {
  border-top: 2px solid var(--gold);
  padding-top: 22px;
}

@media (max-width: 760px) {
  main > .section,
  main > .section.gallery-section,
  #about.section {
    padding-block: 11px !important;
  }

  main > .quick-links {
    padding-block: 8px !important;
  }

  main > .section .section-heading,
  main > .contact-section .section-heading {
    margin-bottom: 8px !important;
  }

  main > .contact-section {
    padding-top: 11px !important;
  }

  .footer {
    padding-top: 18px;
  }
}

@media (max-width: 480px) {
  main > .section,
  main > .section.gallery-section,
  #about.section {
    padding-block: 9px !important;
  }
}


/* ADMINISTRATION TEAM 2026 — highlighted school leadership section */
#staff {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f7fc 0%, #ffffff 55%, #fff9e9 100%);
  border-top: 1px solid #d7e2ed;
  border-bottom: 1px solid #d7e2ed;
}
#staff::before,
#staff::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 22px solid rgba(212, 160, 38, .08);
  border-radius: 50%;
  pointer-events: none;
}
#staff::before { top: -105px; left: -85px; }
#staff::after { right: -105px; bottom: -115px; }
#staff .section-heading {
  position: relative;
  margin-bottom: 22px;
  text-align: center;
}
#staff .section-heading::before {
  display: inline-block;
  margin-bottom: 7px;
  padding: 5px 13px;
  border: 1px solid rgba(212, 160, 38, .55);
  border-radius: 30px;
  background: #fff8e6;
  color: #8a6415;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
#staff .section-heading h2 {
  display: table;
  margin: 0 auto;
  padding: 0 0 10px;
  color: #062b59;
  font-family: Georgia, serif;
  font-weight: 800;
}
#staff .section-heading h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin: 9px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #062b59 0 50%, #d6a329 50% 100%);
}
#staff .staff-grid {
  align-items: stretch;
  gap: 17px;
}
#staff .staff-card {
  position: relative;
  padding-bottom: 2px;
  border: 1px solid #d9e2ec;
  border-top: 4px solid #d6a329;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(6,43,89,.09);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#staff .staff-card:nth-child(even) { border-top-color: #062b59; }
#staff .staff-card:hover {
  transform: translateY(-6px);
  border-color: #d6a329;
  box-shadow: 0 15px 30px rgba(6,43,89,.16);
}
#staff .staff-card img {
  display: block;
  width: calc(100% - 28px);
  height: 205px;
  margin: 14px auto 0;
  border: 3px solid #fff;
  border-radius: 9px;
  outline: 1px solid #e2c16d;
  object-fit: cover;
  object-position: center top;
  background: #e8eef5;
}
#staff .staff-card h3 {
  padding: 13px 10px 3px;
  color: #062b59;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.4;
}
#staff .staff-card p {
  display: inline-block;
  margin: 4px 0 13px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #edf3fa;
  color: #795b18;
  font-size: 11px;
  font-weight: 800;
}
@media (max-width: 760px) {
  #staff .staff-grid { gap: 12px; }
  #staff .staff-card img { height: 190px; }
}
@media (max-width: 480px) {
  #staff .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #staff .staff-card img { width: calc(100% - 18px); height: 155px; margin-top: 9px; }
  #staff .staff-card h3 { padding: 10px 7px 2px; font-size: 12px; }
  #staff .staff-card p { margin: 3px 0 10px; padding: 5px 8px; font-size: 10px; }
}

/* Administration team: left-align staff names for easier reading */
#staff .staff-card h3 {
  text-align: left;
}


/* School statistics: polished navy-and-gold presentation */
#statistics {
  position: relative;
  overflow: hidden;
  padding-block: 42px;
  background: linear-gradient(135deg, #f3f7fc 0%, #ffffff 52%, #fff9e9 100%);
  border-top: 1px solid #d9e3ef;
  border-bottom: 1px solid #d9e3ef;
}
#statistics::before,
#statistics::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#statistics::before {
  width: 230px; height: 230px;
  top: -135px; right: -55px;
  border: 22px solid rgba(212, 166, 58, .12);
}
#statistics::after {
  width: 170px; height: 170px;
  bottom: -115px; left: -60px;
  border: 18px solid rgba(6, 43, 89, .07);
}
#statistics .container { position: relative; z-index: 1; }
#statistics .section-heading { margin-bottom: 25px; }
#statistics .section-heading h2 { color: #062b59; }
#statistics .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 16px;
}
#statistics .feature-card {
  position: relative;
  min-height: 158px;
  padding: 21px 15px 17px;
  overflow: hidden;
  text-align: center;
  background: rgba(255,255,255,.96);
  border: 1px solid #dce5ef;
  border-top: 4px solid #d4a63a;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(6,43,89,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#statistics .feature-card:nth-child(4n+2) { border-top-color: #1b568d; }
#statistics .feature-card:nth-child(4n+3) { border-top-color: #4c8b69; }
#statistics .feature-card:nth-child(4n+4) { border-top-color: #8b6bb0; }
#statistics .feature-card::after {
  content: "";
  position: absolute;
  width: 70px; height: 70px;
  right: -32px; bottom: -38px;
  border: 10px solid rgba(6,43,89,.045);
  border-radius: 50%;
}
#statistics .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(6,43,89,.14);
  border-color: #d4a63a;
}
#statistics .feature-card .circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px; height: 66px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.85);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(6,43,89,.13);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
}
#statistics .feature-card h3 {
  position: relative; z-index: 1;
  margin: 0;
  color: #173b61;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
@media (max-width: 600px) {
  #statistics { padding-block: 28px; }
  #statistics .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  #statistics .feature-card { min-height: 145px; padding: 17px 9px 14px; }
  #statistics .feature-card .circle { width: 58px; height: 58px; font-size: 19px; }
  #statistics .feature-card h3 { font-size: 12px; }
}


/* Relevant pictogram for every school statistic */
#statistics .feature-card .stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 9px;
  border-radius: 12px;
  color: #062b59;
  background: #edf3fa;
  border: 1px solid #dce6f1;
}
#statistics .feature-card .stat-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#statistics .feature-card:nth-child(4n+2) .stat-icon { color: #a46b12; background: #fff7e5; border-color: #f0dfb8; }
#statistics .feature-card:nth-child(4n+3) .stat-icon { color: #397451; background: #edf7f0; border-color: #d2e8d9; }
#statistics .feature-card:nth-child(4n+4) .stat-icon { color: #76569a; background: #f4effa; border-color: #e3d8f0; }
#statistics .feature-card .circle { margin-bottom: 10px; }
@media (max-width: 600px) {
  #statistics .feature-card .stat-icon { width: 37px; height: 37px; margin-bottom: 7px; }
  #statistics .feature-card .stat-icon svg { width: 22px; height: 22px; }
}


/* DECORATED SUBJECTS OFFERED */
.subjects-section {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}
.subjects-section .section-heading { margin-bottom: 22px; }
.subjects-section .section-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
.subject-card {
  position: relative;
  min-height: 142px;
  padding: 18px 13px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(4, 35, 69, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.subject-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}
.subject-card:hover {
  transform: translateY(-5px);
  border-color: #d6b35c;
  box-shadow: 0 12px 25px rgba(4, 35, 69, .13);
}
.subject-number {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 9px;
  font-weight: 800;
}
.subject-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--navy);
  background: #edf3fa;
  border: 1px solid #dce7f3;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}
.subject-card:nth-child(3n + 2) .subject-symbol { color: #a8750b; background: #fff7e4; border-color: #f2e3bd; }
.subject-card:nth-child(3n) .subject-symbol { color: #24735e; background: #eaf6f1; border-color: #d4eadf; }
.subject-card h3 {
  margin: 0;
  padding: 0;
  color: #173451;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}
@media (max-width: 900px) {
  .subjects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .subjects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .subject-card { min-height: 132px; padding-inline: 9px; }
  .subject-card h3 { font-size: 11px; }
}


/* Featured gallery picture: place the See more pictures link over the image */
.gallery-card-featured .gallery-image-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.gallery-card-featured .gallery-image-wrap::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient( to bottom, transparent, rgba(3, 22, 46, .78) );
  pointer-events: none;
  z-index: 1;
}
.gallery-card-featured .gallery-image-wrap img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.gallery-overlay-link {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 30px;
  background: #d9a323;
  color: #062b59;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease;
}
.gallery-overlay-link:hover,
.gallery-overlay-link:focus-visible {
  background: #fff;
  color: #062b59;
  transform: translate(-50%, -2px);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .gallery-card-featured .gallery-image-wrap img { height: 220px; }
  .gallery-overlay-link { bottom: 14px; padding: 10px 14px; }
}


/* ==========================================
   SCHOOL GALLERY — ENHANCED VISUAL PRESENTATION
   ========================================== */
.gallery-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f8fd 0%, #ffffff 52%, #fff9e9 100%);
}
.gallery-section::before,
.gallery-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  border: 24px solid rgba(6, 43, 89, .035);
  border-radius: 50%;
  pointer-events: none;
}
.gallery-section::before { top: -130px; right: -85px; }
.gallery-section::after { bottom: -145px; left: -95px; border-color: rgba(242, 183, 47, .10); }
.gallery-heading { text-align: center; margin-bottom: 20px !important; }
.gallery-kicker {
  display: inline-block;
  margin-bottom: 5px;
  color: #b17c0c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}
.gallery-heading h2 { display: block !important; margin-inline: auto; }
.gallery-heading h2::after { left: 50% !important; transform: translateX(-50%); width: 68px !important; }
.gallery-heading p { max-width: 680px; margin: 5px auto 0; color: #60758c; font-size: 13px; }
.gallery {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.gallery-card {
  position: relative;
  border: 1px solid rgba(6, 43, 89, .12);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(6, 43, 89, .08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.gallery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(213, 158, 31, .75);
  box-shadow: 0 15px 30px rgba(6, 43, 89, .15);
}
.gallery-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-card:hover img { transform: scale(1.055); }
.gallery-card figcaption {
  position: relative;
  min-height: 42px;
  padding: 12px 13px 11px 17px;
  color: #173b63;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  background: #fff;
}
.gallery-card figcaption::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #e3ad32;
}
.gallery-card-featured .gallery-image-wrap img { height: 190px; }
.gallery-overlay-link {
  padding: 11px 18px;
  background: linear-gradient(135deg, #f5c54e, #e2a51f);
  border: 1px solid rgba(255,255,255,.85);
  font-size: 12px;
  letter-spacing: .15px;
}
.gallery-overlay-link:hover,
.gallery-overlay-link:focus-visible { background: #fff; }
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-heading { padding-inline: 5px; }
  .gallery-card img, .gallery-card-featured .gallery-image-wrap img { height: 175px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; gap: 13px; }
  .gallery-card img, .gallery-card-featured .gallery-image-wrap img { height: 225px; }
  .gallery-card figcaption { font-size: 12px; }
  .gallery-heading p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card, .gallery-card img { transition: none; }
}


/* LATEST SCHOOL NEWS — polished navy, white and gold cards */
#news {
  background: linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
}
#news .section-heading {
  margin-bottom: 30px;
}
#news .section-heading h2 {
  position: relative;
  display: inline-block;
  color: #062b59;
  padding-bottom: 12px;
}
#news .section-heading h2::after {
  content: "";
  position: absolute;
  width: 68px;
  height: 4px;
  left: 0;
  bottom: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #d9a52b, #f0d58a);
}
#news .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
#news .news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dce5ef;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 43, 89, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#news .news-card:hover {
  transform: translateY(-6px);
  border-color: #d9b65e;
  box-shadow: 0 16px 34px rgba(6, 43, 89, .15);
}
#news .news-image-wrap {
  position: relative;
  height: 225px;
  overflow: hidden;
  background: #dce5ef;
}
#news .news-image-wrap::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(4, 26, 54, .48));
  pointer-events: none;
}
#news .news-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
#news .news-card:hover .news-image-wrap img { transform: scale(1.045); }
#news .news-image-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 30px;
  background: rgba(6, 43, 89, .88);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .9px;
}
#news .news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 21px 22px;
}
#news .news-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a97912;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .55px;
}
#news .news-body h3 {
  margin: 10px 0 11px;
  color: #062b59;
  font-size: 18px;
  line-height: 1.4;
}
#news .news-summary {
  width: 100%;
  margin: 0 0 12px;
  color: #566579;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
#news .news-summary.is-collapsed:not(.is-expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
#news .news-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  margin-top: auto;
  padding: 9px 16px;
  border: 1px solid #d6a52e;
  border-radius: 7px;
  background: #062b59;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
#news .news-read-more:hover {
  background: #e2b640;
  color: #062b59;
  transform: translateY(-1px);
}
#news .news-read-more:focus-visible {
  outline: 3px solid rgba(226, 182, 64, .45);
  outline-offset: 3px;
}
#news .news-read-more[hidden] { display: none; }
@media (max-width: 700px) {
  #news .news-grid { grid-template-columns: 1fr; gap: 18px; }
  #news .news-image-wrap { height: 210px; }
  #news .news-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #news .news-card, #news .news-image-wrap img, #news .news-read-more { transition: none; }
}


/* Latest School News: refined publication date and automatic NEW badge */
#news .news-date {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin: 0 0 2px;
  padding: 7px 10px;
  border: 1px solid #ead9a8;
  border-radius: 7px;
  background: #fff9e9;
  color: #72520d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25px;
  line-height: 1.2;
  text-transform: none;
}
#news .news-date-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 5px;
  background: #062b59;
  color: #fff;
  font-size: 11px;
}
#news .news-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 3px 8px;
  border-radius: 30px;
  background: #c62828;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .8px;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(198, 40, 40, .2);
  animation: newsNewPulse 1.8s ease-in-out infinite;
}
@keyframes newsNewPulse {
  0%, 100% { box-shadow: 0 2px 7px rgba(198, 40, 40, .18); }
  50% { box-shadow: 0 2px 11px rgba(198, 40, 40, .38); }
}
@media (prefers-reduced-motion: reduce) {
  #news .news-new-badge { animation: none; }
}

/* ABOUT ST. CLARE — complete content presented in one elegant reading panel */
#about .about-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(20px, 3.2vw, 42px);
  border: 1px solid #dce6f0;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 72%, #fffaf0 100%);
  box-shadow: 0 16px 42px rgba(6, 43, 89, .11), 0 3px 10px rgba(6, 43, 89, .04);
}
#about .about-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #062b59 0%, #d39513 52%, #f0c65c 100%);
}
#about .about-grid::after {
  content: "ST. CLARE";
  position: absolute;
  z-index: -1;
  right: 18px;
  bottom: 4px;
  color: rgba(6, 43, 89, .035);
  font-family: Georgia, serif;
  font-size: clamp(42px, 8vw, 100px);
  font-weight: 700;
  letter-spacing: 3px;
  pointer-events: none;
}
#about .section-copy {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#about .section-copy > p {
  max-width: 100%;
}
#about .section-copy > p:first-of-type {
  border: 1px solid #e4ebf3;
  border-left: 4px solid #d39513;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(100deg, #f2f6fb, #fbfdff);
}
#about .mini-grid {
  position: relative;
  z-index: 1;
}
#about .info-box {
  min-height: 100%;
  box-sizing: border-box;
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
}
@media (max-width: 760px) {
  #about .about-grid {
    padding: 23px 17px;
    border-radius: 15px;
  }
  #about .about-grid::after {
    right: 8px;
    bottom: 0;
    font-size: 44px;
  }
  #about .section-copy {
    padding: 0;
  }
}


/* FORM FOUR RESULTS SUMMARY */
.results-summary { margin-top:20px; padding:clamp(10px,3vw,20px); border:1px solid #dce6f0; border-radius:18px; background:linear-gradient(145deg,#fff 0%,#f7faff 72%,#fffaf0 100%); box-shadow:0 12px 32px rgba(6,43,89,.08); }
.results-summary-heading { margin-bottom:10px; text-align:center; }
.results-kicker { display:inline-block; margin-bottom:7px; color:#b77c08; font-size:10px; font-weight:900; letter-spacing:1.8px; }
.results-summary-heading h2 { margin:0 0 7px; color:var(--navy); font-family:Georgia,serif; font-size:clamp(23px,3vw,30px); }
.results-summary-heading p { color:var(--muted); font-size:13px; }
.results-table-card { margin-top:16px; overflow:hidden; border:1px solid #dce6f0; border-radius:12px; background:#fff; box-shadow:0 5px 16px rgba(6,43,89,.05); }
.results-table-title { display:flex; align-items:center; gap:11px; padding:13px 16px; background:linear-gradient(100deg,#062b59,#104b83); color:#fff; }
.results-table-title>span { display:grid; width:30px; height:30px; place-items:center; flex:0 0 30px; border-radius:50%; background:var(--gold); color:#092748; font-size:11px; font-weight:900; }
.results-table-title h3 { font-size:14px; }
.results-table-scroll { width:100%; overflow-x:auto; }
.results-table { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; text-align:center; font-size:11px; }
.results-table caption { padding:8px 12px; color:var(--muted); text-align:left; font-size:10px; }
.results-table th { padding:9px 5px; background:#edf3f9; color:#173b63; font-weight:800; white-space:nowrap; }
.results-table td { padding:9px 5px; border-top:1px solid #e7edf4; color:#60758c; font-weight:700; }
.results-table th:first-child,.results-table td:first-child { text-align:left; padding-left:17px; }
.results-table tbody tr:hover { background:#fffaf0; }
.results-table { min-width:0; }
.results-table th,.results-table td { width:11.1111%; box-sizing:border-box; }
.results-table th:first-child,.results-table td:first-child { padding-left:5px; text-align:center; }
.results-table th { white-space:normal; overflow-wrap:anywhere; }
.results-table td { overflow-wrap:anywhere; }
.results-table .necta-results-btn { padding:6px 8px; font-size:9px; }
.necta-results-btn { display:inline-block; padding:8px 11px; border-radius:6px; background:#0b6b45; color:#fff; font-size:10px; font-weight:800; line-height:1.25; text-decoration:none; white-space:nowrap; box-shadow:0 2px 6px rgba(11,107,69,.18); transition:background .2s ease,transform .2s ease; }
.necta-results-btn:hover,.necta-results-btn:focus { background:#084f34; color:#fff; transform:translateY(-1px); }
.necta-results-btn:focus-visible { outline:3px solid #e4b64c; outline-offset:3px; }
.results-note { margin:15px 2px 0; color:#718196; font-size:11px; font-style:italic; text-align:center; }
@media(max-width:600px) { .results-summary { margin-top:34px; padding:16px 11px; border-radius:13px; } .results-table-title { padding:11px 12px; } }

/* Compact results table with the NECTA action aligned to the results row */
@media (max-width: 600px) { .results-table { font-size:9px; } .results-table th,.results-table td { width:11.1111%; padding:7px 2px; } .results-table .necta-results-btn { white-space:normal; display:inline-block; max-width:100%; padding:5px 3px; font-size:8px; } }

/* RESPONSIVE FORM FOUR RESULTS TABLE */
.results-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  width: auto;
  padding: clamp(6px, 1vw, 10px);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.results-table th:last-child,
.results-table td:last-child {
  min-width: 105px;
}

.results-table .necta-results-btn {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: clamp(8px, 0.8vw, 10px);
  padding: clamp(4px, 0.6vw, 7px);
}

@media (max-width: 600px) {
  .results-table {
    min-width: 560px;
    font-size: 10px;
  }

  .results-table th,
  .results-table td {
    padding: 7px 5px;
  }
}
