:root {
  --ink: #0f2942;
  --muted: #60758a;
  --line: #d8e8ee;
  --bg: #eef5f6;
  --panel: #ffffff;
  --blue: #173f63;
  --blue-2: #255f84;
  --cyan: #6fb8c2;
  --teal: #357f87;
  --teal-soft: #dff2f4;
  --green: #2f7d5f;
  --gold: #d6a94c;
  --shadow: 0 18px 44px rgba(15, 41, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

main {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(216, 232, 238, 0.9);
  backdrop-filter: blur(16px);
}

.notice {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  font-size: 14px;
}

.notice span {
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.nav,
.admin-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 25px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 0;
  height: 3px;
  border-radius: 8px;
  background: var(--teal);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.admin-link {
  min-width: 110px;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 24px rgba(15, 41, 66, 0.16);
}

.lang-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.hero {
  order: 1;
  position: relative;
  min-height: 690px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 20%, rgba(111, 184, 194, 0.18), transparent 26%),
    linear-gradient(135deg, #eef5f6 0%, #f8fbfb 54%, #e6f1f3 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 18%;
  z-index: -1;
  opacity: 0.8;
  background: repeating-radial-gradient(
    ellipse at 66% 14%,
    transparent 0 36px,
    rgba(255, 255, 255, 0.8) 38px 40px,
    transparent 42px 76px
  );
}

.page-hero {
  min-height: 340px;
  padding: 88px max(16px, calc((100% - 1180px) / 2));
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 41, 66, 0.92), rgba(53, 127, 135, 0.76)),
    url("/assets/hero-medical-men.jpg") center / cover;
}

.page-hero > div {
  max-width: 780px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.courses-page-section {
  margin-top: 44px;
}

.hero-content {
  width: min(1480px, calc(100% - 70px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.98fr 1.05fr;
  gap: 70px;
  align-items: center;
  direction: ltr;
  padding: 42px 0 58px;
}

.hero-copy {
  max-width: 820px;
  color: var(--ink);
  text-align: left;
  direction: ltr;
}

[dir="rtl"] .hero-copy {
  direction: rtl;
  text-align: right;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 750px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
}

.hero h1::first-line {
  color: var(--ink);
}

.hero h1 span {
  display: block;
  color: var(--teal);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 21px;
}

.hero .lead {
  max-width: 780px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  direction: ltr;
  justify-content: flex-start;
}

[dir="rtl"] .hero-actions {
  direction: rtl;
}

.btn {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  box-shadow: 0 16px 30px rgba(53, 127, 135, 0.22);
}

.btn.ghost {
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--line);
}

.hero .btn.ghost {
  color: var(--teal);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 10px 20px rgba(15, 41, 66, 0.11);
}

.hero .btn {
  min-width: 360px;
  min-height: 76px;
  border-radius: 14px;
  padding: 18px 34px;
  font-size: 21px;
}

.hero .btn.primary {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  box-shadow: none;
}

.hero .btn.primary::before {
  content: "▶";
  width: 24px;
  height: 24px;
  margin-inline-end: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #fff;
  font-size: 11px;
}

[dir="rtl"] .hero .btn.primary::before {
  content: "";
  display: none;
}

.hero-trust {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  color: var(--blue);
  font-size: 19px;
  direction: ltr;
  justify-content: flex-start;
}

[dir="rtl"] .hero-trust {
  direction: rtl;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-trust span::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  font-size: 23px;
}

.hero-stats {
  margin-top: 76px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  direction: ltr;
  justify-content: flex-start;
}

[dir="rtl"] .hero-stats {
  direction: rtl;
}

.hero-stats article {
  min-width: 210px;
  min-height: 78px;
  padding: 13px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal)) !important;
  box-shadow: none !important;
  text-align: left;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: #fff;
  font-size: 28px;
  font-weight: 900;
}

.hero-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.hero-stats p {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.hero-visual {
  width: min(100%, 420px);
  aspect-ratio: 420 / 568;
  height: auto;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #dce9ed;
  box-shadow: none;
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.accredit-strip {
  order: 2;
  width: 100%;
  margin: 0 auto 72px;
  padding: 92px 0 78px;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.home-courses {
  order: 4;
}

#bundles {
  order: 3;
}

#reviews {
  order: 5;
}

#blog {
  order: 6;
}

.seo-section {
  order: 7;
}

#contact {
  order: 8;
}

#services,
#accreditation {
  display: none;
}

.accredit-strip h2 {
  margin-bottom: 52px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
}

.accredit-marquee {
  width: 100%;
  height: 74px;
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.accredit-marquee::before,
.accredit-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 110px;
  pointer-events: none;
}

.accredit-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(238, 245, 246, 0));
}

.accredit-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(238, 245, 246, 0));
}

.accredit-track {
  display: flex;
  width: 200%;
  height: 100%;
  align-items: center;
  animation: accredits-scroll 24s linear infinite;
  will-change: transform;
  direction: ltr;
}

.accredit-group {
  display: flex;
  flex: 0 0 50%;
  gap: 46px;
  justify-content: space-around;
  align-items: center;
  padding: 0 23px;
  direction: ltr;
}

.accredit-marquee span {
  min-width: 170px;
  min-height: 58px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: transparent;
  font-weight: 900;
  box-shadow: none;
  opacity: 0.9;
  font-size: 13px;
}

.accredit-marquee:hover .accredit-track {
  animation-play-state: paused;
}

@keyframes accredits-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.cme-logo {
  color: var(--gold) !important;
  font-size: 18px !important;
  text-transform: uppercase;
}

.seo-section {
  width: min(1180px, calc(100% - 32px));
  margin: 76px auto;
  padding: 48px 0;
  background: transparent;
}

.centered,
.centered-text {
  margin-inline: auto;
  text-align: center;
}

.centered-text {
  max-width: 980px;
}

.seo-grid article,
.blog-grid article,
.faq-list details,
.mini-feature,
.testimonial-section blockquote {
  border: 1px solid rgba(218, 228, 236, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 41, 66, 0.06);
}

.seo-grid article {
  padding: 26px;
}

.percent-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.percent-grid article {
  min-height: 150px;
  padding: 24px;
  border-radius: 14px;
  display: grid;
  align-content: center;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 41, 66, 0.06);
}

.percent-grid strong {
  color: var(--teal);
  font-size: 52px;
  line-height: 1;
}

.percent-grid strong span {
  font-size: 24px;
}

.percent-grid p {
  margin: 12px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.split-copy {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 38px;
  align-items: center;
}

.split-copy.reverse {
  direction: rtl;
}

.split-copy.reverse > * {
  direction: ltr;
}

.split-copy h2,
.testimonial-section h2,
.outcome-focus h2,
.centered-text h2 {
  color: var(--ink);
}

.split-copy p,
.seo-section p {
  color: var(--muted);
}

.mini-feature {
  margin-top: 14px;
  padding: 20px;
}

.copy-image {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 18px 18px 0 rgba(232, 238, 241, 0.95);
}

.copy-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.testimonial-section blockquote {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.9;
}

.reviews-grid {
  max-width: 1100px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reviews-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(218, 228, 236, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 41, 66, 0.06);
}

.reviews-grid strong {
  color: var(--teal);
}

.testimonial-section cite {
  margin-top: 18px;
  display: block;
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.rating {
  color: var(--gold) !important;
  font-weight: 900;
}

.seo-logos {
  margin-top: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-grid article {
  min-height: 150px;
  padding: 22px;
}

.seo-featured-article {
  grid-column: 1 / -1;
  min-height: 0 !important;
  border-color: rgba(111, 184, 194, 0.55) !important;
  background: linear-gradient(145deg, #fff, var(--teal-soft)) !important;
}

.seo-featured-article h3 {
  color: var(--blue);
  font-size: clamp(24px, 3vw, 34px);
}

.seo-featured-article p {
  max-width: 980px;
  color: var(--muted);
  font-weight: 700;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.still-questions {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
}

.final-cta {
  border-radius: 24px;
  padding: 54px;
  text-align: center;
  background: linear-gradient(135deg, rgba(111, 184, 194, 0.22), rgba(255, 255, 255, 0.9));
  box-shadow: 0 18px 44px rgba(15, 41, 66, 0.08);
}

.final-cta .hero-actions {
  justify-content: center;
}

.stats-strip {
  width: min(1060px, calc(100% - 32px));
  margin: -54px auto 80px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats-strip article {
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.stats-strip strong,
.outcome-list strong {
  color: var(--blue);
  font-size: 34px;
  line-height: 1.2;
}

.stats-strip span,
.outcome-list span {
  color: var(--muted);
  font-weight: 800;
}

.split-section,
.courses-section,
.outcomes,
.order-section {
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.split-section > div:first-child {
  position: sticky;
  top: 132px;
}

.split-section > div:first-child p:not(.eyebrow),
.section-head p,
.order-copy p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.course-card,
.order-form,
.admin-card,
.order-item,
.admin-course {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 41, 66, 0.07);
}

.feature-grid article {
  min-height: 200px;
  padding: 26px;
}

.icon {
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.courses-section {
  padding: 52px 0;
  background:
    linear-gradient(180deg, rgba(238, 245, 246, 0), rgba(223, 242, 244, 0.7), rgba(238, 245, 246, 0));
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.course-card {
  min-height: 500px;
  padding: 0 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.course-card.featured {
  border-color: rgba(111, 184, 194, 0.75);
  box-shadow: 0 20px 46px rgba(15, 41, 66, 0.14);
  transform: translateY(-10px);
}

.badge {
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(37, 182, 111, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.card-media {
  height: 180px;
  margin: 0 -22px 8px;
  position: relative;
  overflow: hidden;
  background: var(--teal-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95);
}

.course-grid-wide .card-media {
  height: 190px;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 41, 66, 0.56), rgba(15, 41, 66, 0.04));
}

.card-media span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 63, 99, 0.84);
  font-size: 12px;
  font-weight: 900;
}

[dir="ltr"] .card-media span {
  right: auto;
  left: 12px;
}

.included-title {
  color: var(--ink);
  font-size: 14px;
}

.top-seller {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

[dir="ltr"] .top-seller {
  left: auto;
  right: 14px;
}

.course-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alt-section {
  padding-top: 0;
}

.price {
  color: var(--blue);
  font-size: 36px;
  font-weight: 900;
}

.price small,
.course-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.course-card ul {
  padding: 0;
  margin: 0 0 6px;
  list-style: none;
  color: var(--muted);
}

.course-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.course-card .btn {
  width: 100%;
  margin-top: auto;
}

.logos-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.logos-band span {
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--blue);
  background: var(--panel);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 41, 66, 0.05);
}

.outcome-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.outcome-list div {
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  background: linear-gradient(145deg, #fff, var(--teal-soft));
}

.order-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
  padding: 52px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 18%, rgba(111, 184, 194, 0.22), transparent 24%),
    linear-gradient(135deg, var(--blue), var(--teal));
}

.order-copy p,
.order-section .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.order-form,
.admin-form {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 900;
}

.order-form label {
  color: var(--blue);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input[type="file"] {
  padding: 10px;
}

.payment-box {
  border: 1px solid rgba(111, 184, 194, 0.42);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 7px;
  color: var(--blue);
  background: linear-gradient(145deg, #fff, var(--teal-soft));
  font-size: 14px;
}

.payment-box strong {
  color: var(--teal);
  font-size: 17px;
}

.thank-section {
  width: min(820px, calc(100% - 32px));
  min-height: 68vh;
  margin: 44px auto 80px;
  display: grid;
  place-items: center;
}

.thank-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 42px;
  display: grid;
  gap: 16px;
  text-align: center;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.thank-card img {
  width: 112px;
  margin: 0 auto 8px;
  border-radius: 8px;
}

.thank-card h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
}

.thank-card p {
  margin: 0;
  color: var(--muted);
}

.article-page {
  width: min(900px, calc(100% - 32px));
  margin: 54px auto 90px;
  display: grid;
  gap: 18px;
  color: var(--ink);
}

.article-page h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
}

.article-page h2 {
  margin: 18px 0 0;
  color: var(--blue);
  font-size: 28px;
}

.article-page p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.thank-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tutorial-video-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1000;
  width: min(310px, calc(100vw - 36px));
  border: 1px solid rgba(216, 232, 238, 0.92);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(15, 41, 66, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tutorial-video-widget.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.order-dialog .tutorial-video-widget {
  position: static;
  width: 100%;
  margin: 12px 0 18px;
  z-index: auto;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  box-shadow: 0 10px 24px rgba(15, 41, 66, 0.12);
}

.tutorial-video-head {
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  font-size: 13px;
  font-weight: 900;
}

.tutorial-video-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.tutorial-video-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.tutorial-video-widget video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  display: block;
  background: #0f2942;
}

.order-dialog .tutorial-video-widget video {
  max-height: 190px;
  object-fit: contain;
}

textarea {
  resize: vertical;
}

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

.form-message {
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.footer {
  padding: 42px max(16px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr 1.2fr;
  gap: 24px;
  color: #dfefff;
  background: #102a42;
}

.footer img {
  width: 86px;
  border-radius: 8px;
}

.footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-body {
  background: var(--bg);
}

.admin-header {
  padding-block: 10px;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 70px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.admin-card {
  padding: 22px;
}

.compact {
  margin-bottom: 18px;
}

.compact h1,
.compact h2 {
  font-size: 30px;
}

.admin-form {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline input {
  width: auto;
}

.admin-list,
.orders-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
}

.admin-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-tools input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.admin-course,
.order-item {
  padding: 16px;
}

.order-dialog {
  width: min(760px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 80px rgba(12, 33, 73, 0.34);
}

.order-dialog::backdrop {
  background: rgba(12, 33, 73, 0.66);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-body {
  padding: 0 24px 24px;
}

.modal-form {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.small-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--blue);
  background: #f8fbfd;
  font-weight: 900;
  cursor: pointer;
}

.danger {
  color: #b42318;
}

.order-item {
  display: grid;
  gap: 8px;
}

.order-meta {
  color: var(--muted);
  font-size: 14px;
}

.order-date {
  color: var(--teal);
  font-weight: 900;
}

.admin-order-dialog {
  width: min(860px, calc(100% - 28px));
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-detail-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.order-detail-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-detail-actions {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .nav {
    min-height: 70px;
    gap: 12px;
    padding: 8px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 8px;
  }

  .nav-links a {
    min-width: max-content;
    padding: 8px 0;
  }

  .admin-link {
    min-width: auto;
    padding: 9px 13px;
  }

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

  .hero-content,
  .split-section,
  .order-section,
  .admin-tools,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(100%, 420px);
    max-width: none;
    min-height: 0;
    height: auto;
    align-self: start;
    justify-self: center;
  }

  .stats-strip,
  .course-grid,
  .course-grid-wide,
  .outcome-list,
  .logos-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section > div:first-child {
    position: static;
  }
}

@media (max-width: 620px) {
  .notice {
    min-height: 42px;
    padding: 6px 12px;
    text-align: center;
    font-size: 12px;
  }

  .nav {
    width: min(100% - 22px, 1180px);
    min-height: 66px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand span {
    font-size: 15px;
  }

  .nav-links {
    font-size: 13px;
  }

  .admin-link {
    display: none;
  }

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

  .hero-content {
    width: min(100% - 28px, 1180px);
    gap: 24px;
    padding: 28px 0 42px;
  }

  h1 {
    font-size: 34px;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .hero .lead {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 16px;
  }

  .hero-trust {
    margin-top: 18px;
    gap: 14px;
    font-size: 15px;
  }

  .hero-trust span {
    width: 100%;
  }

  .hero-stats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-stats article {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 68px;
    padding: 10px;
    border-radius: 12px;
    gap: 9px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .hero-stats strong {
    font-size: 19px;
  }

  .hero-stats p {
    font-size: 12px;
  }

  .hero-visual {
    width: min(100%, 420px);
    max-width: 420px;
    min-height: 0;
    height: auto;
    aspect-ratio: 420 / 568;
    border-radius: 22px;
    box-shadow: none;
  }

  .hero-visual img {
    object-position: center;
    transform: none;
  }

  .stats-strip {
    margin-top: -42px;
  }

  .stats-strip,
  .feature-grid,
  .course-grid,
  .course-grid-wide,
  .outcome-list,
  .logos-band,
  .percent-grid,
  .blog-grid,
  .reviews-grid,
  .split-copy,
  .order-form,
  .admin-form,
  .footer {
    grid-template-columns: 1fr;
  }

  .course-card.featured {
    transform: none;
  }

  .order-section {
    padding: 28px 18px;
  }

  .full {
    grid-column: auto;
  }

  .tutorial-video-widget {
    left: 10px;
    bottom: 10px;
    width: min(236px, calc(100vw - 20px));
  }

  .tutorial-video-head {
    min-height: 36px;
    font-size: 12px;
  }
}
