/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0d8f43;
  --primary-dark: #0a7235;
  --secondary: #1fa25a;
  --accent: #8bd9ad;
  --dark: #073d20;
  --light: #f3fbf6;
  --white: #ffffff;
  --text: #24362c;
  --text-light: #5f7267;
  --border: #cce5d7;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 16px auto 20px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 0.82rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar a {
  color: #ccc;
  transition: color var(--transition);
}

.topbar a:hover {
  color: var(--accent);
}

.topbar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar .icon {
  color: var(--accent);
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-text .name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.brand-text .tagline {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(13, 143, 67, 0.1);
}

.nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  ) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: opacity var(--transition) !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 800px;
  overflow: hidden;
  background: #062b17;
}

/* Slider track holds all slides side by side */
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Each slide */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  /* Fallback color when image is loading */
  background-color: #062b17;
}

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

/* Dark gradient overlay on each slide */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 30, 16, 0.8) 0%,
    rgba(6, 45, 24, 0.7) 50%,
    rgba(8, 64, 35, 0.62) 100%
  );
}

/* Slide content (text + buttons) */
.slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 max(20px, calc((100% - 1160px) / 2));
  padding-top: 80px;
  padding-bottom: 160px;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 217, 173, 0.14);
  border: 1px solid rgba(139, 217, 173, 0.42);
  color: var(--accent);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  animation: fadeSlideUp 0.7s ease both;
}

.slide.active .hero-badge {
  animation-delay: 0.1s;
}

.slide-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 720px;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.2s;
}

.slide-content h1 span {
  background: linear-gradient(90deg, var(--accent), #61c489);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 600px;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.35s;
}

@media (max-width: 1199px) {
  .slide-content {
    padding: 24px 20px 120px;
  }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.5s;
}

/* Reset animation each time a slide becomes active */
.slide:not(.active) .hero-badge,
.slide:not(.active) .slide-content h1,
.slide:not(.active) .hero-desc,
.slide:not(.active) .hero-buttons {
  animation: none;
  opacity: 0;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(13, 143, 67, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 143, 67, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* ===== SLIDER ARROWS ===== */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 28px;
}
.slider-next {
  right: 28px;
}

/* ===== SLIDER DOTS ===== */
.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ===== STATS BAR ===== */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 12px;
  box-sizing: border-box;
  background: rgba(6, 38, 22, 0.74);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 200px;
}

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

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== MARQUEE ===== */
.marquee-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.marquee-item::before {
  content: "✦";
  color: var(--accent);
}

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

/* ===== ABOUT ===== */
.about {
  padding: 90px 0;
  background: var(--white);
}

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

.about-image-wrapper {
  position: relative;
}

.about-image-main {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-image-placeholder {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ecf8f0, #d6efdf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: var(--shadow);
}

.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-hover);
  text-align: center;
  min-width: 140px;
}

.about-badge-card .badge-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.about-badge-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
}

.about-badge-card span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.about-content .section-header {
  text-align: left;
}

.about-content .section-header .divider {
  margin: 16px 0 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--light);
  border-radius: 10px;
  transition: all var(--transition);
}

.highlight-item:hover {
  background: #e8f6ee;
  transform: translateY(-2px);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.highlight-item p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.about-approval {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ecf8f0, #d6efdf);
  border-radius: 10px;
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
}

.about-approval .approval-icon {
  font-size: 1.5rem;
}

.about-approval span {
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 500;
}

/* ===== COURSES ===== */
.courses {
  padding: 90px 0;
  background: var(--light);
}

.courses-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  cursor: default;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 143, 67, 0.18);
}

.course-img {
  width: 100%;
  height: 175px;
  overflow: hidden;
  position: relative;
  border-radius: 10px 10px 0 0;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

/* Tag badge overlaid on image */
.course-img .course-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.course-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.course-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.course-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px !important;
  flex: 1;
}

.course-actions {
  display: flex;
  gap: 8px;
}

.card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}

.btn-call {
  background: linear-gradient(135deg, #198754, #0f6b42);
  color: #fff;
  box-shadow: 0 3px 10px rgba(25, 135, 84, 0.3);
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.45);
}

.btn-enquire {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 3px 10px rgba(13, 143, 67, 0.32);
}

.btn-enquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 143, 67, 0.46);
}

.course-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.course-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.course-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-nursing {
  background: #ffd6e0;
  color: #c0135a;
}
.tag-lab {
  background: #d4edda;
  color: #155724;
}
.tag-diagnostics {
  background: #d6e0ff;
  color: #1a34a0;
}
.tag-medical {
  background: #ffecc0;
  color: #7d5000;
}
.tag-therapy {
  background: #e4d6ff;
  color: #5a0080;
}
.tag-pharma {
  background: #c8f5f0;
  color: #0d5752;
}
.tag-iti {
  background: #ffe3c7;
  color: #8a3d00;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  padding: 90px 0;
  background: linear-gradient(135deg, #062f19 0%, #0f5a2f 100%);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 10% 90%,
      rgba(139, 217, 173, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(31, 162, 90, 0.15) 0%,
      transparent 40%
    );
}

.why-us .container {
  position: relative;
  z-index: 1;
}

.why-us .section-title {
  color: var(--white);
}
.why-us .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  padding: 90px 0;
  background: var(--white);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-location {
  background: linear-gradient(135deg, #ffd6e0, #ffb3c6);
}
.icon-phone {
  background: linear-gradient(135deg, #d4edda, #a8d5b5);
}
.icon-email {
  background: linear-gradient(135deg, #d8f3e3, #bae6cd);
}

.contact-item-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item-text a:hover {
  color: var(--primary);
}

.contact-form-wrapper {
  background: var(--light);
  border-radius: 16px;
  padding: 40px;
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
  border-color: var(--primary);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 2000;
}

.popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f1f3f5;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.enquire-fixed-button {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 2100;
  padding: 18px 12px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition:
    padding 0.2s ease,
    box-shadow 0.2s ease;
}

.enquire-fixed-button:hover {
  padding: 18px 16px;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .enquire-fixed-button {
    writing-mode: horizontal-tb;
    transform: none;
    right: 0;
    top: auto;
    bottom: 70px;
    border-radius: 8px 0 0 8px;
    padding: 12px 14px;
    font-size: 0.85rem;
  }
  .enquire-fixed-button:hover {
    padding: 12px 18px;
  }
}

.popup-header {
  text-align: center;
  margin-bottom: 18px;
}

.popup-header h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  color: var(--dark);
}

.popup-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 143, 67, 0.4);
}

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
}

/* ===== MAP ===== */
.map-section {
  padding: 0 0 90px;
}

.map-section .container {
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.footer-brand .name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: rgba(255, 255, 255, 0.7);
}

.social-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: "›";
  color: var(--primary);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  align-items: flex-start;
}

.footer-contact-item .fc-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--primary);
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-whatsapp {
  background: #25d366;
  color: white;
}

.float-call {
  background: var(--primary);
  color: white;
}

.float-top {
  background: var(--dark);
  color: white;
  display: none;
}

.float-top.visible {
  display: flex;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero {
    min-height: 800px;
    padding: 60px 0 20px;
  }
  .slide-content {
    position: relative;
    inset: auto;
    padding: 24px 20px 130px;
    width: 100%;
  }
  .slide-content h1,
  .hero-desc,
  .hero-buttons {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact .container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .hero {
    min-height: 800px;
  }
  .slide-content {
    position: relative;
    inset: auto;
    padding: 20px 16px 100px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 4px;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero-stats {
    gap: 20px;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .courses-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 600px;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .slide-content {
    padding: 18px 14px 90px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-form-wrapper {
    padding: 24px 20px;
  }
}
