/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #0a7b8c;
  --teal-dark: #065f6e;
  --teal-light:#e6f4f6;
  --gold:      #c49a2a;
  --gold-light:#fdf6e3;
  --dark:      #0f1f2d;
  --text:      #374151;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --white:     #ffffff;
  --bg:        #f8fafc;
  --radius:    14px;
  --shadow:    0 4px 24px rgba(10,123,140,.10);
  --shadow-lg: 0 12px 48px rgba(10,123,140,.16);
  --font:      'Inter', sans-serif;
  --serif:     'Playfair Display', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Utility ───────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
section:nth-child(even) { background: var(--white); }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(10,123,140,.25);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,123,140,.32); }
.btn-primary.small { padding: 9px 20px; font-size: .85rem; }
.btn-primary.full  { width: 100%; text-align: center; padding: 15px; font-size: 1rem; }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ─── Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0 24px;
  height: 70px;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}
#navbar.scrolled .logo,
#navbar.scrolled .nav-links a { color: var(--dark); }
#navbar.scrolled .btn-nav { color: var(--white) !important; }

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  transition: color .3s;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-nav {
  background: var(--white) !important;
  color: var(--teal) !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
}
.btn-nav:hover { background: var(--teal-light) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background .3s;
}
#navbar.scrolled .burger span { background: var(--dark); }

/* ─── Hero ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 24px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #065f6e 0%, #0a7b8c 40%, #0e9aad 70%, #1ab3c8 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.08)'/%3E%3C/svg%3E");
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 80px solid rgba(255,255,255,.05);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
#hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-sub {
  color: rgba(255,255,255,.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 16px 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  min-width: 100px;
}
.stat span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat label {
  font-size: .72rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero-scroll span {
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; transform: scaleY(1); }
  50%      { opacity: 1;  transform: scaleY(1.15); }
}

/* ─── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.main-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.about-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.main-card h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.about-degree {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: .95rem;
}
.about-bio {
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.75;
}
.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.about-meta span {
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
}
.about-side { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
}
.info-card ul li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .87rem;
}
.info-card ul li:last-child { border-bottom: none; }
.info-card ul li strong {
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 80px;
}
.availability { border-left: 4px solid var(--teal); }
.availability h4 { color: var(--teal); }
.availability p { color: var(--text); font-size: .9rem; margin-bottom: 16px; }

/* ─── Skills ────────────────────────────────────────────────── */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-light); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 2rem; margin-bottom: 14px; }
.skill-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.skill-card p { font-size: .85rem; color: var(--muted); line-height: 1.5; }

.specialties-section {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius);
  padding: 36px;
}
.spec-sub {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  margin-bottom: 18px;
}
.specialties-section h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 20px;
}
.specialties-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.tag:hover { background: rgba(255,255,255,.28); }

/* ─── Experience / Timeline ─────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal-light));
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-dot {
  position: absolute;
  left: -28px; top: 16px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal-light);
}
.timeline-date {
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.tl-header h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--dark);
}
.tl-badge {
  background: var(--teal-light);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}
.tl-place {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: .9rem;
}
.tl-list { padding-left: 0; }
.tl-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.55;
}
.tl-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tl-tags span {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}

/* ─── Timeline story paragraph ─────────────────────────────── */
.tl-story {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
}

/* ─── Certs Row ─────────────────────────────────────────────── */
.certs-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.cert-icon { font-size: 1.8rem; flex-shrink: 0; }
.cert-item strong { display: block; font-size: .92rem; color: var(--dark); margin-bottom: 3px; }
.cert-item span { font-size: .8rem; color: var(--muted); }

/* ─── Education ─────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.edu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}
.edu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.edu-card.highlight { border-left: 4px solid var(--teal); }
.edu-icon { font-size: 2rem; flex-shrink: 0; }
.edu-year {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  background: var(--teal-light);
  padding: 2px 10px;
  border-radius: 99px;
}
.edu-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.edu-card p { font-size: .87rem; color: var(--text); margin-bottom: 2px; }
.edu-note { color: var(--muted) !important; font-size: .8rem !important; }

/* ─── WhatsApp card ─────────────────────────────────────────── */
.whatsapp-card { border-left: 4px solid #25d366; }
.whatsapp-card h4 { color: #128c5e; }
.btn-whatsapp {
  display: inline-block;
  background: #25d366;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  margin-top: 8px;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: #128c5e; transform: translateY(-2px); }
.whatsapp-item:hover { border-color: #25d366 !important; }

/* ─── Teaching ──────────────────────────────────────────────── */
#teaching {
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}
.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.teaching-intro h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.teaching-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.teaching-points li { display: flex; gap: 14px; align-items: flex-start; }
.tp-icon {
  width: 26px; height: 26px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.teaching-points li div { font-size: .92rem; line-height: 1.6; }
.teaching-note {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 14px;
  font-style: italic;
}

.teaching-cards { display: flex; flex-direction: column; gap: 16px; }
.t-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.t-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); border-left-color: var(--teal); border-left-width: 3px; }
.t-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.t-card h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.t-card p { font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* ─── Blog ──────────────────────────────────────────────────── */
#blog { background: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-light);
}
.blog-card.featured {
  grid-column: span 3;
  background: var(--white);
  border-left: 4px solid var(--teal);
  display: grid;
  grid-template-columns: 1fr;
}
.blog-tag-wrap { margin-bottom: 4px; }
.blog-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 3px 12px;
  border-radius: 99px;
}
.blog-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.35;
}
.blog-card.featured h3 { font-size: 1.4rem; }
.blog-excerpt {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.72;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card.featured .blog-excerpt { -webkit-line-clamp: 5; }
.blog-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.blog-author {
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-dark);
}
.blog-date, .blog-read {
  font-size: .78rem;
  color: var(--muted);
}
.blog-date::before { content: '·'; margin-right: 6px; }
.blog-read::before { content: '·'; margin-right: 6px; }
.blog-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 4px;
  transition: color .2s;
}
.blog-link:hover { color: var(--teal-dark); }
.blog-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.blog-cta p {
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

/* ─── Contact ───────────────────────────────────────────────── */
#contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3,
.contact-form-wrap h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.contact-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: box-shadow .2s, border-color .2s;
}
a.contact-item:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.ci-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-item span { font-size: .78rem; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-item strong { font-size: .95rem; color: var(--dark); }
.contact-note {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
}
.contact-note p { font-size: .88rem; color: var(--teal-dark); line-height: 1.6; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--dark);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,123,140,.12);
  background: var(--white);
}
.form-success {
  display: none;
  margin-top: 16px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 500;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 48px 24px;
  text-align: center;
}
.footer-inner { max-width: 760px; margin: 0 auto; }
.footer-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}
footer p { color: rgba(255,255,255,.55); font-size: .88rem; margin-bottom: 20px; }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: .78rem !important; color: rgba(255,255,255,.35) !important; margin-bottom: 0 !important; }

/* ─── Fade-in Animation ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { flex-direction: row; }
  .info-card { flex: 1; }
  .teaching-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .certs-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    display: none;
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--dark) !important; width: 100%; }
  .burger { display: flex; }
  .about-side { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .stat { padding: 12px 16px; min-width: 80px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-column: span 1; }
  .certs-row { grid-template-columns: 1fr; }
  .spec-sub { display: none; }
}
