/* =========================================================================
   SCHOOL CMS THEME — CORE STYLESHEET
   -------------------------------------------------------------------------
   A school-brandable design system. Every school using this theme can
   reskin it completely by overriding the custom properties in :root
   (either in a per-school theme file loaded via `theme_name`, or via an
   inline override block printed from the database — see README).

   Palette rationale: deep academic blue + ink navy + warm gold reads as
   "established institution", not "generic SaaS product", and gives every
   school a serious, trustworthy default before they apply their own
   colours.
   ========================================================================= */

:root {
  /* ---- Brand (school-overridable) ---- */
  --primary: #1e4b8f;
  --primary-dark: #123163;
  --primary-light: #eef3fb;
  --secondary: #16202e;      /* ink navy — headers, footer, dark sections */
  --secondary-soft: #212e40;
  --accent: #e1a83d;         /* warm gold — CTAs, highlights, honours */
  --accent-dark: #c78e23;

  /* ---- Neutrals ---- */
  --surface: #ffffff;
  --bg: #f6f7fa;
  --text: #1b2430;
  --muted: #5b6472;
  --muted-2: #8a93a1;
  --border: #e3e7ed;
  --border-strong: #cfd6e1;

  /* ---- Feedback ---- */
  --success: #1c8a53;
  --error: #c8372f;
  --warning: #b8790a;
  --info: #1e6fa8;

  /* ---- Type ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(17, 24, 39, 0.16);
  --shadow-lg: 0 24px 48px -12px rgba(17, 24, 39, 0.24);

  /* ---- Layout ---- */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 88px;
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--secondary);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--text); }
hr { border: none; border-top: 1px solid var(--border); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
button, input, select, textarea { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.no-print { }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--secondary); color: #fff; padding: 10px 16px;
  z-index: 10000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Grid fallback for the small amount of custom layout not covered by bootstrap */
.row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gutter) / -2); }
.row > * { padding: 0 calc(var(--gutter) / 2); }

/* =========================================================================
   BUTTONS / LINKS
   ========================================================================= */
.glbscl-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.glbscl-link-btn:hover,
.glbscl-link-btn:focus-visible {
  background: var(--accent-dark);
  color: var(--secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.glbscl-link-btn.outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
}
.glbscl-link-btn.outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.glbscl-link-btn.dark { background: var(--secondary); color: #fff; }
.glbscl-link-btn.dark:hover { background: var(--secondary-soft); }

/* =========================================================================
   PRELOADER
   ========================================================================= */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s ease, visibility .35s ease;
}
#preloader::after {
  content: "";
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: gs-spin .8s linear infinite;
}
#preloader.gs-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   HEADER
   ========================================================================= */
.header-top-area {
  background: var(--secondary);
  color: rgba(255,255,255,.82);
  font-size: 13.5px;
}
.header-top-area .container .row { align-items: center; min-height: 42px; }
.hta-left { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hta-box { display: flex; align-items: center; gap: 7px; padding: 6px 0; }
.hta-box .text { margin: 0; color: inherit; }
.hta-box .icon { color: var(--accent); font-size: 13px; }
.hta-right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; flex-wrap: wrap; }
.hta-right .hta-box .text { color: rgba(255,255,255,.85); font-weight: 500; }
.hta-right .hta-box a.text:hover { color: var(--accent); }
.hta-right select.form-control {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
}

.header-bottom-area {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow .2s ease;
}
.header-bottom-area.gs-scrolled { box-shadow: var(--shadow-md); }
.header-bottom-area .container .row { align-items: center; min-height: var(--header-h); }

.logo a { display: inline-flex; align-items: center; gap: 12px; }
.logo img { max-height: 58px; width: auto; }

.menu nav#mobile_menu_active { display: block; }
.menu ul#menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}
.menu ul#menu > li { position: relative; }
.menu ul#menu > li > a {
  display: flex; align-items: center; gap: 6px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
}
.menu ul#menu > li > a .icon { font-size: 10px; color: var(--muted-2); }
.menu ul#menu > li > a:hover,
.menu ul#menu > li.gs-open > a { color: var(--primary); background: var(--primary-light); }

.menu ul.drop {
  position: absolute; left: 0; top: calc(100% + 6px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 50;
}
.menu ul#menu > li:hover > ul.drop,
.menu ul#menu > li.gs-open > ul.drop { opacity: 1; visibility: visible; transform: translateY(0); }
.menu ul.drop li a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 14.5px;
}
.menu ul.drop li a:hover { background: var(--primary-light); color: var(--primary); }

.mobile-nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-nav-toggle span,
.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--secondary);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.mobile-nav-toggle span::before { position: absolute; top: -6px; }
.mobile-nav-toggle span::after { position: absolute; top: 6px; }
.mobile-nav-toggle[aria-expanded="true"] span { background: transparent; }
.mobile-nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav-backdrop { display: none; }

/* =========================================================================
   MESSAGE / ALERT
   ========================================================================= */
#message_div {
  padding: 14px 44px 14px 16px;
  margin: 20px 0 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  position: relative;
  background: var(--info);
  color: #fff;
}
#message_div.alert-success { background: var(--success); }
#message_div.alert-error { background: var(--error); }
#message_div.alert-warning { background: var(--warning); }
#message_div.alert-info { background: var(--info); }
#message_div .remove {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-weight: 700; cursor: pointer; opacity: .85;
}
#message_div .remove:hover { opacity: 1; }

/* =========================================================================
   SECTION TITLE
   ========================================================================= */
.section-title { max-width: 640px; margin: 0 0 44px; }
.section-title.text-center { margin-inline: auto; text-align: center; }
.section-title .title { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 10px; }
.section-title .title .inner { color: inherit; font-weight: inherit; font-style: normal; }
.section-title.white .title { color: #fff; }

/* =========================================================================
   HERO / SLIDER
   ========================================================================= */
.slider-area { position: relative; background: var(--secondary); }
.slider-area .single-slider { position: relative; }
.slider-area .img { position: relative; height: 620px; overflow: hidden; }
.slider-area .img img { width: 100%; height: 100%; object-fit: cover; }
.slider-area .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,22,33,.86) 0%, rgba(15,22,33,.55) 45%, rgba(15,22,33,.25) 100%);
}
.slider-area .content {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.slider-area .content .container { max-width: var(--container); }
.slider-area .intro {
  color: var(--accent); font-family: var(--font-body); font-weight: 700;
  font-size: 15px; letter-spacing: .02em; margin-bottom: 14px;
}
.slider-area .title {
  color: #fff; font-size: clamp(34px, 5vw, 58px); max-width: 680px; margin-bottom: 18px;
}
.slider-area h3:not(.intro) {
  color: rgba(255,255,255,.85); font-family: var(--font-body); font-weight: 400;
  font-size: 18px; max-width: 560px; margin-bottom: 10px;
}
.owl-nav, .owl-dots { }
.owl-carousel .owl-dots { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; }
.owl-carousel .owl-dot span {
  width: 9px; height: 9px; margin: 0 4px; background: rgba(255,255,255,.4); border-radius: 50%; display: inline-block;
}
.owl-carousel .owl-dot.active span { background: var(--accent); }
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.owl-carousel .owl-nav button.owl-prev { left: 18px; }
.owl-carousel .owl-nav button.owl-next { right: 18px; }
.owl-carousel .owl-nav button:hover { background: var(--accent); color: var(--secondary); }

/* =========================================================================
   TOP BANNER / ABOUT
   ========================================================================= */
.top-banner-area { padding: 96px 0; background: var(--surface); }
.top-banner-content .intro { color: var(--primary); font-family: var(--font-body); font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.top-banner-content .title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.top-banner-content .text { color: var(--muted); font-size: 16.5px; }
.top-banner-content .text p { margin-bottom: 1em; }
.top-banner-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* =========================================================================
   FACILITIES
   ========================================================================= */
.facilities-area { padding: 88px 0; background: var(--bg); }
.single-faclities {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 22px;
  text-align: center;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.single-faclities:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.single-faclities .icon { width: 56px; height: 56px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.single-faclities .icon img { width: 100%; height: 100%; object-fit: contain; }
.single-faclities .name { font-size: 18px; margin: 0; }

/* =========================================================================
   CARDS — shared card shell for news / events / notices / holidays
   ========================================================================= */
.single-news, .single-event {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.single-news:hover, .single-event:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.single-news .img, .single-event .img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.single-news .img img, .single-event .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.single-news:hover .img img, .single-event:hover .img img { transform: scale(1.04); }
.single-news .content, .single-event .content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.single-news .meta, .single-event .list {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; padding: 0; list-style: none;
}
.single-news .meta li, .single-event .list li {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
}
.single-news .meta .icon, .single-event .list .icon { color: var(--primary); }
.single-news .title, .single-event .title { font-size: 20px; margin-bottom: 10px; }
.single-news .title a, .single-event .title a { color: var(--secondary); }
.single-news .title a:hover, .single-event .title a:hover { color: var(--primary); }
.single-news .text, .single-event .text { color: var(--muted); flex: 1; margin-bottom: 16px; }
.single-news .more, .single-event .more { margin-top: auto; }
.single-news .more .link, .single-event .more .link { padding: 10px 22px; font-size: 14px; }

.single-notice {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; margin-bottom: 24px; height: calc(100% - 24px);
}
.single-notice .title { font-size: 19px; margin-bottom: 10px; }
.single-notice .title a { color: var(--secondary); }
.single-notice .title a:hover { color: var(--primary); }
.single-notice .meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; }
.single-notice .meta .info { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.single-notice .meta .icon { color: var(--primary); }
.single-notice .date { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.single-notice .date .seprator { color: var(--border-strong); margin: 0 4px; }
.single-notice .text { color: var(--muted); }

.latest-news-area { padding: 88px 0; background: var(--bg); }
.latest-event { padding: 88px 0; background: var(--surface); }

/* =========================================================================
   ACHIEVEMENT / STATS
   ========================================================================= */
.achivement-area.bg-with-black { background: var(--secondary); padding: 80px 0; }
.achivement-area .section-title .title { color: #fff; }
.single-achivement { text-align: center; color: #fff; }
.single-achivement .icon { width: 64px; height: 64px; margin: 0 auto 14px; opacity: .9; }
.single-achivement .icon img { width: 100%; height: 100%; object-fit: contain; }
.single-achivement .counter { font-family: var(--font-display); font-size: 40px; color: var(--accent); margin-bottom: 4px; }
.single-achivement .name { color: rgba(255,255,255,.75); text-transform: none; margin: 0; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-area.bg-with-black { background: var(--secondary); padding: 92px 0; }
.testimonial-area .section-title .title { color: #fff; }
.single-testimonial {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.single-testimonial .auth-img { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); }
.single-testimonial .auth-img img { width: 100%; height: 100%; object-fit: cover; }
.single-testimonial .content .name { color: #fff; font-size: 19px; margin-bottom: 6px; }
.single-testimonial .content .text { color: rgba(255,255,255,.78); margin: 0; font-style: italic; }

/* =========================================================================
   ADMISSION CTA
   ========================================================================= */
.apply-now-area { padding: 0 0 88px; }
.apply-now {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}
.apply-now .row { align-items: center; }
.apply-now .title { color: #fff; margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.apply-now .link { background: var(--accent); color: var(--secondary) !important; width: 100%; justify-content: center; }
.apply-now .link:hover { background: var(--accent-dark); }

/* =========================================================================
   PAGE BREADCRUMB HEADER (used on every inner page)
   ========================================================================= */
.page-breadcumb-area.bg-with-black {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary-soft) 100%);
  padding: 64px 0 56px;
}
.page-breadcumb-area .title { color: #fff; margin-bottom: 12px; font-size: clamp(26px, 3.4vw, 36px); }
.page-breadcumb-area .links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-breadcumb-area .links li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); }
.page-breadcumb-area .links li:not(:last-child)::after { content: "/"; color: rgba(255,255,255,.35); margin-left: 8px; }
.page-breadcumb-area .links li a { color: rgba(255,255,255,.85); font-weight: 500; }
.page-breadcumb-area .links li a:hover { color: var(--accent); }

/* =========================================================================
   GENERIC INNER PAGE SECTIONS
   ========================================================================= */
.page-news-area, .page-event-area, .page-notice-area, .page-teacher-area,
.page-gallery-area, .page-contact-area, .page-news-details-area,
.page-event-details-area, .page-notice-details-area { padding: 72px 0; }

/* Detail pages */
.page-news-details, .page-event-details, .page-notice {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 34px; margin-bottom: 30px;
}
.page-news-details .banner, .page-event-details .banner { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.page-news-details .meta, .page-event-details .event-meta, .page-notice .meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px;
}
.page-news-details .meta li, .page-event-details .event-meta li, .page-notice .meta li {
  display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted);
}
.page-news-details .meta .icon, .page-event-details .event-meta .icon, .page-notice .meta .icon { color: var(--primary); }
.page-news-details .title, .page-event-details .title, .page-notice .title { font-size: clamp(22px, 2.6vw, 30px); }
.page-event-details .info-title { font-size: 20px; margin-top: 24px; }

/* Sidebar */
.sidebar-widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px;
}
.sidebar-title { font-size: 19px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.widget-news li, .widget-event li { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.widget-news li:last-child, .widget-event li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget-news li a, .widget-event li a { display: flex; gap: 12px; align-items: flex-start; }
.widget-news li .img, .widget-event li .img { flex: 0 0 68px; width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; }
.widget-news li .img img, .widget-event li .img img { width: 100%; height: 100%; object-fit: cover; }
.widget-news li .content { display: flex; flex-direction: column; gap: 4px; }
.widget-news li .meta { display: flex; flex-direction: column; gap: 2px; }
.widget-news li .meta .info, .widget-event li .info { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.widget-news li .title, .widget-event li .title { font-size: 14.5px; color: var(--secondary); font-weight: 600; font-family: var(--font-body); }
.widget-news li a:hover .title, .widget-event li a:hover .title { color: var(--primary); }
.widget-notice li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.widget-notice li:last-child { border-bottom: none; }
.widget-notice li .title { display: block; font-weight: 600; color: var(--secondary); margin-bottom: 6px; }
.widget-notice li a:hover .title { color: var(--primary); }
.widget-notice li .date { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.share-news { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.share-news .social { display: flex; gap: 8px; }
.share-news .social a { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.share-news .social a:hover { background: var(--primary); color: #fff; }

/* =========================================================================
   TEAM / STAFF / TEACHER
   ========================================================================= */
.single-team {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: var(--gutter); text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.single-team:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.single-team .st-upper { padding: 16px 12px 0; }
.single-team .st-upper .type { font-size: 17px; margin: 0; }
.single-team .st-img { aspect-ratio: 1/1; overflow: hidden; margin: 14px 20px 0; border-radius: var(--radius-md); }
.single-team .st-img img { width: 100%; height: 100%; object-fit: cover; }
.single-team .st-content { padding: 18px 20px 24px; }
.single-team .st-content .name { font-size: 14.5px; color: var(--primary); font-family: var(--font-body); font-weight: 600; margin-bottom: 12px; }
.single-team .st-content .name a { color: inherit; }
.single-team .social { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.single-team .social a { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.single-team .social a:hover { background: var(--primary); color: #fff; }
.single-team .contact { text-align: left; border-top: 1px solid var(--border); padding-top: 14px; }
.single-team .contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.single-team .contact .icon { color: var(--primary); margin-top: 2px; }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery-section-title { margin: 0 0 22px; }
.gallery-section-title .title { font-size: 24px; margin-bottom: 6px; }
.gallery-section-title .text { color: var(--muted); }
.page-gallery-area .gallery-carousel { margin-bottom: 52px; }
.single-gallery { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.single-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.single-gallery .icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(17,24,32,0); color: #fff; font-size: 22px; opacity: 0; transition: opacity .2s ease, background-color .2s ease;
}
.single-gallery:hover .icon { opacity: 1; background: rgba(17,24,32,.45); }
.single-gallery:hover img { transform: scale(1.05); }

/* =========================================================================
   FORMS (contact / search / newsletter)
   ========================================================================= */
.contact-form-area, .contact-page-title { }
.contact-page-title { font-size: 24px; margin-bottom: 22px; }
.contact-input-box { margin-bottom: 18px; }
.contact-input-box input,
.contact-input-box textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-input-box textarea { min-height: 140px; resize: vertical; }
.contact-input-box input:focus,
.contact-input-box textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}
.contact-input-box input[type="submit"] {
  width: auto; border: none; cursor: pointer;
}
label.error { color: var(--error); font-size: 12.5px; display: block; margin: -12px 0 12px; }

.single-contact-info { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.single-contact-info .icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.single-contact-info .info { color: var(--text); margin: 0; padding-top: 8px; }
.single-contact-info a.info:hover { color: var(--primary); }
#mymap { width: 100%; height: 360px; border-radius: var(--radius-md); margin-bottom: 44px; background: var(--border); }

/* =========================================================================
   ADMISSION FORM (print-friendly)
   ========================================================================= */
.admission-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 40px;
}
.admission-address h3 { font-size: 22px; margin-bottom: 6px; }
.admission-address div { color: var(--muted); margin-bottom: 4px; }
.admission-address h4 { margin-top: 16px; color: var(--secondary); }
.student-picture {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 3/4; border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm); color: var(--muted-2); font-size: 13px; text-align: center;
}
.admission-form-title { margin: 28px 0 14px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--primary); }
.form-field { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--border-strong); }
.form-field .field-title { flex: 0 0 auto; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.form-field .field-value { flex: 1; border-bottom: 1px solid var(--border-strong); min-height: 20px; }
.margin-top { margin-top: 28px; }
@media print {
  .header-top-area, .header-bottom-area, footer, .no-print, #preloader { display: none !important; }
  .admission-form { border: none; padding: 0; }
}

/* =========================================================================
   LOGIN / SCHOOL-PICKER (splash)
   ========================================================================= */
.login-area.bg-with-black {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--secondary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
}
.login-area-all-box .row { justify-content: center; }
.login-box-col { margin-bottom: var(--gutter); }
.single-login-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 34px; height: 100%;
}
.single-login-box .title { color: #fff; font-size: 22px; margin-bottom: 22px; }
.single-login-box .links { display: flex; gap: 12px; flex-wrap: wrap; }
.single-login-box .links .float-right { margin-left: auto; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { background: var(--secondary); color: rgba(255,255,255,.72); }
.footer-top-area { padding: 72px 0 44px; }
.footer-widget .fw-logo img { max-height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .92; }
.footer-widget .fw-title {
  color: #fff; font-size: 17px; margin-bottom: 20px; font-family: var(--font-body); font-weight: 700;
}
.footer-widget .fw-title span { color: #fff; }
.footer-widget .links li, .footer-widget .address li { margin-bottom: 12px; font-size: 14.5px; }
.footer-widget .links li a { color: rgba(255,255,255,.68); }
.footer-widget .links li a:hover { color: var(--accent); }
.footer-widget .address li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.68); }
.footer-widget .address .icon { color: var(--accent); margin-top: 3px; }
.footer-widget .social { display: flex; gap: 10px; }
.footer-widget .social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.footer-widget .social a:hover { background: var(--accent); color: var(--secondary); }
.footer-bottom-area { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom-area .copyright { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.55); }

/* =========================================================================
   BACK TO TOP
   ========================================================================= */
.gs-back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.gs-back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.gs-back-to-top:hover { background: var(--primary-dark); }

/* =========================================================================
   REVEAL-ON-SCROLL (single, restrained pattern — sections only)
   ========================================================================= */
.gs-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.gs-reveal.gs-in { opacity: 1; transform: translateY(0); }
