:root {
  --paper: #f3f0ea;
  --ink: #1f2731;
  --ink-soft: rgba(31, 39, 49, 0.78);
  --line: rgba(22, 35, 49, 0.2);
  --slate-blue: #545d94;
  --slate-blue-soft: #545D94;
  --chrome: rgba(248, 250, 253, 0.78);
  --bronze: #948B54;
  --logo-gold: #948B54;
  --olive: #198754;
  --olive-deep: #157347;
  --olive-soft: #e8f2ec;
  --theme-khaki: #948B54;
  --theme-slate: #545D94;
  --theme-cream: #F5F4E7;
  --theme-moss: #7A7445;
  --theme-terra: #8C503C;
  --service-card-white-25: rgba(255, 255, 255, 0.25);
  --slide-subtitle-size: clamp(1.08rem, 2vw, 1.34rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  background: linear-gradient(170deg, #f8f4ec, #ede7df 60%, #efe5d7);
  color: var(--ink);
}

.brandmark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
  height: 68px;
  padding: 0 0.35rem;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.brandmark img {
  width: auto;
  height: 100%;
  max-width: min(46vw, 292px);
  object-fit: contain;
  object-position: center;
  filter: none;
}

.topbar {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 84px;
  padding: 0.58rem 0.72rem;
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.5);
}

.topbar[data-enter] {
  transform: translateY(-120%);
  opacity: 0;
  animation: enterRight 0.85s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.topbar-main {
  flex: 1;
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.topbar-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--slate-blue-soft);
  border-radius: 12px;
  background: #f8f7f1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #2f3b61;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-link {
  border: 0;
  background: transparent;
  color: rgba(28, 40, 52, 0.76);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.86rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.menu-link.is-active {
  color: #173d2a;
  background: rgba(148, 138, 84, 0.3);
  box-shadow: inset 0 0 0 1px rgba(148, 138, 84, 0.58);
}

.menu-link:hover {
  background: rgba(148, 138, 84, 0.5);
  color: #1f2731;
}

.menu-link:focus {
  outline: none;
}

.menu-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.35);
}

.login-link {
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: #ffffff;
  background: var(--logo-gold);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  line-height: 1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.88rem 1.2rem;
  box-shadow: 0 8px 22px rgba(111, 84, 49, 0.28);
  transition: background-color 180ms ease, color 180ms ease;
}

.login-link:hover {
  background: rgba(148, 138, 84, 0.5);
  color: #1f2731;
}

/* Login-länken inuti hamburgermenyn visas bara i mobilläge (se media-query nedan). */
.menu-link-login {
  display: none;
}

.deck {
  width: 100%;
  height: 100vh;
}

.slides {
  height: 100%;
  transition: transform 850ms cubic-bezier(0.22, 0.73, 0.11, 0.99);
}

.slide {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: clamp(4.8rem, 7vw, 6.4rem) clamp(1rem, 5vw, 5.4rem) clamp(2rem, 4vw, 3.4rem);
  background-color: #e8e1d7;
}

.slide::after {
  content: none;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.73rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(31, 39, 49, 0.6);
}

h1,
h2,
h3,
p {
  position: relative;
  z-index: 2;
}

h1,
h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.75rem, 4.8vw, 3.65rem);
  max-width: 17ch;
}

p {
  margin: 1.15rem 0 0;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 65ch;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  align-content: center;
  height: 100%;
}

.hero-copy {
  max-width: 700px;
  margin-left: auto;
  text-align: right;
}

.hero-copy h1 {
  font-size: clamp(1.6rem, 4.1vw, 3.35rem);
  max-width: none;
  white-space: nowrap;
}

.hero-copy p {
  font-size: var(--slide-subtitle-size);
  line-height: 1.5;
  color: #111111;
  font-weight: 500;
}

.course-intro-left .courses-lead,
.pan-copy > p:not(.kicker),
.morph-content > p:not(.kicker),
.grid-header > p:not(.kicker),
.contact-copy > p:not(.kicker) {
  font-size: var(--slide-subtitle-size);
  line-height: 1.5;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-height: 0;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.hero-top-left {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: clamp(1.1rem, 5vh, 3rem);
}

.hero-top-right {
  min-height: 0;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 0.75fr 2.5fr 0.75fr;
  align-items: start;
  min-height: 0;
  padding-top: clamp(0.6rem, 2.2vh, 1.6rem);
}

.hero-bottom-side {
  min-height: 0;
}

.hero-media {
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid var(--slate-blue-soft);
  min-height: min(70vh, 640px);
}

.hero-form-shell {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  background: linear-gradient(160deg, rgba(253, 252, 250, 0.92), rgba(245, 241, 235, 0.83));
  backdrop-filter: blur(7px);
  overflow-y: auto;
}


.service-float {
  position: relative;
  z-index: 4;
  min-height: 0;
  width: 100%;
  margin-top: calc(100vh / 21);
}

.service-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.service-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  height: clamp(198px, 28.8vh, 288px);
  min-height: 198px;
  border: 2px solid var(--theme-slate);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  backdrop-filter: none;
  padding: 1rem 0.9rem;
  display: grid;
  align-content: center;
  justify-items: center;
  place-content: center;
  gap: 0.38rem;
  box-shadow: none;
  text-align: center;
  cursor: pointer;
  font: inherit;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 35, 42, 0.34) 14%, rgba(28, 35, 42, 0.78) 100%);
  z-index: 1;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card--courses {
  background-image: url("assets/img/yasuragi2.png");
  background-image: image-set(
    url("assets/img/yasuragi2.webp") type("image/webp"),
    url("assets/img/yasuragi2.png") type("image/png")
  );
}

.service-card--webb {
  background-image: url("assets/img/webbkg.jpg");
  background-image: image-set(
    url("assets/img/webbkg.webp") type("image/webp"),
    url("assets/img/webbkg.jpg") type("image/jpeg")
  );
}

.service-card--stralskydd {
  background-image: url("assets/img/expert.jpg");
  background-image: image-set(
    url("assets/img/expert.webp") type("image/webp"),
    url("assets/img/expert.jpg") type("image/jpeg")
  );
}

.service-card:hover {
  border-color: var(--theme-slate);
}

.service-card:focus-visible {
  outline: 3px solid rgba(230, 223, 190, 0.95);
  outline-offset: 2px;
}

.service-card h3 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  min-height: 0;
  text-align: center;
}

.service-card p {
  margin: 0;
  padding: 0;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.94);
  max-width: none;
  min-height: 0;
  text-align: center;
}

.slide-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-bottom: clamp(3.3rem, 5.2vw, 4.4rem);
  background-image: url("assets/img/mainbkg.jpg");
  background-image: image-set(
    url("assets/img/mainbkg.webp") type("image/webp"),
    url("assets/img/mainbkg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.contact-copy {
  position: relative;
  z-index: 2;
  max-width: 58ch;
}

.contact-copy h2 {
  color: #ffffff;
}

.contact-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin-left: 0;
  justify-self: start;
}

.contact-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.contact-legal-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.contact-legal-strip p {
  margin: 0;
  color: rgba(21, 32, 43, 0.84);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.contact-panel form {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
}

.hero-form-shell h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.hero-form-shell form {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-row--email-phone {
  grid-template-columns: 1fr 2fr;
}

.form-row--name-phone {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(30, 40, 51, 0.76);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 2px solid var(--slate-blue-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: #12202e;
  padding: 0.67rem 0.74rem;
  font: inherit;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%231f2731' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px 9px;
  background-position: right 0.8rem center;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-size: 0.94rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(31, 39, 49, 0.45);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(47, 122, 82, 0.86);
  box-shadow: 0 0 0 3px rgba(47, 122, 82, 0.18);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(22, 34, 47, 0.85);
  line-height: 1.45;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin-top: 0.1rem;
  accent-color: var(--logo-gold);
}

.terms-link-btn {
  border: 0;
  background: transparent;
  color: #1f2731;
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0.2rem;
  padding: 0;
  cursor: pointer;
}

.terms-link-btn:hover {
  color: #157347;
}

.form-submit {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  line-height: 1;
  padding: 0.68rem 1rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--logo-gold);
  color: #ffffff;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(111, 84, 49, 0.25);
  transition: background-color 180ms ease, color 180ms ease;
}

.form-submit:hover {
  background: rgba(148, 138, 84, 0.5);
  color: #1f2731;
}

.form-submit[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.turnstile-widget {
  margin: 0.4rem 0 0.2rem;
}

.form-success-shell {
  position: relative;
  overflow: hidden;
}

.form-success-shell.is-success-state > * {
  display: none;
}

.form-success-box {
  display: none;
  min-height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #164b31;
  border: 1px solid rgba(25, 135, 84, 0.5);
  background: linear-gradient(180deg, rgba(229, 249, 239, 0.98), rgba(209, 241, 223, 0.95));
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.form-success-shell.is-success-state .form-success-box {
  display: flex;
}

.form-status {
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font-size: 0.83rem;
  border: 1px solid transparent;
}

.form-status.is-hidden {
  display: none;
}

.form-status.info {
  background: rgba(138, 162, 224, 0.15);
  border-color: rgba(138, 162, 224, 0.4);
}

.form-status.success {
  background: var(--olive-soft);
  border-color: rgba(47, 122, 82, 0.42);
}

.form-status.error {
  background: rgba(236, 123, 123, 0.15);
  border-color: rgba(236, 123, 123, 0.4);
}

.form-note {
  margin-top: 0;
  font-size: 0.72rem;
  color: rgba(28, 39, 50, 0.58);
}

.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.form-actions-row .form-note {
  margin: 0;
}

.form-actions-row .form-submit {
  margin-left: auto;
}

.honeypot {
  position: absolute;
  left: -5000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-media img,
.split-media img,
.pan-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wave-field {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 20vh, 210px);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.wave-svg {
  position: absolute;
  left: -4%;
  width: 108%;
  height: 100%;
  bottom: -18px;
}

.wave-path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.wave-2 {
  stroke-width: 1.9;
  stroke: rgba(255, 255, 255, 0.92);
  animation: waveTravelB 3.95s ease-in-out infinite;
}

.wave-3 {
  stroke-width: 1.6;
  stroke: rgba(148, 138, 84, 0.82);
  animation: waveTravelC 3.35s ease-in-out infinite;
}

.wave-4 {
  stroke-width: 1.4;
  stroke: rgba(255, 255, 255, 0.76);
  animation: waveTravelD 2.8s ease-in-out infinite;
}

.wave-gold {
  stroke: rgba(148, 138, 84, 0.82);
  stroke-linecap: round;
}

.wave-gold-a {
  stroke-width: 1.25;
  animation: waveTravelC 2.85s ease-in-out infinite;
}

.wave-gold-b {
  stroke-width: 1.15;
  animation: waveTravelD 2.45s ease-in-out infinite;
}

.wave-gold-c {
  stroke-width: 1.1;
  animation: waveTravelD 2.2s ease-in-out infinite reverse;
}


.slide-hero {
  background-image: url("assets/img/homepage-bkg6.jpg");
  background-image: image-set(
    url("assets/img/homepage-bkg6.webp") type("image/webp"),
    url("assets/img/homepage-bkg6.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.slide-split {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(1rem, 5vw, 3.2rem);
  background-image: url("assets/img/kursbkg.jpg");
  background-image: image-set(
    url("assets/img/kursbkg.webp") type("image/webp"),
    url("assets/img/kursbkg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.slide-courses {
  display: block;
  background-image: linear-gradient(90deg, rgba(245, 244, 231, 0.9) 0%, rgba(245, 244, 231, 0) 100%), url("assets/img/kursbkg.jpg");
  background-image: linear-gradient(90deg, rgba(245, 244, 231, 0.9) 0%, rgba(245, 244, 231, 0) 100%), image-set(
    url("assets/img/kursbkg.webp") type("image/webp"),
    url("assets/img/kursbkg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.slide-courses::before {
  display: none;
}

.slide-courses .courses-layout {
  position: relative;
  z-index: 2;
}

.slide-courses .courses-layout {
  margin-top: clamp(0.85rem, 1.9vh, 1.3rem);
  height: 100%;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
}

.courses-layout--intro {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.courses-layout--intro .course-intro-layout {
  width: 100%;
}

.course-page-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.7rem;
  color: #16202b;
  font-weight: 600;
}

.course-page-switch--intro-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.9rem;
}

.course-next-btn {
  border: 2px solid rgba(84, 93, 148, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2731;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.72rem 1.08rem;
  cursor: pointer;
}

.course-next-btn--intro {
  min-height: 48px;
  padding: 0.86rem 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 40, 52, 0.76);
  background: #ffffff;
  border-color: rgba(84, 93, 148, 0.55);
}

.course-next-btn--intro:hover {
  background: rgba(148, 138, 84, 0.5);
  color: #1f2731;
}

.course-next-btn:hover {
  background: rgba(148, 138, 84, 0.3);
}

.course-next-btn--back {
  padding-left: 1.24rem;
  padding-right: 1.24rem;
}

.course-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.course-carousel-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 420ms cubic-bezier(0.22, 0.73, 0.11, 0.99);
}

.course-carousel-page {
  width: 50%;
  height: 100%;
  flex: 0 0 50%;
  min-width: 0;
  padding-right: 0.2rem;
  overflow: hidden;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.course-carousel-page.is-active {
  opacity: 1;
  pointer-events: auto;
}

.course-carousel-page--catalog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding-top: clamp(1rem, 2.5vh, 1.8rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.course-carousel-back-arrow {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f3b61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0;
  cursor: pointer;
}

.course-carousel-back-arrow svg {
  width: 46px;
  height: 46px;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.course-carousel-back-arrow:hover {
  color: #6a6139;
}

.course-carousel-back-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-header,
.catalog-layout,
.course-page-switch--back {
  position: relative;
  z-index: 2;
}

.catalog-header {
  max-width: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.2rem;
}

.catalog-header h2 {
  margin: 0;
  color: #16202b;
  font-size: clamp(1.5rem, 4vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: none;
  text-align: center;
  justify-self: center;
}

.catalog-header .course-carousel-back-arrow {
  justify-self: start;
}

.catalog-header-spacer {
  width: 46px;
  height: 46px;
  visibility: hidden;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(300px, 13fr);
  gap: 0.9rem;
  min-height: 0;
}

.course-carousel-page--intro .course-intro-left {
  align-items: center;
  text-align: center;
}

.course-carousel-page--intro .course-intro-left .courses-heading,
.course-carousel-page--intro .course-intro-left .courses-lead,
.course-carousel-page--intro .course-intro-left .kicker,
.course-carousel-page--intro .course-intro-left .courses-lead-cta {
  text-align: center;
}

.course-carousel-page--intro .course-intro-left .courses-heading,
.course-carousel-page--intro .course-intro-left .courses-lead {
  margin-left: auto;
  margin-right: auto;
}

.catalog-cards {
  border: 2px solid rgba(84, 93, 148, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
  min-height: 0;
  height: 100%;
  display: flex;
  overflow: auto;
}

.course-catalog-grid {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.course-browser {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 3fr);
  gap: 0.75rem;
  min-height: 0;
  height: 100%;
}

.course-browser-menu {
  --course-menu-gap: 0.42rem;
  --course-menu-title-font-size: 0.78rem;
  --course-menu-title-margin-top: 0.42rem;
  --course-menu-title-margin-bottom: 0.16rem;
  --course-menu-item-font-size: 0.94rem;
  --course-menu-item-padding-y: 0.55rem;
  --course-menu-item-padding-x: 0.58rem;
  border: 1px solid rgba(84, 93, 148, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: var(--course-menu-gap);
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.course-browser-group-title {
  margin: var(--course-menu-title-margin-top) 0.2rem var(--course-menu-title-margin-bottom);
  color: rgba(32, 45, 61, 0.7);
  font-size: var(--course-menu-title-font-size);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.course-browser-menu .course-browser-group-title:first-child {
  margin-top: 0;
}

.course-browser-item {
  border: 1px solid rgba(84, 93, 148, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2731;
  text-align: left;
  font: inherit;
  font-size: var(--course-menu-item-font-size);
  line-height: 1.34;
  padding: var(--course-menu-item-padding-y) var(--course-menu-item-padding-x);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-browser-item:hover {
  border-color: rgba(84, 93, 148, 0.5);
  background: rgba(245, 244, 231, 0.75);
}

.course-browser-item.is-active {
  border-color: rgba(25, 135, 84, 0.82);
  background: rgba(229, 249, 239, 0.95);
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.18);
}

.course-browser-item--dental {
  border-left: 4px solid rgba(84, 93, 148, 0.8);
  background: rgba(84, 93, 148, 0.08);
}

.course-browser-item--vet {
  border-left: 4px solid rgba(122, 116, 69, 0.88);
  background: rgba(122, 116, 69, 0.1);
}

.course-browser-item--health {
  border-left: 4px solid rgba(140, 80, 60, 0.86);
  background: rgba(140, 80, 60, 0.1);
}

.course-browser-item--industry {
  border-left: 4px solid rgba(89, 96, 109, 0.86);
  background: rgba(89, 96, 109, 0.11);
}

.course-browser-stage {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-browser-placeholder {
  margin: 0;
  padding: 0;
  color: rgba(31, 39, 49, 0.8);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.course-browser-stage .course-card {
  border: 1px solid rgba(84, 93, 148, 0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 18px rgba(18, 28, 42, 0.08);
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
}

.course-browser-stage .course-detail-main {
  grid-template-columns: minmax(0, 2.65fr) minmax(0, 1.35fr);
}

.course-browser-stage .course-info-title-sessions {
  margin-top: auto;
  padding-top: 0.7rem;
}

.course-catalog-card {
  border: 1px solid rgba(84, 93, 148, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 246, 237, 0.9));
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(15, 24, 36, 0.08);
}

.course-catalog-card.is-selected {
  border-color: rgba(25, 135, 84, 0.9);
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2), 0 10px 22px rgba(15, 24, 36, 0.14);
}

.course-catalog-card--dental {
  border-left: 1px solid rgba(84, 93, 148, 0.35);
}

.course-catalog-card--vet {
  border-left: 1px solid rgba(84, 93, 148, 0.35);
}

.course-catalog-card--health {
  border-left: 1px solid rgba(84, 93, 148, 0.35);
}

.course-catalog-card--industry {
  border-left: 1px solid rgba(84, 93, 148, 0.35);
}

.course-catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: start;
}

.course-catalog-title {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.3;
}

.course-catalog-category {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(31, 39, 49, 0.78);
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 39, 49, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.course-catalog-summary {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(31, 39, 49, 0.84);
}

.course-catalog-meta {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(31, 39, 49, 0.75);
}

.course-catalog-details {
  display: grid;
  gap: 0.32rem;
}

.course-catalog-detail-line {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.36;
  color: rgba(25, 36, 49, 0.85);
}

.course-catalog-session-wrap {
  display: grid;
  gap: 0.28rem;
}

.course-catalog-session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.course-catalog-session-label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(31, 39, 49, 0.76);
  margin: 0;
}

.course-catalog-select-btn {
  border: 1px solid rgba(84, 93, 148, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(245, 244, 231, 0.98), rgba(234, 230, 207, 0.96));
  color: #1f2731;
  padding: 0.32rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.course-catalog-select-btn:hover {
  background: linear-gradient(180deg, rgba(255, 246, 212, 0.98), rgba(238, 226, 184, 0.96));
}

.course-catalog-session-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.course-catalog-session-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(84, 93, 148, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2731;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
}

.course-catalog-session-item.is-active {
  border-color: rgba(25, 135, 84, 0.8);
  background: rgba(230, 248, 238, 0.95);
}

.course-catalog-session-empty {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(31, 39, 49, 0.76);
}

.course-catalog-action {
  margin-top: 0.1rem;
  border: 1px solid rgba(84, 93, 148, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(245, 244, 231, 0.98), rgba(234, 230, 207, 0.96));
  color: #1f2731;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.course-catalog-action:hover {
  background: linear-gradient(180deg, rgba(255, 246, 212, 0.98), rgba(238, 226, 184, 0.96));
}

.catalog-form {
  border: 2px solid rgba(84, 93, 148, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.catalog-form form {
  gap: 0.58rem;
}

.catalog-form .form-group {
  gap: 0.28rem;
}

.catalog-form .form-group input,
.catalog-form .form-group textarea,
.catalog-form .form-group select {
  padding: 0.58rem 0.64rem;
}

.catalog-form.is-success-state > * {
  display: none;
}

.catalog-form-success {
  display: none;
  min-height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #164b31;
  border: 1px solid rgba(25, 135, 84, 0.5);
  background: linear-gradient(180deg, rgba(229, 249, 239, 0.98), rgba(209, 241, 223, 0.95));
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.catalog-form.is-success-state .catalog-form-success {
  display: flex;
}

.catalog-form h3 {
  margin: 0 0 0.7rem;
}

.catalog-form-note {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.86rem;
  color: rgba(18, 32, 46, 0.78);
}

.course-page-selection {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin: 0 0 0.72rem;
  border: 1px solid rgba(25, 135, 84, 0.58);
  background: linear-gradient(180deg, rgba(229, 249, 239, 0.96), rgba(209, 241, 223, 0.94));
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  color: #164b31;
}

.course-page-selection.is-hidden {
  display: none;
}

.course-page-selection small {
  color: rgba(22, 66, 44, 0.9);
}

.course-page-selection-title {
  margin: 0;
  color: rgba(22, 66, 44, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .deck,
  .slides {
    height: auto;
  }

  .slides {
    transform: none !important;
    transition: none;
  }

  .slide {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: 2rem;
  }

  [data-from] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide-courses {
    overflow: visible;
  }

  .morph-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .morph-col-left {
    order: 1;
  }

  .morph-col-right {
    order: 2;
    justify-content: flex-start;
  }

  .morph-col-right .morph-content {
    text-align: left;
    margin-top: 0.8rem;
  }

  .course-intro-gallery {
    grid-template-columns: 1fr;
  }

  .course-intro-gallery img:nth-child(1),
  .course-intro-gallery img:nth-child(2),
  .course-intro-gallery img:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .course-intro-gallery img {
    height: clamp(190px, 42vw, 260px);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .catalog-form,
  .catalog-cards {
    min-height: 0;
  }

  .catalog-cards {
    overflow: visible;
    padding: 0.9rem;
  }

  .form-row,
  .form-row--name-phone,
  .form-row--email-phone {
    grid-template-columns: 1fr;
  }

  .course-browser {
    grid-template-columns: 1fr;
  }

  .course-browser-menu {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .course-browser-item {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-height: 2.45rem;
    line-height: 1.28;
  }

  .course-browser-placeholder {
    min-height: 0;
    justify-content: flex-start;
    padding: 0.3rem 0.15rem 0;
    font-size: 0.94rem;
  }

  .course-carousel-back-arrow {
    width: auto;
    height: auto;
  }

  .course-carousel-back-arrow svg {
    width: 34px;
    height: 34px;
  }

  .catalog-header-spacer {
    width: 34px;
    height: 34px;
  }
}

.course-page-switch--back {
  justify-self: start;
  margin-top: 0.5rem;
}

.course-header-panel {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  justify-self: stretch;
  padding: clamp(0.2rem, 0.7vh, 0.45rem) 0 0;
  margin: 0;
  text-align: left;
}

.course-header-panel .courses-heading {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(1.75rem, 4.8vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.course-intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.slide-courses .courses-layout > section {
  min-height: 0;
  overflow-y: visible;
  padding-right: 0.2rem;
}

.course-selection-panel {
  min-height: auto;
  align-self: stretch;
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  padding: 0.8rem 0.9rem 0.85rem;
  border-radius: 16px;
  border: 2px solid rgba(84, 93, 148, 0.55);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(20, 30, 40, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 3;
}

.course-intro-left {
  align-self: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
}

.course-intro-left .courses-heading {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.75rem, 4.8vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.course-intro-left .courses-lead {
  max-width: 65ch;
  font-size: var(--slide-subtitle-size);
  line-height: 1.55;
  margin-top: 1.15rem;
  color: var(--ink-soft);
}

.course-intro-left .courses-lead-cta {
  font-weight: 600;
  color: rgba(20, 30, 40, 0.95);
}

.course-intro-right {
  justify-self: stretch;
  align-self: center;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.course-intro-gallery-shell {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.course-intro-gallery-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.course-intro-gallery {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.course-intro-gallery img:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.course-intro-gallery img:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.course-intro-gallery img:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.course-intro-gallery img {
  width: 100%;
  height: 234px;
  object-fit: cover;
  border: 2px solid rgba(84, 93, 148, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.course-intro-right .course-page-switch {
  width: auto;
  margin-top: auto;
  padding-top: 0.75rem;
  justify-content: flex-start;
}

.course-intro-right .course-next-btn {
  width: auto;
  max-width: 100%;
}

.slide-courses .courses-layout > section {
  padding-bottom: 0.5rem;
}

.slide-courses .courses-heading {
  margin-bottom: 0.35rem;
}

.courses-lead {
  margin-top: 0;
  max-width: 72ch;
  font-size: var(--slide-subtitle-size);
  color: #000;
}

.course-selector-shell,
.course-detail-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.course-selector-label {
  margin: 0 0 0.65rem;
  color: #000;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.course-selector-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.course-detail-shell {
  display: flex;
  flex-direction: column;
  min-height: auto;
  flex: 0 1 auto;
  gap: 0.5rem;
  height: 100%;
}

.split-media {
  margin: 0;
  border-radius: 0 34px 34px 0;
  border: 2px solid var(--slate-blue-soft);
  overflow: hidden;
  min-height: min(70vh, 620px);
}

.split-copy {
  position: relative;
  z-index: 2;
}

.slide-morph {
  display: grid;
  align-items: center;
  background-image: url("assets/img/webbkg.jpg");
  background-image: image-set(
    url("assets/img/webbkg.webp") type("image/webp"),
    url("assets/img/webbkg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.morph-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  width: 100%;
  max-width: none;
  margin: clamp(3.8rem, 8vh, 5.8rem) auto 0;
}

.morph-col {
  width: 100%;
  display: flex;
  justify-content: center;
}

.morph-col-right {
  justify-content: flex-end;
}

.morph-col-right .morph-content {
  text-align: right;
}

.morph-background {
  display: none;
}

.morph-content {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  max-width: 560px;
  margin-top: 0;
}

.morph-order-panel {
  width: min(560px, 100%);
  max-width: 560px;
  margin: 0;
}

.morph-order-panel form {
  gap: 0.72rem;
}

.morph-order-panel .form-group select {
  width: 100%;
  border: 2px solid var(--slate-blue-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: #12202e;
  padding: 0.67rem 0.74rem;
  font: inherit;
}

.morph-order-panel .form-group select:focus {
  outline: none;
  border-color: rgba(47, 122, 82, 0.86);
  box-shadow: 0 0 0 3px rgba(47, 122, 82, 0.18);
}

.webb-price-box {
  border: 2px solid rgba(84, 93, 148, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.7rem 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.4rem;
  align-items: center;
}

.webb-price-box span {
  color: rgba(18, 32, 46, 0.72);
}

.webb-price-box strong {
  justify-self: end;
  font-size: 1.1rem;
  color: #16202b;
}

.webb-price-box small {
  grid-column: 1 / -1;
  color: rgba(18, 32, 46, 0.62);
}

.morph-video-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.morph-video-card {
  margin: 0;
  border: 2px solid var(--slate-blue-soft);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.morph-video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  border: 0;
}

.morph-word {
  display: inline-block;
  margin-left: 0.2ch;
  min-width: 12.5ch;
  color: var(--olive);
  transition: opacity 260ms ease, filter 300ms ease, transform 260ms ease;
}

.morph-word.is-changing {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(8px);
}

.slide-pan {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: clamp(0.9rem, 2.2vw, 1.6rem);
  padding-left: clamp(1rem, 4.2vw, 3.4rem);
  padding-right: clamp(1rem, 3.2vw, 2.6rem);
  background-image: url("assets/img/stralbkg.jpg");
  background-image: image-set(
    url("assets/img/stralbkg.webp") type("image/webp"),
    url("assets/img/stralbkg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.pan-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: clamp(1.8rem, 8vh, 5.2rem);
  width: 100%;
  max-width: 64ch;
}

.slide-pan .pan-copy h2 {
  max-width: none;
  text-wrap: balance;
}

.slide-pan .pan-copy > p:not(.kicker) {
  max-width: none;
}

.pan-cta-wrap {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pan-contact-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: min(100%, 645px);
  min-height: clamp(200px, 35vh, 320px);
  border: 2px solid rgba(244, 239, 219, 0.72);
  border-radius: 18px;
  background-image: url("assets/img/expert.jpg");
  background-image: image-set(
    url("assets/img/expert.webp") type("image/webp"),
    url("assets/img/expert.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  padding: 1rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(14, 19, 27, 0.28);
  overflow: hidden;
}

.pan-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 26, 0.28) 14%, rgba(11, 18, 26, 0.74) 100%);
}

.pan-contact-card > * {
  position: relative;
  z-index: 1;
}

.pan-contact-card__eyebrow {
  font-size: var(--slide-subtitle-size);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(251, 248, 235, 0.9);
}

.pan-contact-card__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 1.18rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(14, 19, 27, 0.28);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pan-contact-card__meta {
  font-size: var(--slide-subtitle-size);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(247, 244, 231, 0.96);
  max-width: 28ch;
  margin: 0 auto;
}

.pan-contact-card:hover {
  border-color: rgba(250, 246, 226, 0.96);
  transform: translateY(-1px);
}

.pan-contact-card:hover .pan-contact-card__title,
.pan-contact-card:focus-visible .pan-contact-card__title {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(14, 19, 27, 0.28);
  transform: translateY(-1px);
}

.pan-contact-card:focus-visible {
  outline: 3px solid rgba(251, 245, 214, 0.98);
  outline-offset: 2px;
}

.pan-services {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  margin-bottom: clamp(0.75rem, 2.2vh, 1.8rem);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.pan-services-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: max-content;
  animation: panServicesMarquee 44s linear infinite;
}

.pan-service-card {
  flex: 0 0 clamp(280px, 20vw, 360px);
  border: 2px solid var(--slate-blue-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.65rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.5rem;
  min-height: 345px;
  text-align: center;
}

.pan-service-card img {
  width: 100%;
  height: 198px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(84, 93, 148, 0.28);
  background: rgba(245, 244, 231, 0.78);
}

.pan-service-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
  color: #16202b;
}

.pan-service-card p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
  color: rgba(22, 32, 43, 0.85);
}

@keyframes panServicesMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.pan-services:hover .pan-services-track {
  animation-play-state: paused;
}

.slide-grid {
  background-image: url("assets/img/aboutbkg.jpg");
  background-image: image-set(
    url("assets/img/aboutbkg.webp") type("image/webp"),
    url("assets/img/aboutbkg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 97%, rgba(28, 39, 50, 0.08) 100%),
    linear-gradient(90deg, transparent 97%, rgba(28, 39, 50, 0.08) 100%);
  background-size: 48px 48px;
  opacity: 0.23;
  z-index: 1;
}

.grid-header,
.grid-cards {
  position: relative;
  z-index: 2;
}

.grid-header {
  max-width: 860px;
  margin-top: clamp(0.7rem, 2vh, 1.4rem);
}

.slide-grid .kicker,
.slide-grid .grid-header h2,
.slide-grid .grid-header p,
.slide-grid .stat h3,
.slide-grid .stat p,
.slide-grid .about-team h3 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.grid-cards {
  margin-top: clamp(1.2rem, 3.5vw, 2.2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  border-top: 1px solid rgba(31, 39, 49, 0.36);
  padding-top: 1rem;
}

.stat h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.stat p {
  margin-top: 0.55rem;
  max-width: 31ch;
}

.about-team {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.8rem, 2.8vw, 2.4rem);
}

.about-team-divider {
  width: 100%;
  margin: 0 0 0.95rem;
  border-top: 1px solid rgba(31, 39, 49, 0.36);
}

.about-team h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.about-team h3.about-team-heading {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

.about-team-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(84, 93, 148, 0.35);
  border-radius: 12px;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-team-card img,
.about-team-placeholder {
  width: 100%;
  height: clamp(184px, 20vw, 248px);
  border-radius: 10px;
  border: 1px solid rgba(84, 93, 148, 0.28);
  background: rgba(235, 238, 246, 0.9);
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-team-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1f2731;
}

.about-team-name {
  margin: 0.42rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: #15202b;
}

.about-team-role {
  margin: 0.26rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(21, 32, 43, 0.88);
  text-align: center;
  line-height: 1.4;
}

.about-team-info {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: rgba(21, 32, 43, 0.74);
  text-align: center;
  line-height: 1.4;
}

.dots {
  position: fixed;
  right: clamp(0.7rem, 2vw, 1.2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(31, 39, 49, 0.65);
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  background: var(--olive);
  border-color: var(--olive);
  box-shadow: 0 0 18px rgba(47, 122, 82, 0.45);
}

body.courses-page {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  background: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)), url("assets/img/kursbkg.jpg");
  background: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)), image-set(
    url("assets/img/kursbkg.webp") type("image/webp"),
    url("assets/img/kursbkg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.courses-page .topbar-main {
  justify-content: flex-end;
}

.courses-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 7.4rem 1.2rem 2.2rem;
}

.courses-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #16202b;
}

.courses-intro p {
  margin-top: 0.65rem;
  color: rgba(18, 26, 36, 0.88);
}

.courses-layout {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.courses-heading {
  margin: 0 0 0.7rem;
  color: #16202b;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.courses-grid {
  font-size: 0.9rem;
  text-align: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.course-dropdown {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1b2632;
  padding: 0.4rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0;
  min-height: 44px;
  appearance: auto;
}

.course-dropdown option {
  padding: 0.42rem 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.course-dropdown:not(.is-collapsed) {
  min-height: auto;
  max-height: none;
  overflow-y: visible;
  font-size: 1.15rem;
  line-height: 1.45;
}

.course-dropdown:not(.is-collapsed) option:hover {
  background: rgba(25, 135, 84, 0.3) !important;
  color: #1f2731 !important;
}

.course-dropdown:not(.is-collapsed) option:checked {
  background: rgba(25, 135, 84, 0.4) !important;
  color: #1f2731 !important;
}

.course-dropdown:not(.is-collapsed) option {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid rgba(84, 93, 148, 0.2);
  color: #1f2731;
  background-clip: padding-box;
  background: transparent;
}

.course-dropdown option.course-option--dental {
  background: rgba(84, 93, 148, 0.34);
}

.course-dropdown option.course-option--dental.is-alt {
  background: rgba(84, 93, 148, 0.24);
}

.course-dropdown option.course-option--vet {
  background: rgba(122, 116, 69, 0.34);
}

.course-dropdown option.course-option--vet.is-alt {
  background: rgba(122, 116, 69, 0.24);
}

.course-dropdown option.course-option--health {
  background: rgba(140, 80, 60, 0.34);
}

.course-dropdown option.course-option--health.is-alt {
  background: rgba(140, 80, 60, 0.24);
}

.course-dropdown option.course-option--radiography {
  background: rgba(228, 220, 186, 0.58);
}

.course-dropdown option.course-option--radiography.is-alt {
  background: rgba(228, 220, 186, 0.44);
}

.course-dropdown option.course-option--industry {
  background: rgba(89, 96, 109, 0.32);
}

.course-dropdown option.course-option--industry.is-alt {
  background: rgba(89, 96, 109, 0.24);
}

.course-dropdown.is-collapsed {
  min-height: 44px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%231f2731' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 10px;
  background-position: right 0.72rem center;
}

.course-dropdown:not(.is-collapsed) {
  background-image: none;
}

.course-dropdown:focus {
  outline: none;
  box-shadow: none;
}

.course-detail {
  border: 0;
  border-top: 1px solid rgba(84, 93, 148, 0.3);
  border-radius: 0;
  background: transparent;
  margin-top: 0.45rem;
  padding: 0.95rem 0 0.1rem;
  min-height: 220px;
  max-height: none;
  overflow-y: visible;
}

.course-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
}

.course-detail-content {
  min-width: 0;
}

.course-detail-side-image {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  min-height: 100%;
}

.course-detail-side-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: contain;
}

.course-detail.is-empty {
  display: none;
}

.course-detail.is-revealing {
  animation: none;
}

@keyframes courseDetailReveal {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-detail-placeholder {
  margin: 0;
  max-width: none;
  color: rgba(20, 30, 40, 0.72);
  font-size: 0.9rem;
}

.course-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.course-detail-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
  color: #1b2632;
}

.course-card {
  border: 2px solid var(--slate-blue-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.course-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.course-card-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #1b2632;
}

.course-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.33rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.course-tag.is-dental {
  background: rgba(84, 93, 148, 0.2);
  color: #3a4575;
}

.course-tag.is-vet {
  background: rgba(122, 116, 69, 0.2);
  color: #4f4a2b;
}

.course-tag.is-health {
  background: rgba(140, 80, 60, 0.2);
  color: #6b3425;
}

.course-tag.is-industry {
  background: rgba(89, 96, 109, 0.2);
  color: #3f4652;
}

.course-description {
  margin: 0;
  color: rgba(20, 30, 40, 0.82);
  font-size: 0.98rem;
  line-height: 1.36;
  max-width: none;
}

.course-info-section + .course-info-section {
  margin-top: 0.95rem;
}

.course-info-title {
  margin: 0 0 0.18rem;
  color: #1e2b39;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-info-title-sessions {
  margin-top: 1.15rem;
}

.course-info-section .course-description + .course-description {
  margin-top: 0.42rem;
}

.course-sessions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(84, 93, 148, 0.33);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.5rem 0.55rem;
}

.course-session-row.is-selected {
  border-color: rgba(25, 135, 84, 0.82);
  background: rgba(229, 249, 239, 0.9);
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.2);
}

.course-session-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.course-session-details strong {
  font-size: 1.04rem;
  font-weight: 800;
  color: #1e2b39;
}

.course-session-details small {
  font-size: 0.75rem;
  color: rgba(30, 43, 57, 0.76);
}

.course-pick-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--logo-gold);
  color: #ffffff;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.course-pick-btn:hover {
  background: #ffffff;
  color: var(--logo-gold);
  border-color: var(--logo-gold);
}

.course-pick-btn.is-selected {
  background: #ffffff;
  color: var(--logo-gold);
  border-color: var(--logo-gold);
}

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.course-modal.is-hidden {
  display: none;
}

.course-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 19, 27, 0.58);
}

.course-modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  min-height: auto;
  border-radius: 16px;
  overflow-y: auto;
}

.course-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 93, 148, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #233145;
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

body.course-modal-open {
  overflow: hidden;
}

.course-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.course-terms-modal.is-hidden {
  display: none;
}

.course-terms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 19, 27, 0.62);
}

.course-terms-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 2px solid rgba(84, 93, 148, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: 0.9rem;
  overflow: auto;
}

.course-terms-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(84, 93, 148, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #233145;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}

#courseTermsTitle {
  max-width: none;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-top: 0.25rem;
  padding-right: 2.6rem;
}

.course-terms-content {
  margin-top: 0.65rem;
  border: 2px solid rgba(84, 93, 148, 0.3);
  border-radius: 12px;
  background: rgba(245, 244, 231, 0.48);
  padding: 0.85rem 0.95rem;
  color: #1b2635;
  line-height: 1.52;
}

.course-terms-content h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.course-terms-content h3:first-child {
  margin-top: 0;
}

.course-terms-content p {
  margin: 0 0 0.45rem;
}

.course-terms-content ul {
  margin: 0 0 0.55rem;
  padding-left: 1.15rem;
}

.course-terms-content li {
  margin-bottom: 0.35rem;
}

body.course-terms-open {
  overflow: hidden;
}

.course-contact-note {
  margin: 0;
  padding: 0.62rem 0.68rem;
  border-radius: 12px;
  border: 1px dashed rgba(84, 93, 148, 0.55);
  color: rgba(30, 43, 57, 0.85);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  line-height: 1.34;
  max-width: none;
}

.registration-panel {
  min-height: auto;
}

.registration-selected {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(84, 93, 148, 0.4);
  background: rgba(84, 93, 148, 0.1);
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  color: #1e2b39;
}

.registration-selected.is-hidden {
  display: none;
}

.registration-selected small {
  color: rgba(30, 43, 57, 0.76);
}

[data-from] {
  opacity: 0;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.19, 0.75, 0.2, 1);
}

[data-from="left"] {
  transform: translateX(-52px);
}

[data-from="right"] {
  transform: translateX(52px);
}

.slide.is-active [data-from] {
  opacity: 1;
  transform: translateX(0);
}

@keyframes enterRight {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes waveTravelB {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(1.35%) translateY(4px);
  }
}

@keyframes waveTravelC {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-1.1%) translateY(-3px);
  }
}

@keyframes waveTravelD {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(0.9%) translateY(3px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes panZoom {
  0% {
    transform: scale(1.03) translateX(0%);
  }

  100% {
    transform: scale(1.12) translateX(-8%);
  }
}

@media (max-width: 1280px) {
  .topbar {
    left: 0;
    right: 0;
    min-height: 78px;
    padding: 0.42rem 0.52rem;
    overflow: visible;
  }

  .slide {
    padding-top: 7.2rem;
  }

  .brandmark {
    height: 62px;
  }

  .topbar-main {
    position: static;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.5rem;
    border: 2px solid var(--slate-blue-soft);
    border-radius: 16px;
    background: rgba(245, 244, 231, 0.98);
    box-shadow: 0 10px 24px rgba(47, 59, 97, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .topbar.is-menu-open .topbar-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* I mobilläge flyttas inloggningen in i hamburgermenyn istället för den fristående knappen. */
  .login-link {
    display: none;
  }

  .menu-link-login {
    display: block;
    margin-top: 0.25rem;
    text-align: center;
    color: #ffffff;
    background: var(--logo-gold);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .menu-link-login:hover {
    background: rgba(148, 138, 84, 0.65);
    color: #1f2731;
  }

  body.courses-page .topbar.is-menu-open .topbar-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .menu-link {
    width: 100%;
    text-align: left;
    font-size: 0.76rem;
    padding: 0.72rem 0.78rem;
  }

  .hero-grid,
  .hero-top,
  .morph-layout,
  .slide-contact,
  .slide-split,
  .slide-pan,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .course-catalog-grid {
    grid-template-columns: 1fr;
  }

  .morph-col {
    justify-content: stretch;
  }

  .hero-layout {
    grid-template-rows: auto auto;
    gap: 0.8rem;
  }

  .hero-top-left {
    justify-content: flex-start;
    padding-top: 0;
  }

  .hero-top-right,
  .hero-bottom-side {
    display: none;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
    margin-left: 0;
    transform: none;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .hero-media,
  .split-media,
  .pan-media {
    min-height: 34vh;
  }

  .hero-form-shell {
    min-height: 45vh;
  }

  .slide-pan {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .pan-cta-wrap {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-content: stretch;
  }

  .pan-contact-card {
    width: 100%;
    min-height: 168px;
    border-radius: 14px;
    padding: 0.85rem;
  }

  .pan-contact-card__title {
    font-size: clamp(1.08rem, 4.8vw, 1.5rem);
  }

  .pan-services {
    grid-row: 3;
    mask-image: none;
    overflow: visible;
    margin-bottom: 0;
  }

  .pan-services-track {
    width: 100%;
    animation: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  /* Marquee-klonerna (aria-hidden) behovs bara for desktop-scrollen.
     I grid-laget skulle de annars visa varje tjanst dubbelt. */
  .pan-services-track > .pan-service-card[aria-hidden="true"] {
    display: none;
  }

  .pan-service-card {
    flex: none;
    min-height: 220px;
  }

  .pan-service-card img {
    height: 112px;
  }

  .morph-layout {
    width: 100%;
    margin-top: 0;
  }

  .morph-content {
    max-width: 100%;
  }

  .morph-video-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    max-width: 100%;
    margin-left: 0;
  }

  .service-float {
    margin-top: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .service-card {
    height: auto;
    min-height: 180px;
    padding: 0.9rem 0.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .about-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dots {
    right: 0.4rem;
  }

  .courses-main {
    padding-top: 6.9rem;
  }

  body.courses-page .topbar-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.5rem;
    border: 2px solid var(--slate-blue-soft);
    border-radius: 16px;
    background: rgba(245, 244, 231, 0.98);
    box-shadow: 0 10px 24px rgba(47, 59, 97, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-x: visible;
    scrollbar-width: auto;
  }

  body.courses-page .menu-toggle {
    display: inline-flex;
  }

  .courses-layout {
    grid-template-columns: 1fr;
  }

  .slide-courses .courses-layout {
    margin-top: 0.35rem;
    height: auto;
  }

  .slide-courses {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .slide-courses .courses-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.8rem;
  }

  .course-header-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .course-intro-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .course-intro-right {
    justify-self: stretch;
    width: 100%;
  }

  .course-page-switch {
    justify-content: center;
    text-align: center;
  }

  .slide-courses .courses-layout > section {
    overflow-y: visible;
    padding-right: 0;
  }

  .course-intro-gallery {
    grid-template-columns: 1fr;
  }

  .course-intro-gallery img {
    height: 220px;
  }

  .course-modal {
    padding: 0.6rem;
  }

  .course-modal-panel {
    width: calc(100vw - 1.2rem);
    max-height: calc(100vh - 1.2rem);
    border-radius: 14px;
  }

  .course-dropdown {
    font-size: 0.82rem;
  }

  .course-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-detail-main {
    grid-template-columns: 1fr;
  }

  .course-detail-side-image {
    min-height: 180px;
  }
}

@media (max-width: 980px) {
  .course-intro-gallery {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
  }

  .course-intro-gallery img:nth-child(1),
  .course-intro-gallery img:nth-child(2),
  .course-intro-gallery img:nth-child(3) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .course-intro-gallery img {
    height: auto !important;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .topbar {
    left: 0.7rem;
    right: 0.7rem;
    top: 0.7rem;
    border-radius: 16px;
    min-height: 72px;
    padding: 0.35rem 0.4rem;
    gap: 0.5rem;
  }

  .brandmark {
    height: 50px;
    padding: 0 0.18rem;
  }

  .brandmark img {
    width: 100%;
    height: 100%;
  }

  .topbar-main {
    min-width: 0;
  }

  .slide {
    padding-top: 6.25rem;
  }

  .login-link {
    display: none;
  }

  .dots {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pan-services {
    overflow: visible;
  }

  .pan-services-track {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 170px;
    padding: 0.85rem 0.75rem;
  }

  .courses-main {
    padding: 6.5rem 0.8rem 1.4rem;
  }

  .course-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-session-row {
    flex-direction: column;
    align-items: stretch;
  }

  .course-pick-btn {
    width: 100%;
  }
}
