:root {
  --teal: #1AAFA0;
  --teal-dark: #158F82;
  --teal-light: #E0F7F4;
  --teal-glow: rgba(26, 175, 160, 0.25);

  --gold: #E8A838;
  --gold-dark: #D4922A;
  --gold-light: #FFF3DC;

  --navy: #1B2A4A;
  --navy-light: #2C3E5F;

  --text: #2D3748;
  --text-light: #64748B;
  --text-muted: #94A3B8;

  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-card: #FFFFFF;

  --border: #E2E8F0;
  --shadow-sm: 0 1px 4px rgba(27, 42, 74, 0.05);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 10px 30px rgba(27, 42, 74, 0.10);
  --shadow-glow: 0 4px 16px var(--teal-glow);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;

  --nav-height: 72px;
  --transition: .25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo img {
  height: 52px;
  transition: var(--transition);
  object-fit: contain;
}

.nav-logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.mobile-menu-logo {
  display: none;
}

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  background: var(--teal-dark) !important;
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px;
  margin-right: -14px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 40%, var(--teal-dark) 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26, 175, 160, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 14s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.02); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 820px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  animation: fadeUp 0.8s 0.2s forwards;
  opacity: 0;
}

.hero h1 span {
  color: var(--teal);
  display: block;
  font-style: italic;
}

.tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 12px;
  animation: fadeUp 0.8s 0.35s forwards;
  opacity: 0;
}

.motto {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  font-style: italic;
  line-height: 1.6;
  animation: fadeUp 0.8s 0.5s forwards;
  opacity: 0;
}

.motto strong {
  color: var(--gold);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  animation: fadeUp 0.8s 0.65s forwards;
  opacity: 0;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
  fill: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 15px var(--teal-glow);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--teal-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.btn-facebook {
  background: #1877F2;
  color: #fff;
}

.btn-facebook:hover {
  background: #166FE5;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.25);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 16px;
  color: var(--navy);
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-text p {
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--navy);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--bg-card);
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.value-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--teal);
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 500;
}

.courses-compact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.compact-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 180px;
  max-width: 260px;
}

.compact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--teal);
}

.compact-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
  display: flex;
  align-items: center;
}

.compact-icon img {
  width: 26px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: block;
}

.compact-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.tutoring-card {
  background: var(--gold-light);
  border-color: transparent;
}

.tutoring-card .compact-icon {
  color: var(--gold-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.why-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 30px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.why-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
}

.why-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.team-carousel {
  position: relative;
  margin-top: 50px;
  padding: 0 56px;
}

.team-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0 20px; /* space for shadows and scrollbar */
  -ms-overflow-style: none; /* IE */
  scrollbar-width: none; /* Firefox */
}

.team-track::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-arrow:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.team-arrow-left {
  left: 0;
}

.team-arrow-right {
  right: 0;
}

.team-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 25%;
  border-bottom: 1px solid var(--border);
}

.team-info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

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

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.contact-item > i {
  font-size: 1.3rem;
  color: var(--teal);
  margin-top: 3px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-item a {
  color: var(--navy);
  font-weight: 500;
  font-size: 1rem;
}

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

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.footer-contact p {
  font-size: 0.93rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--teal);
  width: 16px;
  text-align: center;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--teal);
}

.footer-social {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0 6px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 0.88rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-dev {
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.5;
}

.footer-dev a {
  color: var(--teal);
  opacity: 1;
}

.footer-dev a:hover {
  text-decoration: underline;
}

/* ActiveNow signup widget */
.activenow-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.activenow-wrapper:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.activenow-table-container {
  width: 100%;
  min-height: 200px;
}

.activenow-table-container center {
  padding: 20px 0;
}

.activenow-table-container table {
  width: 100% !important;
  border-collapse: collapse;
  font-family: var(--font-body) !important;
}

.activenow-table-container td,
.activenow-table-container th {
  padding: 12px 16px !important;
  font-family: var(--font-body) !important;
}

.activenow-table-container a {
  color: var(--teal) !important;
  font-weight: 600;
}

.activenow-table-container a:hover {
  color: var(--teal-dark) !important;
}

@media (max-width: 768px) {
  .activenow-wrapper {
    padding: 24px 16px;
    border-radius: var(--radius);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .team-track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .navbar {
    padding: 0 20px;
  }

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

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 60px 32px 40px;
    gap: 12px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transition: right var(--transition);
    align-items: stretch;
  }

  .mobile-menu-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .mobile-menu-logo img {
    height: 60px;
    object-fit: contain;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: block;
    text-align: center;
    padding: 16px 18px;
    font-size: 1.1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 12px;
    justify-content: center;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stats {
    gap: 30px;
    flex-wrap: wrap;
  }

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

  .courses-compact-grid {
    gap: 12px;
  }

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

  .team-carousel {
    padding: 0 40px;
  }
  .team-track {
    grid-auto-columns: 100%;
  }

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

  .map-wrapper iframe {
    height: 300px;
  }

  .contact-cta .btn {
    text-align: center;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-contact p {
    justify-content: center;
  }
}

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

  .value-card {
    padding: 20px 16px;
  }

  .compact-card {
    padding: 14px 20px;
    min-width: 100%;
  }

  .why-card {
    padding: 30px 22px;
  }

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

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}