:root {
  --sl-blue: #0b47a1;
  --sl-blue-dark: #092b63;
  --sl-navy: #0d1d33;
  --sl-text: #223044;
  --sl-muted: #66758b;
  --sl-border: #dfe8f4;
  --sl-soft: #f5f9ff;
  --sl-footer: #102238;
  --sl-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--sl-text);
  background: var(--sl-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* Header */

.navbar {
  min-height: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  box-shadow: 0 6px 22px rgba(18, 39, 71, 0.04);
}

.navbar > .container-xl {
  max-width: 100%;
  padding-left: 0.75rem;
  padding-right: 1rem;
}

.navbar-brand {
  min-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 2rem;
  line-height: 1;
}

.brand-logo {
  height: 4.5rem;
  width: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: var(--sl-navy);
  font-weight: 600;
  padding-inline: 1rem !important;
  position: relative;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--sl-blue);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--sl-blue);
}

.btn-brand {
  background: var(--sl-blue);
  border-color: var(--sl-blue);
  border-radius: 0.55rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(11, 71, 161, 0.16);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--sl-blue-dark);
  border-color: var(--sl-blue-dark);
}

.btn-outline-brand {
  color: var(--sl-blue);
  border-color: var(--sl-blue);
  border-radius: 0.55rem;
  font-weight: 700;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--sl-blue);
  border-color: var(--sl-blue);
}

/* Shared typography */

.eyebrow {
  color: var(--sl-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-title {
  color: var(--sl-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.hero-copy {
  color: var(--sl-muted);
  max-width: 660px;
  font-size: 1.1rem;
}

/* Home Hero */

.hero-section {
  padding: 4.8rem 0 3.8rem;
  border-bottom: 1px solid var(--sl-border);
  background:
    radial-gradient(circle at 90% 25%, rgba(72, 130, 210, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
}

.hero-art {
  min-height: 390px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-logo-wrap {
  min-height: 390px;
}

.hero-logo {
  width: min(88%, 540px);
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

.tech-lines {
  position: absolute;
  width: 230px;
  height: 150px;
  opacity: 0.32;
  background:
    linear-gradient(90deg, transparent 0 28%, rgba(11, 71, 161, 0.34) 28% 30%, transparent 30%),
    linear-gradient(180deg, transparent 0 24%, rgba(11, 71, 161, 0.22) 24% 26%, transparent 26%),
    linear-gradient(180deg, transparent 0 50%, rgba(11, 71, 161, 0.18) 50% 52%, transparent 52%);
  border-radius: 1rem;
}

.tech-lines-left {
  top: 2rem;
  left: 2rem;
}

.tech-lines-right {
  top: 5rem;
  right: 0;
  transform: rotate(12deg);
}

.dot-grid {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(11, 71, 161, 0.28) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.dot-grid-left {
  left: 1rem;
  top: 9rem;
}

.dot-grid-right {
  right: 8rem;
  top: 2rem;
}

/* Sections */

.section-pad {
  padding: 2.8rem 0;
}

.service-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1.4rem;
  padding: 2rem;
  border: 1px solid var(--sl-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(13, 29, 51, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #c8d9f0;
  box-shadow: 0 18px 42px rgba(13, 29, 51, 0.09);
}

.service-icon {
  width: 64px;
  height: 64px;
  color: var(--sl-blue);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-icon path,
.mission-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h2 {
  color: var(--sl-navy);
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.service-card p {
  color: var(--sl-text);
  margin-bottom: 1rem;
}

.learn-link {
  color: var(--sl-blue);
  font-weight: 800;
}

.learn-link:hover,
.learn-link:focus {
  color: var(--sl-blue-dark);
}

/* Mission */

.mission-band {
  padding: 2rem 0;
  background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 100%);
  border-top: 1px solid var(--sl-border);
  border-bottom: 1px solid var(--sl-border);
}

.mission-copy {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.mission-icon {
  width: 76px;
  height: 76px;
  color: var(--sl-blue);
  flex: 0 0 auto;
  padding-right: 1.6rem;
  border-right: 1px solid #cbd8e9;
}

.mission-copy h2 {
  color: var(--sl-navy);
  font-size: 1.55rem;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.mission-copy p {
  margin: 0;
  color: var(--sl-text);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid #cbd8e9;
}

.value-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  color: var(--sl-navy);
  font-weight: 700;
  border-right: 1px solid #cbd8e9;
}

.value-item:last-child {
  border-right: 0;
}

.value-icon {
  color: var(--sl-blue);
  font-size: 2rem;
  line-height: 1;
}

/* Course Catalog Page */

.catalog-page-section {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.catalog-page-heading {
  max-width: 980px;
  margin: 0 auto 3rem;
  text-align: center;
}

.catalog-title {
  color: var(--sl-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  margin: 0;
}

.catalog-intro {
  color: var(--sl-muted);
  max-width: 760px;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.course-category {
  max-width: 920px;
  margin: 0 auto 2.75rem;
}

.course-category:last-child {
  margin-bottom: 0;
}

.course-category h2 {
  color: var(--sl-navy);
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--sl-border);
}

.plain-course-list {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0;
  columns: 2;
  column-gap: 3rem;
}

.plain-course-list li {
  break-inside: avoid;
  color: var(--sl-text);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.45rem;
}

.plain-course-list li span {
  display: block;
  color: var(--sl-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* About Page */

.about-page-section {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(11, 71, 161, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.about-overview {
  max-width: 920px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-page-title {
  color: var(--sl-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin: 0;
}

.about-page-intro {
  color: var(--sl-muted);
  max-width: 820px;
  margin: 1.5rem auto 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.founder-section {
  max-width: 1120px;
  margin: 0 auto;
}

.founder-copy {
  padding-right: 1rem;
}

.founder-copy h2 {
  color: var(--sl-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.3vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.founder-copy p {
  color: var(--sl-text);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-founder-image-box {
  width: 240px;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border: 1px solid var(--sl-border);
  border-radius: 1.25rem;
  padding: 0.85rem;
  box-shadow: 0 18px 42px rgba(13, 29, 51, 0.08);
  overflow: hidden;
}

.about-founder-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  border-radius: 1rem;
  background: #ffffff;
}

/* Footer */

.site-footer {
  background: radial-gradient(circle at 90% 0%, rgba(43, 85, 140, 0.42), transparent 32%), var(--sl-footer);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.2rem 0 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-brand-name {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  text-align: center;
}

.footer-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
}

.social-links a:hover,
.social-links a:focus {
  background: rgba(255, 255, 255, 0.1);
}

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

/* Tablet */

@media (max-width: 991.98px) {
  .navbar {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .navbar-brand {
    min-width: 0;
    margin-right: 0;
  }

  .brand-logo {
    height: 4rem;
    width: auto;
    max-height: none;
  }

  .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .navbar-nav {
    align-items: flex-start;
  }

  .nav-link {
    padding: 0.75rem 0 !important;
  }

  .nav-link.active::after {
    left: 0;
    right: auto;
    width: 42px;
  }

  .hero-section {
    padding: 3rem 0 2.2rem;
  }

  .hero-art,
  .hero-logo-wrap {
    min-height: 300px;
  }

  .hero-logo {
    width: min(82%, 420px);
  }

  .service-card {
    grid-template-columns: 70px 1fr;
  }

  .values-grid {
    border-left: 0;
  }

  .about-page-section {
    padding: 3rem 0;
  }

  .about-overview {
    margin-bottom: 3rem;
  }

  .founder-copy {
    padding-right: 0;
  }

  .about-founder-image-box {
    width: 220px;
    max-width: 220px;
    margin: 2rem auto 0;
  }
}

/* Phone */

@media (max-width: 575.98px) {
  .brand-logo {
    height: 3.5rem;
    width: auto;
    max-height: none;
  }

  .display-title {
    font-size: 2.25rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-art,
  .hero-logo-wrap {
    min-height: 230px;
  }

  .hero-logo {
    width: min(90%, 320px);
  }

  .service-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .mission-copy {
    align-items: flex-start;
    gap: 1rem;
  }

  .mission-icon {
    width: 58px;
    height: 58px;
    padding-right: 0;
    border-right: 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .value-item {
    justify-content: center;
    border-right: 0;
    border-top: 1px solid #cbd8e9;
    padding: 0.8rem 0;
    text-align: center;
  }

  .catalog-page-section {
    padding: 2.75rem 0 3.25rem;
  }

  .catalog-title {
    font-size: 2.15rem;
  }

  .catalog-intro {
    font-size: 1rem;
  }

  .plain-course-list {
    columns: 1;
  }

  .course-category {
    margin-bottom: 2.25rem;
  }

  .about-page-title {
    font-size: 2.25rem;
  }

  .about-page-intro,
  .founder-copy p {
    font-size: 1rem;
  }

  .about-founder-image-box {
    width: 200px;
    max-width: 200px;
  }

  .footer-brand-name {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
}
