/* ---------- Color System ---------- */

:root {
  --bg: #f3f4ff;
  --bg-alt: #ecfdf3;
  --card-bg: #ffffff;
  --accent: #22c55e;         /* green */
  --accent-2: #3b82f6;       /* blue */
  --accent-soft: rgba(34, 197, 94, 0.13);
  --accent-soft-blue: rgba(59, 130, 246, 0.12);
  --text: #0f172a;
  --text-soft: #4b5563;
  --border-subtle: rgba(148, 163, 184, 0.5);
  --radius-lg: 1.4rem;
  --radius-md: 0.9rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --max-width: 1120px;
  --transition-fast: 0.18s ease-out;
}

body[data-theme="dark"] {
  --bg: #020617;
  --bg-alt: #020617;
  --card-bg: #020617;
  --accent: #22c55e;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 197, 94, 0.25);
  --accent-soft-blue: rgba(59, 130, 246, 0.22);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(55, 65, 81, 0.9);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.16), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.16), transparent 55%),
    linear-gradient(180deg, #ffffff, #e0f2fe);
  color: var(--text);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.3), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.3), transparent 55%),
    linear-gradient(180deg, #020617, #020617);
}

/* ---------- Splash Screen ---------- */

.splash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.3), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.3), transparent 60%),
    #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-inner {
  text-align: center;
  color: #e5e7eb;
  animation: splash-pop 1.3s ease-out forwards;
}

.splash-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 2px solid rgba(249, 250, 251, 0.7);
  overflow: hidden;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.splash-logo-circle img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.splash-text-main {
  font-size: 1.1rem;
  font-weight: 600;
}

.splash-text-sub {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

@keyframes splash-pop {
  from {
    transform: translateY(10px) scale(0.94);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 197, 94, 0.08), transparent 60%),
    linear-gradient(180deg, #f9fafb, #ecfdf3);
}

body[data-theme="dark"] .section-alt {
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 197, 94, 0.2), transparent 60%),
    linear-gradient(180deg, #020617, #020617);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
  color: #020617;
}

body[data-theme="dark"] .section-title {
  color: #f9fafb;
}

.section-title-sm {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #020617;
}

body[data-theme="dark"] .section-title-sm {
  color: #e5e7eb;
}

.section-subtitle {
  margin: 0 0 2.2rem;
  color: var(--text-soft);
  max-width: 36rem;
}

.syllab-subtitle {
  margin-top: 2.2rem;
}

/* grids */

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* ---------- Buttons & Links ---------- */

.btn,
.btn-link,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast),
    color var(--transition-fast), border-color var(--transition-fast);
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.35);
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text);
}

body[data-theme="dark"] .btn-ghost {
  background: #020617;
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: #ecfdf3;
  border-color: var(--accent);
}

body[data-theme="dark"] .btn-ghost:hover {
  background: rgba(34, 197, 94, 0.15);
}

.btn-link {
  background: transparent;
  color: var(--accent-2);
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1;
}

.btn-link::after {
  content: " ↗";
  font-size: 0.9em;
}

.btn-link:hover {
  color: #1d4ed8;
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.link-inline {
  color: var(--accent-2);
  text-decoration: none;
}

.link-inline:hover {
  text-decoration: underline;
}

/* ---------- Navbar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

body[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(31, 41, 55, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #020617;
}

body[data-theme="dark"] .nav-logo {
  color: #f9fafb;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(34, 197, 94, 0.6);
  background: #ffffff;
}

.nav-logo-text {
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.93rem;
  padding: 0.2rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dark mode toggle button */

.theme-toggle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s ease-out, transform 0.18s ease-out,
    border-color 0.18s ease-out;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: #ecfdf3;
  border-color: var(--accent);
}

body[data-theme="dark"] .theme-toggle {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

/* mobile nav toggle */

.nav-toggle {
  display: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.18rem;
  cursor: pointer;
}

body[data-theme="dark"] .nav-toggle {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
}

.nav-toggle span {
  width: 1.25rem;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

body[data-theme="dark"] .nav-toggle span {
  background: #e5e7eb;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #ecfdf3;
  border: 1px solid rgba(74, 222, 128, 0.6);
  margin-bottom: 0.85rem;
  color: #166534;
}

body[data-theme="dark"] .hero-badge {
  background: rgba(22, 163, 74, 0.15);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35);
}

.hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  margin: 0 0 0.6rem;
  color: #020617;
}

body[data-theme="dark"] .hero h1 {
  color: #f9fafb;
}

.hero-text p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-meta span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
}

body[data-theme="dark"] .hero-meta span {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
}

/* floating images */

.hero-float {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.18;
  border-radius: 999px;
  object-fit: cover;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.25));
}

.hero-float-1 {
  top: -18px;
  right: 12%;
  animation: float1 14s ease-in-out infinite;
}

.hero-float-2 {
  top: 40px;
  left: -32px;
  width: 70px;
  height: 70px;
  animation: float2 18s ease-in-out infinite;
}

.hero-float-3 {
  top: 140px;
  right: -30px;
  width: 90px;
  height: 90px;
  animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(24px) translateX(10px) rotate(6deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

@keyframes float2 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-18px) translateX(12px) rotate(-8deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

@keyframes float3 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(20px) translateX(-8px) rotate(10deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* hero side card */

.hero-card {
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(34, 197, 94, 0.18), transparent 60%),
    #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(191, 219, 254, 0.9);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body[data-theme="dark"] .hero-card {
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(34, 197, 94, 0.35), transparent 60%),
    #020617;
  border-color: rgba(55, 65, 81, 0.9);
}

.hero-announcement {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #fffbeb;
  border: 1px solid #facc15;
}

body[data-theme="dark"] .hero-announcement {
  background: rgba(254, 243, 199, 0.05);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pill-live {
  background: #f97316;
  color: white;
}

.hero-announcement p {
  margin: 0.45rem 0 0.3rem;
  color: #92400e;
}

body[data-theme="dark"] .hero-announcement p {
  color: #fed7aa;
}

.hero-highlight h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.hero-highlight ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-highlight li + li {
  margin-top: 0.3rem;
}

/* ---------- Cards ---------- */

.card {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast);
}

body[data-theme="dark"] .card {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
  border-color: rgba(55, 65, 81, 0.9);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.18),
    rgba(59, 130, 246, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  color: #111827;
}

body[data-theme="dark"] .card h3 {
  color: #f9fafb;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  border-color: rgba(59, 130, 246, 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card-link {
  border-radius: 1.2rem;
}

.card-subject {
  border-left: 4px solid rgba(34, 197, 94, 0.9);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-card {
  background:
    linear-gradient(135deg, #ffffff, #ecfdf3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(187, 247, 208, 0.9);
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .about-card {
  background:
    linear-gradient(135deg, #020617, #022c22);
  border-color: rgba(34, 197, 94, 0.4);
}

.about-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.about-card p + p {
  margin-top: 0.65rem;
}

.avatar-circle {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ecfdf5;
  margin-bottom: 0.8rem;
}

.bullet-list {
  padding-left: 1.1rem;
  margin: 0.4rem 0 1.1rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.bullet-list li + li {
  margin-top: 0.35rem;
}

.bullet-list.small {
  font-size: 0.9rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-item {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: #ecfdf3;
  border: 1px solid rgba(34, 197, 94, 0.3);
  min-width: 7rem;
}

body[data-theme="dark"] .stat-item {
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(34, 197, 94, 0.6);
}

.stat-value {
  display: block;
  font-weight: 600;
  font-size: 1.15rem;
  color: #15803d;
}

body[data-theme="dark"] .stat-value {
  color: #4ade80;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ---------- Admission ---------- */

.admission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
}

.admission-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), #ffffff);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .admission-card {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.2), #020617);
  border-color: rgba(55, 65, 81, 0.9);
}

.admission-card p {
  color: var(--text-soft);
}

/* ---------- Video (thumbnails) ---------- */

.video-card .video-thumbnail {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  margin: 0.75rem 0 0.85rem;
  background: #000000;
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-out;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.3),
    rgba(15, 23, 42, 0.7)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #f9fafb;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
  transition: background 0.3s ease-out;
}

.video-play-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.video-thumb-text {
  font-weight: 500;
}

.video-thumbnail:hover img {
  transform: scale(1.03);
}

.video-thumbnail:hover .video-thumb-overlay {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.4),
    rgba(59, 130, 246, 0.75)
  );
}

/* extra floating images around videos */

.section-float {
  position: absolute;
  width: 70px;
  height: 70px;
  opacity: 0.15;
  border-radius: 999px;
  object-fit: cover;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.25));
}

.section-float-left {
  left: -30px;
  top: 30px;
  animation: float2 18s ease-in-out infinite;
}

.section-float-right {
  right: -30px;
  top: 110px;
  animation: float3 22s ease-in-out infinite;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-card {
  margin-top: 1rem;
  padding: 1rem 1rem;
  border-radius: 1rem;
  background: #ecfdf3;
  border: 1px solid rgba(187, 247, 208, 0.9);
}

body[data-theme="dark"] .contact-card {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(34, 197, 94, 0.6);
}

.contact-form {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.9rem;
}

body[data-theme="dark"] .contact-form {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0;
}

.required {
  color: #b91c1c;
  margin-left: 0.15rem;
}

/* ---------- Utility ---------- */

.note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  background: #f9fafb;
  border: 1px dashed rgba(148, 163, 184, 0.8);
}

body[data-theme="dark"] .note {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
}

/* Scroll animation classes */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #e5e7eb);
  color: var(--text-soft);
  font-size: 0.85rem;
}

body[data-theme="dark"] .footer {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.35), transparent 60%),
    linear-gradient(180deg, #020617, #020617);
  border-top-color: rgba(31, 41, 55, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) minmax(0, 1.25fr);
  gap: 1.75rem;
  padding: 1.5rem 1.25rem 1.1rem;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #111827;
}

body[data-theme="dark"] .footer-grid h3 {
  color: #f9fafb;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  padding: 0.75rem 1.25rem 1rem;
  text-align: center;
}

/* ---------- Back to Top ---------- */

.back-to-top {
  position: fixed;
  left: 1.2rem;
  bottom: 1.1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111827;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 40;
}

body[data-theme="dark"] .back-to-top {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(55, 65, 81, 0.9);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Chatbot ---------- */

.chatbot-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 3rem;
  width: 74px;     /* Increased size */
  height: 74px;    /* Increased size */
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #ffffff;
  font-size: 2rem;  /* Bigger icon */
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}


.chatbot-window {
  position: fixed;
  right: 1.3rem;
  bottom: 5rem;
  width: min(360px, 90vw);
  max-height: 70vh;
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.3);
  z-index: 60;
  overflow: hidden;
}

body[data-theme="dark"] .chatbot-window {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
}

.chatbot-window.open {
  display: flex;
}

.chatbot-header {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
  background: linear-gradient(135deg, #ecfdf3, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

body[data-theme="dark"] .chatbot-header {
  background: linear-gradient(135deg, #064e3b, #1d4ed8);
  border-bottom-color: rgba(31, 41, 55, 0.9);
}

.chatbot-header-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chatbot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.chatbot-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

body[data-theme="dark"] .chatbot-title {
  color: #f9fafb;
}

.chatbot-subtitle {
  font-size: 0.78rem;
  color: #4b5563;
}

body[data-theme="dark"] .chatbot-subtitle {
  color: #e5e7eb;
}

.chatbot-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #4b5563;
}

body[data-theme="dark"] .chatbot-close {
  color: #e5e7eb;
}

.chatbot-messages {
  padding: 0.8rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  background: #f9fafb;
}

body[data-theme="dark"] .chatbot-messages {
  background: #020617;
}

.chatbot-message {
  margin-bottom: 0.55rem;
  display: flex;
}

.chatbot-message.bot {
  justify-content: flex-start;
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-message .bubble {
  max-width: 80%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.83rem;
  line-height: 1.35;
}

.chatbot-message.bot .bubble {
  background: #e0f2fe;
  border-radius: 0.8rem 0.8rem 0.8rem 0.2rem;
  color: #111827;
}

body[data-theme="dark"] .chatbot-message.bot .bubble {
  background: #1d4ed8;
  color: #e5e7eb;
}

.chatbot-message.user .bubble {
  background: #22c55e;
  border-radius: 0.8rem 0.8rem 0.2rem 0.8rem;
  color: #ffffff;
}

.chatbot-quick {
  padding: 0.45rem 0.7rem 0.35rem;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body[data-theme="dark"] .chatbot-quick {
  background: #020617;
  border-top-color: rgba(31, 41, 55, 0.9);
}

.chatbot-quick button {
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  background: #ecfdf3;
  color: #166534;
  cursor: pointer;
}

.chatbot-quick button:hover {
  background: #bbf7d0;
}

.chatbot-input-row {
  display: flex;
  padding: 0.5rem 0.65rem 0.6rem;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  gap: 0.45rem;
}

body[data-theme="dark"] .chatbot-input-row {
  background: #020617;
  border-top-color: rgba(31, 41, 55, 0.9);
}

.chatbot-input-row input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

body[data-theme="dark"] .chatbot-input-row input {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

.chatbot-input-row input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.chatbot-input-row button {
  border-radius: 999px;
  border: none;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #ffffff;
  cursor: pointer;
}

/* ---------- Mobile Sticky Action Bar ---------- */

.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.8rem 0.7rem;
  display: none;
  gap: 0.5rem;
  justify-content: center;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  z-index: 55;
}

body[data-theme="dark"] .mobile-action-bar {
  background: rgba(15, 23, 42, 0.95);
  border-top-color: rgba(31, 41, 55, 0.9);
}

.mobile-action-btn {
  flex: 1;
  border-radius: 999px;
  border: none;
  font-size: 0.88rem;
  padding: 0.55rem 0.6rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-action-btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
}

.mobile-action-btn.secondary {
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: #111827;
}

body[data-theme="dark"] .mobile-action-btn.secondary {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .admission-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .about-card,
  .contact-form,
  .admission-card {
    border-radius: 1.1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 3.3rem;
    right: 1.1rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    min-width: 10rem;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  body[data-theme="dark"] .nav-links {
    background: #020617;
    border-color: rgba(55, 65, 81, 0.9);
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-action-bar {
    display: flex;
  }

  /* lift these buttons above the action bar */
  .chatbot-toggle,
  .back-to-top {
    bottom: 3.8rem;
  }

  .chatbot-window {
    bottom: 6.2rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta span {
    width: 100%;
    justify-content: flex-start;
  }
}
/* dark mode overrides */