:root {
  --blue: #1f66c4;
  --blue-dark: #164f99;
  --gold: #edc105;
  --green: #328e4e;
  --red: #c62828;
  --text: #243447;
  --muted: #5b6b7c;
  --bg: #f4f7fb;
  --white: #ffffff;
  --line: #dce5ef;
  --shadow: 0 12px 30px rgba(20, 40, 70, 0.08);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Libre Franklin", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--blue-dark);
  color: #e8f1fa;
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.topbar a {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo img {
  width: min(280px, 58vw);
  height: auto;
}

.logo-text strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav > li {
  position: relative;
}

.nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 20;
}

.nav li:hover > .submenu {
  display: block;
}

.nav .submenu a {
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #0d2a45;
}

.slides {
  position: relative;
  min-height: clamp(260px, 42vw, 480px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 30, 55, 0.78), rgba(10, 30, 55, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) 0;
  color: #fff;
}

.hero-content h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 16ch;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-content p {
  max-width: 48ch;
  color: #d7e5f3;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1f2a37;
}

.btn-primary:hover {
  background: #ffd84a;
  color: #1f2a37;
}

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

.btn-outline:hover {
  background: #fff;
  color: var(--blue-dark);
}

.slider-nav {
  position: absolute;
  inset: auto 16px 16px auto;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-nav button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-dark);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Notice */
.notice {
  background: var(--gold);
  color: #1f2a37;
  overflow: hidden;
  white-space: nowrap;
}

.notice-track {
  display: inline-block;
  padding: 12px 0;
  font-weight: 700;
  animation: marquee 42s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Panels */
.main-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.9fr;
  gap: 18px;
  padding: 28px 0 10px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  padding: 12px 14px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  text-align: center;
}

.panel-head.blue {
  background: var(--blue);
}
.panel-head.gold {
  background: var(--gold);
  color: #1f2a37;
}
.panel-head.green {
  background: var(--green);
}

.panel-body {
  padding: 14px;
}

.panel-body ul {
  list-style: none;
}

.panel-body li {
  border-bottom: 1px solid var(--line);
}

.panel-body li a {
  display: block;
  padding: 10px 4px;
  color: var(--text);
  font-weight: 600;
}

.panel-body li a:hover {
  color: var(--blue);
}

.about-banner {
  background: linear-gradient(135deg, var(--blue), #2f8fd4);
  color: #fff;
  padding: 22px;
  min-height: 100%;
}

.about-banner h2 {
  font-family: var(--display);
  margin-bottom: 12px;
}

.about-banner p {
  color: #e8f2fb;
}

.badge-new {
  display: inline-block;
  margin-left: 6px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.doc-img {
  width: 100%;
  border: 1px solid var(--line);
}

/* Quick services */
.services {
  padding: 10px 0 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: #9ec2e4;
}

.service h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact strip */
.contact-strip {
  background: #eef4fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: center;
}

.contact-grid h3 {
  font-family: var(--display);
  color: var(--red);
  margin-bottom: 8px;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, #12375a, var(--blue));
  color: #fff;
  padding: 42px 0;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.page-hero p {
  color: #d7e5f3;
  margin-top: 8px;
}

.content-page {
  padding: 34px 0 50px;
}

.content-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
}

.content-box h2 {
  font-family: var(--display);
  margin: 18px 0 10px;
  color: var(--blue-dark);
}

.content-box p,
.content-box li {
  color: var(--muted);
  margin-bottom: 10px;
}

.content-box ul {
  padding-left: 18px;
}

/* Popular Courses */
.courses-section {
  background: #fff;
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.courses-eyebrow {
  text-align: center;
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.courses-title {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #1a1a1a;
  margin-bottom: 28px;
}

.courses-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.courses-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.courses-track {
  display: flex;
  gap: 22px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.course-card {
  flex: 0 0 calc((100% - 66px) / 4);
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 40, 70, 0.08);
  background: #fff;
}

.course-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 526 / 470;
  object-fit: cover;
  display: block;
}

.courses-nav {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 102, 196, 0.28);
}

.courses-nav:hover {
  background: var(--blue-dark);
}

.courses-cta {
  text-align: center;
  margin-top: 28px;
  color: #333;
  font-size: 0.98rem;
}

.courses-cta a {
  color: var(--blue);
}

.courses-cta a:hover {
  color: var(--blue);
}

/* Introduction */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
  margin: 48px 0 20px;
}

.intro-media img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-eyebrow {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intro-content h2 {
  font-family: var(--display);
  color: var(--blue);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin-bottom: 14px;
}

.intro-content > p {
  color: #222;
  line-height: 1.7;
  margin-bottom: 18px;
}

.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin-bottom: 22px;
}

.intro-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-features li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid #e5eaf0;
  color: #333;
  font-size: 0.95rem;
}

.intro-features li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.intro-established {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.intro-home-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.intro-established strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: #111;
}

/* Latest News */
.news-section {
  background: #fff;
  padding: 36px 0 42px;
  border-top: 1px solid var(--line);
}

.news-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
  gap: 24px 40px;
  align-items: start;
}

.news-head h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: #1a1a1a;
  line-height: 1.25;
}

.news-head p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  padding-top: 4px;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px),
    #1a1c27;
  background-size: 28px 28px, 28px 28px, auto;
  color: #d7dde6;
  padding: 0;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  padding: 48px 0 40px;
}

.footer-col h3 {
  font-family: var(--display);
  color: #fff;
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.footer-col p {
  color: #e8edf4;
  line-height: 1.7;
  max-width: 42ch;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #9ec3f5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  text-align: center;
  color: #aeb8c6;
  font-size: 0.92rem;
}

.footer-bottom a {
  text-decoration: none;
}

/* Mobile */
@media (max-width: 980px) {
  .main-grid,
  .services-grid,
  .news-head,
  .footer-grid,
  .intro-section,
  .intro-features {
    grid-template-columns: 1fr;
  }

  .course-card {
    flex-basis: calc((100% - 22px) / 2);
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 4%;
    left: 4%;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }

  .nav.open {
    display: flex;
  }

  .nav .submenu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding-left: 12px;
  }

  .nav li.open > .submenu {
    display: block;
  }
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .logo-text strong {
    font-size: 0.92rem;
  }

  .course-card {
    flex-basis: 100%;
  }

  .courses-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-track,
  .slide,
  .courses-track {
    animation: none !important;
    transition: none !important;
  }
}
