/* ============================================
   KPS COLLEGE – styles.css
   Mobile-first, professional UI
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --green-900: #073a25;
  --green-800: #0b5d3b;
  --green-700: #117a4d;
  --green-600: #1aa066;
  --green-50:  #e7f6ee;

  --gold-500: #d4a017;
  --gold-400: #e6b833;
  --gold-300: #f1d27a;

  --orange-500: #ff7a18;
  --orange-600: #f06400;

  --ink-900: #0c1418;
  --ink-700: #2b3a40;
  --ink-500: #5a6a72;
  --ink-300: #98a4ab;
  --ink-100: #eef2f4;

  --white: #ffffff;
  --bg: #f7faf8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 14px rgba(11, 93, 59, 0.08);
  --shadow-md: 0 12px 32px rgba(11, 93, 59, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 93, 59, 0.18);

  --ease: cubic-bezier(.2,.7,.2,1);
  --grad-green: linear-gradient(135deg, #0b5d3b 0%, #117a4d 60%, #1aa066 100%);
  --grad-gold:  linear-gradient(135deg, #d4a017 0%, #f1d27a 50%, #d4a017 100%);
  --grad-hero:  linear-gradient(135deg, #073a25 0%, #0b5d3b 50%, #117a4d 100%);
}

/* ---------- Reset / Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: all .25s var(--ease); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; color: var(--ink-900); line-height: 1.2; font-weight: 800; }

.accent { color: var(--gold-500); }
.accent-light { color: var(--gold-300); }
.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .2px;
  transition: all .3s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn { cursor: pointer; position: relative; z-index: 2; }
.btn-primary {
  background: var(--grad-green);
  color: var(--white) !important;
  box-shadow: 0 10px 26px rgba(17, 122, 77, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(17,122,77,.45); color: var(--white) !important; }
.btn-primary i { color: var(--white); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
  color: var(--white) !important;
  box-shadow: 0 10px 26px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1ebe57 0%, #169c47 100%);
  box-shadow: 0 16px 36px rgba(37,211,102,.5);
  color: var(--white) !important;
}
.full-btn { width: 100%; justify-content: center; padding: 15px; }

/* ---------- Top Strip ---------- */
.top-strip {
  background: var(--green-900);
  color: #cdeadd;
  font-size: 13px;
  padding: 8px 0;
}
.top-strip a { color: #e8f8ef; }
.top-strip a:hover { color: var(--gold-300); }
.top-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ts-left { display: flex; gap: 18px; flex-wrap: wrap; }
.ts-left span { display: inline-flex; align-items: center; gap: 6px; }
.ts-right { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ts-right a {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #e8f8ef;
  transition: all .25s var(--ease);
}
.ts-right a:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-2px); }
.ts-right a svg { width: 15px; height: 15px; display: block; }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline-flex; } }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(11,93,59,.08);
  transition: all .3s var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: white; padding: 4px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 20px; color: var(--green-800); letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: var(--ink-500); font-weight: 500; letter-spacing: .5px; }

.nav-links {
  position: fixed;
  top: 0; right: -100%;
  height: 100vh; width: 82%;
  max-width: 340px;
  background: var(--white);
  padding: 90px 28px 30px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transition: right .4s var(--ease);
  z-index: 99;
}
.nav-links.open { right: 0; }
.nav-links a {
  padding: 12px 16px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 10px;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { background: var(--green-50); color: var(--green-800); }
.nav-links a.nav-cta {
  background: var(--grad-green) !important;
  color: var(--white) !important;
  margin-top: 10px; text-align: center;
  box-shadow: 0 8px 20px rgba(17,122,77,.35);
}
.nav-links a.nav-cta:hover {
  background: linear-gradient(135deg, #073a25 0%, #0b5d3b 50%, #0e6c44 100%) !important;
  color: var(--gold-300) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7,58,37,.5);
}
.nav-links a.nav-cta.active { color: var(--white) !important; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  width: 26px; height: 3px; background: var(--green-800); border-radius: 3px;
  transition: all .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 1024px) {
  .hamburger { display: none; }
  .nav-links {
    position: static; height: auto; width: auto; max-width: none;
    background: transparent; padding: 0;
    flex-direction: row; align-items: center; gap: 4px;
    box-shadow: none;
  }
  .nav-links a { padding: 10px 14px; font-size: 14.5px; }
  .nav-cta { margin-top: 0; margin-left: 6px; padding: 11px 22px !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 60px 0 80px;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212,160,23,.22), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(26,160,102,.35), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.04), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(7,58,37,.4)); z-index: 1; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: center;
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.badge-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
  70% { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero-title {
  font-size: clamp(34px, 7vw, 64px);
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: -.5px;
}
.hero-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  max-width: 520px;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  color: var(--gold-300);
  line-height: 1;
}
.stat-num small { font-size: 13px; color: rgba(255,255,255,.7); margin-left: 2px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 6px; font-weight: 500; letter-spacing: .4px; }

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  width: 100%;
  cursor: zoom-in;
}
.hero-card::after {
  content: "\f00e"; /* search-plus icon */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.55);
  color: #fff; font-size: 15px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.7);
  transition: all .35s var(--ease);
  pointer-events: none;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.hero-card:hover::after { opacity: 1; transform: scale(1); }
.hero-card:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-6px) scale(1.03);
  box-shadow: 0 32px 70px rgba(0,0,0,.4);
}
.hero-card img {
  width: 100%; height: auto; display: block; object-fit: cover;
  transition: transform .6s var(--ease);
}
.hero-card:hover img { transform: scale(1.06); }
.hero-card-glow {
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--gold-400), transparent 50%, var(--green-600));
  border-radius: var(--radius-lg);
  z-index: -1; filter: blur(24px); opacity: .55;
}

.scroll-down {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px;
  display: none; z-index: 3;
}
.scroll-down span {
  display: block; width: 4px; height: 8px;
  background: white; border-radius: 2px;
  margin: 8px auto;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
@media (min-width: 768px) { .scroll-down { display: block; } }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .hero { padding: 80px 0 120px; }
}
@media (min-width: 1280px) {
  .hero-inner { grid-template-columns: 1fr 1.2fr; gap: 64px; }
}

/* ---------- Lightbox (image zoom) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,20,12,.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  transform: scale(.92);
  transition: transform .35s var(--ease);
}
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-inner img {
  max-width: 100%; max-height: 92vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -18px; right: -18px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--green-900);
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  cursor: pointer;
  transition: all .25s var(--ease);
  border: none;
}
.lightbox-close:hover { background: var(--gold-500); color: #fff; transform: rotate(90deg) scale(1.08); }
@media (max-width: 640px) {
  .lightbox-close { top: -14px; right: 6px; width: 38px; height: 38px; font-size: 16px; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold-500);
  color: var(--ink-900);
  overflow: hidden;
  border-top: 3px solid var(--green-800);
  border-bottom: 3px solid var(--green-800);
  padding: 12px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
  font-weight: 600;
  font-size: 14px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; }
.marquee-track i { color: var(--green-800); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section Defaults ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 90px 0; } }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--green-700);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--green-50);
  border-radius: 999px;
}
.eyebrow.light { background: rgba(255,255,255,.12); color: var(--gold-300); border: 1px solid rgba(255,255,255,.2); }
.section-head h2 { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: 12px; }
.section-head .lead { color: var(--ink-500); font-size: clamp(14.5px, 2vw, 16.5px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.about-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .8s var(--ease); }
.about-img:hover img { transform: scale(1.06); }
.float-card {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,.95);
  padding: 12px 16px; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.float-card i {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--grad-gold); color: white; border-radius: 12px;
  font-size: 18px;
}
.float-card strong { color: var(--green-800); display: block; font-size: 14px; font-family: 'Poppins'; }
.float-card small { color: var(--ink-500); font-size: 11.5px; }

.mini-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.mini-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid rgba(11,93,59,.08);
  transition: all .35s var(--ease);
}
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-600); }
.mini-card i {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
  border-radius: 14px; font-size: 20px;
  margin-bottom: 12px;
  transition: all .35s var(--ease);
}
.mini-card:hover i { background: var(--grad-green); color: white; transform: rotate(-8deg) scale(1.05); }
.mini-card h4 { font-size: 18px; margin-bottom: 8px; }
.mini-card p { font-size: 14px; color: var(--ink-500); }

@media (min-width: 768px) {
  .mini-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
}

/* ---------- Courses ---------- */
.courses { background: linear-gradient(180deg, var(--bg) 0%, #eaf3ec 100%); }
.course-cards {
  display: grid; grid-template-columns: 1fr;
  gap: 22px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}
.course-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,93,59,.08);
  transition: all .35s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad-green);
}
.course-card.ba::before { background: var(--grad-gold); }
.course-card.foundation::before { background: linear-gradient(135deg, #ff7a18, #d6336c); }

.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.course-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.course-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--grad-green); color: white;
  border-radius: 18px; font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(17,122,77,.3);
}
.course-card.ba .course-icon { background: var(--grad-gold); box-shadow: 0 10px 24px rgba(212,160,23,.35); }
.course-card.foundation .course-icon { background: linear-gradient(135deg, #ff7a18, #d6336c); box-shadow: 0 10px 24px rgba(255,122,24,.35); }

.course-head h3 { font-size: 28px; color: var(--green-800); line-height: 1; }
.course-head span { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.course-desc { font-size: 14.5px; color: var(--ink-500); margin-bottom: 18px; }

.subjects {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  margin-bottom: 22px;
}
.subjects li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-700); font-weight: 500;
  padding: 6px 0;
}
.subjects li i { color: var(--green-600); font-size: 13px; width: 16px; text-align: center; }
.course-card.ba .subjects li i { color: var(--gold-500); }
.course-card.foundation .subjects li i { color: var(--orange-500); }

.course-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--green-50); color: var(--green-800);
  font-weight: 600; font-size: 14px;
  transition: all .3s var(--ease);
  margin-top: auto;
  align-self: flex-start;
}
.course-btn:hover { background: var(--grad-green); color: white; gap: 12px; transform: translateX(2px); }
.course-card.ba .course-btn { background: #fdf4d8; color: #946700; }
.course-card.ba .course-btn:hover { background: var(--grad-gold); color: var(--ink-900); }
.course-card.foundation .course-btn { background: #ffe9d6; color: #b54600; }
.course-card.foundation .course-btn:hover { background: linear-gradient(135deg, #ff7a18, #d6336c); color: white; }

@media (min-width: 768px) {
  .course-cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.feature {
  background: var(--white);
  padding: 22px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(11,93,59,.08);
  transition: all .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.f-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--grad-green); color: white;
  border-radius: 16px; font-size: 22px;
  margin: 0 auto 12px;
  transition: all .35s var(--ease);
}
.feature:hover .f-icon { transform: rotate(-8deg) scale(1.06); background: var(--grad-gold); color: var(--ink-900); }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p  { font-size: 13.5px; color: var(--ink-500); }

@media (min-width: 768px)  { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } .feature { padding: 28px 22px; } .feature h4 { font-size: 17px; } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.g-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.1); }
.g-cap {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0,0,0,.55);
  color: white; font-size: 12.5px;
  padding: 7px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px;
}

@media (min-width: 768px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .g-item.big { grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- Campus Carousel ---------- */
.carousel { position: relative; cursor: default; }
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel:hover .carousel-slide.active img { transform: none; }
/* Override default .g-item:hover scaling for carousel images */
.carousel:hover img { transform: none; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--green-800);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: all .3s var(--ease);
  border: none;
}
.carousel-arrow svg { width: 20px; height: 20px; display: block; }
.carousel-arrow.prev { left: 14px; transform: translate(-6px, -50%); }
.carousel-arrow.next { right: 14px; transform: translate(6px, -50%); }
.carousel:hover .carousel-arrow,
.carousel:focus-within .carousel-arrow {
  opacity: 1;
  transform: translateY(-50%);
}
.carousel-arrow:hover {
  background: var(--grad-green);
  color: #fff;
  transform: translateY(-50%) scale(1.08) !important;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 4;
  padding: 6px 10px;
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s var(--ease);
}
.carousel-dot:hover { background: rgba(255,255,255,.85); }
.carousel-dot.active {
  background: var(--gold-400);
  width: 22px;
  border-radius: 4px;
}

/* Place caption above dots */
.carousel .g-cap {
  z-index: 4;
  left: 14px;
  bottom: 14px;
}

/* On mobile, give carousel a defined height since .big loses aspect-auto */
@media (max-width: 767px) {
  .carousel { aspect-ratio: 16/10; }
  .carousel-arrow { width: 36px; height: 36px; opacity: 1; }
  .carousel-arrow svg { width: 18px; height: 18px; }
  .carousel .g-cap { bottom: 44px; }
}

/* Touch devices: always show arrows */
@media (hover: none) {
  .carousel-arrow { opacity: 1; }
}


/* ---------- Admission ---------- */
.admission {
  background: var(--grad-hero);
  color: white;
  position: relative;
  overflow: hidden;
}
.admission::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(212,160,23,.18), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(26,160,102,.25), transparent 45%);
}
.adm-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 36px; }
.adm-info h2 { color: white; font-size: clamp(28px, 4.6vw, 42px); margin: 8px 0 14px; }
.adm-info > p { color: rgba(255,255,255,.85); font-size: 15.5px; margin-bottom: 22px; }
.adm-points { display: grid; gap: 12px; margin-bottom: 28px; }
.adm-points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.95); }
.adm-points i { width: 26px; height: 26px; display: grid; place-items: center; background: var(--gold-500); color: white; border-radius: 50%; font-size: 11px; flex-shrink: 0; }
.adm-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.adm-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  color: var(--ink-700);
}
.adm-form h3 { font-size: 24px; color: var(--green-800); margin-bottom: 4px; }
.form-sub { font-size: 13.5px; color: var(--ink-500); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.form-field { position: relative; }
.form-field i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--green-700); font-size: 14px;
}
.form-field textarea + i, .form-field i.fa-message { top: 18px; transform: none; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px 13px 40px;
  font-family: inherit; font-size: 14.5px; color: var(--ink-700);
  background: #f5faf6;
  border: 1.5px solid #e2ece5;
  border-radius: 12px;
  transition: all .25s var(--ease);
  outline: none;
}
.form-field textarea { resize: vertical; padding-top: 14px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--green-600); background: white;
  box-shadow: 0 0 0 4px rgba(26,160,102,.12);
}
.form-field.full { margin-bottom: 12px; }
.form-success {
  margin-top: 14px; padding: 12px; border-radius: 10px;
  background: #e6f9ec; color: #0e7a3c; font-size: 14px; font-weight: 600;
  display: none; text-align: center;
}
.form-success.show { display: block; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .adm-grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .adm-form { padding: 36px 32px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(11,93,59,.08);
  transition: all .35s var(--ease);
}
.c-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.c-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--grad-green); color: white;
  border-radius: 14px; font-size: 20px;
  margin: 0 auto 10px;
}
.c-card h4 { font-size: 16px; color: var(--green-800); margin-bottom: 6px; }
.c-card p  { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }
.c-card a:hover { color: var(--green-700); }

.map-wrap {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid white;
}
.map-wrap iframe { width: 100%; height: 100%; display: block; }
.map-btn {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-green); color: white;
  padding: 11px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13.5px;
  box-shadow: 0 14px 30px rgba(11,93,59,.35);
}
.map-btn:hover { transform: translateX(-50%) translateY(-3px); }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.1fr 1.4fr; gap: 36px; align-items: stretch; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .map-wrap { height: auto; min-height: 500px; }
}

/* ---------- Footer ---------- */
.footer {
  background: #051d12;
  color: rgba(255,255,255,.75);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.brand-footer img { background: white; }
.brand-footer .brand-title { color: white; }
.brand-footer .brand-sub { color: rgba(255,255,255,.6); }
.brand-col p { font-size: 13.5px; color: rgba(255,255,255,.6); margin: 14px 0; }

.f-socials { display: flex; gap: 10px; }
.f-socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: white; font-size: 14px;
  transition: all .3s var(--ease);
}
.f-socials a:hover { background: var(--grad-green); transform: translateY(-3px); }
.f-socials a svg { width: 16px; height: 16px; display: block; }

.f-col h5 {
  color: white; font-family: 'Poppins'; font-size: 15px; font-weight: 700;
  letter-spacing: .4px; margin-bottom: 16px; position: relative; padding-bottom: 10px;
}
.f-col h5::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; background: var(--gold-500); border-radius: 2px;
}
.f-col ul li { margin-bottom: 10px; font-size: 13.5px; }
.f-col ul li a { color: rgba(255,255,255,.7); }
.f-col ul li a:hover { color: var(--gold-300); padding-left: 4px; }

.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact li i { color: var(--gold-500); margin-top: 4px; flex-shrink: 0; }
.f-contact li a { color: rgba(255,255,255,.7); }

.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
.copy-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (min-width: 768px)  { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } .brand-col { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 40px; } .brand-col { grid-column: auto; } }

/* ---------- Floating Buttons ---------- */
.fab {
  position: fixed;
  right: 18px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: white; font-size: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  z-index: 90;
  transition: all .3s var(--ease);
}
.whatsapp-fab { bottom: 84px; background: #25d366; }
.whatsapp-fab::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.call-fab { bottom: 18px; background: var(--grad-green); }
.fab:hover { transform: scale(1.08); }

.to-top {
  position: fixed;
  left: 18px; bottom: 18px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--green-800); color: white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: all .3s var(--ease);
  z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--green-700); }

/* ---------- Selection ---------- */
::selection { background: var(--gold-400); color: var(--ink-900); }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
