/* ===== CUSTOM STYLES FOR GYAN NIKETAN SCHOOL ===== */

/* ---------- CSS Variables ---------- */
:root {
  --red: #e11d2e;
  --red-dark: #b91625;
  --red-light: #fee2e5;
  --white: #ffffff;
  --black: #111111;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--red);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Navbar ---------- */
#navbar {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1100px;
  z-index: 1000;
  background: var(--white);
  backdrop-filter: blur(12px);
  border-radius: 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

#navbar.scrolled {
  position: fixed;
  top: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  width: auto;
  height: 44px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gray-900);
  white-space: nowrap;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.nav-brand-sub {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--red);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-links li a {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
  font-family: "Poppins", sans-serif;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--red);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a.active-link {
  color: var(--red);
  font-weight: 700;
}

.nav-links li a.active-link::after {
  width: 100%;
}

/* Dropdown styles */
.has-dropdown {
  position: relative;
}

.has-dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.has-dropdown>a i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.has-dropdown:hover>a i {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border: 1px solid var(--gray-100);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li {
  width: 100%;
  display: block;
  margin: 0;
}

.dropdown li a {
  padding: 12px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  display: block;
  transition: all 0.2s;
}

.dropdown li a::after {
  display: none;
}

.dropdown li a:hover {
  background: var(--gray-50);
  color: var(--red);
  padding-left: 28px;
}

/* Old .btn-login kept for fallback */
.btn-login {
  padding: 9px 26px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: "Poppins", sans-serif;
  flex-shrink: 0;
}

.btn-login:hover {
  background: var(--red);
  color: var(--white);
}

/* ── Nav Actions Group (bell + Student Login) ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Notification bell */
.nav-bell {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  color: var(--gray-600);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
  animation: bell-swing 4s ease-in-out infinite;
  transform-origin: top center;
}

.nav-bell:hover {
  background: var(--red);
  color: #fff;
}

@keyframes bell-swing {

  0%,
  85%,
  100% {
    transform: rotate(0deg);
  }

  88% {
    transform: rotate(8deg);
  }

  91% {
    transform: rotate(-8deg);
  }

  94% {
    transform: rotate(5deg);
  }

  97% {
    transform: rotate(-5deg);
  }
}

/* ── Bell badge (number) ── */
.nav-bell-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.nav-bell-badge.hidden {
  display: none;
}

@keyframes badge-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Wrapper to position the panel ── */
.nav-bell-wrapper {
  position: relative;
}

/* ── Notification Panel ── */
.nav-notif-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 320px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow:
    0 20px 60px -8px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  overflow: hidden;
  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-notif-panel.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Arrow pointer */
.nav-notif-panel::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 14px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 2px;
}

/* Header */
.nav-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f3f4f6;
}

.nav-notif-header h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.nav-notif-header h6 i {
  color: var(--red);
}

.nav-notif-mark-all {
  background: none;
  border: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}

.nav-notif-mark-all:hover {
  background: #fff0f0;
}

/* List */
.nav-notif-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}

.nav-notif-list::-webkit-scrollbar {
  width: 3px;
}

.nav-notif-list::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 99px;
}

/* Individual notification item */
.nav-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-left: 3px solid transparent;
  transition: background 0.18s, border-left-color 0.18s;
  cursor: default;
  position: relative;
}

.nav-notif-item:hover {
  background: #fafafa;
}

.nav-notif-item--unread {
  border-left-color: var(--red);
  background: #fff9f9;
}

.nav-notif-item--unread:hover {
  background: #fff3f3;
}

/* Read state */
.nav-notif-item.read {
  border-left-color: transparent;
  background: transparent;
  opacity: 0.72;
}

/* Hot admission item — extra shimmer glow */
.nav-notif-item--hot {
  background: linear-gradient(90deg, #fff8f8 0%, #fff3f0 50%, #fff8f8 100%);
  background-size: 200% 100%;
  animation: notif-hot-shimmer 2.5s linear infinite;
}

@keyframes notif-hot-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.nav-notif-item--hot:hover {
  animation-play-state: paused;
  background: #fff0ee;
}

/* Color icon circles */
.nav-notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.nav-notif-icon--red {
  background: #fee2e5;
  color: var(--red);
}

.nav-notif-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.nav-notif-icon--green {
  background: #d1fae5;
  color: #059669;
}

/* Body text */
.nav-notif-body {
  flex: 1;
  min-width: 0;
}

.nav-notif-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 3px;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.nav-notif-desc {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin: 0 0 6px;
  line-height: 1.4;
}

.nav-notif-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  background: #fee2e5;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 5px;
  transition: background 0.2s, color 0.2s;
}

.nav-notif-cta:hover {
  background: var(--red);
  color: #fff;
}

.nav-notif-time {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* Footer */
.nav-notif-footer {
  padding: 10px 16px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
}

.nav-notif-footer a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-notif-footer a:hover {
  opacity: 0.75;
}

/* Student Login button — orange pill like gyanniketan.in */
.btn-student-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--red) 0%, #c0111f 100%);
  color: #fff !important;
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 4px 16px rgba(225, 29, 46, 0.32);
  white-space: nowrap;
}

.btn-student-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(225, 29, 46, 0.45);
  color: #fff !important;
}

/* Wider dropdown for More (has many items) */
.dropdown--more {
  min-width: 210px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  z-index: 999;
  padding: 110px 0 32px;
  box-shadow: var(--shadow-xl);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  flex: 1;
}

.mobile-menu ul li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.mobile-menu ul li a i {
  width: 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.mobile-menu ul li a:hover {
  background: var(--red-light);
  color: var(--red);
  border-left-color: var(--red);
}

.mobile-menu ul li a:hover i {
  color: var(--red);
}

.mobile-login-btn {
  margin: 4px 24px 16px;
  padding: 13px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 46, 0.4);
}

.mobile-contact {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-contact a {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.mobile-contact a:hover {
  color: var(--red);
}

.mobile-contact a i {
  width: 16px;
  text-align: center;
  color: var(--red);
  font-size: 0.7rem;
}

.mobile-social {
  display: flex;
  gap: 12px;
  padding: 12px 24px 0;
}

.mobile-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.8rem;
  transition: var(--transition);
}

.mobile-social a:hover {
  background: var(--red);
  color: var(--white);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.mobile-overlay.show {
  display: block;
}

/* ---------- Internal Header ---------- */
.internal-header {
  padding: 160px 20px 80px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.8)),
    url("../images/hero_students.png") center/cover;
  color: var(--white);
}

.internal-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

/* ---------- Sub Nav ---------- */
.sub-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 76px;
  z-index: 99;
}

.sub-nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-nav-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sub-nav-links li a i {
  font-size: 1.1rem;
}

.sub-nav-links li a:hover {
  color: var(--red);
}

.sub-nav-links li a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

@media (max-width: 768px) {
  .sub-nav {
    top: 60px;
  }
}

@media (max-width: 480px) {
  .sub-nav {
    top: 50px;
  }

  .sub-nav-links {
    gap: 16px;
  }

  .sub-nav-links li a {
    padding: 14px 8px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .sub-nav-links li a i {
    display: none;
  }
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  background: var(--gray-50);
  padding-top: 90px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text-col {
  max-width: 580px;
  padding: 40px 0;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--gray-600);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 480px;
}

.typing-text {
  border-right: 3px solid var(--gray-900);
  padding-right: 4px;
  animation: blinkDark 0.7s infinite;
}

@keyframes blinkDark {

  0%,
  100% {
    border-color: var(--gray-900);
  }

  50% {
    border-color: transparent;
  }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 36px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(225, 29, 46, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(225, 29, 46, 0.4);
}

.btn-secondary {
  padding: 14px 36px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}

.hero-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-shape {
  width: 100%;
  max-width: 520px;
  height: 500px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 10px solid var(--white);
  animation: morphHero 8s ease-in-out infinite alternate;
  position: relative;
}

@keyframes morphHero {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.hero-image-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admission-badge-new {
  position: absolute;
  bottom: 20px;
  left: -20px;
  z-index: 3;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 32px rgba(225, 29, 46, 0.4);
  animation: badgeScale 3s ease-in-out infinite;
  cursor: pointer;
  border: 4px solid var(--white);
}

.admission-badge-new span {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 2px;
}

@keyframes badgeScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.admission-countdown {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.countdown-item {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 72px;
}

.countdown-num {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---------- Welcome ---------- */
#welcome {
  padding: 100px 0;
  background: var(--white);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-text p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 16px;
}

.welcome-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.welcome-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.welcome-img:hover img {
  transform: scale(1.04);
}

.welcome-img::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--red);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ---------- Features Scroll Marquee ---------- */
#features-marquee {
  background: var(--white);
  padding: 50px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-100);
  border-top: 1px solid var(--gray-100);
}

.features-scroll {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: featuresScroll 35s linear infinite;
}

.features-scroll:hover {
  animation-play-state: paused;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px 12px 12px;
  background: var(--gray-50);
  border-radius: 80px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: default;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}

.feature-item img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.feature-item h4 {
  font-size: 1rem;
  color: var(--gray-900);
  font-weight: 700;
  margin: 0;
}

@keyframes featuresScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

/* ---------- Why Learn ---------- */
#why-learn {
  padding: 100px 0;
  background: var(--gray-900);
}

#why-learn .section-title {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-800);
  position: relative;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(225, 29, 46, 0.25);
}

.why-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.why-card-body {
  padding: 20px;
  text-align: center;
}

.why-card-body h4 {
  color: var(--white);
  font-size: 1rem;
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px auto 12px;
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  color: var(--white);
}

/* ---------- Quick Links ---------- */
#quick-links {
  padding: 100px 0;
  background: var(--white);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.quick-card {
  padding: 36px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: var(--transition);
}

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

.quick-card.highlight {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.quick-card.highlight .quick-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.quick-card.highlight h4 {
  color: var(--white);
}

.quick-card.highlight p {
  color: rgba(255, 255, 255, 0.85);
}

.quick-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}

.quick-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.quick-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- Education Journey ---------- */
#education-journey {
  padding: 100px 0;
  background: var(--gray-50);
}

.journey-tabs {
  display: flex;
  gap: 8px;
  margin: 40px 0 32px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
}

.journey-tab {
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.journey-tab:hover {
  color: var(--gray-800);
}

.journey-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.journey-content {
  display: none;
}

.journey-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.journey-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.journey-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.journey-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.journey-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-readmore:hover {
  gap: 14px;
}

.btn-readmore svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

/* ---------- Calendar ---------- */
#calendar {
  padding: 100px 0;
  background: var(--white);
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: 180px 1fr 300px;
  gap: 24px;
  margin-top: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.cal-months {
  background: var(--gray-50);
  padding: 24px 16px;
  border-right: 1px solid var(--gray-200);
}

.cal-months .cal-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-months .cal-year span {
  font-weight: 700;
  color: var(--red);
}

.cal-months .cal-year button {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--gray-500);
  cursor: pointer;
}

.month-list {
  list-style: none;
}

.month-list li {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: var(--transition);
}

.month-list li:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.month-list li.active {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}

.cal-grid {
  padding: 24px;
}

.cal-grid-header {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.cal-weekdays span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: 8px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.cal-day {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.cal-day:hover {
  background: var(--gray-100);
}

.cal-day.today {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
}

.cal-day.event {
  color: var(--red);
  font-weight: 700;
}

.cal-day.empty {
  pointer-events: none;
}

.cal-events {
  background: var(--gray-50);
  padding: 24px;
  border-left: 1px solid var(--gray-200);
}

.cal-events h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  color: var(--gray-900);
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 6px;
  flex-shrink: 0;
}

.event-item p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.event-item .event-date {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ---------- Testimonials ---------- */
#testimonials {
  padding: 100px 0;
  background: var(--gray-50);
}

.testimonial-slider {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
}

.testimonial-author-info h5 {
  font-size: 0.95rem;
  color: var(--gray-900);
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--red);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--red);
  width: 32px;
  border-radius: 6px;
}

/* ---------- CTA ---------- */
#cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
}

.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 24px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
#footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand img {
  width: 56px;
  margin-bottom: 16px;
  border-radius: 0;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--gray-400);
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--red);
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-700);
  background: var(--gray-800);
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.footer-newsletter input::placeholder {
  color: var(--gray-500);
}

.footer-newsletter button {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background: var(--red-dark);
}

/* ── Footer App Download Block ── */
.footer-app-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-app-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.footer-app-label i {
  color: #4ade80;
  font-size: 0.9rem;
}

.footer-app-sub {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Google Play badge button */
.footer-playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  animation: gplay-breathe 3.5s ease-in-out infinite;
}

@keyframes gplay-breathe {

  0%,
  100% {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }

  50% {
    box-shadow: 0 6px 28px rgba(74, 222, 128, 0.35), 0 4px 18px rgba(0, 0, 0, 0.25);
  }
}

.footer-playstore-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(74, 222, 128, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.footer-playstore-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Shimmer sweep on hover */
.footer-playstore-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.footer-playstore-btn:hover::after {
  transform: translateX(100%);
}

/* Play icon circle */
.footer-playstore-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #01875f, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(1, 135, 95, 0.35);
}

/* Text: two-line layout */
.footer-playstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.footer-playstore-line1 {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
  font-family: 'Inter', sans-serif;
}

.footer-playstore-line2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 60px;
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- FAQ ---------- */
#faq {
  padding: 100px 0;
  background: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--red);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question .faq-icon {
  background: var(--red);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- AI Search ---------- */
.search-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

#ai-search {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  font-size: 0.9rem;
  background: var(--white);
  transition: var(--transition);
  color: var(--gray-800);
}

#ai-search:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}

.search-result-item:hover {
  background: var(--red-light);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h5 {
  font-size: 0.85rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.search-result-item span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ---------- Chatbot — PRO REDESIGN ---------- */

/* Launcher */
.chat-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e11d2e 0%, #ff4757 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 32px rgba(225, 29, 46, 0.45);
  transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  border: none;
}

.chat-launcher:hover {
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 12px 40px rgba(225, 29, 46, 0.55);
}

.chat-launcher-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.4);
  animation: chatPulseRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes chatPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* Window */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9998;
  width: 420px;
  height: 600px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: none;
  flex-direction: row;
  overflow: hidden;
}

.chat-window.open {
  display: flex;
  animation: chatReveal 0.4s cubic-bezier(.4, 0, .2, 1);
}

@keyframes chatReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ----- Sidebar ----- */
.chat-sidebar {
  width: 0;
  min-width: 0;
  background: #f8f9fb;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(.4, 0, .2, 1), min-width 0.35s cubic-bezier(.4, 0, .2, 1);
}

.chat-sidebar.open {
  width: 230px;
  min-width: 230px;
}

.chat-sidebar-header {
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}

.chat-sidebar-header h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.chat-sidebar-header h5 i {
  color: var(--red);
  font-size: 0.9rem;
}

.chat-sidebar-close {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.chat-sidebar-close:hover {
  color: var(--red);
}

.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
}

.chat-sidebar-list::-webkit-scrollbar {
  width: 4px;
}

.chat-sidebar-list::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.chat-history-item {
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
  position: relative;
}

.chat-history-item:hover {
  background: rgba(225, 29, 46, 0.06);
}

.chat-history-item.active {
  background: rgba(225, 29, 46, 0.10);
  border-left: 3px solid var(--red);
}

.chat-history-item h6 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.chat-history-item span {
  font-size: 0.68rem;
  color: var(--gray-400);
}

.chat-history-item .chat-history-delete {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}

.chat-history-item:hover .chat-history-delete {
  opacity: 1;
}

.chat-history-item .chat-history-delete:hover {
  color: var(--red);
}

.chat-new-btn {
  margin: 10px 14px 16px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e11d2e 0%, #ff4757 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.chat-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225, 29, 46, 0.3);
}

.chat-sidebar-empty {
  text-align: center;
  padding: 30px 16px;
  color: var(--gray-400);
  font-size: 0.78rem;
}

/* ----- Main Chat Area ----- */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

/* Header */
.chat-header {
  background: linear-gradient(135deg, #e11d2e 0%, #c41424 100%);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.chat-header::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), transparent);
  z-index: 1;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-menu-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chat-header-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.chat-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #c41424;
}

.chat-header-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.chat-header-status {
  font-size: 0.7rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.chat-header-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-header-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Quick Suggestions */
.chat-suggestions {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 1;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  transition: opacity 0.3s;
}

.chat-suggestions.hidden {
  display: none;
}

.chat-welcome-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: botBounce 2s ease infinite;
}

@keyframes botBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.chat-suggestions h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}

.chat-suggestions p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.chat-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 340px;
}

.chat-chip {
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-chip i {
  color: var(--red);
  font-size: 0.72rem;
}

.chat-chip:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(225, 29, 46, 0.25);
}

.chat-chip:hover i {
  color: var(--white);
}

/* Messages */
.chat-messages {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.chat-msg {
  max-width: 82%;
  padding: 12px 16px;
  font-size: 0.84rem;
  line-height: 1.6;
  animation: msgAppear 0.3s ease;
  word-wrap: break-word;
  position: relative;
}

@keyframes msgAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  background: var(--gray-100);
  color: var(--gray-800);
  align-self: flex-start;
  border-radius: 4px 18px 18px 18px;
  border: 1px solid var(--gray-200);
}

.chat-msg.user {
  background: linear-gradient(135deg, #e11d2e 0%, #ff4757 100%);
  color: var(--white);
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(225, 29, 46, 0.2);
}

.chat-msg-time {
  font-size: 0.62rem;
  opacity: 0.5;
  margin-top: 4px;
  display: block;
}

.chat-msg.user .chat-msg-time {
  text-align: right;
}

/* Typing Animation */
.chat-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  align-self: flex-start;
  background: var(--gray-100);
  border-radius: 4px 18px 18px 18px;
  border: 1px solid var(--gray-200);
  animation: msgAppear 0.3s ease;
}

.chat-typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: typingDot 1.4s ease infinite;
}

.chat-typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Attachment in message */
.chat-msg-attachment {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 200px;
}

.chat-msg-attachment img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-msg-attachment img:hover {
  transform: scale(1.02);
}

.chat-msg-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chat-msg.bot .chat-msg-file {
  background: rgba(0, 0, 0, 0.05);
}

.chat-msg-file i {
  font-size: 1rem;
}

/* Attachment Preview Bar */
.chat-attachment-preview {
  display: none;
  padding: 10px 16px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  gap: 8px;
  flex-wrap: wrap;
  z-index: 3;
}

.chat-attachment-preview.has-files {
  display: flex;
}

.chat-preview-item {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--gray-300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-preview-item .chat-preview-file-icon {
  font-size: 1.3rem;
  color: var(--red);
}

.chat-preview-item .chat-preview-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 0.55rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Input Area */
.chat-input-area {
  padding: 10px 14px 8px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-attach-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-attach-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.chat-input-area input[type="text"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.84rem;
  transition: all 0.25s;
  background: var(--gray-100);
  color: var(--gray-800);
  min-width: 0;
}

.chat-input-area input[type="text"]::placeholder {
  color: var(--gray-400);
}

.chat-input-area input[type="text"]:focus {
  border-color: var(--red);
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.08);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e11d2e 0%, #ff4757 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(225, 29, 46, 0.35);
}

.chat-input-hint {
  text-align: center;
  margin-top: 6px;
}

.chat-input-hint span {
  font-size: 0.62rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.chat-input-hint i {
  font-size: 0.58rem;
}

/* Image Lightbox */
.chat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}

.chat-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  #navbar {
    width: calc(100% - 48px);
    top: 56px;
  }

  .nav-logo span {
    font-size: 0.8rem;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links li a {
    font-size: 0.68rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-wrapper {
    grid-template-columns: 1fr;
  }

  .cal-months {
    display: none;
  }

  .cal-events {
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }

  #welcome,
  #why-learn,
  #quick-links,
  #education-journey,
  #calendar,
  #testimonials,
  #faq,
  #cta,
  #founder,
  #gallery {
    padding: 80px 0;
  }
}

@media (max-width: 1024px) {

  /* Navbar — use left/right instead of transform so the navbar is NOT a
     containing block for position:fixed children (notification panel).
     transform: translateX(-50%) on a parent makes ALL fixed descendants
     position relative to THAT element, not the viewport. */
  #navbar {
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    transform: none !important;
    top: 48px;
    border-radius: 40px;
    z-index: 1000 !important;
  }

  #navbar.scrolled {
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    transform: none !important;
    top: 8px;
  }

  /* Mobile: show hamburger, hide desktop nav links & buttons */
  .nav-links {
    display: none;
  }

  .btn-login,
  .btn-student-login {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    margin-right: 12px;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo span {
    font-size: 0.75rem;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-inner {
    height: 56px;
    padding: 0 12px;
  }


  .nav-notif-panel {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    transform-origin: bottom center !important;
    transform: translateY(110%) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2) !important;
  }

  .nav-notif-panel.open {
    transform: translateY(0) !important;
  }

  /* Remove the broken pseudo-element backdrop on mobile */
  .nav-notif-panel::before,
  .nav-notif-panel.open::before,
  .nav-notif-panel:not(.open)::before {
    display: none !important;
    content: none !important;
  }

  /* Drag handle indicator via ::after */
  .nav-notif-panel::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 99px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
  }

  /* Notification list scrollable area on mobile */
  .nav-notif-list {
    max-height: none !important;
    overflow-y: visible !important;
  }

  .nav-notif-header {
    padding-top: 32px; /* Room for drag handle */
  }

/* ── Mobile Notification Backdrop ── */
.nav-notif-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  /* z-index MUST be below the navbar (z:1000) so the panel inside navbar
     is always visible. Backdrop still covers all regular page content. */
  z-index: 999;
  animation: backdropFadeIn 0.25s ease forwards;
}

.nav-notif-backdrop.show {
  display: block;
}

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

@media (max-width: 768px) {

  /* Announcement */
  #announcement {
    height: 36px;
  }

  .ticker-label {
    display: none;
  }

  .ticker-content {
    font-size: 0.72rem;
    gap: 50px;
  }

  /* Hero */
  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .hero-text-col {
    margin: 0 auto;
    padding: 0;
  }

  .hero-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    gap: 12px;
  }

  .admission-countdown {
    justify-content: center;
  }

  .hero-image-shape {
    height: 350px;
  }

  .admission-badge-new {
    width: 90px;
    height: 90px;
    font-size: 0.6rem;
    left: 10px;
    bottom: 10px;
  }

  .admission-badge-new span {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  /* Sections */
  #welcome,
  #why-learn,
  #quick-links,
  #education-journey,
  #calendar,
  #testimonials,
  #faq,
  #cta,
  #founder,
  #gallery {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .welcome-img {
    order: -1;
  }

  .welcome-img img {
    height: 280px;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .journey-content.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .journey-img img {
    height: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .chat-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 90px;
    height: calc(100vh - 160px);
  }

  .chat-sidebar.open {
    width: 200px;
    min-width: 200px;
  }

  .calendar-wrapper {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .founder-img-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  .founder-img img {
    height: 320px;
  }

  .founder-text blockquote {
    font-size: 0.95rem;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  /* Admission Badge */
  .admission-badge {
    width: 80px;
    height: 80px;
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {

  /* Navbar */
  #navbar {
    width: calc(100% - 24px);
    top: 44px;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-logo span {
    font-size: 0.7rem;
  }

  .btn-login {
    display: none;
  }

  .nav-inner {
    height: 50px;
    padding: 0 10px;
  }

  /* Hero */
  #hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.82rem;
  }

  .hero-image-shape {
    height: 280px;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.78rem;
  }

  /* Sections */
  .container {
    padding: 0 16px;
  }

  .journey-tabs {
    justify-content: center;
  }

  .journey-tab {
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    padding: 24px 16px;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.85rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }

  /* Announcement */
  #announcement {
    height: 32px;
  }

  .ticker-content {
    font-size: 0.68rem;
    gap: 40px;
  }

  /* Admission Badge */
  .admission-badge {
    display: none;
  }
}

/* ========== STANDOUT FEATURES ========== */

/* ---------- Animated Admission Badge ---------- */
.admission-badge {
  position: absolute;
  top: 140px;
  right: 40px;
  z-index: 3;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 32px rgba(225, 29, 46, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
  cursor: pointer;
}

.admission-badge span {
  font-size: 1.1rem;
  display: block;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(225, 29, 46, 0.5);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(225, 29, 46, 0.7);
  }
}

/* ---------- Floating Decorative Shapes & Particles ---------- */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  background: var(--gray-900);
}

.hero-particle {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: var(--red);
  opacity: 0.15;
  animation: particleFloat 12s ease-in-out infinite alternate;
}

.hero-particle:nth-child(4) {
  top: 15%;
  left: 10%;
  font-size: 2.2rem;
  animation-delay: 0s;
}

.hero-particle:nth-child(5) {
  top: 25%;
  right: 15%;
  font-size: 1.8rem;
  animation-delay: -2s;
}

.hero-particle:nth-child(6) {
  bottom: 20%;
  left: 45%;
  font-size: 1.2rem;
  animation-delay: -4s;
}

.hero-particle:nth-child(7) {
  bottom: 10%;
  right: 30%;
  font-size: 2.5rem;
  animation-delay: -1s;
}

.hero-particle:nth-child(8) {
  top: 60%;
  left: 5%;
  font-size: 1.6rem;
  animation-delay: -3s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(15deg);
  }

  100% {
    transform: translateY(10px) rotate(-10deg);
  }
}

.hero-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
  animation: shapeFloat 8s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
  width: 180px;
  height: 180px;
  bottom: 60px;
  left: 10%;
  animation: shapeFloat 6s ease-in-out infinite reverse;
}

.hero-shape:nth-child(3) {
  width: 120px;
  height: 120px;
  top: 40%;
  right: 20%;
  animation: shapeFloat 10s ease-in-out infinite;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(15px, -20px);
  }

  50% {
    transform: translate(-10px, 15px);
  }

  75% {
    transform: translate(20px, 10px);
  }
}

/* ---------- Achievements Ribbon ---------- */
#achievements {
  padding: 60px 0;
  background: var(--gray-50);
  overflow: hidden;
}

.achievements-scroll {
  display: flex;
  gap: 48px;
  animation: achievementsScroll 20s linear infinite;
  white-space: nowrap;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding: 16px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.achievement-item h5 {
  font-size: 0.85rem;
  color: var(--gray-800);
  white-space: nowrap;
}

.achievement-item p {
  font-size: 0.72rem;
  color: var(--gray-500);
  white-space: nowrap;
}

@keyframes achievementsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Live Visitor Count — DISABLED ---------- */
.visitor-count {
  display: none !important;
}

/* ========== PREMIUM UPGRADES ========== */

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader img {
  width: 80px;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

#preloader p {
  margin-top: 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
  letter-spacing: 1px;
}

.preloader-bar {
  width: 120px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}

.preloader-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes preloaderSlide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(350%);
  }
}

/* ---------- Scroll Progress Bar ---------- */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- Announcement Ticker ---------- */
#announcement {
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  color: var(--white);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-label {
  background: rgba(0, 0, 0, 0.2);
  padding: 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-size: 0.8rem;
  font-weight: 500;
}

.ticker-content span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-content span::before {
  content: "★";
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Stats Counter ---------- */
#stats {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number span {
  font-size: 0.6em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- Founder Message ---------- */
#founder {
  padding: 100px 0;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

#founder::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.04);
}

.founder-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}

.founder-img-wrapper {
  position: relative;
}

.founder-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.founder-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.founder-img-wrapper::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--red);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.founder-text blockquote {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.9;
  font-style: italic;
  margin: 20px 0 24px;
  position: relative;
  padding-left: 24px;
  border-left: 4px solid var(--red);
}

.founder-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.founder-role {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
}

/* ---------- Campus Gallery ---------- */
#gallery {
  padding: 100px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 250px 250px;
  gap: 16px;
  margin-top: 48px;
}

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

.gallery-item:nth-child(1) {
  grid-column: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
}

/* ---------- Back to Top ---------- */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--red);
  transform: translateY(-3px);
}

/* ---------- Responsive for new sections ---------- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-img-wrapper {
    max-width: 320px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-item {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid .gallery-item {
    height: 180px;
  }

  #backToTop {
    display: none !important;
  }

  .ticker-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-item {
    height: 200px;
  }
}

/* ========== WORLD-CLASS FEATURES ========== */

/* ---------- Admission Countdown (Enhanced & Visible) ---------- */
.admission-countdown {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  position: relative;
}

.admission-countdown::before {
  content: '⏳ Admission Deadline Countdown';
  display: block;
  position: absolute;
  top: -22px;
  left: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  animation: countdownLabelPulse 2s ease-in-out infinite;
}

@keyframes countdownLabelPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.countdown-item {
  text-align: center;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 76px;
  box-shadow: 0 4px 16px rgba(225, 29, 46, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
}

.countdown-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.2);
}

.countdown-num {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-600);
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- Notification Popup ---------- */
.notification-popup {
  position: fixed;
  bottom: 100px;
  left: 28px;
  z-index: 9992;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--red);
  max-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-popup.show {
  transform: translateX(0);
}

.notification-popup .notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.notification-popup .notif-text h5 {
  font-size: 0.8rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.notification-popup .notif-text p {
  font-size: 0.7rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.notification-popup .notif-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.7rem;
  cursor: pointer;
}

/* ---------- Typing Animation ---------- */
.typing-text {
  border-right: 3px solid var(--white);
  padding-right: 4px;
  animation: blink 0.7s infinite;
}

@keyframes blink {

  0%,
  100% {
    border-color: var(--white);
  }

  50% {
    border-color: transparent;
  }
}



@media (max-width: 768px) {

  .visitor-count {
    display: none;
  }

  #backToTop {
    display: none !important;
  }

  .chat-launcher {
    bottom: 70px;
  }

  .chat-window {
    bottom: 100px;
    height: calc(100vh - 140px);
  }

  .chat-sidebar.open {
    position: absolute;
    z-index: 10;
    width: 100%;
    min-width: 100%;
    height: 100%;
  }

  .chat-launcher {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 16px;
    font-size: 1.3rem;
  }

  #footer {
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .admission-countdown {
    gap: 8px;
  }

  .countdown-item {
    padding: 8px 10px;
    min-width: 56px;
  }

  .countdown-num {
    font-size: 1.2rem;
  }

  .countdown-label {
    font-size: 0.5rem;
  }
}

/* ============================================================
   PREMIUM MOBILE NAVIGATION (PMN)
   ============================================================ */

/* Overlay */
.pmn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1098;
  transition: opacity 0.35s ease;
}

.pmn-overlay.show {
  display: block;
  animation: pmn-fade-in 0.35s ease forwards;
}

@keyframes pmn-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Slide Panel */
.pmn-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(82vw, 340px);
  height: 100dvh;
  height: 100vh;
  background: #fff;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  z-index: 1099;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 48px -8px rgba(0, 0, 0, 0.22);
  transition: left 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.pmn-panel.open {
  left: 0;
}

/* top accent bar */
.pmn-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff6b6b, var(--red));
  background-size: 200%;
  animation: pmn-shimmer 2.5s linear infinite;
}

@keyframes pmn-shimmer {
  0% {
    background-position: 0%
  }

  100% {
    background-position: 200%
  }
}

/* header */
.pmn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.pmn-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pmn-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.pmn-brand-text {
  display: flex;
  flex-direction: column;
}

.pmn-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gray-900);
  line-height: 1.15;
}

.pmn-brand-tagline {
  font-size: 0.68rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pmn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pmn-close:hover {
  background: var(--red);
  color: #fff;
  transform: rotate(90deg);
}

/* Body / Scroll area */
.pmn-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0 4px;
}

.pmn-body::-webkit-scrollbar {
  width: 4px;
}

.pmn-body::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 99px;
}

.pmn-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual menu item */
.pmn-item {
  position: relative;
}

.pmn-item:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  background: #f3f4f6;
  margin: 0 20px;
}

/* Link / Button base */
.pmn-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  width: 100%;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-800);
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  border-left: 3px solid transparent;
  text-decoration: none;
  /* Ripple container */
  overflow: hidden;
}

.pmn-link:hover,
.pmn-has-sub.pmn-sub-open>.pmn-accordion-btn {
  background: #fff5f5;
  color: var(--red);
  border-left-color: var(--red);
  padding-left: 24px;
}

.pmn-link:hover .pmn-icon,
.pmn-has-sub.pmn-sub-open>.pmn-accordion-btn .pmn-icon {
  color: var(--red);
  background: #fee2e5;
}

.pmn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.pmn-label {
  flex: 1;
}

.pmn-arrow,
.pmn-chevron {
  font-size: 0.65rem;
  color: var(--gray-400);
  transition: transform 0.3s ease, color 0.2s;
  flex-shrink: 0;
}

.pmn-has-sub.pmn-sub-open>.pmn-accordion-btn .pmn-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

/* Accordion Sub-list */
.pmn-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafafa;
}

.pmn-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 32px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}

.pmn-sub-link i {
  width: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
  transition: color 0.18s;
}

.pmn-sub-link:hover {
  background: #fff0f0;
  color: var(--red);
  padding-left: 36px;
}

.pmn-sub-link:hover i {
  color: var(--red);
}

/* CTA Buttons */
.pmn-cta {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  border-top: 1px solid #f0f0f0;
}

.pmn-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), #c0111f);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(225, 29, 46, 0.32);
  letter-spacing: 0.3px;
}

.pmn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 29, 46, 0.42);
  color: #fff;
}

.pmn-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.pmn-cta-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Footer Strip */
.pmn-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pmn-social {
  display: flex;
  gap: 8px;
}

.pmn-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  transition: background 0.2s, color 0.2s;
}

.pmn-social a:hover {
  background: var(--red);
  color: #fff;
}

.pmn-footer-tagline {
  font-size: 0.65rem;
  color: var(--gray-400);
  text-align: right;
  line-height: 1.4;
}

/* Ripple Effect on pmn-link */
.pmn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: pmn-ripple-anim 0.55s ease-out;
  background-color: rgba(225, 29, 46, 0.15);
  pointer-events: none;
}

@keyframes pmn-ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Only show PMN on mobile */
@media (min-width: 1025px) {

  .pmn-panel,
  .pmn-overlay {
    display: none !important;
  }
}

/* ============================================================
   GYANIS AI — PREMIUM CHATBOT v3
   ============================================================ */

/* ── Launcher Button ── */
.gi-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #ff5c72 50%, #c0111f 100%);
  box-shadow: 0 8px 30px rgba(225, 29, 46, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gi-launcher:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 40px rgba(225, 29, 46, 0.55);
}

.gi-launcher.gi-active {
  transform: scale(0.92) rotate(10deg);
}

.gi-launcher-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gi-breathe 3s ease-in-out infinite;
}

@keyframes gi-breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.gi-launcher-icon {
  font-size: 1.5rem;
  color: #fff;
}

/* Pulse rings */
.gi-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 46, 0.5);
  animation: gi-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.gi-pulse-ring--delay {
  animation-delay: 1.2s;
}

@keyframes gi-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* Tooltip */
.gi-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateY(-50%) translateX(4px);
  letter-spacing: 0.3px;
}

.gi-launcher:hover .gi-tooltip,
.gi-launcher:focus .gi-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Chat Window ── */
.gi-window {
  position: fixed;
  bottom: 108px;
  right: 28px;
  width: 380px;
  height: 580px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 32px 80px -8px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.32s ease;
  /* Gradient border effect */
  border: 1px solid rgba(225, 29, 46, 0.15);
}

.gi-window.gi-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.gi-window.gi-closing {
  transform: scale(0.88) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.24s ease;
}

.gi-window.gi-dragover {
  box-shadow: 0 0 0 3px var(--red), 0 32px 80px rgba(0, 0, 0, 0.2);
}

/* Gradient border shimmer */
.gi-window-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(225, 29, 46, 0.15), transparent, rgba(225, 29, 46, 0.1));
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
.gi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--red) 0%, #c41425 100%);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Subtle wave at bottom of header */
.gi-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, var(--red), #ff6b6b);
  background-size: 200%;
  animation: gi-header-wave 3s linear infinite;
}

@keyframes gi-header-wave {
  0% {
    background-position: 0%
  }

  100% {
    background-position: 200%
  }
}

.gi-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar in header */
.gi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}

.gi-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #c41425;
  animation: gi-status-blink 2.5s ease-in-out infinite;
}

@keyframes gi-status-blink {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0);
  }
}

.gi-header-info {
  display: flex;
  flex-direction: column;
}

.gi-header-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.gi-header-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.gi-status-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: gi-s-pulse 1.5s ease-in-out infinite;
}

@keyframes gi-s-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.gi-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gi-header-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gi-header-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.gi-header-btn--close:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ── Welcome / Suggestions ── */
.gi-suggestions {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff8f8 0%, #fff 60%);
}

.gi-welcome-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

/* Big welcome avatar */
.gi-welcome-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  animation: gi-breathe 4s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(225, 29, 46, 0.3);
}

.gi-w-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 46, 0.25);
  animation: gi-w-ring-anim 2s ease-in-out infinite;
}

@keyframes gi-w-ring-anim {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

.gi-welcome-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

.gi-welcome-title span {
  color: var(--red);
}

.gi-welcome-sub {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
  max-width: 280px;
}

.gi-chips-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-bottom: 10px;
  align-self: flex-start;
}

.gi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.gi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.gi-chip i {
  font-size: 0.72rem;
  color: var(--red);
}

.gi-chip:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 29, 46, 0.28);
}

.gi-chip:hover i {
  color: #fff;
}

.gi-chip:active {
  transform: translateY(0) scale(0.97);
}

/* ── Messages feed ── */
.gi-messages {
  flex: 1;
  display: none;
  /* shown by JS when chat starts */
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  overflow-y: auto;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.gi-messages::-webkit-scrollbar {
  width: 4px;
}

.gi-messages::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}

/* Message row (user or bot) */
.gi-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
  animation: gi-msg-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.gi-msg--enter {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes gi-msg-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gi-msg--bot {
  align-self: flex-start;
}

.gi-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 82%;
}

/* Small AI avatar beside bot messages */
.gi-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* Bubble */
.gi-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
}

.gi-bubble-body {
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: #f3f4f6;
  color: var(--gray-800);
  font-size: 0.83rem;
  line-height: 1.6;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.gi-bubble--user .gi-bubble-body {
  background: linear-gradient(135deg, var(--red) 0%, #d01325 100%);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(225, 29, 46, 0.25);
}

.gi-bubble-body strong {
  font-weight: 700;
}

.gi-bullet {
  color: var(--red);
  font-weight: 700;
}

.gi-msg-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(225, 29, 46, 0.3);
  font-size: 0.78rem;
}

.gi-bubble--user .gi-msg-link {
  color: rgba(255, 255, 255, 0.85);
}

.gi-msg-time {
  font-size: 0.62rem;
  color: var(--gray-400);
  padding: 0 4px;
  align-self: flex-end;
}

.gi-bubble--user .gi-msg-time {
  text-align: right;
}

/* Attachments */
.gi-msg-attach {
  margin-top: 6px;
}

.gi-msg-attach img {
  max-width: 200px;
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gi-msg-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: 0.75rem;
  margin-top: 6px;
}

/* ── Typing / Thinking indicator — PREMIUM ── */

/* The bubble itself gets a special shimmer background */
.gi-typing-indicator .gi-bubble-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(120deg,
      #f3f4f6 0%,
      #fff0f0 40%,
      #f3f4f6 80%);
  background-size: 200% 100%;
  animation: gi-thinking-shimmer 2s ease-in-out infinite;
  min-width: 90px;
}

@keyframes gi-thinking-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* "Thinking…" micro label above the dots */
.gi-typing-indicator .gi-bubble-body::before {
  content: 'Gyanis AI is thinking…';
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  animation: gi-thinking-label 2s ease-in-out infinite;
}

@keyframes gi-thinking-label {
  0% {
    opacity: 0;
    transform: translateY(2px);
  }

  25% {
    opacity: 0.85;
    transform: translateY(0);
  }

  75% {
    opacity: 0.85;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}

/* Dots container */
.gi-typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Each dot */
.gi-typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: gi-dot-wave 1.4s ease-in-out infinite;
  box-shadow: 0 2px 6px rgba(225, 29, 46, 0.35);
}

.gi-typing-dots span:nth-child(1) {
  animation-delay: 0s;
  background: #e11d2e;
}

.gi-typing-dots span:nth-child(2) {
  animation-delay: 0.22s;
  background: #ff4d63;
}

.gi-typing-dots span:nth-child(3) {
  animation-delay: 0.44s;
  background: #c0111f;
}

/* Premium wave: shrinks, rises, glows, morphs to squircle */
@keyframes gi-dot-wave {
  0% {
    transform: scale(0.7) translateY(0);
    opacity: 0.45;
    border-radius: 50%;
  }

  30% {
    transform: scale(1.25) translateY(-5px);
    opacity: 1;
    border-radius: 35%;
    box-shadow: 0 4px 12px rgba(225, 29, 46, 0.5);
  }

  60% {
    transform: scale(0.85) translateY(0);
    opacity: 0.6;
    border-radius: 50%;
  }

  100% {
    transform: scale(0.7) translateY(0);
    opacity: 0.45;
    border-radius: 50%;
  }
}

/* ── Attachment preview strip ── */
.gi-attach-prev {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--gray-100);
  background: #fafafa;
  position: relative;
  z-index: 1;
}

.gi-attach-prev.has-files {
  display: flex;
}

.gi-attach-prev-item {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-500);
}

.gi-attach-prev-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gi-attach-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Input area ── */
.gi-input-area {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--gray-100);
  background: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.gi-input-row,
.gi-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 6px 8px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gi-input-row:focus-within,
.gi-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.1);
}

.gi-input {
  flex: 1 1 0;
  /* fill all available space */
  min-width: 0;
  /* allow shrink on narrow screens */
  width: 0;
  /* let flex control the width */
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--gray-800);
  font-family: 'Inter', sans-serif;
  padding: 4px 4px;
  resize: none;
  outline: none;
  line-height: 1.5;
  max-height: 120px;
}

.gi-input::placeholder {
  color: var(--gray-400);
}

.gi-attach-btn,
.gi-send {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
  flex-shrink: 0;
}

.gi-attach-btn {
  background: transparent;
  color: var(--gray-400);
}

.gi-attach-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.gi-send {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.3);
}

.gi-send:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(225, 29, 46, 0.4);
}

.gi-send:active {
  transform: scale(0.95);
}

.gi-input-hint {
  font-size: 0.62rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gi-input-hint i {
  color: #4ade80;
}

/* ── Ripple on launcher ── */
.gi-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: gi-ripple-anim 0.5s ease-out;
  pointer-events: none;
}

@keyframes gi-ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ================================================================
   CHATBOT — MOBILE RESPONSIVE (Full-screen, keyboard-safe)
   ================================================================ */

/* ── Tablet adjustments (481–768px) ── */
@media (max-width: 768px) and (min-width: 481px) {
  .gi-window {
    width: 360px;
    height: 540px;
    right: 16px;
    bottom: 96px;
  }

  .gi-launcher {
    bottom: 24px;
    right: 16px;
  }
}

/* ── Mobile (≤480px) — Full screen experience ── */
@media (max-width: 480px) {

  /* Launcher: bigger tap target, lower position */
  .gi-launcher {
    bottom: 20px;
    right: 16px;
    width: 60px;
    height: 60px;
    /* Lift above bottom nav bars */
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .gi-launcher-icon {
    font-size: 1.4rem;
  }

  .gi-tooltip {
    display: none;
  }

  .gi-pulse-ring {
    inset: -6px;
  }

  /* Chat window — full screen slide up */
  .gi-window {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Use dvh (dynamic viewport height) for mobile browsers */
    height: 100dvh;
    border-radius: 0;
    border: none;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    transform-origin: bottom center;
    /* Override desktop transform */
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0, 0.67, 0),
      opacity 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
  }

  .gi-window.gi-open {
    transform: translateY(0);
    opacity: 1;
  }

  .gi-window.gi-closing {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.25s ease;
  }

  /* Header: larger, with safe area top padding */
  .gi-header {
    padding: 14px 14px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    flex-shrink: 0;
  }

  .gi-avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .gi-header-name {
    font-size: 0.95rem;
  }

  .gi-header-sub {
    font-size: 0.7rem;
  }

  /* Header buttons: minimum 44px tap target */
  .gi-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  /* Welcome / suggestions: scrollable */
  .gi-suggestions {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 14px 16px;
    overscroll-behavior: contain;
  }

  .gi-welcome-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .gi-welcome-title {
    font-size: 1rem;
  }

  .gi-welcome-sub {
    font-size: 0.78rem;
  }

  /* Chips: wrap nicely, bigger touch targets */
  .gi-chips {
    gap: 8px;
  }

  .gi-chip {
    padding: 9px 14px;
    font-size: 0.8rem;
    min-height: 40px;
    border-radius: 22px;
  }

  /* Messages area: flex-1 scrollable */
  .gi-messages {
    flex: 1;
    padding: 12px 12px;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Bubbles: slightly wider on mobile */
  .gi-msg {
    max-width: 95%;
  }

  .gi-msg--user {
    max-width: 88%;
  }

  .gi-bubble-body {
    font-size: 0.88rem;
    padding: 11px 14px;
    border-radius: 18px 18px 18px 4px;
  }

  .gi-bubble--user .gi-bubble-body {
    border-radius: 18px 18px 4px 18px;
  }

  .gi-msg-time {
    font-size: 0.64rem;
  }

  /* Typing indicator */
  .gi-typing-indicator .gi-bubble-body {
    padding: 14px 16px;
  }

  /* Attachment preview */
  .gi-attach-prev {
    padding: 8px 12px;
    flex-shrink: 0;
  }

  /* Input area: sticky at bottom with safe area */
  .gi-input-area {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 8px));
    flex-shrink: 0;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
  }

  .gi-input-row,
  .gi-input-wrap {
    display: flex;
    align-items: center;
    /* vertically center all items */
    gap: 8px;
    padding: 8px 10px;
    border-radius: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Textarea takes ALL remaining space between buttons */
  .gi-input {
    flex: 1 1 0;
    /* grow, shrink, zero base */
    min-width: 0;
    /* allow shrink below content-size */
    width: 0;
    /* force flex to control width */
    font-size: 0.9rem;
    padding: 6px 4px;
    min-height: 22px;
    max-height: 100px;
    line-height: 1.45;
  }

  /* Attach + Send: big tap targets (48px min) */
  .gi-attach-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .gi-send {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(225, 29, 46, 0.4);
  }

  .gi-send:active {
    transform: scale(0.93);
  }

  .gi-input-hint {
    font-size: 0.63rem;
    margin-top: 6px;
  }

  /* Attachment preview images: fit mobile */
  .gi-msg-attach img {
    max-width: 200px;
    border-radius: 10px;
  }
}

/* ── Very small screens (≤360px) — extra tight ── */
@media (max-width: 360px) {
  .gi-chip {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .gi-bubble-body {
    font-size: 0.84rem;
  }

  .gi-header-name {
    font-size: 0.88rem;
  }
}

/* ── Removed old chat CSS conflicts ── */
.chat-launcher {
  display: none !important;
}

.chat-window {
  display: none !important;
}


/* =============================================================
   ✦ UPCOMING-TICKER (UTK) — light-ticker premium look
   Mirrors the live site (red LATEST badge + white ticker with
   red text) and elevates it with proper typography, soft chips
   and a live-feed pulse. Activated only when JS adds
   .utk-ready so static fallback never breaks.
   ============================================================= */

.utk-ready#announcement {
  height: 44px;
  background: #ffffff;
  color: var(--red);
  border-bottom: 1px solid rgba(225, 29, 46, 0.14);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 6px 14px -8px rgba(225, 29, 46, 0.18);
  position: relative;
  overflow: hidden;
  /* gentle reveal-in when the script hydrates */
  animation: utkBarIn 700ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes utkBarIn {
  0%   { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Soft red glow at the very left edge under the LATEST badge */
.utk-ready#announcement::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 200px;
  background: radial-gradient(closest-side, rgba(225, 29, 46, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Right-edge fade so text gracefully exits */
.utk-ready#announcement::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, #ffffff 90%);
  pointer-events: none;
  z-index: 3;
}

/* === LATEST badge === */
.utk-ready .ticker-label {
  background: linear-gradient(135deg, var(--red) 0%, #b91626 100%);
  color: #fff;
  padding: 0 28px 0 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  position: relative;
  z-index: 2;
  box-shadow: 6px 0 14px -6px rgba(225, 29, 46, 0.45);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
  overflow: hidden;
}

/* SHINE SWEEP across the LATEST badge every few seconds */
.utk-ready .ticker-label::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -120%;
  width: 60%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0) 70%,
    transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: utkShine 4.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes utkShine {
  0%, 28%  { left: -120%; }
  60%      { left:  120%; }
  100%     { left:  120%; }
}

/* Pulsing live dot — double-pulse + gentle bob */
.utk-ready .ticker-label::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fde047;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 0 rgba(253, 224, 71, 0.7),
    0 0 8px rgba(253, 224, 71, 0.6);
  animation: utkPulse 1.8s cubic-bezier(.4,0,.4,1) infinite;
}
@keyframes utkPulse {
  0%   { box-shadow: 0 0 0 0   rgba(253, 224, 71, 0.75), 0 0 8px rgba(253, 224, 71, 0.6); }
  60%  { box-shadow: 0 0 0 9px rgba(253, 224, 71, 0),    0 0 8px rgba(253, 224, 71, 0.6); }
  100% { box-shadow: 0 0 0 0   rgba(253, 224, 71, 0),    0 0 8px rgba(253, 224, 71, 0.6); }
}

/* Bullhorn icon — subtle wiggle every loop */
.utk-label-inner i.fas {
  animation: utkBell 4.2s cubic-bezier(.36,.07,.19,.97) infinite;
  transform-origin: 70% 30%;
  display: inline-block;
}
@keyframes utkBell {
  0%, 70%, 100%  { transform: rotate(0deg); }
  74%            { transform: rotate(-12deg); }
  78%            { transform: rotate(10deg); }
  82%            { transform: rotate(-8deg); }
  86%            { transform: rotate(6deg); }
  90%            { transform: rotate(-3deg); }
  94%            { transform: rotate(0deg); }
}

.utk-label-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.utk-label-inner i.fas,
.utk-label-inner svg {
  color: #fde047;
  font-size: 0.82rem;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

/* === Ticker wrap & content === */
.utk-ready .ticker-wrap {
  padding-left: 6px;
  position: relative;
  z-index: 2;
  /* Soft fade on both edges so items don't pop in/out */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 40px, #000 calc(100% - 80px), transparent 100%);
}
.utk-ready .ticker-content {
  gap: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  animation: tickerScroll 42s linear infinite;
  will-change: transform;
  transition: animation-duration .4s ease;
}
/* Slow-mo on hover instead of hard pause — readable yet alive */
.utk-ready#announcement:hover .ticker-content {
  animation-duration: 140s;
}

/* Kill the legacy "★" pseudo */
.utk-ready .ticker-content span::before { content: none !important; }

/* === Each event item === */
.utk-item {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  position: relative;
  height: 100%;
  line-height: 1;
  cursor: default;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.utk-item:hover { transform: translateY(-1px); }
.utk-item + .utk-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.35);
  transform: translateY(-50%);
}

/* Icon chip — colored per type, soft tint */
.utk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(225, 29, 46, 0.10);
  color: var(--red);
  border: 1px solid rgba(225, 29, 46, 0.18);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s, color 0.3s;
}
.utk-ico svg { width: 14px; height: 14px; }

.utk-item.utk-holiday .utk-ico { background: rgba(239, 68, 68, 0.10); color: #dc2626; border-color: rgba(239, 68, 68, 0.22); }
.utk-item.utk-exam    .utk-ico { background: rgba(59, 130, 246, 0.10); color: #2563eb; border-color: rgba(59, 130, 246, 0.22); }
.utk-item.utk-event   .utk-ico { background: rgba(16, 185, 129, 0.10); color: #059669; border-color: rgba(16, 185, 129, 0.22); }
.utk-item.utk-notice  .utk-ico { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.28); }

.utk-item:hover .utk-ico {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 6px 14px -4px rgba(225, 29, 46, 0.28);
}
/* Icon micro-bounce on the holiday/event types when scrolled into view (every loop) */
.utk-item.utk-event   .utk-ico svg,
.utk-item.utk-holiday .utk-ico svg {
  animation: utkIcoFloat 3.4s ease-in-out infinite;
}
@keyframes utkIcoFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-2px) rotate(3deg); }
}

/* Text block */
.utk-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.utk-text b {
  font-weight: 700;
  letter-spacing: 0.1px;
  color: var(--gray-900);
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
}

/* Date pill — flat red soft */
.utk-date {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 46, 0.08);
  color: var(--red);
  border: 1px solid rgba(225, 29, 46, 0.16);
  font-feature-settings: 'tnum';
}

/* Countdown chip — gold for "Today/Tomorrow/in X days" */
.utk-pill {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  color: #7c2d12;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
}
.utk-pill--hot {
  position: relative;
  animation: utkPillBounce 1.6s cubic-bezier(.4,0,.4,1) infinite;
}
.utk-pill--hot::before {
  /* Glow halo */
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(251,191,36,.55), transparent 70%);
  z-index: -1;
  animation: utkPillGlow 1.6s ease-in-out infinite;
}
@keyframes utkPillBounce {
  0%, 100% { transform: translateY(0)    scale(1); filter: brightness(1); }
  50%      { transform: translateY(-1.5px) scale(1.04); filter: brightness(1.1); }
}
@keyframes utkPillGlow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .9;  transform: scale(1.18); }
}

/* === Accessibility: respect reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .utk-ready .ticker-content,
  .utk-ready .ticker-label::before,
  .utk-ready .ticker-label::after,
  .utk-label-inner i.fas,
  .utk-pill--hot,
  .utk-pill--hot::before,
  .utk-item.utk-event   .utk-ico svg,
  .utk-item.utk-holiday .utk-ico svg,
  .utk-ready#announcement {
    animation: none !important;
  }
}

/* === Mobile === */
@media (max-width: 640px) {
  .utk-ready#announcement { height: 40px; }
  .utk-ready .ticker-label {
    padding: 0 22px 0 12px;
    font-size: 0.62rem;
    letter-spacing: 1.2px;
  }
  .utk-ready .ticker-label::after { right: 11px; width: 6px; height: 6px; }
  .utk-ready .ticker-content { font-size: 0.78rem; }
  .utk-item { padding: 0 18px; gap: 9px; }
  .utk-ico  { width: 22px; height: 22px; border-radius: 7px; }
  .utk-ico svg { width: 12px; height: 12px; }
  .utk-text b { font-size: 0.78rem; }
  .utk-date { font-size: 0.64rem; padding: 2px 8px; }
  .utk-pill { font-size: 0.58rem; padding: 2px 8px; }
}

/* =============================================================
   ✦ HERO HIGHLIGHTS — world-class stat strip
   ============================================================= */
@property --hl-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  max-width: 640px;
}

.hl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px 16px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(225, 29, 46, 0.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 10px 28px -16px rgba(225, 29, 46, 0.18);
  transition:
    transform .45s cubic-bezier(.2, .8, .2, 1),
    box-shadow .45s cubic-bezier(.2, .8, .2, 1);
  animation: hlFloat 6s ease-in-out infinite;
  will-change: transform;
}
.hl-card:nth-child(1) { animation-delay: 0s; }
.hl-card:nth-child(2) { animation-delay: 0.8s; }
.hl-card:nth-child(3) { animation-delay: 1.6s; }
.hl-card:nth-child(4) { animation-delay: 2.4s; }
@keyframes hlFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.hl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(225, 29, 46, 0.08) 1px, transparent 1.2px);
  background-size: 14px 14px;
  background-position: 0 0;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
          mask-image: linear-gradient(135deg, #000, transparent 70%);
}

.hl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--hl-angle, 0deg),
    var(--red),
    #f59e0b,
    var(--red),
    #b91626,
    var(--red)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}
.hl-card:hover::after {
  opacity: 1;
  animation: hlBorderSpin 3s linear infinite;
}
@keyframes hlBorderSpin {
  to { --hl-angle: 360deg; }
}

.hl-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(225, 29, 46, 0.10),
    0 28px 48px -18px rgba(225, 29, 46, 0.34);
}
.hl-card:hover .hl-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 22px -6px rgba(225, 29, 46, 0.6);
}

.hl-icon {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 13px;
  background:
    radial-gradient(80% 80% at 30% 25%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(135deg, var(--red) 0%, #b91626 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px -6px rgba(225, 29, 46, 0.55);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s;
  overflow: hidden;
}
.hl-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: skewX(-22deg);
  animation: hlShimmer 5.4s ease-in-out infinite;
  pointer-events: none;
}
.hl-card:nth-child(1) .hl-icon::after { animation-delay: 0s; }
.hl-card:nth-child(2) .hl-icon::after { animation-delay: 1.4s; }
.hl-card:nth-child(3) .hl-icon::after { animation-delay: 2.8s; }
.hl-card:nth-child(4) .hl-icon::after { animation-delay: 4.2s; }
@keyframes hlShimmer {
  0%, 30%   { left: -120%; }
  60%, 100% { left:  200%; }
}
.hl-icon i { position: relative; z-index: 1; }

.hl-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hl-num {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.hl-num__val {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hl-num__suf {
  font-size: 1.05rem;
  font-weight: 800;
  margin-left: 2px;
  background: linear-gradient(135deg, var(--red) 0%, #f59e0b 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hl-lbl {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 6px;
}
.hl-lbl::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 16px;
  background: linear-gradient(90deg, var(--red), #f59e0b);
  border-radius: 2px;
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.hl-card:hover .hl-lbl::after { width: 75%; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  max-width: 640px;
}
.hero-trust__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--red);
  border: 1px solid rgba(225, 29, 46, 0.16);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px -6px rgba(225, 29, 46, 0.18);
  transition:
    background .3s, color .3s, border-color .3s,
    transform .3s, box-shadow .3s;
}
.hero-trust__chip i {
  font-size: 0.72rem;
  opacity: 0.9;
  transition: transform .3s;
}
.hero-trust__chip:hover {
  background: linear-gradient(135deg, var(--red), #b91626);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(225, 29, 46, 0.55);
}
.hero-trust__chip:hover i {
  transform: rotate(-8deg) scale(1.1);
}

@media (max-width: 1100px) {
  .hero-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .hero-highlights { gap: 10px; margin-top: 26px; }
  .hl-card { padding: 14px 12px; gap: 10px; border-radius: 14px; }
  .hl-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 0.95rem; }
  .hl-num  { font-size: 1.35rem; }
  .hl-num__suf { font-size: 0.85rem; }
  .hl-lbl  { font-size: 0.66rem; }
  .hero-trust { margin-top: 18px; gap: 6px; }
  .hero-trust__chip { font-size: 0.66rem; padding: 5px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-card,
  .hl-icon::after,
  .hl-card:hover::after { animation: none !important; }
}
/* =============================================================
   ✦ HERO SPOTLIGHT — live next-event card + social proof
   ============================================================= */
@property --hsp-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-spotlight {
  margin-top: 32px;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* === The card === */
.hsp-card {
  position: relative;
  display: block;
  padding: 18px 20px 16px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(225, 29, 46, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(15, 23, 42, 0.05),
    0 16px 36px -18px rgba(225, 29, 46, 0.22);
  transition:
    transform .45s cubic-bezier(.2, .8, .2, 1),
    box-shadow .45s cubic-bezier(.2, .8, .2, 1);
}

/* Soft moving glow that pulses */
.hsp-card__glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(225, 29, 46, 0.18), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  animation: hspGlow 6s ease-in-out infinite;
}
@keyframes hspGlow {
  0%, 100% { transform: translateX(0)   scale(1); opacity: .8; }
  50%      { transform: translateX(80%) scale(1.15); opacity: 1; }
}

/* Animated conic border on hover */
.hsp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--hsp-angle, 0deg),
    var(--red), #f59e0b, var(--red), #b91626, var(--red)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}
.hsp-card:hover::after {
  opacity: 1;
  animation: hspBorderSpin 3s linear infinite;
}
@keyframes hspBorderSpin {
  to { --hsp-angle: 360deg; }
}

.hsp-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(225, 29, 46, 0.10),
    0 28px 56px -20px rgba(225, 29, 46, 0.36);
}
.hsp-card:hover .hsp-card__arrow {
  transform: translateX(4px);
  background: var(--red);
  color: #fff;
}
.hsp-card:hover .hsp-icon {
  transform: rotate(-6deg) scale(1.06);
}

/* Card head: status pill + arrow */
.hsp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hsp-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
}
.hsp-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: hspPulse 1.6s ease-out infinite;
}
@keyframes hspPulse {
  0%   { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.hsp-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 29, 46, 0.08);
  color: var(--red);
  font-size: 0.78rem;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s;
}

/* Card body */
.hsp-card__body {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
}

.hsp-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    radial-gradient(80% 80% at 30% 25%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(135deg, var(--red), #b91626);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 20px -6px rgba(225, 29, 46, 0.5);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
}
.hsp-icon::after {
  content: '';
  position: absolute;
  top: -50%; left: -120%;
  width: 60%; height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: skewX(-22deg);
  animation: hspShimmer 4.8s ease-in-out infinite;
}
@keyframes hspShimmer {
  0%, 35%   { left: -120%; }
  65%, 100% { left:  200%; }
}

/* Type-tinted icon backgrounds */
.hsp-card[data-type="exam"]   .hsp-icon { background: radial-gradient(80% 80% at 30% 25%, rgba(255,255,255,0.25), transparent 60%), linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 20px -6px rgba(59,130,246,0.5); }
.hsp-card[data-type="event"]  .hsp-icon { background: radial-gradient(80% 80% at 30% 25%, rgba(255,255,255,0.25), transparent 60%), linear-gradient(135deg, #10b981, #047857); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 20px -6px rgba(16,185,129,0.5); }
.hsp-card[data-type="notice"] .hsp-icon { background: radial-gradient(80% 80% at 30% 25%, rgba(255,255,255,0.25), transparent 60%), linear-gradient(135deg, #f59e0b, #d97706); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 20px -6px rgba(245,158,11,0.5); }

.hsp-card__meta { min-width: 0; }
.hsp-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 3px;
  color: var(--gray-900);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsp-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-500);
  margin: 0;
}
.hsp-card__chip {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #fbbf24);
  color: #7c2d12;
  box-shadow: 0 6px 14px -4px rgba(251, 191, 36, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

/* === Social proof row === */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-proof__avatars {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.hero-proof__avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  margin-left: -10px;
  transition: transform .3s;
}
.hero-proof__avatars span:first-child { margin-left: 0; }
.hero-proof__avatars span:hover { transform: translateY(-3px); z-index: 2; }
.hero-proof__more {
  background: linear-gradient(135deg, var(--red), #b91626) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.3px;
}

.hero-proof__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-proof__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.78rem;
  color: #fbbf24;
}
.hero-proof__stars i {
  filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.4));
}
.hero-proof__stars strong {
  margin-left: 6px;
  color: var(--gray-900);
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}
.hero-proof__text p {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4;
}
.hero-proof__text strong {
  color: var(--gray-900);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 540px) {
  .hero-spotlight { margin-top: 26px; gap: 14px; }
  .hsp-card { padding: 16px; border-radius: 16px; }
  .hsp-card__body { grid-template-columns: 42px 1fr; row-gap: 10px; }
  .hsp-card__chip { grid-column: 1 / -1; justify-self: start; font-size: 0.65rem; padding: 5px 10px; }
  .hsp-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; }
  .hsp-card__title { font-size: 0.96rem; white-space: normal; }
  .hero-proof { gap: 10px; }
  .hero-proof__avatars span { width: 30px; height: 30px; font-size: 0.7rem; }
  .hero-proof__text p { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hsp-card__glow,
  .hsp-icon::after,
  .hsp-status__dot,
  .hsp-card:hover::after { animation: none !important; }
}
