/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #1a5fb4;
  --secondary: #26a69a;
  --accent: #f5a623;
  --dark: #0d1b2a;
  --light: #f4f8ff;
  --gray: #6c757d;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #1a5fb4 0%, #26a69a 100%);
  --shadow: 0 8px 32px rgba(26,95,180,0.12);
  --radius: 16px;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: #4a5568; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge { display: inline-block; background: rgba(26,95,180,0.1); color: var(--primary); padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--gray); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 4px 20px rgba(26,95,180,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,95,180,0.45); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--accent); color: var(--white); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0; transition: background 0.25s ease, box-shadow 0.25s ease; }
.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  /* Avoid backdrop-filter: it breaks position:fixed mobile menus inside the nav */
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; position: relative; z-index: 1003; }
.navbar .container { overflow: visible; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; min-width: 0; }
.nav-logo-mark { height: 48px; width: auto; display: block; background: #fff; border-radius: 12px; padding: 4px 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.nav-brand { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.nav-brand-tag { font-size: 0.82rem; font-weight: 500; color: #7fdbd3; letter-spacing: 0.04em; }
.navbar.scrolled .nav-brand-name { color: var(--primary); }
.navbar.scrolled .nav-brand-tag { color: var(--secondary); }
.nav-menu { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-menu > li { flex-shrink: 0; }
.nav-link { display: inline-block; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 0.92rem; color: var(--white); transition: var(--transition); white-space: nowrap; }
.navbar.scrolled .nav-link { color: var(--dark); }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-cta { margin-left: 8px; padding: 10px 18px; background: var(--accent); color: var(--white); border-radius: 50px; font-weight: 600; transition: var(--transition); white-space: nowrap; font-size: 0.9rem; }
.nav-cta:hover { background: var(--primary); transform: translateY(-1px); }
.navbar.scrolled .nav-cta { color: var(--white); }

/* Auth visibility (avoid inline display fighting flex/mobile CSS) */
.nav-auth-hidden { display: none !important; }

/* Profile dropdown */
.nav-profile { position: relative; list-style: none; }
.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.navbar.scrolled .nav-profile-btn {
  border-color: #dbe3ef;
  background: #f4f7fb;
  color: var(--dark);
}
.nav-profile-btn:hover,
.nav-profile.open .nav-profile-btn {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.nav-profile-caret { font-size: 0.7rem; opacity: 0.8; transition: transform 0.2s ease; }
.nav-profile.open .nav-profile-caret { transform: rotate(180deg); }
.nav-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  border: 1px solid #e8edf5;
  z-index: 1100;
}
.nav-profile-menu[hidden] { display: none !important; }
.nav-profile-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 6px;
}
.nav-profile-head strong { color: var(--dark); font-size: 0.95rem; }
.nav-profile-head span { color: var(--gray); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  touch-action: manipulation;
}
.nav-profile-item i { width: 16px; color: var(--secondary); }
.nav-profile-item:hover { background: #f4f7fb; color: var(--primary); }
.nav-profile-logout { color: #c62828; }
.nav-profile-logout i { color: #c62828; }
.nav-profile-logout:hover { background: #ffebee; color: #b71c1c; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); display: block; }
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
/* Keep bar + hamburger above the dim overlay while drawer is open */
body.nav-open .navbar {
  z-index: 1003;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
body.nav-open .nav-brand-name { color: var(--primary); }
body.nav-open .nav-brand-tag { color: var(--secondary); }
body.nav-open .hamburger span { background: var(--dark); }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  z-index: 1001;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-backdrop.show { display: block; }

/* Mobile drawer when portaled to <body> */
.nav-menu.nav-menu-drawer {
  display: flex !important;
  position: fixed !important;
  top: 72px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  background: #fff !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  gap: 4px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18) !important;
  z-index: 1002 !important;
}

/* ===== HERO SLIDER ===== */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-slides { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.77,0,0.175,1); }
.hero-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,27,42,0.82) 0%, rgba(26,95,180,0.55) 100%); z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 680px; }
.hero-content .badge { display: inline-block; background: rgba(245,166,35,0.2); border: 1px solid var(--accent); color: var(--accent); padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-controls { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); border: none; }
.hero-dot.active { background: var(--accent); width: 28px; border-radius: 5px; }
.hero-arrows { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 100%; display: flex; justify-content: space-between; padding: 0 20px; pointer-events: none; }
.hero-arrow { pointer-events: all; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3); color: var(--white); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--gradient); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 16px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ===== SERVICES ===== */
.service-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(26,95,180,0.06); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); transform: scaleX(0); transition: var(--transition); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(26,95,180,0.18); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(26,95,180,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; transition: var(--transition); }
.service-card:hover .service-icon { background: var(--gradient); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; }

/* ===== COURSES ===== */
.course-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(26,95,180,0.18); }
.course-thumb { height: 200px; background: var(--gradient); position: relative; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.course-tech-logo { width: 96px; height: 96px; background: #fff; border-radius: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 10px 28px rgba(0,0,0,0.18); padding: 14px; }
.course-tech-logo img { width: 58px; height: 58px; object-fit: contain; display: block; }
.course-tech-logo.duo { width: auto; min-width: 118px; padding: 14px 16px; }
.course-tech-logo.duo img { width: 42px; height: 42px; }
.course-badge { position: absolute; top: 16px; left: 16px; background: var(--accent); color: var(--white); padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.course-body { padding: 24px; }
.course-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.course-meta { display: flex; gap: 16px; margin: 12px 0; font-size: 0.85rem; color: var(--gray); }
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid #f0f0f0; }
.course-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.course-price span { font-size: 0.85rem; font-weight: 400; color: var(--gray); text-decoration: line-through; margin-left: 6px; }
.course-duration { font-size: 1rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.course-duration i { color: var(--secondary); }

/* ===== WHY US ===== */
.why-us { background: var(--dark); color: var(--white); }
.why-us .section-header .badge { background: rgba(245,166,35,0.15); color: var(--accent); }
.why-us .section-header h2 { color: var(--white); }
.why-us .section-header p { color: rgba(255,255,255,0.65); }
.feature-item { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); transition: var(--transition); }
.feature-item:hover { background: rgba(26,95,180,0.2); border-color: rgba(26,95,180,0.4); }
.feature-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.feature-item h3 { color: var(--white); margin-bottom: 6px; }
.feature-item p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--light); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s ease; }
.testimonial-card { min-width: calc(33.333% - 16px); margin-right: 24px; background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-text { font-style: italic; color: #4a5568; margin-bottom: 24px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.1rem; }
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { font-size: 0.82rem; color: var(--gray); }
.testimonial-nav { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: #d0d7e2; cursor: pointer; border: none; transition: var(--transition); }
.t-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--gradient); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; left: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.cta-banner::after { content: ''; position: absolute; bottom: -30%; right: -5%; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 36px; font-size: 1.05rem; position: relative; z-index: 1; }
.cta-banner .btn-white:hover { background: var(--dark); color: var(--white); }

/* ===== FOOTER ===== */
.footer { background: #060e1a; color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 16px; }
.footer-logo-mark { height: 56px; width: auto; display: block; background: #fff; border-radius: 12px; padding: 4px 6px; }
.footer-brand-name { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.footer-brand-tag { display: block; font-size: 0.82rem; font-weight: 500; color: #7fdbd3; letter-spacing: 0.04em; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 0.95rem; }
.social-link:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

/* ===== PAGE HERO ===== */
.page-hero { padding: 140px 0 80px; background: var(--gradient); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.page-hero::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.04'%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"); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: var(--accent); }

/* ===== ABOUT PAGE ===== */
.about-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--gradient); height: 420px; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.about-text .badge { display: inline-block; background: rgba(26,95,180,0.1); color: var(--primary); padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; }
.check-list { margin: 20px 0 28px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 0.95rem; }
.check-list .check { color: var(--secondary); font-size: 1rem; margin-top: 2px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.team-card:hover { transform: translateY(-6px); }
.team-avatar { height: 200px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.team-info { padding: 20px; }
.team-info h3 { margin-bottom: 4px; }
.team-info .role { color: var(--secondary); font-size: 0.88rem; font-weight: 600; }

/* ===== CONTACT PAGE ===== */
.contact-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.contact-card:hover { transform: translateY(-4px); }
.contact-card .icon { width: 60px; height: 60px; border-radius: 16px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 16px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--dark); }
.required-mark { color: #c62828; font-weight: 700; margin-left: 2px; }
.optional-mark { color: var(--gray); font-weight: 500; font-size: 0.85em; }
.form-group.is-invalid input,
.form-group.is-invalid textarea,
.form-group.is-invalid select { border-color: #c62828; background: #fff8f8; }
.form-group .field-error { display: none; margin-top: 6px; font-size: 0.82rem; color: #c62828; }
.form-group.is-invalid .field-error { display: block; }
input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid #e8edf5;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.25;
  font-family: inherit;
  transition: var(--transition);
  background: #fafbff;
  color: var(--dark);
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 48px;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a90' d='M1.4.3L6 4.9 10.6.3 12 1.7 6 7.7 0 1.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: #fafbff;
  cursor: pointer;
}
textarea { min-height: 120px; height: auto; resize: vertical; }
input[type="file"] { min-height: auto; padding: 10px 12px; height: auto; }
input[type="checkbox"] { width: auto; min-height: auto; height: auto; padding: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); background: var(--white); }
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.form-status.success { color: #2e7d32; font-weight: 600; }
.form-status.error { color: #c62828; font-weight: 600; }
.rating-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rating-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; background: var(--light); padding: 8px 12px; border-radius: 10px; margin: 0; }
.rating-row input { width: auto; }
.auth-gate {
  text-align: center;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto 20px;
}
.auth-gate h3 { margin-bottom: 4px; }
.auth-gate p { color: var(--gray); margin: 10px 0 18px; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 400px; background: #e8edf5; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gray); }

/* ===== PARTNERS LOGO SLIDER ===== */
.partners-slider { overflow: hidden; position: relative; margin-top: 12px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; gap: 28px; width: max-content; animation: partners-scroll 35s linear infinite; }
.partners-slider:hover .partners-track { animation-play-state: paused; }
.partner-item { flex: 0 0 auto; width: 180px; height: 88px; background: var(--white); border-radius: 16px; border: 1px solid #e8edf5; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; padding: 18px 24px; transition: var(--transition); }
.partner-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,95,180,0.14); }
.partner-item img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; display: block; }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== COURSES PAGE ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 8px 22px; border-radius: 50px; border: 2px solid #e0e7f0; background: var(--white); font-weight: 500; cursor: pointer; transition: var(--transition); font-size: 0.9rem; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.animate-fadeup { animation: fadeUp 0.7s ease forwards; }
.float { animation: float 4s ease-in-out infinite; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:nth-child(2n) { border-right: none; }

  /* Hamburger from tablet up — prevents crowded / broken top nav */
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  /* Desktop-in-nav closed state; open drawer is handled by .nav-menu-drawer on body */
  .nav-menu.open:not(.nav-menu-drawer) {
    display: none;
  }
  .nav-menu.nav-menu-drawer > li { width: 100%; }
  .nav-menu.nav-menu-drawer .nav-link {
    color: var(--dark) !important;
    padding: 14px 16px;
    display: block;
    width: 100%;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-menu.nav-menu-drawer .nav-link:hover,
  .nav-menu.nav-menu-drawer .nav-link.active {
    background: #f4f7fb;
    color: var(--primary) !important;
  }
  .nav-menu.nav-menu-drawer .nav-cta {
    margin: 12px 0 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    padding: 14px 20px;
    border-radius: 12px;
  }
  .nav-menu.nav-menu-drawer .nav-profile { width: 100%; margin-top: 4px; }
  .nav-menu.nav-menu-drawer .nav-profile-btn {
    width: 100%;
    justify-content: flex-start;
    border-color: #dbe3ef;
    background: #f4f7fb;
    color: var(--dark);
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 48px;
  }
  .nav-menu.nav-menu-drawer .nav-profile-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    border: 1px solid #e8edf5;
    min-width: 0;
    width: 100%;
  }
  .hamburger { display: flex; }
  .nav-logo-mark, .footer-logo-mark { height: 42px; }
  .nav-brand-name, .footer-brand-name { font-size: 1.1rem; }
  .nav-brand-tag, .footer-brand-tag { font-size: 0.72rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-content p { font-size: 1rem; }
  .testimonial-card { min-width: 100%; margin-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-arrows { display: none; }
  .contact-form { padding: 24px 18px; }
  .btn { padding: 12px 22px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-brand-name { font-size: 1rem; }
  .nav-brand-tag { display: block; font-size: 0.65rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}
