/* =========================================
   HEADER STYLES
   ========================================= */
.glass-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 5, 20, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid #0ea5e9;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(91, 33, 182, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.glass-header.container {
  width: min(1260px, calc(100% - 10%));
  max-width: 1260px;
  padding: 15px 30px;
  box-sizing: border-box;
}

@media (min-width: 980px) {
  .logo-footer {
    margin-top: -25px;
    margin-left: -18px;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: color 0.4s ease;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
  filter: brightness(15);
  transition: filter 0.4s ease;
}

.logo-footer img {
  height: 170px;
  width: auto;
  /* filter: brightness(15); */
}

.nav-links {
  display: flex;
  gap: 40px;
}

.glass-header.light-mode {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(76, 18, 126, 0.05);
}

.glass-header.light-mode .logo,
.glass-header.light-mode .hover-underline {
  color: var(--text-light-theme);
}

.glass-header.light-mode .logo img {
  filter: none;
}

.glass-header.light-mode .btn-glass-sm {
  background: var(--brand-purple);
  color: #fff;
  border: none;
}

.hover-underline {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.hover-underline:hover {
  color: #fff;
}

.btn-glass-sm {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.4s ease;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--brand-purple);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header.light-mode .mobile-menu-toggle .bar {
  background-color: var(--brand-purple);
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.luxury-footer-wrapper {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* overflow: hidden; */
}

.luxury-footer-inner {
  position: relative;
  width: 100%;
  padding-top: 150px;
}

.footer-aurora {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 45%;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(107, 33, 168, 0.05) 40%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: auroraBreathe 8s infinite alternate ease-in-out;
}

@keyframes auroraBreathe {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1) translateY(-20px);
    opacity: 0.75;
  }
}

.footer-cta-zone {
  text-align: center;
  border-bottom: 1px solid rgba(91, 33, 182, 0.1);
  padding-bottom: 80px;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.footer-cta-title {
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 40px;
}

.text-italic-gradient {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brand-purple);
}

.btn-liquid-cyan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-cyan);
  color: var(--brand-dark);
  padding: 20px 45px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.3);
  transition: all 0.3s;
}

.btn-liquid-cyan:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.footer-col p {
  color: var(--text-muted-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 300px;
  font-weight: 500;
}
.footer-col h4 {
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-col ul li a {
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: var(--brand-cyan);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.social-glass {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(91, 33, 182, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(91, 33, 182, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.social-glass:hover {
  background: var(--brand-cyan);
  color: var(--brand-dark);
  border-color: var(--brand-cyan);
}

/* Brand-accurate colors per platform */
.social-linkedin {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.15);
  background: rgba(10, 102, 194, 0.06);
}
.social-linkedin:hover {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
}

.social-facebook {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.15);
  background: rgba(24, 119, 242, 0.06);
}
.social-facebook:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.social-youtube {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.15);
  background: rgba(255, 0, 0, 0.06);
}
.social-youtube:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.social-instagram {
  color: #dd2a7b;
  border-color: rgba(221, 42, 123, 0.18);
  background: rgba(221, 42, 123, 0.06);
}
.social-instagram:hover {
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
  color: #fff;
  border-color: transparent;
}

.social-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.social-dropdown-trigger {
  cursor: pointer;
  font: inherit;
}

.social-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(calc(-50% + var(--dd-shift, 0px))) translateY(10px)
    scale(0.94);
  transform-origin: bottom center;
  width: 296px;
  max-width: calc(100vw - 20px);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 20px 50px var(--dd-accent-soft-2, rgba(91, 33, 182, 0.16)),
    0 6px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.28s ease;
  z-index: 50;
}

.social-dropdown-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--dd-shift, 0px));
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.social-dropdown-wrap.open .social-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(calc(-50% + var(--dd-shift, 0px))) translateY(0)
    scale(1);
}

/* Per-platform subtle accent tokens */
.dd-panel-facebook {
  --dd-accent: #1877f2;
  --dd-accent-soft: rgba(24, 119, 242, 0.1);
  --dd-accent-soft-2: rgba(24, 119, 242, 0.2);
}
.dd-panel-youtube {
  --dd-accent: #e53535;
  --dd-accent-soft: rgba(229, 53, 53, 0.08);
  --dd-accent-soft-2: rgba(229, 53, 53, 0.18);
}
.dd-panel-instagram {
  --dd-accent: #c1327a;
  --dd-accent-soft: rgba(193, 50, 122, 0.1);
  --dd-accent-soft-2: rgba(193, 50, 122, 0.2);
}

.social-dropdown-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: var(--dd-accent-soft, rgba(91, 33, 182, 0.08));
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.sdh-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dd-accent, var(--brand-purple));
  color: #fff;
  font-size: 0.7rem;
}

.sdh-title {
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.social-dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fff;
}

.dd-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dd-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  /* background: var(--dd-accent, var(--brand-purple)); */
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.dd-item-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dd-accent-soft, rgba(91, 33, 182, 0.1));
  color: var(--dd-accent, var(--brand-purple));
  font-size: 0.78rem;
  transition: all 0.25s ease;
}

.dd-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dd-item-title {
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.28;
  white-space: normal;
  word-break: break-word;
}

.dd-item-sub {
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.dd-item-external {
  flex-shrink: 0;
  color: #c3c3cf;
  font-size: 0.65rem;
  margin-top: 3px;
  transition: all 0.25s ease;
}

.dd-item:hover,
.dd-item:focus-visible {
  transform: translateY(-1px);
  background: var(--dd-accent-soft, rgba(91, 33, 182, 0.06));
  border-color: var(--dd-accent-soft-2, rgba(91, 33, 182, 0.2));
  box-shadow: 0 6px 16px var(--dd-accent-soft-2, rgba(91, 33, 182, 0.15));
}

.dd-item:hover::before,
.dd-item:focus-visible::before {
  opacity: 1;
}

.dd-item:hover .dd-item-icon,
.dd-item:focus-visible .dd-item-icon {
  background: var(--dd-accent, var(--brand-purple));
  color: #fff;
  transform: scale(1.06);
}

.dd-item:hover .dd-item-external,
.dd-item:focus-visible .dd-item-external {
  color: var(--dd-accent, var(--brand-purple));
  transform: translateX(2px);
}

.social-dropdown-trigger:focus-visible {
  outline: 2px solid var(--brand-cyan, #06b6d4);
  outline-offset: 3px;
}

.dd-item:focus-visible {
  outline: 2px solid var(--dd-accent, var(--brand-purple));
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .social-dropdown-menu {
    width: 256px;
  }
}

.newsletter-text {
  margin-top: 0 !important;
  margin-bottom: 20px;
}
.newsletter-form {
  display: flex;
  align-items: center;
  background: rgba(91, 33, 182, 0.05);
  border: 1px solid rgba(91, 33, 182, 0.1);
  border-radius: 50px;
  padding: 5px;
  padding-left: 25px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.newsletter-form:focus-within {
  border-color: var(--brand-purple);
  box-shadow: 0 0 20px rgba(91, 33, 182, 0.4);
}
.newsletter-form input {
  background: transparent;
  border: none;
  color: var(--brand-dark);
  outline: none;
  flex: 1;
  font-size: 1rem;
  font-family: var(--font-main);
}
.newsletter-form input::placeholder {
  color: var(--text-muted-light);
}
.btn-submit-glass {
  background: var(--brand-purple);
  border: none;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.btn-submit-glass:hover {
  transform: scale(1.05);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid rgba(91, 33, 182, 0.1);
  position: relative;
  z-index: 2;
}
.footer-bottom-bar p {
  color: var(--text-muted-light);
  font-size: 0.9rem;
  font-weight: 500;
}
.legal-links {
  display: flex;
  gap: 30px;
}
.legal-links a {
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}
.legal-links a:hover {
  color: var(--brand-dark);
}

.massive-footer-text {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22vw;
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(91, 33, 182, 0.05);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(91, 33, 182, 0.1) 0%,
    transparent 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.f-shape {
  position: absolute;
  opacity: 0.12;
}

.float-circle {
  width: 180px;
  height: 180px;
  border: 2px solid var(--brand-purple);
  border-radius: 50%;
  top: 12%;
  left: 8%;
  animation: floatA 18s ease-in-out infinite alternate;
}

.float-plus {
  width: 60px;
  height: 60px;
  top: 35%;
  right: 10%;
  animation: floatB 22s ease-in-out infinite alternate;
}
.float-plus .plus-v,
.float-plus .plus-h {
  position: absolute;
  background: var(--brand-cyan);
  border-radius: 3px;
}
.float-plus .plus-v {
  width: 3px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.float-plus .plus-h {
  height: 3px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.float-square {
  width: 120px;
  height: 120px;
  border: 2px solid var(--brand-purple);
  border-radius: 20px;
  bottom: 20%;
  left: 55%;
  animation: floatC 25s ease-in-out infinite alternate;
}

@keyframes floatA {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(40px, -30px) rotate(45deg);
  }
  100% {
    transform: translate(-20px, 25px) rotate(-15deg);
  }
}
@keyframes floatB {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-35px, 40px) rotate(90deg) scale(1.15);
  }
  100% {
    transform: translate(20px, -20px) rotate(180deg) scale(0.9);
  }
}
@keyframes floatC {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-45px, -35px) rotate(-30deg);
  }
  100% {
    transform: translate(30px, 15px) rotate(20deg);
  }
}

@media (max-width: 1024px) {
  .glass-header,
  .glass-header.container {
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 10px 20px;
    height: 70px;
    border-left: none;
    border-right: none;
    border-top: none;
    transform: none;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #ffffff 0%, #eee2fb 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 86px 0 max(24px, env(safe-area-inset-bottom));
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.1px;
    color: var(--brand-dark) !important;
    text-align: center;
    overflow-wrap: anywhere;
  }

  /* Every top-level entry (plain link or dropdown trigger) shares one
     alignment system: a full-width, centered, equal-height row. */
  .nav-links > a,
  .nav-links > .nav-item.dropdown {
    display: block;
    width: 100%;
  }

  .nav-links > a,
  .nav-item.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(91, 33, 182, 0.08);
  }

  .nav-links a.active {
    color: var(--brand-purple) !important;
    font-weight: 700;
    background: rgba(91, 33, 182, 0.06);
  }

  .nav-item.dropdown.open > a {
    color: var(--brand-purple) !important;
    background: rgba(91, 33, 182, 0.05);
  }

  .mobile-menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--brand-purple);
    outline-offset: 3px;
  }

  .glass-header:has(.nav-links.active) {
    background: #fff;
    border-bottom: 1px solid rgba(91, 33, 182, 0.1);
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-col p {
    margin: 20px auto;
  }
  .social-links {
    justify-content: center;
  }
  .footer-col ul li a:hover {
    transform: translateX(0);
    color: var(--brand-cyan);
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .massive-footer-text {
    font-size: 22vw;
    bottom: 0;
  }
  .site-wrapper {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  .float-circle {
    width: 100px;
    height: 100px;
  }
  .float-square {
    width: 70px;
    height: 70px;
  }
  .float-plus {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  .luxury-footer-inner {
    padding-top: 10px;
  }
  .footer-cta-zone {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  .footer-cta-title {
    margin-bottom: 28px;
  }

  /* Explore + Quick Links share a row on mobile only */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .footer-grid > .footer-col.brand-col,
  .footer-grid > .footer-col:nth-child(2) {
    grid-column: 1 / -1;
  }

  .logo-footer img {
    height: 90px;
  }
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
.scroll-to-top {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 15px 35px rgba(91, 33, 182, 0.15),
    inset 0 -2px 10px rgba(91, 33, 182, 0.05);
  color: var(--brand-purple);
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  background: #fff;
  box-shadow:
    0 20px 40px rgba(91, 33, 182, 0.25),
    inset 0 -2px 10px rgba(91, 33, 182, 0.05);
}

/* Hide when chat panel is open */
body.chat-is-open .scroll-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) scale(0.9) !important;
  pointer-events: none !important;
}

.btn-liquid-purple {
  display: inline-block;
  background: var(--brand-purple);
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(91, 33, 182, 0.2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-liquid-purple::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-liquid-purple:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(91, 33, 182, 0.4);
}

.btn-liquid-purple:hover::before {
  left: 100%;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* =========================================
   PREMIUM CHAT FAB BUTTON
   ========================================= */
.chat-fab-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Entrance: start hidden */
  opacity: 0;
  visibility: hidden;
  transform: scale(0) rotate(-180deg);
  transition: none; /* JS controls entrance */
}

.chat-fab-wrapper.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(0deg);
  animation: chatFabEntrance 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chatFabEntrance {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    filter: blur(10px);
  }
  40% {
    opacity: 1;
    filter: blur(0px);
  }
  65% {
    transform: scale(1.2) rotate(10deg);
  }
  80% {
    transform: scale(0.95) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* --- Main Button --- */
.chat-fab-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-purple) 0%,
    var(--brand-magenta) 50%,
    var(--brand-cyan) 100%
  );
  background-size: 200% 200%;
  animation: chatGradientShift 4s ease infinite;
  box-shadow:
    0 8px 32px rgba(91, 33, 182, 0.4),
    0 2px 8px rgba(192, 38, 211, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
  overflow: hidden;
}

@keyframes chatGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.chat-fab-btn:hover {
  transform: scale(1.12);
  box-shadow:
    0 16px 48px rgba(91, 33, 182, 0.5),
    0 4px 16px rgba(192, 38, 211, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chat-fab-btn:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

/* Icon Container */
.chat-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-icon-main,
.chat-icon-close {
  position: absolute;
  font-size: 1.3rem;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.chat-icon-main {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.chat-icon-close {
  opacity: 0;
  transform: scale(0.3) rotate(-90deg);
}

.chat-fab-wrapper.active .chat-icon-main {
  opacity: 0;
  transform: scale(0.3) rotate(90deg);
}

.chat-fab-wrapper.active .chat-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Shimmer Sweep */
.chat-btn-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  border-radius: 50%;
  transform: translateX(-100%);
  animation: chatShimmer 3s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
  will-change: transform;
}

@keyframes chatShimmer {
  0% {
    transform: translateX(-100%);
  }
  30% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* --- Orbital Ring --- */
.chat-orbit-ring {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--brand-cyan);
  border-right-color: rgba(192, 38, 211, 0.4);
  z-index: 1;
  animation: chatOrbitSpin 3s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
  pointer-events: none;
}

.chat-fab-wrapper.visible .chat-orbit-ring {
  opacity: 0.7;
}

.chat-fab-wrapper:hover .chat-orbit-ring {
  opacity: 1;
  animation-duration: 1.5s;
}

@keyframes chatOrbitSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- Pulse Rings --- */
.chat-pulse-ring {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--brand-purple);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  animation: chatPulseExpand 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.chat-pulse-ring.ring-delay {
  animation-delay: 1s;
}

.chat-fab-wrapper.visible .chat-pulse-ring {
  animation-play-state: running;
}

@keyframes chatPulseExpand {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* --- Tooltip --- */
.chat-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 40px rgba(91, 33, 182, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 10px 20px;
  border-radius: 14px;
  font-family: var(--font-main), sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-purple, #5b21b6);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(12px) scale(0.9);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.95);
}

.chat-tooltip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: chatDotPulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes chatDotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.chat-fab-wrapper:hover .chat-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* Hide tooltip when chat is active/open */
.chat-fab-wrapper.active .chat-tooltip {
  opacity: 0 !important;
  transform: translateX(12px) scale(0.9) !important;
}

/* Hide pulse when active */
.chat-fab-wrapper.active .chat-pulse-ring {
  animation-play-state: paused;
  opacity: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .chat-fab-wrapper {
    bottom: 20px;
    right: 20px;
  }

  .chat-fab-btn {
    width: 52px;
    height: 52px;
  }

  .chat-orbit-ring {
    width: 68px;
    height: 68px;
  }

  .chat-pulse-ring {
    width: 52px;
    height: 52px;
  }

  .chat-tooltip {
    display: none;
  }
}

/* =========================================
   CHAT PANEL (Expands from FAB)
   ========================================= */
.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  height: 520px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow:
    0 25px 80px rgba(91, 33, 182, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.4) translateY(20px);
  transform-origin: bottom right;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-fab-wrapper.active .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* --- Panel Header --- */
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(
    135deg,
    var(--brand-purple) 0%,
    #7c3aed 50%,
    var(--brand-magenta) 100%
  );
  position: relative;
  overflow: hidden;
}

.chat-panel-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.chat-panel-header::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.chat-avatar-letter {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-main), sans-serif;
}

.chat-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2.5px solid var(--brand-purple);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.chat-header-info h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
  font-family: var(--font-main), sans-serif;
}

.chat-header-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-main), sans-serif;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: chatDotPulse 2s ease infinite;
}

.chat-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.chat-panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* --- Messages Area --- */
.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #f8f7ff 0%, #fefefe 100%);
}

.chat-panel-body::-webkit-scrollbar {
  width: 4px;
}
.chat-panel-body::-webkit-scrollbar-track {
  background: transparent;
}
.chat-panel-body::-webkit-scrollbar-thumb {
  background: rgba(91, 33, 182, 0.15);
  border-radius: 10px;
}

/* Message Bubbles */
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: chatMsgIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chatMsgIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-purple),
    var(--brand-magenta)
  );
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-main), sans-serif;
}

.chat-msg-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  border: 1px solid rgba(91, 33, 182, 0.06);
  box-shadow: 0 2px 12px rgba(91, 33, 182, 0.06);
  font-family: var(--font-main), sans-serif;
}

.chat-msg-bubble p {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.5;
  margin: 0 0 4px;
  font-weight: 500;
}

.chat-msg-bubble p:last-of-type {
  margin-bottom: 0;
}

.chat-msg-time {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  display: block;
  margin-top: 6px;
}

/* User messages */
.chat-msg-user {
  flex-direction: row-reverse;
}

.chat-msg-user .chat-msg-avatar {
  background: linear-gradient(135deg, var(--brand-cyan), #0ea5e9);
}

.chat-msg-user .chat-msg-bubble {
  background: linear-gradient(135deg, var(--brand-purple), #7c3aed);
  border: none;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.2);
}

.chat-msg-user .chat-msg-bubble p {
  color: #fff;
}

.chat-msg-user .chat-msg-time {
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

/* Quick Replies */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 40px;
  animation: chatMsgIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
  opacity: 0;
}

.chat-quick-btn {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid rgba(91, 33, 182, 0.15);
  background: rgba(91, 33, 182, 0.04);
  color: var(--brand-purple, #5b21b6);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main), sans-serif;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.chat-quick-btn:hover {
  background: var(--brand-purple, #5b21b6);
  color: #fff;
  border-color: var(--brand-purple, #5b21b6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.25);
}

/* --- Input Footer --- */
.chat-panel-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(91, 33, 182, 0.06);
  background: #fff;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f0f9;
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
  border-color: var(--brand-purple, #5b21b6);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.08);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  font-family: var(--font-main), sans-serif;
}

.chat-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--brand-purple, #5b21b6), #7c3aed);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.35);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-powered {
  text-align: center;
  font-size: 0.68rem;
  color: #cbd5e1;
  margin: 8px 0 0;
  font-family: var(--font-main), sans-serif;
  font-weight: 500;
}

.chat-powered strong {
  color: #94a3b8;
  font-weight: 700;
}

/* --- Welcome Text --- */
.chat-welcome-text {
  text-align: center;
  margin-bottom: 8px;
  padding: 0 10px;
}

.chat-welcome-text p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  font-family: var(--font-main), sans-serif;
}

/* --- Contact Channels --- */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(91, 33, 182, 0.08);
  box-shadow: 0 4px 15px rgba(91, 33, 182, 0.04);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: all 0.3s ease;
}

/* WhatsApp Styling */
.whatsapp-card::before {
  background: #25d366;
}

.whatsapp-card:hover {
  border-color: rgba(37, 211, 102, 0.2);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.12);
  transform: translateY(-3px) scale(1.02);
}

.whatsapp-card .card-icon-wrap {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.whatsapp-card:hover .card-icon-wrap {
  background: #25d366;
  color: #ffffff;
  transform: rotate(10deg);
}

.whatsapp-card .card-badge {
  background: rgba(37, 211, 102, 0.1);
  color: #128c7e;
}

/* Call Styling */
.call-card::before {
  background: var(--brand-purple, #5b21b6);
}

.call-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.12);
  transform: translateY(-3px) scale(1.02);
}

.call-card .card-icon-wrap {
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple, #5b21b6);
}

.call-card:hover .card-icon-wrap {
  background: var(--brand-purple, #5b21b6);
  color: #ffffff;
  transform: rotate(10deg);
}

.call-card .card-badge {
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple, #5b21b6);
}

/* Card components */
.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.card-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  font-family: var(--font-main), sans-serif;
}

.card-content p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
  font-family: var(--font-main), sans-serif;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 4px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: var(--font-main), sans-serif;
}

.card-arrow {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-left: 4px;
}

.contact-card:hover .card-arrow {
  color: #0f172a;
  transform: translateX(4px);
}

/* Footer Badge */
.chat-footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-main), sans-serif;
}

.chat-footer-badge i {
  color: #10b981;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 24px);
    height: 70vh;
    right: -16px;
    bottom: 68px;
    border-radius: 20px;
  }
}

/* =========================================
   MEGA MENU STYLES
   ========================================= */
.nav-item.dropdown {
  position: relative;
  display: inline-block;
}

/* Extends the hover area of the parent downward */
.nav-item.dropdown::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 15px); /* Fixed gap */
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  width: 950px;
  max-width: calc(100vw - 40px);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 22%
    ),
    linear-gradient(135deg, #f6edf9 0%, #eeebfb 40%, #eaf9fb 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow:
    0 50px 100px rgba(25, 25, 35, 0.12),
    0 20px 40px rgba(145, 125, 255, 0.08),
    0 5px 15px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.3s ease;
  transition-delay: 0.3s;
  z-index: 1000;
}

/* Hover Bridge: Prevents menu from closing when moving mouse across the gap */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -30px; /* Bridge the gap */
  left: -100px; /* Extra wide to catch diagonal moves */
  right: -100px;
  height: 40px;
  background: transparent;
}

.glass-header.light-mode .mega-menu {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0) 22%
    ),
    linear-gradient(135deg, #f6edf9 0%, #eeebfb 40%, #eaf9fb 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.1),
    0 8px 28px rgba(100, 80, 200, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-item.dropdown:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.3s ease;
}

/* Sidebar */
.mega-menu-sidebar {
  width: 320px;
  background: rgba(246, 237, 249, 0.5);
  border-right: 1px solid rgba(200, 170, 240, 0.18);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.glass-header.light-mode .mega-menu-sidebar {
  background: rgba(246, 237, 249, 0.55);
  border-right: 1px solid rgba(200, 170, 240, 0.2);
}

.sidebar-item {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.sidebar-info h4 {
  color: #1e0a3c;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-main);
}

.sidebar-info p {
  color: rgba(30, 10, 60, 0.55);
  font-size: 0.78rem;
  margin: 4px 0 0;
  font-weight: 500;
}

.glass-header.light-mode .sidebar-info h4 {
  color: #1a1a1a;
}
.glass-header.light-mode .sidebar-info p {
  color: #666;
}

.sidebar-item i {
  color: rgba(91, 33, 182, 0.4);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.sidebar-item:hover {
  background: rgba(147, 51, 234, 0.06);
}

.sidebar-item.active {
  background: rgba(147, 51, 234, 0.09);
  box-shadow: 0 0 18px rgba(147, 51, 234, 0.07);
}

.sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
  border-radius: 0 3px 3px 0;
}

.sidebar-item.active .sidebar-info h4 {
  color: var(--brand-purple);
}
.sidebar-item.active i {
  color: var(--brand-purple);
  transform: translateX(3px);
}

.glass-header.light-mode .sidebar-item.active {
  background: rgba(147, 51, 234, 0.08);
  box-shadow: 0 0 18px rgba(147, 51, 234, 0.07);
}
.glass-header.light-mode .sidebar-item.active .sidebar-info h4 {
  color: var(--brand-purple);
}
.glass-header.light-mode .sidebar-item.active::before {
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
}
.glass-header.light-mode .sidebar-item.active i {
  color: var(--brand-purple);
}

/* Content Area */
.mega-menu-content {
  flex: 1;
  padding: 32px;
  background: rgba(234, 249, 251, 0.18);
  overflow-y: auto;
  max-height: 75vh;
}

.category-panel {
  display: none;
  animation: panelFadeIn 0.4s ease forwards;
}

.category-panel.active {
  display: block;
}

/* Mobile-only "view all" link (see components/header.html) — on desktop
   the sidebar tab itself already navigates to the hub page on click, so
   this extra link only needs to exist inside the mobile accordion. */
.category-view-all {
  display: none;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.course-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-header.light-mode .course-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.course-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(91, 33, 182, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.glass-header.light-mode .course-icon {
  background: rgba(91, 33, 182, 0.08);
  color: var(--brand-purple);
}

.course-card span {
  color: #1e0a3c;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
}

.glass-header.light-mode .course-card span {
  color: #333;
}

.course-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(147, 51, 234, 0.25);
  box-shadow: 0 12px 32px rgba(100, 60, 200, 0.14);
}

.glass-header.light-mode .course-card:hover {
  background: #ffffff;
  border-color: rgba(147, 51, 234, 0.25);
  box-shadow: 0 12px 32px rgba(100, 60, 200, 0.12);
}

.course-card:hover .course-icon {
  transform: scale(1.1);
  background: var(--brand-purple);
  color: #fff;
}

.glass-header.light-mode .course-card:hover .course-icon {
  background: var(--brand-purple);
  color: #fff;
}

/* Course Section Dividers */
.course-section {
  margin-bottom: 28px;
}

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

.course-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-purple) !important;
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.14);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
}

.glass-header.light-mode .course-section-title {
  color: var(--brand-purple);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.course-subsection {
  margin-bottom: 18px;
}

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

.course-subsection-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(91, 33, 182, 0.5);
  margin: 0 0 10px;
  font-family: var(--font-main);
}

.glass-header.light-mode .course-subsection-title {
  color: rgba(0, 0, 0, 0.38);
}

.dropdown-caret {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.4s ease;
}

.nav-item.dropdown:hover .dropdown-caret {
  transform: rotate(-180deg);
}

/* Scrollbar for content area */
.mega-menu-content::-webkit-scrollbar {
  width: 4px;
}
.mega-menu-content::-webkit-scrollbar-track {
  background: rgba(200, 180, 240, 0.12);
  border-radius: 10px;
}
.mega-menu-content::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.22);
  border-radius: 10px;
  border: 1px solid transparent;
  background-clip: content-box;
}

.glass-header.light-mode .mega-menu-content::-webkit-scrollbar-track {
  background: rgba(200, 180, 240, 0.15);
}
.glass-header.light-mode .mega-menu-content::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.25);
}

/* =========================================
   SIMPLE DROPDOWN (About Us, etc.)
   ========================================= */
.simple-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  min-width: 250px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 22%
    ),
    linear-gradient(135deg, #f6edf9 0%, #eeebfb 40%, #eaf9fb 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow:
    0 20px 40px rgba(25, 25, 35, 0.1),
    0 8px 20px rgba(145, 125, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.3s ease;
  transition-delay: 0.3s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hover bridge */
.simple-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.nav-item.dropdown:hover .simple-menu,
.simple-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.3s ease;
}

.simple-menu-item {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #1e0a3c;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

/* Matches .course-card span's specificity so the mobile ".nav-links a"
   font-size rule can't override it and make this text bigger than the
   Courses dropdown's. */
.simple-menu-item span {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  color: #1e0a3c;
}

.simple-menu-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(147, 51, 234, 0.25);
  box-shadow: 0 12px 32px rgba(100, 60, 200, 0.14);
  color: #1e0a3c;
}

.simple-menu-item:hover .course-icon {
  transform: scale(1.1);
  background: var(--brand-purple);
  color: #fff;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

/* Wrapper elements introduced purely to animate mobile accordions
   (see initMobileAccordion in components.js). display:contents makes them
   invisible to layout everywhere else, so desktop keeps its exact existing
   flex/grid structure with zero visual change. */
.dropdown-panel-inner,
.course-section-body,
.course-section-body-inner,
.category-panel-inner {
  display: contents;
}

/* The accordion toggle button (see initMobileAccordion in components.js)
   wraps the title's icon+text on every viewport, but should only look and
   act like a button on mobile. Reset it so it inherits the title's exact
   styling and drops out of layout on desktop; the media query below
   restores the button chrome for mobile. */
.course-section-toggle {
  all: unset;
  display: contents;
}

.section-caret {
  display: none;
}

@media (max-width: 1024px) {
  /* ---- Level 1: About Us / Courses trigger panels ---- */
  .mega-menu,
  .simple-menu {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: none;
    padding: 0 16px;
    margin: 0;
  }

  .nav-item.dropdown.open .mega-menu,
  .nav-item.dropdown.open .simple-menu {
    grid-template-rows: 1fr;
    margin: 6px 0 12px;
  }

  .nav-item.dropdown.open .dropdown-caret {
    transform: rotate(-180deg);
  }

  /* Desktop-only hover bridges; on mobile they can overlap the trigger row
     and swallow taps meant for the dropdown link/caret. */
  .simple-menu::before,
  .mega-menu::before,
  .nav-item.dropdown::after {
    display: none;
  }

  .dropdown-panel-inner {
    display: block;
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .nav-item.dropdown.open .dropdown-panel-inner {
    visibility: visible;
  }

  /* ---- About Us: one cohesive card instead of five floating ones ---- */
  .simple-menu .dropdown-panel-inner {
    display: flex;
    flex-direction: column;
    background: rgba(91, 33, 182, 0.04);
    border: 1px solid rgba(91, 33, 182, 0.09);
    border-radius: 16px;
    padding: 4px;
  }

  .simple-menu-item {
    box-sizing: border-box;
    min-height: 44px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 12px;
    padding: 12px 12px;
    gap: 12px;
    font-size: 0.88rem;
    white-space: normal;
    border-bottom: 1px solid rgba(91, 33, 182, 0.07);
  }

  .simple-menu-item:last-child {
    border-bottom: none;
  }

  .simple-menu-item:hover,
  .simple-menu-item:active,
  .simple-menu-item:focus-visible {
    transform: none;
    background: rgba(91, 33, 182, 0.07);
    border-color: transparent;
    box-shadow: none;
  }

  .simple-menu-item .course-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  .simple-menu-item span {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
  }

  /* ---- Courses: nested accordion ----
     .mega-menu-sidebar and .mega-menu-content are two separate desktop
     columns (tab list + panel area), so in source order every panel sits
     after ALL four category tabs. display:contents lifts their children
     (the sidebar-items and category-panels) up to be siblings inside
     .dropdown-panel-inner, and the explicit `order` below re-threads them
     so each panel sits directly beneath its own category tab, matching the
     required "Nursing / its children / Pharmacy / its children" hierarchy.
     Desktop is untouched: this only runs inside this mobile media query. */
  .mega-menu-sidebar,
  .mega-menu-content {
    display: contents;
  }

  .mega-menu .dropdown-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sidebar-item {
    position: relative;
    box-sizing: border-box;
    min-height: 44px;
    padding: 14px 14px 14px 20px;
    background: rgba(91, 33, 182, 0.05);
    border: 1px solid rgba(91, 33, 182, 0.09);
    border-radius: 12px;
    margin-bottom: 0;
    overflow: hidden;
  }

  .sidebar-item:hover {
    background: rgba(91, 33, 182, 0.08);
  }

  /* .active still tracks the desktop hover tab (kept in sync so desktop
     is unaffected on resize); on mobile only .expanded should read as
     "currently open", so .active alone is reset back to the plain look. */
  .sidebar-item.active {
    background: rgba(91, 33, 182, 0.05);
    box-shadow: none;
  }

  .sidebar-item.active::before {
    display: none;
  }

  .sidebar-item.active .sidebar-info h4 {
    color: #1e0a3c;
  }

  .sidebar-item.active i {
    color: rgba(91, 33, 182, 0.4);
    transform: none;
  }

  .sidebar-item.expanded {
    background: rgba(91, 33, 182, 0.09);
    border-color: rgba(91, 33, 182, 0.2);
    box-shadow: none;
  }

  /* Left accent bar marks the open category, same visual language as the
     desktop hover-active tab (.sidebar-item.active::before), but keyed off
     .expanded since .active alone is neutralized on mobile (see above). */
  .sidebar-item.expanded::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
  }

  .sidebar-item.expanded .sidebar-info h4 {
    color: var(--brand-purple);
    font-weight: 800;
  }

  .sidebar-item i {
    transition:
      color 0.3s ease,
      transform 0.22s ease;
  }

  /* Reuses the existing chevron-right icon: rotated 90deg it reads as
     pointing down, the same "open" affordance as the other carets. */
  .sidebar-item.expanded i {
    color: var(--brand-purple);
    transform: rotate(90deg);
  }

  .sidebar-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .sidebar-info p {
    display: none;
  }

  /* Fixed placement for each category tab + its panel, independent of
     their original DOM position (see comment above). */
  .sidebar-item[data-category="nursing"] {
    order: 1;
  }
  .category-panel#nursing {
    order: 2;
  }
  .sidebar-item[data-category="pharmacy"] {
    order: 3;
  }
  .category-panel#pharmacy {
    order: 4;
  }
  .sidebar-item[data-category="mlt"] {
    order: 5;
  }
  .category-panel#mlt {
    order: 6;
  }
  .sidebar-item[data-category="german"] {
    order: 7;
  }

  /* Nursing ships with class="active" directly in the markup (desktop's
     default tab), which would otherwise beat a plain .category-panel
     override on specificity alone (.category-panel.active is two classes
     vs. one) and force it permanently open. Matching that specificity
     here is what lets .expanded be the only thing controlling visibility
     on mobile.

     This uses max-height rather than the grid-template-rows 0fr/1fr trick
     used elsewhere on this page: .category-panel is itself a flex item
     here (mega-menu-sidebar/mega-menu-content are display:contents, which
     lifts it up to be a direct child of the flex .dropdown-panel-inner).
     WebKit/Safari cannot resolve a grid track's 1fr auto-content size for
     a grid container that is simultaneously a flex item, and collapses it
     to ~0 instead — so tapping Nursing/Pharmacy/MLT silently failed to
     reveal anything on iOS. max-height only needs ordinary block intrinsic
     sizing, which WebKit handles fine in this same flex-item context. */
  .mega-menu-content .category-panel {
    display: block;
    max-height: 0;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    /* Desktop's panelFadeIn keyframe fills opacity:1 forwards; neutralize
       it here so it can't fight this collapse/expand transition. */
    animation: none;
  }

  .mega-menu-content .category-panel.expanded {
    /* Comfortably above any real category's content height; only caps the
       transition's travel distance, never clips actual content. */
    max-height: 2000px;
  }

  .category-panel-inner {
    display: block;
    min-height: 0;
    overflow: hidden;
    padding-top: 12px;
    padding-left: 14px;
  }

  /* Tapping the sidebar row expands this accordion instead of navigating
     (see toggleMobileCategory in components.js), so this is the only way
     to actually reach the category's own hub page (e.g. courses/nursing.html)
     on mobile. */
  /* .nav-links a's own !important color rule outranks a single class on
     specificity, so this needs the ".nav-links" prefix to actually win. */
  .nav-links .category-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(91, 33, 182, 0.09);
    color: var(--brand-purple) !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none !important;
  }

  .category-view-all i {
    flex-shrink: 0;
  }

  .category-view-all:hover,
  .category-view-all:active,
  .category-view-all:focus-visible {
    background: rgba(91, 33, 182, 0.14);
  }

  /* ---- Level 3: course-section headers act as accordion toggles ---- */
  .course-section {
    margin-bottom: 8px;
  }

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

  .mega-menu .course-section-title {
    margin: 0;
    padding: 0;
    border-bottom: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  /* Level 3: no fill, no rounded corners — just a thin purple vertical
     line, so it reads as "nested under Level 2" rather than another card. */
  .course-section-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px 8px 12px;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(91, 33, 182, 0.22);
    border-radius: 0;
    font: inherit;
    text-transform: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition:
      background 0.2s ease,
      border-left-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .course-section-toggle:hover,
  .course-section-toggle:active,
  .course-section-toggle:focus-visible {
    background: rgba(91, 33, 182, 0.045);
  }

  .course-section-toggle:focus-visible {
    outline: 2px solid var(--brand-purple);
    outline-offset: -2px;
  }

  .section-caret {
    display: inline-block;
    margin-left: auto;
    font-size: 0.62rem;
    color: rgba(91, 33, 182, 0.55);
    transition: transform 0.22s ease;
  }

  .course-section.expanded .course-section-toggle {
    background: rgba(91, 33, 182, 0.05);
    border-left-color: var(--brand-purple);
  }

  .course-section.expanded .section-caret {
    color: var(--brand-purple);
    transform: rotate(180deg);
  }

  .course-section-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  .course-section.expanded .course-section-body {
    grid-template-rows: 1fr;
  }

  .course-section-body-inner {
    display: block;
    min-height: 0;
    overflow: hidden;
    padding-top: 8px;
    padding-left: 12px;
  }

  /* ---- Level 4: compact list rows instead of large pills ---- */
  .course-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* Level 4: plain link rows, no card chrome — just enough hover/active
     tint to confirm a tap registered. */
  .course-card {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 10px;
    border-radius: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .course-card:hover,
  .course-card:active,
  .course-card:focus-visible {
    transform: none;
    background: rgba(91, 33, 182, 0.06);
    box-shadow: none;
  }

  .course-card .course-icon {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .course-card span {
    font-size: 0.85rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .course-subsection {
    margin-bottom: 12px;
  }

  .course-subsection-title {
    margin: 10px 0 6px;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .nav-links,
  .mega-menu,
  .simple-menu,
  .course-section-body,
  .section-caret,
  .dropdown-caret,
  .mobile-menu-toggle .bar {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
