/* ======================================
   HERO SECTION
   ====================================== */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 950px;
  overflow: hidden;
}

/* Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-slide.active img {
  transform: scale(1);
}

/* Overlay gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    135deg,
    rgba(21, 101, 192, 0.82) 0%,
    rgba(0, 131, 143, 0.65) 50%,
    rgba(46, 125, 50, 0.5) 100%
  );
}

/* Hero Content */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.8rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.45rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  animation: slideDown 0.8s ease 0.3s both;
}

.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  max-width: 900px;
  animation: slideUp 0.9s ease 0.5s both;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, #FFE082, #FFD54F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  line-height: 1.7;
  animation: slideUp 0.9s ease 0.7s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: slideUp 0.9s ease 0.9s both;
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
  width: 28px;
  border-radius: var(--radius-full);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-nav-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.05);
}

.hero-nav-btn.prev { left: 1.5rem; }
.hero-nav-btn.next { right: 1.5rem; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.7));
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Quick Stats Bar */
.stats-bar {
  position: relative;
  z-index: 10;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-100);
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 2rem;
  border-right: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  cursor: default;
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: var(--primary-50); }

.stat-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-1 { background: var(--primary-50); }
.stat-icon-2 { background: var(--secondary-50); }
.stat-icon-3 { background: var(--gold-50); }
.stat-icon-4 { background: rgba(0,188,212,0.1); }

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-suffix { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ======================================
   WHY CHOOSE US
   ====================================== */

.why-us {
  background: var(--gradient-warm);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.why-card:hover::before { transform: scaleX(1); }

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-lighter);
}

.why-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.3rem;
  transition: transform var(--transition-spring);
}

.why-card:hover .why-icon { transform: scale(1.1) rotate(-5deg); }

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ======================================
   EVENTS PREVIEW
   ====================================== */

.events-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.event-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gradient-primary);
}

.event-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-card-image img { transform: scale(1.08); }

.event-date-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 56px;
}

.event-date-badge .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.event-date-badge .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-card-body {
  padding: 1.4rem 1.6rem 1.8rem;
}

.event-category {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.event-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.event-card-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ======================================
   TESTIMONIALS
   ====================================== */

.testimonials {
  background: var(--gradient-section);
  overflow: hidden;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 1.5rem;
  padding: 1rem 0;
}

.testimonial-card {
  flex: 0 0 calc(33.33% - 1rem);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.3rem;
  border-left: 3px solid var(--primary-lighter);
  padding-left: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-lighter);
}

.testimonial-avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.t-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.t-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ======================================
   ACADEMICS / PROGRAMS
   ====================================== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
  text-align: center;
  padding-bottom: 2rem;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.program-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.program-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 20px 20px 0 0;
}

.program-card-body {
  padding: 1.5rem 1.8rem;
}

.program-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.program-card-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.subject-tag {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--gray-50);
  color: var(--gray-500);
  border: 1px solid var(--gray-100);
}

/* ======================================
   SMART FEATURES
   ====================================== */

.smart-features {
  background: var(--white);
}

.features-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-visual {
  position: relative;
}

.features-visual-inner {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.features-visual-inner img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.feature-badge-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-dark);
  animation: floatBadge 3s ease infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.feature-badge-float.badge-1 { top: 1.5rem; right: -1.5rem; animation-delay: 0s; }
.feature-badge-float.badge-2 { bottom: 2rem; left: -1.5rem; animation-delay: 1s; }

.feature-badge-float .badge-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.features-list {
  display: grid;
  gap: 1.2rem;
}

.feature-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  cursor: default;
  background: var(--white);
}

.feature-item:hover {
  background: var(--primary-50);
  border-color: var(--primary-lighter);
  transform: translateX(4px);
}

.feature-item-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.feature-item:hover .feature-item-icon { transform: scale(1.1) rotate(-5deg); }

.feature-item-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feature-item-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================================
   GALLERY PREVIEW
   ====================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.gallery-item.featured img { height: 100%; min-height: 410px; }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(33,150,243,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay-content {
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform var(--transition-spring);
}

.gallery-item:hover .gallery-zoom-icon { transform: translate(-50%, -50%) scale(1); }

/* ======================================
   ADMISSIONS CTA SECTION
   ====================================== */

.admissions-cta {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.admissions-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.admissions-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.admissions-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.admissions-cta-text h2 {
  color: white;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.admissions-cta-text p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
}

.admissions-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ======================================
   FOOTER
   ====================================== */

.site-footer {
  background: var(--gradient-footer);
  color: rgba(255,255,255,0.85);
  padding: var(--space-2xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-brand {
  margin-bottom: 1.2rem;
}

.footer-brand .nav-brand-text strong { color: white; }
.footer-brand .nav-brand-text span { color: rgba(255,255,255,0.55); }

.footer-description {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  border: 1px solid rgba(255,255,255,0.12);
}

.social-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links { display: grid; gap: 0.5rem; }

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: all var(--transition-fast);
  padding: 0.2rem 0;
}

.footer-link:hover {
  color: white;
  gap: 0.8rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.8rem;
}

.footer-contact-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover { color: white; }

/* ======================================
   CHATBOT
   ====================================== */

.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-modal);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 30px rgba(33,150,243,0.45);
  transition: all var(--transition-spring);
}

.chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(33,150,243,0.55); }
.chatbot-toggle.active { background: var(--gradient-secondary); }

.chatbot-panel {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: var(--z-modal);
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-spring);
}

.chatbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background: var(--gradient-primary);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
}

.chatbot-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-header-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.chatbot-header-info span {
  font-size: 0.75rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-status-dot {
  width: 7px; height: 7px;
  background: #69F0AE;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.chatbot-body {
  padding: 1.2rem;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--gray-50);
}

.chat-message {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.chat-bubble {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border-top-left-radius: 4px;
  font-size: var(--text-sm);
  color: var(--text-dark);
  box-shadow: var(--shadow-xs);
  max-width: 85%;
  line-height: 1.6;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-message.user .chat-bubble {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  border-top-right-radius: 4px;
}

.chat-bot-icon {
  width: 28px; height: 28px;
  background: var(--primary-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.chatbot-suggestions {
  padding: 0.8rem 1.2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.chat-suggestion {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-dark);
  border: 1px solid var(--primary-lighter);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-suggestion:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.chatbot-input {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.chatbot-input input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  font-size: var(--text-sm);
  background: var(--gray-50);
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.chatbot-input input:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}

.chatbot-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition-spring);
  flex-shrink: 0;
}

.chatbot-send:hover { transform: scale(1.1); }

/* ======================================
   SCROLL TO TOP
   ====================================== */

.scroll-top {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  z-index: var(--z-float);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ======================================
   ANIMATIONS
   ====================================== */

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================
   RESPONSIVE HOMEPAGE
   ====================================== */

@media (max-width: 1024px) {
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--gray-100); }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .events-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .features-showcase { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.featured { grid-column: span 3; }
  .gallery-item.featured img { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 768px) {
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: 1fr; }
  .events-preview-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.featured { grid-column: span 2; }
  .admissions-cta-inner { flex-direction: column; text-align: center; }
  .admissions-cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial-card { flex: 0 0 100%; }
  .hero-nav-btn { display: none; }
  .chatbot-panel { width: calc(100vw - 2rem); right: 1rem; }
  .feature-badge-float { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; }
}
