/* ==========================================
   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(3, 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;
}
