﻿/* ============================
   CSS VARIABLES & RESET
   ============================ */
:root {
  --orange: #e44d2e;
  --orange-dark: #c53b21;
  --orange-light: #ff9a7a;
  --dark-bg: #0f1117;
  --dark-surface: #1a1d27;
  --dark-card: #1e2130;
  --dark-border: rgba(255, 255, 255, 0.07);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);
  --cyan: #00c6ff;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --navbar-height: 72px;
}

.light-mode {
  --dark-bg: #f4f6fb;
  --dark-surface: #ffffff;
  --dark-card: #eef0f8;
  --dark-border: rgba(0, 0, 0, 0.08);
  --text-primary: #0f1117;
  --text-secondary: rgba(15, 17, 23, 0.65);
  --text-muted: rgba(15, 17, 23, 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.hero-content,
.hero-text,
.hero-visual,
.course-card,
.fb-card,
.why-card,
.about-card,
.value-card,
.highlight-card,
.contact-card,
.gallery-card,
.course-detail-panel {
  min-width: 0;
}

.hero-actions,
.course-meta,
.contact-line,
.map-line {
  flex-wrap: wrap;
}

/* ============================
   UTILITIES
   ============================ */
.accent {
  color: var(--orange);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(245, 166, 35, 0.1);
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes float {

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

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

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

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

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

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

.animate-in {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.25s;
}

.delay-3 {
  animation-delay: 0.4s;
}

.delay-4 {
  animation-delay: 0.55s;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5%;
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 17, 23, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.light-mode .navbar {
  background: rgba(244, 246, 251, 0.8);
}

.light-mode .navbar.scrolled {
  background: rgba(244, 246, 251, 0.97);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img,
.logo-icon video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(50%);
  display: block;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  min-width: 160px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
  background: rgba(245, 166, 35, 0.1);
  color: var(--orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

@media (min-width: 769px) {
  .navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .nav-links {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    flex: none;
    min-width: max-content;
    justify-self: center;
    z-index: 1;
  }

  .nav-actions {
    margin-left: 0;
    justify-self: end;
  }
}

.icon-btn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(245, 166, 35, 0.1);
}

.home-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.home-admin-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(245, 166, 35, 0.1);
}

.home-admin-link.active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(245, 166, 35, 0.1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 50%;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
  transform-origin: center;
  transform: translateX(-50%);
}

.hamburger span:nth-child(1) {
  top: 11px;
}

.hamburger span:nth-child(2) {
  top: 18px;
}

.hamburger span:nth-child(3) {
  top: 25px;
}

.hamburger.open span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.hamburger.open span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-open .hamburger span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.nav-open .hamburger span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Search bar */
.search-bar {
  position: absolute;
  top: calc(100% + 12px);
  right: 5%;
  width: min(360px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1040;
}

.search-bar.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overflow: visible;
  transform: translateY(0);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.search-bar input:focus {
  border-color: var(--orange);
}

.search-bar button {
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-bar button:hover {
  background: var(--orange-dark);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 1045;
}

.search-suggestions.open {
  display: block;
}

.search-suggestion {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.search-suggestion:hover,
.search-suggestion.active {
  background: rgba(228, 77, 46, 0.12);
  color: var(--orange);
}

.search-suggestion.empty {
  color: var(--text-secondary);
  cursor: default;
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--navbar-height) + var(--announcement-height) + 40px) 5% 100px;
  background: var(--hero-image, url("../../images/banner(1920).jpg")) center/cover no-repeat;
}

.hero:has(.hero-media),
.hero.hero-has-video {
  background: #0f1117;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, var(--hero-overlay-opacity, 0.72));
  backdrop-filter: blur(var(--hero-overlay-blur, 0px));
  -webkit-backdrop-filter: blur(var(--hero-overlay-blur, 0px));
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero.hero-video-ready .hero-media-asset {
  opacity: 1;
}

.hero.hero-video-error {
  background: var(--hero-image, url("../../images/banner(1920).jpg")) center/cover no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(245, 166, 35, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 60%, rgba(0, 198, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Light mode hero readability */
.light-mode .hero {
  background: var(--hero-image, url("../../images/banner(1920).jpg")) center/cover no-repeat;
}

.light-mode .hero:has(.hero-media),
.light-mode .hero.hero-has-video {
  background: #f4f6fb;
}

.light-mode .hero::before {
  background: rgba(255, 255, 255, min(calc(var(--hero-overlay-opacity, 0.72) + 0.08), 0.9));
}

.light-mode .hero.hero-video-error {
  background: var(--hero-image, url("../../images/banner(1920).jpg")) center/cover no-repeat;
}

.light-mode .hero-bg-overlay {
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(245, 166, 35, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 60%, rgba(0, 198, 255, 0.08) 0%, transparent 70%);
}

.light-mode .hero-tag,
.light-mode .hero-sub {
  color: rgba(15, 17, 23, 0.7);
}

.light-mode .hero-text h1 {
  color: #0f1117;
  text-shadow: 0 6px 18px rgba(255, 255, 255, 0.6);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-circle-orange {
  width: 260px;
  height: 340px;
  background: var(--orange);
  opacity: 0.75;
  left: -80px;
  bottom: 60px;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-circle-gray {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  right: -80px;
  top: 80px;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 3;
}

.hero-text {
  max-width: 560px;
  flex: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.student-circle {
  width: 300px;
  height: 300px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: float 5s ease-in-out infinite;
}

.student-circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.5);
  animation: pulse-ring 2.5s ease-out infinite;
}

.student-placeholder {
  width: 100%;
  height: 100%;
  padding: 0;
}

.student-placeholder img,
.student-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.speech-bubble {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.35);
  z-index: 3;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--orange);
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 28px 40px;
  margin-top: 60px;
  box-shadow: var(--shadow);
}

.stat {
  text-align: center;
  padding: 0 36px;
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-number::after {
  content: attr(data-suffix);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--dark-border);
}

/* ============================
   COURSES SECTION
   ============================ */
.courses-section {
  padding: 100px 5%;
  background: var(--dark-bg);
}

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

.course-card {
  --course-card-image: none;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: var(--transition);
  cursor: pointer;
}

.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--course-card-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  transform: scale(1.03);
  z-index: 0;
}

.course-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.58), rgba(11, 15, 26, 0.9));
  z-index: 0;
}

.course-card>* {
  position: relative;
  z-index: 1;
}

.course-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(245, 166, 35, 0.15);
}

.course-card.featured {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.04));
  border-color: rgba(245, 166, 35, 0.35);
}

.course-card.featured::after {
  background: linear-gradient(180deg, rgba(40, 28, 12, 0.5), rgba(18, 16, 13, 0.82));
}

.course-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  min-width: calc(100% - 32px);
  max-width: calc(100% - 32px);
  text-align: center;
  transform: translateX(-50%);
}

.course-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 130, 32, 0.12);
  color: var(--orange);
  flex-shrink: 0;
  isolation: isolate;
}

.course-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 130, 32, 0.25);
}

.course-card.featured .course-icon {
  background: rgba(245, 130, 32, 0.16);
}

.course-icon svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: block;
}

.course-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.course-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 10px;
}

/* ============================
   FACEBOOK FEED
   ============================ */
.facebook-section {
  padding: 100px 5%;
  background: var(--dark-surface);
}

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

.fb-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: var(--transition);
}

.fb-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  background: #0f1117;
}

.fb-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.fb-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(245, 166, 35, 0.12);
}

.fb-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.4;
}

.fb-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fb-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.fb-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fb-link:hover {
  gap: 10px;
}

.fb-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.fb-error {
  margin-top: 16px;
  text-align: center;
  color: #ffb3b3;
  display: none;
  font-size: 0.9rem;
}

.fb-error.visible {
  display: block;
}

/* ============================
   WHY US
   ============================ */
.why-us {
  padding: 100px 5%;
  background: var(--dark-surface);
  display: flex;
  align-items: center;
  gap: 80px;
}

.why-text {
  flex: 1;
  max-width: 500px;
}

.why-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0 18px;
}

.why-text>p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  margin-bottom: 36px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-secondary);
}

.check {
  width: 24px;
  height: 24px;
  background: rgba(245, 166, 35, 0.15);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.why-visual {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  position: relative;
}

.why-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.why-card-3 {
  grid-column: 1 / -1;
}

.wcard-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.why-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================
   CONTACT
   ============================ */
.contact-section {
  padding: 100px 5%;
  background: var(--dark-bg);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form select option {
  background: var(--dark-card);
}

.contact-form .btn-primary {
  align-self: center;
  padding: 16px 52px;
  font-size: 1rem;
}

.form-success {
  max-width: 700px;
  margin: 12px auto 0;
  text-align: center;
  color: #4caf89;
  font-weight: 500;
  font-size: 0.95rem;
  display: none;
}

.form-success.visible {
  display: block;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 60px 5% 30px;
}

.footer-top {
  display: flex;
  gap: 60px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 2;
  max-width: 300px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.6;
}

.footer-links {
  flex: 1;
  min-width: 160px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text-primary);
}

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

.footer-links li,
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    align-self: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
  }

  .stat-divider {
    display: none;
  }

  .why-us {
    flex-direction: column;
  }

  .why-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: var(--navbar-height);
    min-height: calc(var(--navbar-height) + env(safe-area-inset-top));
    padding: calc(env(safe-area-inset-top) + 8px) 5%;
    gap: 10px;
    overflow: visible;
  }

  .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    font-size: 1rem;
  }

  .nav-logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-actions {
    gap: 6px;
    min-width: 0;
    margin-left: 0;
    justify-self: end;
  }

  #searchBtn {
    display: none;
  }

  .home-admin-link {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 5%;
    right: 5%;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition), border-color var(--transition);
    z-index: 1010;
  }

  .nav-links.open,
  .nav-open .nav-links {
    max-height: 420px;
    padding: 16px 20px;
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 16px;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .hamburger {
    display: flex;
    width: 34px;
    height: 34px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .search-bar {
    top: calc(100% + 10px);
    left: 5%;
    right: 5%;
    width: auto;
  }

  .announcement-bar {
    padding: 0 12px;
    font-size: 0.8rem;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .student-circle {
    width: min(72vw, 220px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .course-meta {
    gap: 8px 12px;
  }

  .hero-sub,
  .section-header p,
  .course-card p,
  .card-link,
  .contact-card p,
  .map-line span,
  .footer-links li {
    overflow-wrap: anywhere;
  }
}

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

  .stat {
    padding: 0 16px;
  }

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

:root {
  --announcement-height: 42px;
}

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--announcement-height);
  background: #e44d2e;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  z-index: 1105;
  border-bottom: 1px solid var(--dark-border);
}

.navbar {
  top: var(--announcement-height);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  z-index: 1200;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.whatsapp-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .nav-links {
    top: 100%;
  }
}




.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 56px;
  height: 56px;
  display: block;
  overflow: visible;
}

.chat-fab-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-fab-toggle-bubble {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-solid);
  color: var(--accent-solid-text);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.24s ease, background var(--transition), color var(--transition);
}

.chat-fab-toggle-icon-svg {
  width: 34px;
  height: 34px;
  display: block;
}

.chat-fab-toggle:hover .chat-fab-toggle-bubble {
  transform: translateY(-2px) scale(1.03);
}

.chat-fab-toggle-icon {
  display: none;
}

.chat-fab-menu {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transform-origin: bottom center;
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
}

.chat-fab.open .chat-fab-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.chat-fab.open .chat-fab-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.86);
}

.chat-fab-link,
.chat-fab-close {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition);
}

.chat-fab.open .chat-fab-link,
.chat-fab.open .chat-fab-close {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-fab.open .chat-fab-menu>* {
  transition-delay: calc(var(--fab-order, 0) * 0.04s);
}

.chat-fab-link:hover,
.chat-fab-close:hover {
  transform: translateY(-2px) scale(1.03);
}

.chat-fab-link {
  min-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
}

.chat-fab-item-label {
  max-width: 132px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 17, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  white-space: normal;
}

.light-mode .chat-fab-item-label {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 17, 23, 0.08);
  color: #0f1117;
}

.chat-fab-icon-shell,
.chat-fab-icon {
  display: block;
}

.chat-fab-icon-shell {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chat-item-bg, var(--accent-solid));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.chat-fab-link:hover .chat-fab-icon-shell {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.chat-fab-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.chat-fab-link svg {
  display: none;
}

.chat-fab-close {
  width: 52px;
  height: 52px;
  background: #e44d2e;
  color: transparent;
  font-size: 0;
  line-height: 1;
  position: relative;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.chat-fab-close::before,
.chat-fab-close::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: #fff;
}

.chat-fab-close::before {
  transform: rotate(45deg);
}

.chat-fab-close::after {
  transform: rotate(-45deg);
}

/* Chat floating button placement fix */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
}

@supports (bottom: env(safe-area-inset-bottom)) {
  .chat-fab {
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
  }
}

/* Floating chat force position */
.chat-fab {
  position: fixed !important;
  right: 22px !important;
  left: auto !important;
  bottom: 22px !important;
  z-index: 3000 !important;
}

@supports (bottom: env(safe-area-inset-bottom)) {
  .chat-fab {
    right: max(22px, env(safe-area-inset-right)) !important;
    bottom: max(22px, env(safe-area-inset-bottom)) !important;
  }
}
