:root {
  --primary: #0b4ab8;
  --secondary: #c88a2a;
  --light-blue: #2d6adf;
  --gold-light: #d8a24a;
  --bg: #f8fafc;
  --text: #1e293b;
  --gray: #64748b;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #0b4ab8 0%, #2d6adf 50%, #c88a2a 100%);
  --ink: #0f172a;
  --mint: #16a085;
  --rose: #e85d75;
  --violet: #7c3aed;
  --cyan: #0891b2;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.76);
  --border: rgba(148, 163, 184, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 106, 223, 0.14), transparent 32rem),
    radial-gradient(circle at 94% 8%, rgba(216, 162, 74, 0.16), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 36%, #eef6ff 100%);
  overflow-x: hidden;
  padding-bottom: 92px;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(100% - 32px, 1140px);
}

.section-panel {
  padding: 72px 0;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  backdrop-filter: blur(22px);
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.navbar {
  padding: 0;
}

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

.brand-lockup strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}

.brand-lockup small {
  display: block;
  color: var(--gray);
  font-size: 0.76rem;
  font-weight: 600;
}

.logo-frame {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 24px rgba(11, 74, 184, 0.16);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
}

.logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.desktop-links .nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--gray);
  font-weight: 800;
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.desktop-links .nav-link:hover,
.desktop-links .nav-link.active {
  color: #ffffff;
  background: var(--primary);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 74, 184, 0.05), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 88% 18%, rgba(216, 162, 74, 0.34), transparent 17rem);
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.78;
  animation: float 7s ease-in-out infinite;
}

.hero-shape-one {
  width: 88px;
  height: 88px;
  left: 5%;
  top: 14%;
  background: rgba(45, 106, 223, 0.2);
}

.hero-shape-two {
  width: 140px;
  height: 140px;
  right: 8%;
  top: 18%;
  background: rgba(200, 138, 42, 0.18);
  animation-delay: -2s;
}

.hero-shape-three {
  width: 72px;
  height: 72px;
  right: 22%;
  bottom: 12%;
  background: rgba(11, 74, 184, 0.18);
  animation-delay: -4s;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 900;
}

.logo-frame-lg {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  border-radius: 50%;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: rgba(45, 106, 223, 0.09);
  border: 1px solid rgba(45, 106, 223, 0.15);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.55rem, 11vw, 5rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
  max-width: 720px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.hero-copy,
.section-heading p,
.about p,
.contact p {
  color: var(--gray);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary-gradient {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 16px 28px rgba(11, 74, 184, 0.25);
}

.btn-primary-gradient:hover {
  color: #ffffff;
  background: #083f9d;
  box-shadow: 0 20px 36px rgba(11, 74, 184, 0.32);
}

.btn-soft {
  color: #7a4a06;
  background: #fff4d9;
  border: 1px solid rgba(200, 138, 42, 0.28);
}

.hero-dashboard {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
  gap: 18px;
}

.hero-illustration {
  position: relative;
  width: min(100%, 420px);
  min-height: 260px;
  padding: 26px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 20%, rgba(216, 162, 74, 0.28), transparent 7rem),
    radial-gradient(circle at 86% 76%, rgba(45, 106, 223, 0.26), transparent 8rem),
    #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-illustration::after {
  content: "";
  position: absolute;
  inset: auto -28px -42px auto;
  width: 160px;
  height: 160px;
  border-radius: 46px;
  background: #ffdf8a;
  transform: rotate(18deg);
}

.screen-card {
  position: relative;
  z-index: 2;
  width: 78%;
  min-height: 188px;
  padding: 18px;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.screen-dot {
  display: block;
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: #38bdf8;
  margin-bottom: 18px;
}

.screen-row {
  height: 12px;
  width: 60%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 10px;
}

.screen-row.wide {
  width: 86%;
  background: rgba(255, 255, 255, 0.36);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.screen-grid i {
  display: grid;
  place-items: center;
  height: 54px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(45, 106, 223, 0.72);
}

.screen-grid i:nth-child(2) {
  background: rgba(22, 160, 133, 0.78);
}

.screen-grid i:nth-child(3) {
  background: rgba(200, 138, 42, 0.86);
}

.student-bubble,
.book-bubble {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.student-bubble {
  right: 30px;
  top: 28px;
  width: 82px;
  height: 82px;
  background: var(--secondary);
  font-size: 2rem;
}

.book-bubble {
  right: 62px;
  bottom: 34px;
  width: 66px;
  height: 66px;
  background: var(--primary);
  font-size: 1.55rem;
}

.dashboard-card,
.mission-box,
.course-card,
.teacher-card,
.contact-form,
.contact-list a,
.contact-list div {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.dashboard-card {
  width: min(100%, 430px);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-weight: 900;
  margin-bottom: 18px;
}

.dashboard-top i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: var(--primary);
}

.stats-grid {
  display: grid;
  gap: 12px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.stat-card span {
  color: var(--gray);
  font-weight: 800;
  font-size: 0.86rem;
}

.progress-list {
  margin-top: 20px;
}

.progress-list > div:not(.progress) {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 0.86rem;
  font-weight: 800;
  margin: 12px 0 7px;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.16);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  font-weight: 900;
  font-size: 0.82rem;
  animation: float 5.5s ease-in-out infinite;
}

.floating-chip i {
  color: var(--secondary);
}

.chip-one {
  left: 2%;
  top: 10%;
}

.chip-two {
  right: 2%;
  bottom: 12%;
  animation-delay: -2.5s;
}

.about {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 246, 255, 0.78)),
    radial-gradient(circle at 82% 20%, rgba(22, 160, 133, 0.12), transparent 18rem);
}

.about-visual {
  position: relative;
  min-height: 210px;
  margin-bottom: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto auto;
  width: 128px;
  height: 128px;
  border-radius: 34px;
  background: #e0f2fe;
  transform: rotate(15deg);
}

.mentor-card {
  position: absolute;
  left: 18px;
  bottom: 20px;
  z-index: 2;
  width: min(76%, 310px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
  font-weight: 900;
}

.mentor-card i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #0f172a;
  background: #facc15;
}

.skill-orbit {
  position: absolute;
  right: 26px;
  top: 24px;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.skill-orbit span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: var(--soft-shadow);
}

.skill-orbit span:nth-child(2) {
  margin-left: 34px;
  background: var(--mint);
}

.skill-orbit span:nth-child(3) {
  background: var(--secondary);
}

.mission-box {
  display: grid;
  gap: 14px;
  border-radius: 24px;
  padding: 18px;
  margin-top: 24px;
}

.mission-box i,
.feature-grid i,
.course-icon,
.contact-list i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(11, 74, 184, 0.18);
}

.mission-box div:nth-child(2) i,
.feature-grid article:nth-child(2) i,
.feature-grid article:nth-child(4) i {
  background: var(--secondary);
}

.feature-grid article:nth-child(3) i {
  background: var(--mint);
}

.feature-grid article:nth-child(5) i {
  background: var(--violet);
}

.mission-box h3 {
  font-size: 1.04rem;
  font-weight: 900;
  margin: 12px 0 6px;
}

.mission-box p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--soft-shadow);
  font-weight: 900;
  transition: 0.25s ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.course-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--soft-shadow);
}

.search-wrap i {
  color: var(--primary);
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  background: transparent;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pills button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--gray);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  transition: 0.25s ease;
}

.filter-pills button.active,
.filter-pills button:hover {
  color: #ffffff;
  background: var(--primary);
}

.course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 20px;
  border-radius: 24px;
  transition: 0.28s ease;
}

.course-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

.course-visual {
  position: relative;
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
  color: #ffffff;
  background: #0b4ab8;
}

.course-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-visual img.is-hidden {
  display: none;
}

.course-visual img:not(.is-hidden) ~ .visual-pattern {
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.5));
}

.course-visual img:not(.is-hidden) ~ i {
  display: none;
}

.course-visual img:not(.is-hidden) ~ span {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(12px);
}

.course-visual i {
  position: relative;
  z-index: 2;
  font-size: 3.1rem;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.22));
}

.course-visual span {
  position: relative;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 900;
}

.visual-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 3.8rem),
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.2), transparent 4.8rem),
    linear-gradient(135deg, transparent 0 55%, rgba(255, 255, 255, 0.15) 55% 100%);
}

.course-visual::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 132px;
  height: 132px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(18deg);
}

.visual-english-kids {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.visual-english-adults {
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.visual-ai-content {
  background: linear-gradient(135deg, #7c3aed, #2d6adf);
}

.visual-ai-kids {
  background: linear-gradient(135deg, #0891b2, #16a085);
}

.visual-canva {
  background: linear-gradient(135deg, #ec4899, #f59e0b);
}

.visual-graphic {
  background: linear-gradient(135deg, #c88a2a, #ef4444);
}

.visual-quran {
  background: linear-gradient(135deg, #047857, #0f766e);
}

.visual-computer {
  background: linear-gradient(135deg, #0f172a, #0b4ab8);
}

.visual-homework {
  background: linear-gradient(135deg, #f59e0b, #2563eb);
}

.course-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 8px;
}

.course-icon {
  flex: 0 0 44px;
  background: #eff6ff;
  color: var(--primary);
  box-shadow: none;
}

.course-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.instructor {
  display: block;
  color: var(--gray);
  font-size: 0.88rem;
  font-weight: 800;
}

.course-card p {
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 0;
  padding: 0 8px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding: 0 8px;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(45, 106, 223, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.course-card .btn {
  width: calc(100% - 16px);
  margin-top: 4px;
  margin-left: 8px;
  margin-right: 8px;
  padding: 12px 16px;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--gray);
  font-weight: 800;
}

.teachers {
  background:
    radial-gradient(circle at 8% 18%, rgba(232, 93, 117, 0.1), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(45, 106, 223, 0.07));
}

.teacher-card {
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  text-align: center;
  transition: 0.28s ease;
}

.teacher-card:hover {
  transform: translateY(-7px);
}

.avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 28px;
  color: #ffffff;
  background: #0b4ab8;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(11, 74, 184, 0.22);
  overflow: hidden;
}

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

.avatar[data-initials]::before {
  content: attr(data-initials);
}

.teacher-blue .avatar {
  background: #2563eb;
}

.teacher-mint .avatar {
  background: #16a085;
}

.teacher-gold .avatar {
  background: #c88a2a;
}

.teacher-violet .avatar {
  background: #7c3aed;
}

.teacher-card h3 {
  font-size: 1.06rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.teacher-card p {
  min-height: 48px;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(45, 106, 223, 0.09);
  transition: 0.25s ease;
}

.socials a:hover {
  color: #ffffff;
  background: var(--primary);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
}

.contact-list b {
  display: block;
  color: var(--text);
}

.contact-list span {
  color: var(--gray);
  font-weight: 700;
}

.contact-form {
  padding: 20px;
  border-radius: 26px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  outline: 0;
  transition: 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(45, 106, 223, 0.64);
  box-shadow: 0 0 0 4px rgba(45, 106, 223, 0.12);
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--primary);
  font-weight: 800;
  text-align: center;
}

.site-footer {
  padding: 44px 0 108px;
  color: rgba(255, 255, 255, 0.82);
  background: #0d1b34;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-brand strong,
.footer-brand small {
  color: #ffffff;
}

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.bottom-nav {
  position: fixed;
  z-index: 80;
  left: 10px;
  right: 10px;
  bottom: 10px;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 20px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  min-height: 66px;
  padding: 7px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(22px);
}

.bottom-nav a {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 16px;
  color: var(--gray);
  font-size: 0.66rem;
  font-weight: 900;
  transition: 0.25s ease;
}

.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav i {
  font-size: 1.05rem;
}

.bottom-nav a.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(11, 74, 184, 0.22);
}

.whatsapp-float {
  position: fixed;
  right: 14px;
  right: max(14px, env(safe-area-inset-right));
  bottom: 98px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.34);
  font-size: 1.75rem;
  transition: 0.25s ease;
}

.whatsapp-float:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (min-width: 576px) {
  .hero-actions {
    display: flex;
  }

  .hero-actions .btn {
    min-width: 178px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .section-panel {
    padding: 96px 0;
  }

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

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

  .feature-grid article:last-child {
    grid-column: span 2;
  }

  .course-tools {
    grid-template-columns: minmax(270px, 0.8fr) 1.2fr;
    align-items: center;
  }

  .filter-pills {
    justify-content: flex-end;
  }

  .contact-form {
    padding: 28px;
  }

  .site-footer {
    padding-bottom: 42px;
  }

  .whatsapp-float {
    bottom: 28px;
  }
}

@media (min-width: 992px) {
  .hero {
    min-height: calc(100vh - 78px);
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 650px;
    font-size: 1.13rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
