:root {
  --th-navy: #0b1f3a;
  --th-navy-soft: #132d52;
  --th-teal: #0f766e;
  --th-teal-light: #14b8a6;
  --th-gold: #c9a227;
  --th-cream: #f7f5f0;
  --th-text: #1e293b;
  --th-muted: #64748b;
  --th-white: #ffffff;
  --th-radius: 16px;
  --th-shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body.th-landing {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--th-text);
  background: var(--th-white);
  line-height: 1.6;
}

.th-landing #home {
  scroll-margin-top: 132px;
}

.th-topbar {
  background: var(--th-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
}

.th-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.th-topbar a {
  color: #fff;
  text-decoration: none;
}

.th-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.th-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.th-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--th-navy);
}

.th-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--th-teal), var(--th-navy-soft));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.th-brand-text strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.th-brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--th-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.th-menu a {
  color: var(--th-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.th-menu a:hover {
  color: var(--th-teal);
}

.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.th-btn-primary {
  background: linear-gradient(135deg, var(--th-teal), #0d9488);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.th-btn-outline {
  background: transparent;
  color: var(--th-navy);
  border: 2px solid rgba(11, 31, 58, 0.15);
}

.th-btn-gold {
  background: var(--th-gold);
  color: var(--th-navy);
}

.th-nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  color: var(--th-navy);
}

.th-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.18), transparent 40%),
    radial-gradient(circle at 10% 20%, rgba(201, 162, 39, 0.12), transparent 35%),
    linear-gradient(180deg, #f8fbfa 0%, #eef6f4 100%);
  padding: 4.5rem 0 3.5rem;
}

.th-hero-full {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: min(720px, 92vh);
  padding: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #0a1628;
  margin-top: 0;
}

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

.th-hero-full .th-hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.th-hero-full .th-hero-slide.is-active {
  display: block;
  animation: thHeroFade 0.65s ease;
}

.th-hero-full .th-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.th-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 18, 34, 0.55) 0%, rgba(8, 18, 34, 0.82) 45%, rgba(8, 18, 34, 0.92) 100%);
}

.th-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(720px, 92vh);
}

.th-hero-full .th-hero-copy {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.th-hero.th-hero-full h1,
.th-hero-full #thHeroTitle {
  color: #ffffff;
  margin-top: 0.85rem;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.th-hero-full .th-hero-lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
}

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

.th-hero-full .th-badge {
  background: rgba(15, 118, 110, 0.22);
  color: #ccfbf1;
  border: 1px solid rgba(153, 246, 228, 0.25);
  font-size: 0.75rem;
}

.th-hero-full .th-hero-stats {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 42rem;
}

.th-hero-full .th-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  backdrop-filter: blur(8px);
  text-align: center;
}

.th-hero-full .th-stat-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: #5eead4;
  letter-spacing: -0.02em;
}

.th-hero-full .th-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  text-transform: capitalize;
}

.th-btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.th-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.th-hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 14rem;
}

.th-hero-full .th-hero-nav {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.th-hero-full .th-hero-dots {
  position: static;
  transform: none;
  flex: 1;
  justify-content: center;
  display: flex;
  gap: 0.4rem;
}

.th-hero-full .th-hero-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
}

.th-hero-full .th-hero-dot.is-active {
  background: #2dd4bf;
  width: 22px;
  border-radius: 999px;
}

.th-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.th-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.th-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--th-teal);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-hero h1 {
  margin: 1rem 0 0.75rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
  color: var(--th-navy);
}

.th-hero.th-hero-full h1 {
  color: #ffffff;
}

.th-hero-lead {
  font-size: 1.12rem;
  color: var(--th-muted);
  max-width: 38rem;
}

.th-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.th-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.th-stat {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 14px;
  padding: 0.85rem;
}

.th-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--th-teal);
}

.th-stat span {
  font-size: 0.82rem;
  color: var(--th-muted);
}

.th-hero-visual {
  position: relative;
}

.th-hero-carousel {
  position: relative;
}

.th-hero-slide {
  display: none;
}

.th-hero-slide.is-active {
  display: block;
  animation: thHeroFade 0.55s ease;
}

@keyframes thHeroFade {
  from {
    opacity: 0.35;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.th-hero-card {
  background: #fff;
  border-radius: calc(var(--th-radius) + 4px);
  overflow: hidden;
  box-shadow: var(--th-shadow);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.th-hero-card img {
  width: 100%;
  height: min(440px, 52vh);
  object-fit: cover;
  object-position: center;
  display: block;
}

.th-hero-card img.is-logo {
  object-fit: contain;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  padding: 1.25rem;
}

.th-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--th-navy);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.18);
  cursor: pointer;
  z-index: 2;
}

.th-hero-prev {
  left: 0.75rem;
}

.th-hero-next {
  right: 0.75rem;
}

.th-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.th-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.th-hero-dot.is-active {
  background: var(--th-teal-light);
  transform: scale(1.15);
}

.th-services-track-wrap {
  position: relative;
  padding: 0 2.75rem;
}

.th-services-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.th-services-track::-webkit-scrollbar {
  display: none;
}

.th-service-slide {
  flex: 0 0 min(320px, 86vw);
  scroll-snap-align: start;
}

.th-service-card-rich {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.th-service-card-rich img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.th-service-icon {
  height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(11, 31, 58, 0.08));
  color: var(--th-teal);
  font-size: 2.4rem;
}

.th-services-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: #fff;
  color: var(--th-navy);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.12);
}

.th-services-prev {
  left: 0;
}

.th-services-next {
  right: 0;
}

.th-hero-float {
  position: absolute;
  left: -1rem;
  bottom: 1.25rem;
  background: var(--th-navy);
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  max-width: 240px;
  box-shadow: var(--th-shadow);
}

.th-section {
  padding: 4.5rem 0;
}

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

.th-section-dark {
  background: linear-gradient(135deg, var(--th-navy), var(--th-navy-soft));
  color: #fff;
}

.th-section-head {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.th-kicker {
  color: var(--th-teal);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.th-section-dark .th-kicker {
  color: #7de8da;
}

.th-section-head h2 {
  margin: 0.5rem 0 0.75rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: inherit;
}

.th-section-head p {
  margin: 0;
  color: var(--th-muted);
}

.th-section-dark .th-section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.th-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.th-card {
  background: #fff;
  border-radius: var(--th-radius);
  padding: 1.5rem;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.05);
}

.th-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.12);
  color: var(--th-teal);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.th-card h3 {
  margin: 0 0 0.5rem;
  color: var(--th-navy);
}

.th-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.th-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.th-service-card img,
.th-faculty-card img,
.th-gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.th-service-card img {
  height: 180px;
  border-radius: 12px 12px 0 0;
}

.th-service-card,
.th-faculty-card,
.th-gallery-item {
  background: #fff;
  border-radius: var(--th-radius);
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.05);
}

.th-service-card .th-card-body,
.th-faculty-card .th-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.th-faculty-card img {
  height: 260px;
}

.th-quote {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--th-radius);
  padding: 1.25rem;
}

.th-faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.th-faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--th-navy);
  cursor: pointer;
}

.th-faq-a {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--th-muted);
}

.th-faq-item.open .th-faq-a {
  display: block;
}

.th-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.th-contact-card,
.th-appointment-panel {
  background: #fff;
  border-radius: var(--th-radius);
  padding: 1.5rem;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: var(--th-shadow);
}

.th-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.th-form-grid .full {
  grid-column: 1 / -1;
}

.th-input,
.th-select,
.th-textarea {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, 0.15);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.th-footer {
  background: #071526;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
}

.th-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.th-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.th-footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.9rem;
}

.th-footer-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--th-gold, #c9a227);
  color: #071526 !important;
  font-weight: 700;
  text-decoration: none;
}

.th-footer-app-btn:hover {
  filter: brightness(1.05);
}

.th-app-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 21, 38, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

.th-app-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.th-app-banner-text strong {
  display: block;
  margin-bottom: 0.2rem;
}

.th-app-banner-text span {
  font-size: 0.92rem;
  opacity: 0.88;
}

.th-app-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.th-app-banner-dismiss {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.th-app-banner .th-btn-gold {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

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

@media (max-width: 992px) {
  .th-landing #home {
    scroll-margin-top: 108px;
  }

  .th-hero-full,
  .th-hero-content {
    min-height: auto;
  }

  .th-hero-content {
    padding-top: 2rem;
    padding-bottom: 2.25rem;
    justify-content: center;
  }

  .th-hero-shade {
    background: linear-gradient(180deg, rgba(8, 18, 34, 0.72) 0%, rgba(8, 18, 34, 0.94) 55%);
  }

  .th-hero-full .th-hero-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .th-hero-stats {
    grid-template-columns: 1fr;
  }

  .th-hero-grid,
  .th-pillars,
  .th-grid-3,
  .th-grid-2,
  .th-contact-grid,
  .th-footer-grid,
  .th-form-grid {
    grid-template-columns: 1fr;
  }

  .th-menu-wrap {
    display: none;
  }

  .th-nav.open .th-menu-wrap {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(15, 118, 110, 0.12);
    padding: 1rem 1.25rem 1.25rem;
  }

  .th-nav.open .th-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .th-nav-toggle {
    display: inline-flex;
  }

  .th-hero-stats {
    grid-template-columns: 1fr;
  }
}
