/* ===== Variables ===== */
:root {
  --blue: #1D4C79;
  --blue-h: #143657;
  --teal: #58918D;
  --teal-h: #426d6a;
  --bg: #f8fafc;
  --card: #ffffff;
  --txt: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line2: #f1f5f9;
  --slate: #1e293b;
  --gray: #334155;
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #0f172a;
}

html.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --txt: #f1f5f9;
  --muted: #94a3b8;
  --line: #1e293b;
  --line2: #1e293b;
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; max-width: 100%; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, p, li, span, label, a, button {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

.hidden { display: none !important; }

.wrap {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .wrap { padding-left: 2rem; padding-right: 2rem; }
}

/* ===== Buttons ===== */
.btn,
.btn-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.2s;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}

.btn-pri {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(29, 76, 121, 0.15);
}
.btn-pri:hover { background: var(--blue-h); box-shadow: 0 10px 15px -3px rgba(29, 76, 121, 0.25); }

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(88, 145, 141, 0.2);
}
.btn-teal:hover { background: var(--teal-h); }

.btn-out {
  background: transparent;
  color: #fff;
  border: 1px solid #475569;
}
.btn-out:hover { border-color: var(--teal); color: var(--teal); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
}
@media (min-width: 640px) {
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }
}
@media (min-width: 1024px) {
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* ===== Header ===== */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}
html.dark .hdr {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #1e293b;
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
@media (min-width: 640px) {
  .logo { gap: 0.75rem; }
}

.logo-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .logo-box { width: 3rem; height: 3rem; }
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-fb {
  width: 100%;
  height: 100%;
  background: linear-gradient(to top right, var(--blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(29, 76, 121, 0.2);
}
.logo-fb span {
  color: #fff;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.logo-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.logo-name {
  display: block;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .logo-name { color: #fff; }
@media (min-width: 640px) {
  .logo-name { font-size: 1.125rem; }
}

.logo-sub {
  display: block;
  color: var(--teal);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .logo-sub { color: #94a3b8; }
@media (min-width: 640px) {
  .logo-sub { font-size: 0.75rem; }
}

.nav {
  display: none;
  gap: 0.25rem;
}
@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav a {
  color: #334155;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
html.dark .nav a { color: #d1d5db; }
.nav a:hover { color: var(--teal); }

.hdr-act {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: 0;
}
@media (min-width: 640px) {
  .hdr-act { gap: 1rem; }
}

.theme-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
html.dark .theme-btn {
  background: #1e293b;
  color: var(--teal);
}
.theme-btn:hover { background: #e2e8f0; }
html.dark .theme-btn:hover { background: #334155; }
@media (min-width: 640px) {
  .theme-btn { width: 2.5rem; height: 2.5rem; font-size: 1.125rem; }
}

.icon-sun { display: block; }
.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }

.cta-desk { display: none; }
@media (min-width: 640px) {
  .cta-desk { display: block; }
}

.menu-btn-wrap { display: block; }
@media (min-width: 1024px) {
  .menu-btn-wrap { display: none; }
}

.menu-btn {
  color: #334155;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
html.dark .menu-btn { color: #d1d5db; }
.menu-btn:hover { color: var(--teal); }
.menu-btn i { font-size: 1.25rem; }
@media (min-width: 640px) {
  .menu-btn i { font-size: 1.5rem; }
}

/* Mobile menu */
.mnav {
  background: #fff;
  border-top: 1px solid var(--line);
  max-height: 80vh;
  overflow-y: auto;
  transition: all 0.3s;
}
html.dark .mnav {
  background: var(--dark);
  border-top-color: #1e293b;
}

.mnav-in {
  padding: 0.5rem 1rem 1.5rem;
  text-align: right;
}

.mnav a {
  display: block;
  color: #334155;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
html.dark .mnav a { color: #d1d5db; }
.mnav a:hover {
  background: #f1f5f9;
}
html.dark .mnav a:hover { background: #1e293b; }

.mnav .mnav-cta {
  color: var(--blue);
  font-weight: 600;
}
html.dark .mnav .mnav-cta { color: var(--teal); }

.mnav-bar {
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: block;
}
html.dark .mnav-bar { border-top-color: rgba(30, 41, 59, 0.5); }
@media (min-width: 640px) {
  .mnav-bar { display: none; }
}

.mnav-bar a {
  width: 100%;
  background: var(--blue);
  color: #fff !important;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.mnav-bar a:hover { background: var(--blue-h); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: auto;
  min-height: 100svh;
  background: var(--dark);
  padding-top: 5rem;
  overflow: hidden;
  max-width: 100%;
}

.hero-track {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 5rem);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  padding: 2rem 0 4.5rem;
}
.slide.on {
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
}

.slide-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(2, 6, 23, 0.92) 0%,
    rgba(2, 6, 23, 0.78) 45%,
    rgba(2, 6, 23, 0.45) 100%
  );
  z-index: 10;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
}

.slide-body {
  width: 100%;
  position: relative;
  z-index: 20;
  text-align: right;
  padding-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.badge-blue { background: rgba(29, 76, 121, 0.3); color: var(--teal); }
.badge-teal { background: rgba(88, 145, 141, 0.2); color: var(--teal); }
.badge-blue2 { background: rgba(29, 76, 121, 0.2); color: var(--teal); }

.slide-h {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 0.875rem;
  max-width: 36rem;
}
@media (min-width: 480px) {
  .slide-h { font-size: 1.75rem; }
}
@media (min-width: 768px) {
  .slide-h { font-size: 2.25rem; margin-bottom: 1.25rem; max-width: 42rem; }
}
@media (min-width: 1024px) {
  .slide-h { font-size: 3.25rem; line-height: 1.25; max-width: 56rem; }
}
@media (min-width: 1280px) {
  .slide-h { font-size: 3.75rem; }
}
.slide-h .hl { color: var(--teal); }

.slide-p {
  color: #d1d5db;
  font-size: 0.8125rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .slide-p { font-size: 1rem; margin-bottom: 1.75rem; max-width: 40rem; }
}
@media (min-width: 1024px) {
  .slide-p { font-size: 1.125rem; max-width: 42rem; }
}

.slide-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
}
.slide-acts > a {
  flex: 0 0 auto;
  width: auto;
}

.sbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid #334155;
  background: rgba(2, 6, 23, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  cursor: pointer;
  transition: all 0.2s;
}
.sbtn:hover { background: var(--teal); }
.sbtn-r { right: 0.5rem; }
.sbtn-l { left: 0.5rem; }
@media (min-width: 640px) {
  .sbtn { width: 3rem; height: 3rem; }
  .sbtn-r { right: 1rem; }
  .sbtn-l { left: 1rem; }
}

.dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 30;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: #475569;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.on { background: var(--teal); }

/* ===== Stats ===== */
.stats {
  position: relative;
  margin-top: -4rem;
  z-index: 40;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.stats-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(29, 76, 121, 0.05);
}
html.dark .stats-box {
  background: var(--dark2);
  border-color: #1e293b;
}
@media (min-width: 640px) {
  .stats-box { padding: 2.5rem; }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid > div {
    border-left: 1px solid var(--line);
    padding-top: 0;
  }
  html.dark .stats-grid > div { border-left-color: #1e293b; }
  .stats-grid > div:last-child { border-left: none; border-bottom: none; padding-bottom: 0; }
}

.stats-grid > div {
  padding-top: 1.5rem;
}
@media (min-width: 768px) {
  .stats-grid > div { padding-top: 0; }
}

.stats-grid > div:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .stats-grid > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.stats-n {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .stats-n { font-size: 3rem; }
}
.stats-n.blue { color: var(--blue); }
html.dark .stats-n.blue { color: var(--teal); }
.stats-n.teal { color: var(--teal); }
.stats-n.dark { color: #1e293b; }
html.dark .stats-n.dark { color: #fff; }

.stats-t {
  color: #1e293b;
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0;
}
html.dark .stats-t { color: #d1d5db; }
@media (min-width: 640px) {
  .stats-t { font-size: 1rem; }
}

.stats-s {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
html.dark .stats-s { color: #9ca3af; }

/* ===== Sections common ===== */
.sec { padding: 3.5rem 0; }
@media (min-width: 768px) {
  .sec { padding: 6rem 0; }
}
.sec-alt {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
html.dark .sec-alt {
  background: #0f172a;
  border-top-color: #1e293b;
}
html.dark .sec-alt.slate {
  background: #0f172a;
}
.sec-slate {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
html.dark .sec-slate {
  background: #111827;
  border-top-color: #1e293b;
}
.sec-white {
  background: #fff;
  border-top: 1px solid #f1f5f9;
  position: relative;
}
html.dark .sec-white {
  background: var(--dark2);
  border-top-color: #1e293b;
}

.sec-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.sec-tag {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sec-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.5rem 0 0;
}
html.dark .sec-title { color: #fff; }
@media (min-width: 640px) {
  .sec-title { font-size: 2.25rem; }
}
.sec-line {
  width: 5rem;
  height: 0.25rem;
  background: var(--blue);
  margin: 1rem auto 0;
  border-radius: 0.25rem;
}
.sec-line.teal { background: var(--teal); }
.sec-desc {
  color: #64748b;
  font-size: 0.875rem;
  margin: 1rem 0 0;
}
html.dark .sec-desc { color: #9ca3af; }

.lbl-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
}
.lbl-bar .bar {
  width: 2.5rem;
  height: 0.25rem;
  background: var(--blue);
  border-radius: 0.25rem;
}
.lbl-bar span {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.875rem;
}
html.dark .lbl-bar span { color: var(--teal); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .about-txt { grid-column: span 7; }
  .about-vis { grid-column: span 5; }
}

.about-txt {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-h {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.5rem;
  line-height: 1.25;
}
html.dark .about-h { color: #fff; }
@media (min-width: 640px) {
  .about-h { font-size: 2.25rem; }
}

.about-p {
  color: #475569;
  font-size: 1rem;
  margin: 0 0 1.5rem;
  line-height: 1.625;
}
html.dark .about-p { color: #d1d5db; }

.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
}

.feat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.feat-ico {
  color: var(--teal);
  margin-top: 0.25rem;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.feat h4 {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.875rem;
}
html.dark .feat h4 { color: #fff; }
.feat p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.75rem;
}
html.dark .feat p { color: #9ca3af; }

.mission {
  background: #f1f5f9;
  border-right: 4px solid var(--teal);
  padding: 1.25rem;
  border-radius: 1rem 0 0 1rem;
  margin-top: auto;
}
html.dark .mission { background: var(--dark2); }
.mission h4 {
  margin: 0 0 0.5rem;
  font-weight: 800;
  color: #0f172a;
}
html.dark .mission h4 { color: #fff; }
.mission p {
  margin: 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.625;
}
html.dark .mission p { color: #d1d5db; }

.about-vis {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  max-width: 100%;
}

.blur-a, .blur-b {
  position: absolute;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
}
.blur-a {
  top: -2.5rem;
  right: -2.5rem;
  background: rgba(29, 76, 121, 0.1);
}
.blur-b {
  bottom: -2.5rem;
  left: -2.5rem;
  background: rgba(88, 145, 141, 0.1);
}

.val-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  color: #0f172a;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
html.dark .val-card {
  background: var(--dark2);
  border-color: #1e293b;
  color: #fff;
}

.val-deco {
  position: absolute;
  right: 0;
  top: 0;
  width: 8rem;
  height: 8rem;
  background: rgba(29, 76, 121, 0.1);
  border-radius: 9999px;
  margin-right: -4rem;
  margin-top: -4rem;
}

.val-h {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue);
}
html.dark .val-h { color: var(--teal); }

.val-list { position: relative; z-index: 10; }
.val-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}
html.dark .val-item { border-bottom-color: #1e293b; }
.val-item:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
  margin-bottom: 0;
}

.val-num {
  background: rgba(29, 76, 121, 0.1);
  color: var(--blue);
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
html.dark .val-num { color: var(--teal); }
.val-num.teal {
  background: rgba(88, 145, 141, 0.1);
  color: var(--teal);
}

.val-item .t { font-weight: 700; font-size: 0.875rem; display: block; }
.val-item .d {
  font-size: 0.75rem;
  color: #64748b;
}
html.dark .val-item .d { color: #9ca3af; }

.val-foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
html.dark .val-foot { border-top-color: #1e293b; }
.val-foot p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
}
html.dark .val-foot p { color: #9ca3af; }

/* ===== Services ===== */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
}

.pillar {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: right;
  transition: all 0.2s;
}
html.dark .pillar {
  background: var(--dark2);
  border-color: #1e293b;
}
.pillar:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: var(--blue);
}
.pillar.teal:hover { border-color: var(--teal); }

.pillar-ico {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(29, 76, 121, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}
html.dark .pillar-ico {
  background: rgba(29, 76, 121, 0.2);
  color: var(--teal);
}
.pillar-ico.teal {
  background: rgba(88, 145, 141, 0.1);
  color: var(--teal);
}
.pillar:hover .pillar-ico {
  background: var(--blue);
  color: #fff;
}
.pillar.teal:hover .pillar-ico {
  background: var(--teal);
  color: #fff;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}
html.dark .pillar h3 { color: #fff; }
.pillar p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.625;
}
html.dark .pillar p { color: #9ca3af; }

.svc-box {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
html.dark .svc-box {
  background: var(--dark2);
  border-color: #1e293b;
}
.svc-box > h3 {
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  color: #0f172a;
  text-align: right;
}
html.dark .svc-box > h3 { color: #fff; }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

.svc-col h4 {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
html.dark .svc-col h4 { color: var(--teal); }

.svc-col ul {
  list-style: disc;
  padding-right: 0.5rem;
  margin-right: 0.5rem;
  color: #475569;
  font-size: 0.75rem;
  text-align: right;
}
html.dark .svc-col ul { color: #d1d5db; }
.svc-col li { margin-bottom: 0.5rem; }

/* ===== Principles ===== */
.prin {
  background: var(--blue);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  max-width: 100%;
}
@media (min-width: 768px) {
  .prin { padding: 6rem 0; }
}

.prin-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(to right, #808080 1px, transparent 1px),
    linear-gradient(to bottom, #808080 1px, transparent 1px);
  background-size: 24px 24px;
}

.prin .sec-head { position: relative; z-index: 10; }
.prin .sec-tag { color: var(--teal); }
.prin .sec-title { color: #fff; }
.prin .sec-desc { color: #cbd5e1; }

.prin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) {
  .prin-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .prin-grid { grid-template-columns: repeat(3, 1fr); }
}

.prin-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  padding: 1.25rem;
  border-radius: 1.5rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 640px) {
  .prin-card { padding: 2rem; }
}
.prin-card:hover { border-color: var(--teal); }

.prin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.prin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(88, 145, 141, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(88, 145, 141, 0.25);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 640px) {
  .prin-badge { font-size: 0.875rem; padding: 0.625rem 1.25rem; gap: 0.75rem; }
}

.prin-num {
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
  background: var(--teal);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(88, 145, 141, 0.3);
  line-height: 1;
}
@media (min-width: 640px) {
  .prin-num { font-size: 1.25rem; }
}

.prin-ico {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(88, 145, 141, 0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.prin-card h3 {
  margin: 0.5rem 0 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
}
.prin-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ===== Process ===== */
.proc-h {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin: 0 0 4rem;
}
html.dark .proc-h { color: #fff; }

.proc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}
@media (min-width: 768px) {
  .proc-grid { grid-template-columns: repeat(4, 1fr); }
}

.proc-line {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: #e2e8f0;
  transform: translateY(-2rem);
  z-index: 0;
}
html.dark .proc-line { background: #1e293b; }
@media (min-width: 768px) {
  .proc-line { display: block; }
}

.proc-step {
  position: relative;
  z-index: 10;
  text-align: center;
}

.proc-n {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  border: 4px solid #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
html.dark .proc-n { border-color: var(--dark); }
.proc-n.blue { background: var(--blue); }
.proc-n.teal { background: var(--teal); }

.proc-step h4 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}
html.dark .proc-step h4 { color: #fff; }
.proc-step p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  padding: 0 1rem;
}
html.dark .proc-step p { color: #9ca3af; }

/* ===== Form / Booking ===== */
.book-head { text-align: center; margin-bottom: 3rem; }
.book-head .badge {
  background: rgba(29, 76, 121, 0.1);
  color: var(--blue);
}
html.dark .book-head .badge { color: var(--teal); }
.book-head h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
html.dark .book-head h2 { color: #fff; }
.book-head p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}
html.dark .book-head p { color: #9ca3af; }

.book-card {
  background: #f8fafc;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}
html.dark .book-card {
  background: var(--dark);
  border-color: #1e293b;
}
@media (min-width: 640px) {
  .book-card { padding: 3rem; }
}

.fg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.fg > * { min-width: 0; }
@media (min-width: 640px) {
  .fg.col2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .fg.col3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .fg.col3 { grid-template-columns: repeat(3, 1fr); }
}

.fl {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.5rem;
}
html.dark .fl { color: #cbd5e1; }
.fl .req { color: #ef4444; }

.fi, .fs, .fta {
  width: 100%;
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
html.dark .fi,
html.dark .fs,
html.dark .fta {
  background: var(--dark2);
  color: #fff;
  border-color: #334155;
}
.fi:focus, .fs:focus, .fta:focus { border-color: var(--teal); }
.fi.ltr { text-align: left; direction: ltr; }
.fi.ok { border-color: var(--teal); }
.fi.err { border-color: #ef4444; }

.phone-err {
  color: #ef4444;
  font-size: 11px;
  margin-top: 0.25rem;
  font-weight: 600;
  align-items: center;
  gap: 0.25rem;
}
.phone-err:not(.hidden) { display: flex; }

.radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
html.dark .radio {
  background: var(--dark2);
  border-color: #334155;
}
.radio:hover { border-color: var(--teal); }
.radio input { accent-color: var(--blue); }
.radio span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}
html.dark .radio span { color: #e2e8f0; }

.form-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
html.dark .form-err { color: #f87171; }
.form-err:not(.hidden) { display: flex; }

.form-sub {
  padding-top: 1rem;
  text-align: center;
}
.form-sub .btn {
  width: auto;
  padding: 0.875rem 1.75rem;
}
@media (min-width: 640px) {
  .form-sub .btn { padding: 1rem 2.5rem; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* ===== Modals ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.modal.darker {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
}

.modal-box {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
html.dark .modal-box { background: var(--dark2); }

.modal-ok {
  width: 4rem;
  height: 4rem;
  background: #dcfce7;
  color: #22c55e;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  margin: 0 auto 1.5rem;
}
html.dark .modal-ok { background: rgba(5, 46, 22, 0.5); }

.modal-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}
html.dark .modal-box h3 { color: #fff; }
.modal-box > p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.625;
  margin: 0 0 1.5rem;
}
html.dark .modal-box > p { color: #9ca3af; }
.modal-box .btn { width: 100%; padding: 0.75rem; }

/* Details modal */
.dmodal-box {
  background: #fff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: right;
}
html.dark .dmodal-box { background: var(--dark2); }

.dmodal-hd {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
html.dark .dmodal-hd {
  background: rgba(30, 41, 59, 0.95);
  border-bottom-color: #1e293b;
}

.dmodal-cat {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(88, 145, 141, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.dmodal-x {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
html.dark .dmodal-x { background: #1e293b; }
.dmodal-x:hover { color: #0f172a; }
html.dark .dmodal-x:hover { color: #fff; }

.dmodal-body { padding: 1.5rem; }
@media (min-width: 640px) {
  .dmodal-body { padding: 2rem; }
}

.dmodal-img {
  border-radius: 1rem;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-bottom: 1.5rem;
}
.dmodal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmodal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
html.dark .dmodal-meta {
  color: #9ca3af;
  border-bottom-color: #1e293b;
}
.dmodal-meta div {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.dmodal-meta i { color: var(--teal); }

.dmodal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.375;
  margin: 0 0 1.5rem;
}
html.dark .dmodal-title { color: #fff; }
@media (min-width: 640px) {
  .dmodal-title { font-size: 1.5rem; }
}

.dmodal-txt {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.625;
  text-align: justify;
}
html.dark .dmodal-txt { color: #d1d5db; }
@media (min-width: 640px) {
  .dmodal-txt { font-size: 1rem; }
}
.dmodal-txt h5 {
  font-weight: 700;
  color: #0f172a;
  margin: 1rem 0 0.5rem;
  font-size: 0.875rem;
}
html.dark .dmodal-txt h5 { color: #fff; }
.dmodal-txt ul {
  list-style: disc;
  padding-right: 1.25rem;
  font-size: 0.75rem;
  color: #64748b;
}
html.dark .dmodal-txt ul { color: #9ca3af; }
.dmodal-txt li { margin-bottom: 0.25rem; }

.dmodal-ft {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
html.dark .dmodal-ft {
  background: rgba(15, 23, 42, 0.5);
  border-top-color: #1e293b;
}
@media (min-width: 640px) {
  .dmodal-ft { flex-direction: row; }
}
.dmodal-ft span {
  font-size: 0.75rem;
  color: #64748b;
}
html.dark .dmodal-ft span { color: #9ca3af; }
.dmodal-ft .btn {
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
}

/* ===== Courses / Blog cards ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cards.blog { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .cards.blog { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cards.blog { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}
html.dark .card {
  background: var(--dark2);
  border-color: #1e293b;
}
.card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.card-img {
  position: relative;
  height: 12rem;
  background-size: cover;
  background-position: center;
}
.card-tag {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-body h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 1.125rem;
  transition: color 0.2s;
}
html.dark .card-body h3 { color: #fff; }
.card:hover .card-body h3 { color: var(--teal); }
.card-body p {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.625;
}
html.dark .card-body p { color: #d1d5db; }

.card-ft {
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
html.dark .card-ft { border-top-color: #1e293b; }
.card-ft .a {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.75rem;
}
html.dark .card-ft .a { color: var(--teal); }
.card-ft .d { color: #9ca3af; font-size: 0.75rem; }

/* Blog article */
.blog-hd {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .blog-hd {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.blog-hd .t { text-align: right; }
.blog-hd .sec-title { margin-top: 0.5rem; }
.blog-more {
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-direction: row-reverse;
}
@media (min-width: 640px) {
  .blog-more { margin-top: 0; }
}
.blog-more:hover { text-decoration: underline; }

.bpost { cursor: pointer; }
.bpost-img {
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: #e2e8f0;
  aspect-ratio: 16 / 10;
}
.bpost-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.bpost:hover .bpost-img img { transform: scale(1.05); }

.bpost-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.bpost-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--teal);
}
.bpost h3 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.375;
  transition: color 0.2s;
}
html.dark .bpost h3 { color: #fff; }
.bpost:hover h3 { color: var(--teal); }
.bpost > p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.dark .bpost > p { color: #d1d5db; }

/* ===== FAQ ===== */
.faq-h {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin: 0 0 3rem;
}
html.dark .faq-h { color: #fff; }

.faq-list { max-width: 56rem; margin: 0 auto; }

.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.2s;
}
html.dark .faq {
  background: var(--dark2);
  border-color: #1e293b;
}

.faq-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
html.dark .faq-btn { color: #fff; }
.faq-btn:hover { background: #f8fafc; }
html.dark .faq-btn:hover { background: rgba(30, 41, 59, 0.5); }
.faq-btn span {
  flex: 1 1 auto;
  min-width: 0;
}
.faq-btn i {
  color: var(--teal);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
@media (min-width: 640px) {
  .faq-btn { font-size: 1rem; padding: 1rem 1.5rem; align-items: center; }
}

.faq-body {
  padding: 0.5rem 1.5rem 1rem;
  font-size: 0.875rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}
html.dark .faq-body {
  color: #d1d5db;
  border-top-color: #1e293b;
}

/* ===== Footer ===== */
.ft {
  background: #020617;
  color: #fff;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: right;
}
@media (min-width: 768px) {
  .ft-grid { grid-template-columns: repeat(4, 1fr); }
  .ft-brand { grid-column: span 2; }
}

.ft-brand .logo-name { color: #fff; }
.ft-brand .logo-sub { color: var(--teal); }
.ft-brand > p {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.625;
  max-width: 24rem;
  margin: 1rem 0 0;
}

.ft-soc {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-top: 1rem;
}
.ft-soc a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.ft-soc a:hover {
  background: var(--teal);
  color: #fff;
}

.ft h4 {
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  border-right: 2px solid var(--teal);
  padding-right: 0.5rem;
  margin: 0 0 1.5rem;
}

.ft ul { list-style: none; }
.ft li { margin-bottom: 0.75rem; }
.ft li a {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: color 0.2s;
}
.ft li a:hover { color: var(--teal); }

.ft-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.ft-contact i {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.ft-contact li:nth-child(n+2) { align-items: center; }
.ft-contact li:nth-child(n+2) i { margin-top: 0; }

.ft-div {
  border-top: 1px solid #1e293b;
  margin: 2.5rem 0;
}

.ft-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}
@media (min-width: 640px) {
  .ft-copy {
    flex-direction: row;
    justify-content: space-between;
  }
}
.ft-copy p { margin: 0; }
.ft-copy .links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.ft-copy a:hover { color: #fff; }

/* ===== Responsive safety / overflow guards ===== */
.hdr,
.hero,
.stats,
.sec,
.prin,
.ft,
.modal,
.wrap,
.about-grid,
.pillars,
.prin-grid,
.proc-grid,
.cards,
.svc-grid,
.stats-grid,
.ft-grid {
  max-width: 100%;
}

.about-grid > *,
.pillars > *,
.prin-grid > *,
.proc-grid > *,
.cards > *,
.svc-grid > *,
.stats-grid > *,
.ft-grid > *,
.feat-grid > * {
  min-width: 0;
}

.slide-body {
  padding-bottom: 0.5rem;
  max-width: 100%;
}

.slide {
  overflow: hidden;
}

.val-card,
.svc-box,
.pillar,
.card,
.faq,
.stats-box,
.book-card,
.dmodal-box {
  max-width: 100%;
}

.ft-brand .logo {
  flex: 0 1 auto;
}

@media (max-width: 1023px) {
  .slide-ov {
    background: linear-gradient(
      to top,
      rgba(2, 6, 23, 0.96) 0%,
      rgba(2, 6, 23, 0.88) 40%,
      rgba(2, 6, 23, 0.55) 100%
    );
  }

  .slide-bg {
    opacity: 0.28;
    background-position: center center;
  }

  .slide {
    align-items: flex-end;
    padding: 1.5rem 0 4.25rem;
  }

  .hero-track {
    min-height: calc(100svh - 5rem);
  }
}

@media (max-width: 639px) {
  .wrap {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .hero {
    min-height: 100svh;
  }

  .slide-p {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }

  .slide-acts {
    gap: 0.625rem;
  }

  .dots {
    bottom: 1.25rem;
  }

  .stats {
    margin-top: -2.5rem;
  }

  .stats-n {
    font-size: 1.75rem;
  }

  .about-h,
  .sec-title,
  .proc-h,
  .faq-h,
  .book-head h2 {
    font-size: 1.375rem;
  }

  .sec-head {
    margin-bottom: 2.5rem;
  }

  .proc-h {
    margin-bottom: 2.5rem;
  }

  .val-card {
    padding: 1.25rem;
  }

  .svc-box {
    padding: 1.25rem;
  }

  .pillar {
    padding: 1.25rem;
  }

  .dmodal-box {
    max-height: 92dvh;
    border-radius: 1rem;
  }

  .dmodal-ft {
    text-align: center;
  }

  .dmodal-ft .btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }

  .ft-copy {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .logo-sub { display: none; }
  .logo-name { font-size: 0.8rem; }
  .theme-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
  .slide-h { font-size: 1.35rem; }
}

@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
  .hero-track { min-height: calc(100dvh - 5rem); }
}

