@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ============================================================
   Univet University — Green Theme
   ============================================================ */

:root {
  /* Theme colour tokens — the variable names are kept so every rule
     across the site picks the new palette up automatically. */
  --green: #1f7a3f;
  --green-bar: #24a44f;
  --green-dark: #0f4d27;
  --green-darker: #0a3a1d;
  --green-light: #e8f5ec;
  --lime: #a4d233;
  --accent: #f4a72c;
  --ink: #10261a;
  --body: #56685d;
  --line: #e2ece6;
  --white: #ffffff;
  --bg-soft: #f5f9f6;
  /* semantic status colours — kept distinct so pass/fail stays readable */
  --ok: #1E7A3F;
  --ok-bg: #E8F5EC;
  --bad: #C0392B;
  --bad-bg: #FDECEA;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(15, 77, 39, .10);
  --shadow-sm: 0 6px 20px rgba(15, 77, 39, .08);
  --font: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  --head: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* reserve the scrollbar so locking the body for the drawer doesn't shift the page */
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--head); color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
a { color: inherit; text-decoration: none; transition: .25s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* full-width layout: content spans the whole browser area, with side gutters only */
.container { width: 100%; max-width: 100%; margin-inline: auto; padding-inline: clamp(16px, 4vw, 70px); }
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .3s; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lime { background: var(--lime); color: var(--green-darker); }
.btn-lime:hover { background: #b8e043; transform: translateY(-2px); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { background: var(--lime); color: var(--green-darker); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); }
.sec-head { max-width: 640px; margin-bottom: 50px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 14px; }

/* ============================================================
   TOP BAR  (bright green, welcome text left / quick links right)
   ============================================================ */
.header-wrap { position: sticky; top: 0; z-index: 900; }
.topbar { background: var(--green-bar); color: #fff; font-size: .86rem; padding: 12px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-welcome { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.topbar-welcome svg { width: 22px; height: 22px; fill: #fff; }
.topbar-links { display: flex; align-items: center; }
.topbar-links li + li::before { content: "|"; opacity: .45; margin: 0 16px; }
.topbar-links li { display: inline-flex; align-items: center; }
.topbar-links a { font-weight: 500; }
.topbar-links a:hover { color: var(--lime); }
.topbar-social { display: none; }

/* ============================================================
   NAVBAR  (split menu with the centre logo banner)
   ============================================================ */
.header { background: #fff; box-shadow: 0 2px 20px rgba(15,77,39,.07); position: relative; }
.header.stuck { box-shadow: 0 6px 26px rgba(15,77,39,.12); }
.nav { display: flex; align-items: center; gap: 20px; height: 86px; }

/* --- the hanging logo banner built on assets/image/logo-shape.png --- */
.logo-panel {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 240px; height: 152px; z-index: 20;
  /* the shape image itself is the banner background */
  background: url("../image/logo-shape.png") no-repeat center top / 100% 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 14px 16px; color: #fff; text-align: center;
  filter: drop-shadow(0 10px 18px rgba(10, 58, 29, .18));
}
.logo-panel .crest { width: 62px; height: 62px; }
.logo-panel .crest svg { width: 100%; height: 100%; fill: #fff; }
.logo-panel .brand { line-height: 1.05; }
.logo-panel .brand small {
  display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .95;
}
.logo-panel .brand strong {
  display: block; font-family: var(--head); font-size: 1.55rem; letter-spacing: .06em; color: #fff;
}
.logo-gap { width: 250px; flex-shrink: 0; }

/* inline logo — used on small screens and in the footer */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--lime)); color: #fff;
  font-family: var(--head); font-weight: 700; font-size: 1.35rem;
}
.logo-text strong { display: block; font-family: var(--head); font-size: 1.4rem; color: var(--ink); line-height: 1; }
.logo-text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.nav > .logo { display: none; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu-left { margin-right: auto; }
.menu-right { margin-left: auto; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 32px 16px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.menu > li > a:hover, .menu > li.active > a { color: var(--green); }
.menu .caret { font-size: .6rem; opacity: .6; transition: .25s; }
.menu > li:hover .caret { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 12px 0;
  border-top: 3px solid var(--green);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: .28s;
}
.menu li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 9px 22px; font-size: .9rem; color: var(--body); font-weight: 500;
}
.dropdown li a:hover { color: var(--green); background: var(--green-light); padding-left: 28px; }
.dropdown li { position: relative; }
.dropdown .dropdown { top: -12px; left: 100%; border-radius: 12px; border-top: none; border-left: 3px solid var(--green); }

/* mega menu — spans the full header width */
/* needs `.menu > li` specificity, otherwise `.menu > li { position: relative }`
   wins and the panel anchors to the menu item instead of the header */
.menu > li.has-mega { position: static; }
.mega {
  position: absolute; top: 100%; left: 0; right: 0; width: 100%;
  transform: translateY(14px);
  background: #fff; border-top: 3px solid var(--green);
  border-radius: 0; box-shadow: var(--shadow);
  padding: 34px clamp(16px, 4vw, 70px) 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px clamp(26px, 5vw, 80px);
  opacity: 0; visibility: hidden; transition: .28s;
}
.menu li:hover > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega h5 {
  font-family: var(--font); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.mega ul li a { display: block; padding: 6px 0; font-size: .9rem; color: var(--body); }
.mega ul li a:hover { color: var(--green); padding-left: 6px; }
.mega-promo {
  background: linear-gradient(160deg, var(--green-dark), var(--green)); color: #fff;
  border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center; position: relative; overflow: hidden; min-height: 210px;
}
.mega-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,58,29,.25), rgba(10,58,29,.9)); }
.mega-promo > * { position: relative; z-index: 2; }
.mega-promo strong { display: block; font-family: var(--head); font-size: 1.1rem; margin-bottom: 10px; }

/* nav right: search · divider · burger (always visible, as in the design) */
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; padding-left: 8px; }
.nav-right .divider { width: 1px; height: 26px; background: var(--line); }
.nav-search {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent;
  display: grid; place-items: center; color: var(--ink); cursor: pointer; font-size: 1.15rem;
}
.nav-search:hover { background: var(--green-light); color: var(--green); }
.burger {
  width: 46px; height: 46px; border-radius: 10px; border: none; background: transparent;
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.burger:hover, .burger.open { background: var(--green); color: #fff; }
/* three bars that fold into an ✕ while the drawer is open */
.burger-bars { display: block; width: 22px; height: 16px; position: relative; }
.burger-bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .3s, opacity .2s, top .3s;
}
.burger-bars i:nth-child(1) { top: 0; }
.burger-bars i:nth-child(2) { top: 7px; }
.burger-bars i:nth-child(3) { top: 14px; }
.burger.open .burger-bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger.open .burger-bars i:nth-child(2) { opacity: 0; }
.burger.open .burger-bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* search overlay */
.search-box {
  position: absolute; inset: 100% 0 auto 0; background: #fff; box-shadow: var(--shadow);
  padding: 22px 0; display: none; z-index: 15;
}
.search-box.show { display: block; }
.search-box form { display: flex; gap: 10px; max-width: 720px; margin-inline: auto; }
.search-box input {
  flex: 1; padding: 14px 20px; border: 1px solid var(--line); border-radius: 50px; outline: none; font-family: inherit;
}
.search-box input:focus { border-color: var(--green); }

/* ---------- off-canvas drawer (opened by the burger at any width) ---------- */
.offcanvas {
  position: fixed; top: 0; right: 0; width: min(330px, 86vw);
  height: 100vh; height: 100dvh;               /* dvh keeps it right under mobile browser chrome */
  background: #fff; z-index: 1000; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 22px 0 60px; box-shadow: -12px 0 44px rgba(0,0,0,.18);
  transform: translateX(105%); visibility: hidden;
  transition: transform .35s ease, visibility .35s;
}
.offcanvas.open { transform: none; visibility: visible; }
/* stop the page behind the drawer from scrolling on touch devices */
body.nav-open { overflow: hidden; }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 20px 18px; border-bottom: 1px solid var(--line); }
.offcanvas-close {
  border: none; background: var(--green-light); color: var(--green-dark); flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: .25s;
}
.offcanvas-close:hover, .offcanvas-close:focus-visible { background: var(--green); color: #fff; }
.oc-menu > li > a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 15px 20px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line);
}
.oc-menu > li > a:hover { color: var(--green); }
.oc-menu > li > a span {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-light);
  color: var(--green); display: grid; place-items: center; font-size: .9rem; transition: .25s;
}
.oc-menu > li.open > a { color: var(--green); }
.oc-menu > li.open > a span { background: var(--green); color: #fff; transform: rotate(45deg); }
.oc-sub { display: none; background: var(--bg-soft); padding: 6px 0; }
.oc-sub.show { display: block; }
.oc-sub li a { display: block; padding: 11px 32px; font-size: .9rem; }
.oc-sub li a:hover { color: var(--green); }
.oc-foot { padding: 22px 20px; }
.oc-foot p { font-size: .88rem; margin-bottom: 8px; }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(10,58,29,.5); z-index: 999;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 1250px) {
  .menu > li > a { padding: 32px 11px; font-size: .9rem; }
}
@media (max-width: 1080px) {
  .menu { display: none; }
  .logo-gap { display: none; }
  .nav > .logo { display: flex; margin-right: auto; }
  .logo-panel { width: 168px; height: 104px; }
  .logo-panel .crest { width: 40px; height: 40px; }
  .logo-panel .brand strong { font-size: 1.05rem; }
  .logo-panel .brand small { font-size: .5rem; }
}
@media (max-width: 700px) {
  .logo-panel { display: none; }
  .topbar-welcome span { display: none; }
  .topbar-links li + li::before { margin: 0 10px; }
  .topbar { font-size: .78rem; }
}

/* ============================================================
   HERO SLIDER  (fade + ken-burns, as on the red-school banner)
   ============================================================ */
.hero-slider { position: relative; min-height: 700px; overflow: hidden; color: #fff; }
.hero-slider .slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s;
}
.hero-slider .slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.02); transition: transform 9s linear;
}
.hero-slider .slide.active .slide-bg { transform: scale(1.16); }   /* ken-burns zoom */
/* dark panel on the left fading to clear over the photo (red-school style) */
.slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--green-darker) 0%, rgba(10,58,29,.94) 24%, rgba(10,58,29,.55) 46%, rgba(10,58,29,0) 68%),
    linear-gradient(180deg, rgba(10,58,29,.3), rgba(10,58,29,.12));
}
.hero-slider .container { position: relative; z-index: 3; padding-block: 110px; }
.slide-inner { max-width: min(760px, 58%); }
.hero-slider.center .slide-inner { max-width: 900px; margin-inline: auto; text-align: center; }
.hero-slider.center .eyebrow, .hero-slider.center .hero-actions, .hero-slider.center .hero-stats { justify-content: center; }

/* italic welcome line + oversized headline with an inline crest */
.slide-welcome {
  display: block; font-family: var(--head); font-style: italic; color: #fff; opacity: .95;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem); margin-bottom: 14px;
}
.hero-slider h1 .line { display: block; }
.hero-slider h1 .with-crest { display: flex; align-items: center; gap: 18px; }
.hero-slider.center h1 .with-crest { justify-content: center; }
.hero-slider h1 .crest-inline { width: .92em; height: .92em; flex-shrink: 0; }
.hero-slider h1 .crest-inline svg { width: 100%; height: 100%; fill: #fff; }
.hero-slider h1 .crest-inline .cap { fill: var(--accent); }
.btn-dots::after { content: "·:·"; letter-spacing: 1px; opacity: .85; }

.hero-slider h1 {
  color: #fff; margin-bottom: 26px; line-height: 1.02; letter-spacing: -.5px;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
}
.hero-slider p { color: #d5e8db; font-size: 1.08rem; max-width: 620px; margin-bottom: 34px; }
.hero-slider.center p { margin-inline: auto; }
.hero-slider .eyebrow { color: var(--lime); }
.hero-slider .eyebrow::before { background: var(--lime); }
.hero-slider .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-slider .hero-stats { margin-top: 54px; }

/* staggered entrance — content slides in from the left, as on red-school */
.anim { opacity: 0; transform: translate3d(-50px, 0, 0); }
.slide.active .anim { animation: slideUp .95s cubic-bezier(.2,.7,.3,1) forwards; }
.slide.active .anim:nth-child(1) { animation-delay: .25s; }
.slide.active .anim:nth-child(2) { animation-delay: .45s; }
.slide.active .anim:nth-child(3) { animation-delay: .65s; }
.slide.active .anim:nth-child(4) { animation-delay: .85s; }
.slide.active .anim:nth-child(5) { animation-delay: 1.05s; }
@keyframes slideUp { to { opacity: 1; transform: none; } }

/* square edge arrows: brand-filled on the left, dark on the right */
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 54px; height: 56px; border-radius: 0; border: none; cursor: pointer;
  color: #fff; font-size: 1.15rem; display: grid; place-items: center; transition: .3s;
}
.slider-nav.prev { left: 0; background: var(--green); }
.slider-nav.next { right: 0; background: var(--ink); }
.slider-nav:hover { background: var(--lime); color: var(--green-darker); }

/* dots + counter */
.slider-dots {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 12px; align-items: center;
}
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  background: transparent; cursor: pointer; padding: 0; transition: .3s;
}
.slider-dots button.on { background: var(--lime); border-color: var(--lime); width: 34px; border-radius: 50px; }
.slider-count {
  position: absolute; right: 40px; bottom: 36px; z-index: 6; font-family: var(--head);
  font-size: .95rem; letter-spacing: .12em; color: rgba(255,255,255,.85);
}
.slider-count b { font-size: 1.5rem; color: var(--lime); }

/* autoplay progress bar */
.slider-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255,255,255,.18); z-index: 6; }
.slider-progress i { display: block; height: 100%; width: 0; background: var(--lime); }
.slider-progress i.run { animation: barFill var(--dur, 6s) linear forwards; }
@keyframes barFill { from { width: 0 } to { width: 100% } }

@media (max-width: 900px) {
  .hero-slider { min-height: 560px; }
  .slide-inner { max-width: 100%; }
  .slider-nav { width: 42px; height: 46px; font-size: 1rem; }
  .slider-count { display: none; }
  .slide-overlay { background: linear-gradient(180deg, rgba(10,58,29,.9), rgba(10,58,29,.72)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide.active .slide-bg { transform: none; transition: none; }
  .slide.active .anim { animation-duration: .01s; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background: url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  color: #fff; padding: 90px 0;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,58,29,.92) 10%, rgba(15,77,39,.75) 50%, rgba(10,58,29,.35)); }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: min(840px, 60%); }
@media (max-width: 900px) { .hero-inner { max-width: 100%; } }
.hero .eyebrow { color: var(--lime); }
.hero .eyebrow::before { background: var(--lime); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: #d5e8db; font-size: 1.08rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.2); flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-family: var(--head); font-size: 2.2rem; color: var(--lime); }
.hero-stats div span { font-size: .88rem; color: #cfe0d5; }

/* page banner (inner pages) */
.page-banner {
  position: relative; padding: 96px 0; color: #fff; text-align: center;
  background: url("https://images.unsplash.com/photo-1627556704290-2b1f5853ff78?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,58,29,.85), rgba(15,77,39,.9)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; }
.crumb { margin-top: 12px; color: #cfe6d7; font-size: .92rem; }
.crumb a:hover { color: var(--lime); }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { height: 210px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 10px; }
.tag {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  padding: 5px 14px; border-radius: 50px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
.card-meta { display: flex; gap: 18px; font-size: .84rem; color: var(--body); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); }
.about-badge {
  position: absolute; right: -18px; bottom: 30px; background: var(--green); color: #fff;
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); text-align: center;
}
.about-badge strong { display: block; font-family: var(--head); font-size: 2rem; }
.about-badge span { font-size: .8rem; opacity: .9; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check-list li i {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green-light);
  color: var(--green); display: grid; place-items: center; font-size: .7rem; font-style: normal; margin-top: 4px;
}
.check-list li b { color: var(--ink); }

/* faculty list */
.faculty-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; background: #fff; transition: .3s;
}
.faculty-row:hover { background: var(--green); border-color: var(--green); transform: translateX(8px); }
.faculty-row:hover h3, .faculty-row:hover p, .faculty-row:hover .faculty-num { color: #fff; }
.faculty-num { font-family: var(--head); font-size: 1.6rem; color: var(--green); width: 60px; }
.faculty-row .arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.faculty-row:hover .arrow { background: var(--lime); color: var(--green-darker); }

/* fees table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
th { background: var(--green-dark); color: #fff; font-weight: 600; }
tbody tr:hover { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--ink); }

/* notices */
.notice { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.notice:last-child { border-bottom: none; }
.notice-date {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 12px; background: var(--green-light);
  display: grid; place-items: center; text-align: center; color: var(--green-dark); line-height: 1.1;
}
.notice-date strong { display: block; font-size: 1.4rem; font-family: var(--head); }
.notice-date span { font-size: .72rem; text-transform: uppercase; }
.notice h4 { font-size: 1.02rem; color: var(--ink); }
.notice:hover h4 { color: var(--green); }

/* events */
.event {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px;
}
.event-date { background: var(--green); color: #fff; border-radius: 12px; padding: 14px; text-align: center; }
.event-date strong { display: block; font-size: 1.7rem; font-family: var(--head); line-height: 1; }
.event-date span { font-size: .74rem; text-transform: uppercase; }
@media (max-width: 700px) { .event { grid-template-columns: 90px 1fr; } .event .btn { grid-column: 1 / -1; } }

/* faq */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--head); font-size: 1.03rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green-light); color: var(--green); display: grid; place-items: center; font-size: 1rem; transition: .3s; }
.faq-item.open .faq-q { color: var(--green); }
.faq-item.open .faq-q span { background: var(--green); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; }

/* testimonials */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.quote-user { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-user img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-user b { display: block; color: var(--ink); }
.quote-user small { color: var(--green); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { border-radius: 16px; overflow: hidden; height: 280px; position: relative; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery a:hover img { transform: scale(1.1); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery a { height: 220px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* CTA strip */
.cta {
  background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff;
  border-radius: 20px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; }
.cta p { color: #cfe6d7; margin-top: 10px; }

/* counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counters div strong { display: block; font-family: var(--head); font-size: 2.6rem; color: var(--green); }
@media (max-width: 700px) { .counters { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .cta, .form-card { padding: 26px; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit;
  font-size: .93rem; color: var(--ink); background: #fff; outline: none; transition: .25s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,63,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field small.err { color: var(--bad); font-size: .78rem; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field.invalid small.err { display: block; }

.alert { padding: 14px 18px; border-radius: 10px; font-size: .9rem; margin-bottom: 18px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #BFE3CC; }
.alert-err { background: var(--bad-bg); color: var(--bad); border: 1px solid #f5c6c1; }
.alert-info { background: #eef4fb; color: #1c4e80; border: 1px solid #cddff0; }

/* ============================================================
   EXAM PORTAL
   ============================================================ */
.portal-shell { background: var(--bg-soft); min-height: 70vh; padding: 50px 0; }
.login-wrap { max-width: 460px; margin: 0 auto; }
.demo-creds { background: #fff; border: 1px dashed var(--green); border-radius: 10px; padding: 14px 18px; font-size: .84rem; margin-top: 18px; }
.demo-creds code { background: var(--green-light); padding: 2px 7px; border-radius: 5px; color: var(--green-dark); font-weight: 600; }

.portal-bar {
  background: var(--green-dark); color: #fff; border-radius: var(--radius);
  padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.portal-bar h2 { color: #fff; font-size: 1.5rem; }
.portal-bar p { color: #cfe6d7; font-size: .9rem; }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 800px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.tile strong { display: block; font-family: var(--head); font-size: 1.9rem; color: var(--green); }
.tile span { font-size: .84rem; }

.exam-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.exam-card .tag { align-self: flex-start; }
.exam-card ul { margin: 16px 0; font-size: .88rem; }
.exam-card ul li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.exam-card ul li b { color: var(--ink); }

/* exam runner */
.exam-head {
  position: sticky; top: 140px; z-index: 50; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 24px; display: flex; justify-content: space-between;
  align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.timer { font-family: var(--head); font-size: 1.5rem; color: var(--green-dark); display: flex; align-items: center; gap: 10px; }
.timer.warn { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.progress-track { height: 8px; background: var(--line); border-radius: 50px; overflow: hidden; width: 100%; margin-top: 12px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--lime)); width: 0; transition: width .3s; }

.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.q-card h4 { font-family: var(--font); font-size: 1.05rem; color: var(--ink); margin-bottom: 18px; display: flex; gap: 12px; }
.q-card h4 .qnum {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--green);
  color: #fff; display: grid; place-items: center; font-size: .85rem;
}
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: .2s; }
.opt:hover { border-color: var(--green); background: var(--green-light); }
.opt input { accent-color: var(--green); width: 17px; height: 17px; cursor: pointer; }
.opt.picked { border-color: var(--green); background: var(--green-light); }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }

/* result */
.score-ring {
  width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px;
  background: conic-gradient(var(--green) calc(var(--pct) * 1%), var(--line) 0);
  position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.score-ring div { position: relative; z-index: 2; text-align: center; }
.score-ring strong { display: block; font-family: var(--head); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.score-ring span { font-size: .82rem; }
.badge-pass { display: inline-block; padding: 8px 22px; border-radius: 50px; font-weight: 700; }
.badge-pass.pass { background: var(--ok-bg); color: var(--ok); }
.badge-pass.fail { background: var(--bad-bg); color: var(--bad); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-darker); color: #a9c8b5; padding: 80px 0 0; margin-top: 0; }
.footer h4 { color: #fff; font-family: var(--font); font-size: 1.05rem; margin-bottom: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .logo-text strong { color: #fff; }
.footer .logo-text small { color: var(--lime); }
.footer ul li { margin-bottom: 11px; font-size: .93rem; }
.footer ul li a:hover { color: var(--lime); padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input { flex: 1; padding: 13px 16px; border-radius: 50px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; outline: none; }
.newsletter input::placeholder { color: #8fae9c; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--lime); color: var(--green-darker); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RSTheme "Univet Green-2" layout match
   ============================================================ */

/* ---- centered hero with decorative shapes ---- */
.hero-center { text-align: center; }
.hero-center .hero-inner { max-width: 900px; margin-inline: auto; }
.hero-center .eyebrow { justify-content: center; }
.hero-center p { margin-inline: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-stats { justify-content: center; }
.hero-shape {
  position: absolute; z-index: 1; opacity: .5; pointer-events: none;
  border-radius: 50%; filter: blur(0.5px);
}
.hero-shape.s1 { width: 220px; height: 220px; left: 4%; top: 18%; background: radial-gradient(circle at 30% 30%, rgba(164,210,51,.55), transparent 70%); }
.hero-shape.s2 { width: 300px; height: 300px; right: 3%; bottom: 8%; background: radial-gradient(circle at 60% 40%, rgba(31,122,63,.6), transparent 70%); }
.hero-icon {
  position: absolute; z-index: 2; font-size: 3rem; opacity: .85;
  animation: float 5s ease-in-out infinite;
}
.hero-icon.i1 { left: 7%; top: 26%; }
.hero-icon.i2 { right: 8%; top: 30%; animation-delay: 1.6s; }
@keyframes float { 50% { transform: translateY(-18px); } }

/* ============================================================
   ABOUT SECTION (photo collage + rotating seal + feature rows)
   ============================================================ */
.about2 { background: var(--white); position: relative; overflow: hidden; }
.about2 .container { position: relative; z-index: 1; }
.about2-grid {
  display: grid; grid-template-columns: 1.02fr 1fr;
  gap: clamp(40px, 5vw, 90px); align-items: center;
}
@media (max-width: 980px) { .about2-grid { grid-template-columns: 1fr; gap: 52px; } }

/* dotted mesh behind the copy column */
.about2-dots {
  position: absolute; right: 0; bottom: 0; width: 42%; height: 62%; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--green) 1.4px, transparent 1.4px);
  background-size: 18px 18px; opacity: .16;
  -webkit-mask-image: linear-gradient(to top left, #000, transparent 62%);
          mask-image: linear-gradient(to top left, #000, transparent 62%);
}
@media (max-width: 980px) { .about2-dots { display: none; } }

/* ---- collage: one tall photo + a stacked pair ---- */
.about2-media { position: relative; padding-left: clamp(0px, 4vw, 74px); }
.about2-collage { display: grid; grid-template-columns: 1.06fr .82fr; gap: 22px; }
.about2-collage .ac { overflow: hidden; border-radius: 4px; box-shadow: var(--shadow-sm); }
.about2-collage .ac img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease;
}
.about2-collage .ac:hover img { transform: scale(1.06); }
.ac-tall { height: 620px; }
.ac-col { display: grid; grid-template-rows: .72fr 1fr; gap: 22px; height: 620px; }
@media (max-width: 1200px) { .ac-tall, .ac-col { height: 500px; } }
@media (max-width: 560px) {
  .about2-collage { grid-template-columns: 1fr; }
  .ac-tall { height: 320px; }
  .ac-col { height: auto; grid-template-rows: 180px 240px; }
}

/* ---- rotating "est." seal ---- */
.about2-seal {
  position: absolute; left: 0; top: 20%; width: 152px; height: 152px; z-index: 2;
  display: grid; place-items: center;
}
.about2-seal .seal-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: sealSpin 22s linear infinite;
}
.about2-seal .seal-ring text {
  font-family: var(--font); font-size: 15px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; fill: var(--ink);
}
.seal-core {
  width: 84px; height: 84px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(15,77,39,.28);
}
.seal-core svg { width: 46px; height: 46px; fill: #fff; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .about2-seal .seal-ring { animation: none; } }
@media (max-width: 1200px) { .about2-seal { width: 120px; height: 120px; } .seal-core { width: 66px; height: 66px; } .seal-core svg { width: 36px; height: 36px; } }
@media (max-width: 980px) { .about2-seal { left: auto; right: 8px; top: -18px; } }
@media (max-width: 560px) { .about2-seal { display: none; } }

/* ---- copy column ---- */
.eyebrow-dash {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px;
  color: var(--green); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .82rem;
}
.eyebrow-dash i { width: 42px; height: 2px; background: var(--green); display: block; }

.about2-text h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.2; margin-bottom: 22px; }
.about2-text > p { max-width: 620px; margin-bottom: 40px; }

.about2-features { display: grid; gap: 26px; margin-bottom: 42px; }
.about2-features li { display: flex; gap: 22px; align-items: flex-start; }
.about2-features .ico {
  flex-shrink: 0; width: 84px; height: 84px; border: 1px solid var(--line);
  display: grid; place-items: center; transition: .3s;
}
.about2-features .ico svg { width: 38px; height: 38px; fill: var(--green); transition: .3s; }
.about2-features li:hover .ico { background: var(--green); border-color: var(--green); }
.about2-features li:hover .ico svg { fill: #fff; }
.about2-features h3 { font-size: 1.3rem; margin-bottom: 6px; }
.about2-features p { font-size: .96rem; max-width: 520px; }
@media (max-width: 560px) {
  .about2-features li { gap: 16px; }
  .about2-features .ico { width: 64px; height: 64px; }
  .about2-features .ico svg { width: 30px; height: 30px; }
}

.about2-cta { display: inline-flex; align-items: center; gap: 12px; border-radius: 50px; padding: 16px 34px; }
.about2-cta svg { width: 20px; height: 20px; fill: currentColor; transition: transform .3s; }
.about2-cta:hover svg { transform: translateX(5px); }

/* ---- program cards (inset photo + rating + meta footer) ---- */
.program-card {
  text-align: left; border-radius: 10px; padding: 14px;
  background: transparent; border: 1px solid #e3e6e4;
}
.program-card:hover { border-color: #cfd6d1; box-shadow: none; }
.program-card .card-img { height: 200px; border-radius: 6px; position: relative; }
.program-card .card-body { padding: 22px 10px 8px; }
.program-card h3 { font-size: clamp(1.18rem, 1.4vw, 1.4rem); margin-bottom: 10px; }
.program-card > .card-body > p { font-size: .95rem; }

/* level badge floating on the photo */
.program-card .tag {
  position: absolute; top: 14px; right: 14px; margin: 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green); color: #fff;
}
.program-card .tag svg { width: 13px; height: 13px; fill: currentColor; }

/* star rating */
.rating { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; line-height: 1; }
.rating .stars {
  display: inline-block; font-size: 1.05rem; letter-spacing: 1px; line-height: 1;
  margin-right: -1px; /* cancel the trailing letter-space after the last star */
  background: linear-gradient(90deg, var(--accent) var(--rate, 100%), #d7e2db var(--rate, 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating em { font-style: normal; font-size: .92rem; line-height: 1; color: var(--body); }

/* footer meta row: language · duration · Discover */
.program-card .card-meta { align-items: center; gap: 16px; margin-top: 20px; padding-top: 18px; flex-wrap: wrap; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.meta-item svg { width: 16px; height: 16px; fill: var(--green); flex-shrink: 0; }
.program-card .card-meta .btn { margin-top: 0; margin-left: auto; }
.program-card .card-meta .btn svg { width: 15px; height: 15px; fill: currentColor; transition: transform .3s; }
.program-card .card-meta .btn:hover svg { transform: translateX(4px); }
@media (max-width: 1280px) {
  .program-card .card-meta { gap: 12px; }
  .program-card .card-meta .btn { margin-left: 0; width: 100%; justify-content: center; }
}
.admission-counter {
  display: inline-flex; align-items: center; gap: 14px; background: var(--green-light);
  border: 1px dashed var(--green); border-radius: 50px; padding: 10px 26px; margin-bottom: 22px;
}
.admission-counter strong { font-family: var(--head); font-size: 1rem; color: var(--green-dark); }

/* ============================================================
   ADMISSIONS OPEN (white form panel over a campus photo)
   ============================================================ */
.admissions-open {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 110px) 0;
  background:
    url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1900&q=80")
      center / cover no-repeat;
}
/* light wash so the photo stays visible but the panel edge still reads */
.admissions-open::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 58, 29, .28), rgba(10, 58, 29, .06));
}
.admissions-open .container { position: relative; z-index: 1; }

.ao-panel {
  background: #fff; max-width: 760px;
  padding: clamp(30px, 3.4vw, 58px);
  box-shadow: 0 30px 70px rgba(10, 58, 29, .20);
}
.ao-panel h2 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); line-height: 1.22; margin-bottom: 18px; }
.ao-panel > p { margin-bottom: 32px; }
.ao-panel .field textarea { min-height: 96px; }

.ao-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.ao-actions .btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .3s; }
.ao-actions .btn:hover svg { transform: translateX(4px); }
@media (max-width: 480px) { .ao-actions .btn { width: 100%; justify-content: center; } }

/* ---- faculty cards (4 across, boxed) ---- */
.faculty-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px;
  text-align: center; transition: .3s; position: relative; overflow: hidden;
}
.faculty-card::before {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 160px; border-radius: 50%;
  background: var(--green-light); transition: .35s; z-index: 0;
}
.faculty-card > * { position: relative; z-index: 1; }
.faculty-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-8px); }
.faculty-card:hover::before { background: var(--green); inset: auto -30% -20% -30%; }
.faculty-card:hover h3, .faculty-card:hover p, .faculty-card:hover .fac-link { color: #fff; }
.faculty-card .fac-icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 1.8rem;
}
.faculty-card:hover .fac-icon { background: var(--lime); color: var(--green-darker); }
.fac-link { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-weight: 700; font-size: .88rem; margin-top: 16px; }

/* ---- tuition: image left + 3 fee columns ---- */
.tuition-wrap { display: grid; grid-template-columns: 0.85fr 1.6fr; gap: 50px; align-items: center; }
@media (max-width: 1000px) { .tuition-wrap { grid-template-columns: 1fr; } }
.tuition-img { border-radius: 20px; overflow: hidden; position: relative; }
.tuition-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.fee-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .fee-cols { grid-template-columns: 1fr; } }
.fee-col { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; transition: .3s; }
.fee-col:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.fee-col h3 { padding-bottom: 14px; border-bottom: 2px solid var(--green-light); margin-bottom: 8px; }
.fee-col ul li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.fee-col ul li:last-child { border-bottom: none; }
.fee-col ul li b { color: var(--green); white-space: nowrap; }

/* ---- campus life: notices + photo collage ---- */
.campus-collage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 175px; gap: 14px; }
.campus-collage a { border-radius: 16px; overflow: hidden; }
.campus-collage a:first-child { grid-row: span 2; }
.campus-collage img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.campus-collage a:hover img { transform: scale(1.08); }

/* ---- event cards (corner date block + meta row + Read More) ---- */
.event-card {
  background: #fff; border: 1px solid #e3e6e4; border-radius: 4px;
  overflow: hidden; transition: .3s; display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: #cfd6d1; }
.event-card .card-img { height: 235px; position: relative; }

/* two-tone date block hanging off the top-left of the photo */
.event-card .date-chip {
  position: absolute; top: 0; left: 26px; min-width: 80px; text-align: center;
  line-height: 1; box-shadow: 0 8px 20px rgba(15,77,39,.22); z-index: 1;
}
.event-card .date-chip strong {
  display: block; background: var(--green); color: #fff;
  font-family: var(--head); font-size: 1.9rem; padding: 14px 14px 12px;
}
.event-card .date-chip > span {
  display: block; background: #fff; color: var(--ink);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 12px;
}

.event-card .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.event-meta > span { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.event-meta svg { width: 15px; height: 15px; fill: var(--green); flex-shrink: 0; }
.event-card h3 { font-size: clamp(1.15rem, 1.35vw, 1.35rem); line-height: 1.32; margin-bottom: 10px; }
.event-card .card-body p { font-size: .95rem; margin-bottom: 22px; }
.event-card .btn { align-self: flex-start; margin-top: auto; }
.event-card .btn svg { width: 16px; height: 16px; fill: currentColor; transition: transform .3s; }
.event-card .btn:hover svg { transform: translateX(4px); }

/* ---- FAQ centered single column ---- */
.faq-narrow { max-width: 900px; margin-inline: auto; }

/* ---- blog cards with author row ---- */
.blog-card .card-body { padding: 24px; }
.blog-card .blog-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.blog-card .blog-top .tag { margin: 0; }
.blog-card .blog-top time { font-size: .82rem; }
.blog-author { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; }
.blog-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ---- testimonial shape ---- */
.quote { position: relative; border-radius: 18px; }
.quote::before {
  content: "”"; position: absolute; right: 24px; top: 6px; font-family: var(--head);
  font-size: 4.5rem; color: var(--green-light); line-height: 1;
}

/* ---- section decorative background shapes ---- */
.section { position: relative; overflow: hidden; }
.section .blob {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(164,210,51,.18), transparent 70%);
}
.section .blob.b2 { width: 420px; height: 420px; right: -140px; bottom: -140px; background: radial-gradient(circle, rgba(31,122,63,.12), transparent 70%); }
.section .container { position: relative; z-index: 1; }

/* ---- store badges in footer ---- */
.store-badges { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.store-badges a {
  display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 8px 16px; color: #fff; font-size: .78rem; line-height: 1.2;
}
.store-badges a:hover { background: var(--lime); color: var(--green-darker); border-color: var(--lime); }
.store-badges b { display: block; font-size: .92rem; }

.hide { display: none !important; }

/* ============================================================
   RESPONSIVE LAYER
   large screens → ultrawide → laptop → tablet → phone
   (component-level breakpoints live with their components above)
   ============================================================ */

/* ---------- wide / ultrawide: scale content up with the viewport ---------- */
@media (min-width: 1600px) {
  body { font-size: 17px; }
  .section { padding: 110px 0; }
  .grid { gap: 32px; }
  .card-img { height: 260px; }
  .gallery a { height: 250px; }
  .hero { min-height: 760px; }
  .about-grid { gap: 80px; }
  .ac-tall, .ac-col { height: 700px; }
  .program-card .card-img { height: 230px; }
  .ao-panel { max-width: 860px; }
  .event-card .card-img { height: 230px; }
  .campus-collage { grid-auto-rows: 205px; }
}
@media (min-width: 2100px) {
  .card-img { height: 320px; }
  .gallery a { height: 310px; }
  .hero { min-height: 840px; }
  .hero-slider { min-height: 860px; }
  .ac-tall, .ac-col { height: 820px; }
  .campus-collage { grid-auto-rows: 250px; }
}

/* ---------- laptops ---------- */
@media (max-width: 1200px) {
  .sec-head { margin-bottom: 40px; }
}

/* ---------- tablets ---------- */
@media (max-width: 1024px) {
  .section { padding: clamp(54px, 7vw, 90px) 0; }
  .hero-slider .container { padding-block: 84px; }
  .tuition-img img { min-height: 300px; }
  .exam-head { top: 96px; }          /* header is shorter once the menus collapse */
  .cta { padding: 38px; }
}

/* ---------- large phones / small tablets ---------- */
@media (max-width: 900px) {
  .hero-slider { min-height: 520px; }
  .hero-slider p { font-size: 1rem; }
  .hero-slider .hero-stats { margin-top: 34px; gap: 26px; }
  .campus-collage { grid-auto-rows: 150px; }
  .faculty-row { flex-wrap: wrap; padding: 22px; gap: 16px; }
  .faculty-row:hover { transform: none; }
  .faculty-num { width: auto; }
  .portal-bar { padding: 20px; }
  .search-box form { flex-direction: column; }
  .search-box .btn { justify-content: center; }
  .quote { padding: 26px; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .sec-head { margin-bottom: 30px; }
  .btn { padding: 13px 22px; }
  /* iOS zooms the page when a focused control is under 16px */
  .field input, .field select, .field textarea,
  .newsletter input, .search-box input { font-size: 16px; }

  .hero-slider { min-height: 460px; }
  .hero-slider .container { padding-block: 60px; }
  .hero-slider .hero-actions .btn { width: 100%; justify-content: center; }
  .slider-dots { bottom: 20px; }
  .slider-nav { width: 38px; height: 42px; }

  .notice { gap: 14px; padding: 16px 0; }
  .notice-date { width: 56px; height: 56px; }
  .notice-date strong { font-size: 1.15rem; }
  .campus-collage { grid-auto-rows: 118px; gap: 10px; }

  .event-card .card-img { height: 180px; }
  .faculty-card { padding: 28px 22px; }
  .fee-col { padding: 24px 20px; }
  .faq-q { padding: 16px 18px; font-size: .98rem; }
  .faq-a p { padding: 0 18px 18px; }
  .cta { padding: 28px; border-radius: 16px; }

  .q-card { padding: 20px; }
  .exam-head { position: static; padding: 16px 18px; }
  .score-ring { width: 150px; height: 150px; }
  .score-ring strong { font-size: 2rem; }

  .footer { padding-top: 54px; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .store-badges a { flex: 1; }
}

/* ---------- small phones ---------- */
@media (max-width: 400px) {
  .container { padding-inline: 14px; }
  .topbar-links { flex-wrap: wrap; justify-content: center; }
  .topbar-links li:nth-child(n+3) { display: none; }
  .slider-nav { display: none; }
  .campus-collage { grid-template-columns: 1fr; grid-auto-rows: 150px; }
  .campus-collage a:first-child { grid-row: auto; }
  .counters { grid-template-columns: 1fr; }
}

/* ---------- touch devices: drop hover-only lifts ---------- */
@media (hover: none) {
  .card:hover, .faculty-card:hover, .fee-col:hover,
  .event-card:hover, .program-card:hover { transform: none; }
  .gallery a:hover img, .campus-collage a:hover img,
  .about2-collage .ac:hover img, .card:hover .card-img img { transform: none; }
}


