/* ========================================
   LIBA NAVBAR
======================================== */

:root {
  --liba-primary: #0066cc;
  --liba-primary-dark: #004f9f;
  --liba-text: #172033;
  --liba-muted: #697586;
  --liba-border: #e9edf3;
  --liba-white: #ffffff;
  --navbar-height: 82px;
  --drawer-width: 360px;
}

html {
  scroll-padding-top: var(--navbar-height);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--liba-text);
  background: var(--liba-white);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body.drawer-open {
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background: var(--liba-white);
  border-bottom: 1px solid var(--liba-border);
}

.navbar {
  width: min(100% - 64px, 1440px);
  min-height: var(--navbar-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Logo */

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 48px;
  color: var(--liba-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.logo-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}

.logo-caption strong {
  color: var(--liba-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-caption small {
  color: var(--liba-muted);
  font-size: 10px;
  letter-spacing: 0.2px;
}

/* Desktop links */

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 25px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--liba-primary);
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--liba-primary);
  content: "";
}

.nav-icon {
  width: 16px;
  height: 16px;
}

.nav-application {
  padding: 10px 13px;
  border: 1px solid #c8ddf7;
  border-radius: 8px;
  color: var(--liba-primary);
}

.nav-application:hover {
  background: #f0f7ff;
}

.nav-portal {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  color: var(--liba-white);
  background: var(--liba-primary);
}

.nav-portal:hover {
  color: var(--liba-white);
  background: var(--liba-primary-dark);
}

/* Admissions phone */

.navbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--liba-text);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: var(--liba-primary);
  background: #edf6ff;
}

.phone-icon svg {
  width: 17px;
  height: 17px;
}

.phone-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-details small {
  color: var(--liba-muted);
  font-size: 10px;
}

.phone-details strong {
  color: var(--liba-primary);
  font-size: 13px;
  white-space: nowrap;
}

/* Hide mobile controls on desktop */

.menu-toggle,
.mobile-drawer,
.drawer-backdrop {
  display: none;
}

/* Keyboard accessibility */

.nav-link:focus-visible,
.navbar-phone:focus-visible,
.navbar-logo:focus-visible,
.menu-toggle:focus-visible,
.drawer-link:focus-visible,
.drawer-action:focus-visible,
.drawer-close:focus-visible {
  outline: 3px solid #80baff;
  outline-offset: 4px;
}

/* ========================================
   TABLET AND MOBILE
======================================== */

@media (max-width: 1100px) {
  :root {
    --navbar-height: 72px;
  }

  .navbar {
    width: calc(100% - 32px);
    gap: 12px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
    border: 0;
    border-radius: 0;
    color: var(--liba-text);
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.8;
  }

  .desktop-nav {
    display: none;
  }

  .navbar-logo {
    margin-right: auto;
    gap: 5px;
  }

  .logo-mark {
    width: 45px;
    height: 42px;
    font-size: 27px;
  }

  .logo-caption strong {
    font-size: 9px;
    letter-spacing: 0.6px;
  }

  .logo-caption small {
    font-size: 9px;
  }

  .navbar-phone {
    gap: 7px;
  }

  .phone-icon {
    width: 35px;
    height: 35px;
  }

  .phone-details small {
    display: none;
  }

  .phone-details strong {
    font-size: 12px;
  }

  /* Backdrop */

  .drawer-backdrop {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: block;
    background: rgb(10 20 35 / 48%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 280ms ease,
      visibility 280ms ease;
  }

  .drawer-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Sliding drawer */

  .mobile-drawer {
    position: fixed;
    z-index: 201;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 95%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--liba-white);
    box-shadow: 12px 0 45px rgb(0 0 0 / 12%);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 320ms ease;
    will-change: transform;
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 78px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--liba-border);
  }

  .drawer-logo {
    min-width: 0;
  }

  .drawer-logo .logo-caption {
    white-space: normal;
  }

  .drawer-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    color: #475569;
    background: #f3f6fa;
    cursor: pointer;
  }

  .drawer-close:hover {
    color: var(--liba-primary);
    background: #eaf4ff;
  }

  .drawer-close svg {
    width: 21px;
    height: 21px;
  }

  .drawer-body {
    padding: 24px 18px;
  }

  .drawer-label {
    margin: 0 0 14px;
    color: #8a94a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 53px;
    margin-bottom: 4px;
    padding: 0 13px;
    border-radius: 9px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
      color 180ms ease,
      background 180ms ease;
  }

  .drawer-link>svg:first-child {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: #7b8798;
  }

  .drawer-link:hover,
  .drawer-link.active {
    color: var(--liba-primary);
    background: #edf6ff;
  }

  .drawer-link:hover>svg:first-child,
  .drawer-link.active>svg:first-child {
    color: var(--liba-primary);
  }

  .drawer-link.active {
    font-weight: 700;
  }

  .drawer-link span,
  .drawer-action span {
    flex: 1;
  }

  .drawer-chevron {
    width: 16px;
    height: 16px;
    color: #a0a9b7;
  }

  .drawer-divider {
    height: 1px;
    margin: 20px 0;
    background: var(--liba-border);
  }

  .drawer-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 51px;
    margin-bottom: 10px;
    padding: 0 13px;
    border: 1px solid var(--liba-primary);
    border-radius: 9px;
    color: var(--liba-white);
    background: var(--liba-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease;
  }

  .drawer-action:hover {
    background: var(--liba-primary-dark);
  }

  .drawer-action>svg:first-child {
    width: 18px;
    height: 18px;
  }

  .drawer-action-secondary {
    border-color: #d7e6f8;
    color: var(--liba-primary);
    background: var(--liba-white);
  }

  .drawer-action-secondary:hover {
    background: #f0f7ff;
  }

  .action-arrow {
    width: 16px;
    height: 16px;
  }

  .drawer-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: auto 18px 20px;
    padding: 17px 14px;
    border: 1px solid #dfebf9;
    border-radius: 12px;
    background: #f5f9ff;
  }

  .drawer-contact-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--liba-primary);
    background: #e2efff;
  }

  .drawer-contact-icon svg {
    width: 19px;
    height: 19px;
  }

  .drawer-contact-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .drawer-contact-content small {
    color: var(--liba-muted);
    font-size: 11px;
  }

  .drawer-contact-content>a {
    color: var(--liba-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .drawer-contact-content>a.drawer-email {
    color: #526075;
    font-size: 11px;
    font-weight: 500;
  }
}

/* Small phones */

@media (max-width: 380px) {
  .navbar {
    width: calc(100% - 20px);
    gap: 6px;
  }

  .menu-toggle {
    width: 32px;
  }

  .logo-mark {
    width: 36px;
    font-size: 24px;
  }

  .navbar-logo {
    gap: 2px;
  }

  .logo-caption strong {
    font-size: 8px;
    letter-spacing: 0.2px;
  }

  .logo-caption small {
    font-size: 8px;
  }

  .phone-icon {
    width: 30px;
    height: 30px;
  }

  .phone-icon svg {
    width: 15px;
    height: 15px;
  }

  .phone-details strong {
    font-size: 10px;
  }

  :root {
    --drawer-width: 330px;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

  .mobile-drawer,
  .drawer-backdrop,
  .nav-link,
  .drawer-link,
  .drawer-action {
    transition: none !important;
  }
}

/* ========================================
   DRAWER LAYOUT
======================================== */

.mobile-drawer {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #fff;
  overscroll-behavior: contain;
}

.drawer-header,
.drawer-footer {
  position: relative;
  z-index: 60;
  flex: 0 0 auto;
  background: #fff;
}

.drawer-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  overscroll-behavior: contain;
}

/* ========================================
   MAIN MENU PANEL
======================================== */

.drawer-main-menu {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;
  box-sizing: border-box;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  background: #fff;

  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 320ms ease,
    visibility 320ms ease;
}

/* Slide the main menu out to the left */
.drawer-main-menu.is-hidden {
  transform: translateX(-25%);
  visibility: hidden;
  pointer-events: none;
}

/* ========================================
   PROGRAMMES SUBMENU PANEL
======================================== */

.programmes-submenu {
  position: absolute;
  inset: 0;
  z-index: 2;

  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  overflow: hidden;
  background: #fff;

  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 320ms ease,
    visibility 320ms ease;
}

.programmes-submenu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Fixed submenu heading */
.submenu-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;

  flex: 0 0 auto;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.submenu-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
}

.submenu-eyebrow {
  margin: 0 0 4px;
  color: #003da8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* Back and close buttons */
.submenu-back {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;

  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #003da8;
  cursor: pointer;

  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.submenu-back:hover,
.submenu-close:hover {
  background: #003da8;
  color: #fff;
}

.submenu-back:focus-visible,
.submenu-close:focus-visible,
.submenu-course:focus-visible {
  outline: 3px solid #ffbd00;
  outline-offset: 3px;
}

/* Independently scrollable course list */
.submenu-course-list {
  flex: 1 1 auto;
  min-height: 0;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  padding: 12px 14px 24px;
}

/* ========================================
   PROGRAMME CARDS
======================================== */

.submenu-course {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 12px;

  padding: 17px 12px;
  margin-bottom: 10px;

  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.submenu-course:hover {
  border-color: #b8cdf6;
  background: #f8faff;
  box-shadow: 0 5px 16px rgb(0 61 168 / 7%);
}

.course-number {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: #eaf1ff;
  color: #003da8;
  font-size: 12px;
  font-weight: 800;
}

.course-info {
  min-width: 0;
}

.course-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.course-info > p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.course-tags span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}

.course-description {
  margin-top: 9px !important;
  line-height: 1.6 !important;
}

.course-explore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;

  color: #003da8;
  font-size: 12px;
  font-weight: 750;
}

.course-explore svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.course-chevron {
  width: 17px;
  height: 17px;
  margin-top: 8px;
  color: #94a3b8;
}

/* Smaller mobile screens */
@media (max-width: 360px) {
  .submenu-header {
    gap: 8px;
    padding: 12px;
  }

  .submenu-header h3 {
    font-size: 18px;
  }

  .submenu-course-list {
    padding: 10px 10px 20px;
  }

  .submenu-course {
    grid-template-columns: 30px minmax(0, 1fr) 14px;
    gap: 8px;
    padding: 14px 9px;
  }

  .course-number {
    width: 30px;
    height: 30px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .drawer-main-menu,
  .programmes-submenu,
  .submenu-course,
  .submenu-back,
  .submenu-close {
    transition: none !important;
  }
}

/* Image-only Programme Carousel */

.programme-carousel {
  width: 100%;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.programme-carousel .carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms ease-in-out;
  will-change: transform;
}

.programme-carousel .carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.programme-carousel .carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile */
@media (max-width: 640px) {
  .programme-carousel {
    width: 100%;
    max-width: 100%;
    height: 250px;
    padding: 10px 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .programme-carousel .carousel-track {
    transition: none;
  }
}

/* ===== LIBA Welcome Section ===== */

.liba-welcome {
  width: 100%;
  padding: 45px 24px 30px;
  background: #00000057;
  text-align: center;
  position: absolute;
  top: 0;
  height: 100%;
}

.liba-welcome__content {
  max-width: 1100px;
  margin: 0 auto;
}

.liba-welcome__content h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px black;

}

.liba-welcome__subtitle {
  margin: 0 auto 16px;
  max-width: 800px;
  color: gold;
  font-size: 16px;
  text-shadow: 1px 1px black;
  line-height: 1.7;
}

.liba-welcome__programmes {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  text-shadow: 1px 1px black;

}

.liba-welcome__programmes span {
  margin: 0 8px;
  color: #ff641f;
}

/* ===== Mobile Responsive ===== */

@media (max-width: 640px) {
  .liba-welcome {
    padding: 28px 18px 22px;
  }

  .liba-welcome__content h2 {
    font-size: 18px;
  }

  .liba-welcome__subtitle {
    font-size: 12px;
    line-height: 1.6;
  }

  .liba-welcome__programmes {
    font-size: 12px;
    line-height: 1.8;
  }

  .liba-welcome__programmes span {
    margin: 0 4px;
  }
}

/* Brand color: use your existing Tailwind bg-primary utility */
.liba-benefits {
  --liba-navy: var(--color-primary, #102c54);
  --liba-gold: #d7b875;
  --liba-border: #e2e8f0;
}

/* Desktop cards */
.liba-benefits-viewport {
  width: 100%;
}

.liba-benefits-track {
  display: flex;
  gap: 20px;
}

.liba-benefits-group {
  display: grid;
  flex: 1;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.liba-benefits-group--duplicate {
  display: none;
}

.liba-benefit-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgb(15 35 65 / 7%);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.liba-benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgb(15 35 65 / 12%);
}

.liba-benefit-card::after {
  position: absolute;
  top: 65px;
  right: -12px;
  content: attr(data-number);
  color: rgb(255 255 255 / 4%);
  font-size: 110px;
  font-weight: 700;
  pointer-events: none;
}

.liba-benefit-card--light {
  background: #fff;
  border-color: var(--liba-border);
  color: var(--liba-navy);
}

.liba-benefit-card--gold {
  background: #f5eddb;
  color: var(--liba-navy);
}

.liba-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.liba-card-icon {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 15px;
  background: rgb(255 255 255 / 10%);
  color: white;
  font-size: 28px;
  font-weight: 600;
}

.liba-benefit-card--light .liba-card-icon,
.liba-benefit-card--gold .liba-card-icon {
  border-color: transparent;
  background: #f8f0df;
  color: white;
}

.liba-card-number {
  color: var(--liba-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.liba-benefit-card--light .liba-card-number,
.liba-benefit-card--gold .liba-card-number {
  color: #94691f;
}

.liba-card-content {
  position: relative;
  z-index: 1;
}

.liba-card-label {
  color: var(--liba-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.liba-benefit-card--light .liba-card-label,
.liba-benefit-card--gold .liba-card-label {
  color: #94691f;
}

.liba-card-content h3 {
  margin: 8px 0;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.25;
}

.liba-card-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.82;
}

.liba-card-line {
  width: 36px;
  height: 4px;
  margin-top: 20px;
  border-radius: 10px;
  background: var(--liba-gold);
  transition: width 250ms ease;
}

.liba-benefit-card:hover .liba-card-line {
  width: 60px;
}

/* Mobile: two cards visible, continuous right-to-left marquee */
@media (max-width: 767px) {
  .liba-benefits-viewport {
    width: 100%;
    overflow: hidden;
  }

  .liba-benefits-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: liba-card-marquee 20s linear infinite;
    will-change: transform;
  }

  .liba-benefits-group,
  .liba-benefits-group--duplicate {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    gap: 12px;
  }

  .liba-benefit-card {
    flex: 0 0 calc(100vw - 80px);
    width: calc(100vw - 80px);
    min-height: 175px;
    padding: 16px;
    border-radius: 16px;
    background-color: var(--primary, #003da8);
    color: #ffffff;
  }

  .liba-benefit-card h3,
  .liba-benefit-card p {
    color: #ffffff;
  }

  .liba-card-icon {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .liba-card-content h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .liba-card-content p {
    font-size: 12px;
    line-height: 1.6;
  }

  .liba-benefits-track:hover {
    animation-play-state: paused;
  }

    .enq-modal.is-open .enq-modal__panel {
      height: 100%;
    }
}

@keyframes liba-card-marquee {
  from {
    transform: translateX(0);
  }

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

@media (prefers-reduced-motion: reduce) {
  .liba-benefits-track {
    animation: none;
    transform: none;
  }
}

/* LIBA Courses Section */
.liba-courses-section {
  --liba-primary: #003da8;
  --liba-primary-dark: #002d7c;
  --liba-gold: #ffbd00;
  background: #f7f9fc;
}

.liba-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.liba-course-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 290px;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background-color: var(--liba-primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 40, 110, 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.liba-course-card:hover {
  transform: translateY(-5px);
  background-color: var(--liba-primary-dark);
  box-shadow: 0 16px 32px rgba(0, 40, 110, 0.2);
}

.liba-course-card:focus-visible {
  outline: 3px solid var(--liba-gold);
  outline-offset: 4px;
}

.liba-course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.liba-course-number {
  color: var(--liba-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.liba-course-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 23px;
}

.liba-course-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.liba-course-subtitle {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.liba-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.liba-course-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.liba-course-description {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.7;
}

.liba-course-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffcf40;
  font-size: 13px;
  font-weight: 750;
}

.liba-course-link span {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.liba-course-card:hover .liba-course-link span {
  transform: translate(3px, -3px);
}

/* Tablet */
@media (max-width: 1024px) {
  .liba-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .liba-course-card {
    min-height: 270px;
    padding: 22px;
  }
}

/* Mobile: two compact cards per row */
@media (max-width: 640px) {
  .liba-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .liba-course-card {
    min-height: 225px;
    padding: 13px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 40, 110, 0.1);
  }

  .liba-course-card:hover {
    transform: translateY(-2px);
  }

  .liba-course-top {
    margin-bottom: 14px;
  }

  .liba-course-number {
    font-size: 10px;
  }

  .liba-course-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 17px;
  }

  .liba-course-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.4;
  }

  .liba-course-subtitle {
    margin-bottom: 11px;
    font-size: 11px;
    line-height: 1.5;
  }

  .liba-course-tags {
    gap: 5px;
    margin-bottom: 12px;
  }

  .liba-course-tags span {
    padding: 4px 7px;
    font-size: 9px;
    line-height: 1.35;
  }

  .liba-course-description {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.55;
  }

  .liba-course-link {
    padding-top: 10px;
    font-size: 10px;
    line-height: 1.4;
  }

  .liba-course-link span {
    font-size: 15px;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .liba-courses-grid {
    gap: 8px;
  }

  .liba-course-card {
    min-height: 215px;
    padding: 10px;
    border-radius: 12px;
  }

  .liba-course-card h3 {
    font-size: 13px;
  }

  .liba-course-subtitle {
    font-size: 10px;
  }

  .liba-course-link {
    font-size: 9px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

  .liba-course-card,
  .liba-course-link span {
    transition: none;
  }

  .liba-course-card:hover {
    transform: none;
  }
}

/* ======================================== LIBA ABOUT SECTION ======================================== */
.liba-about-section {
  --liba-primary: #003da8;
  --liba-primary-dark: #002d7c;
  --liba-gold: #ffbd00;
  --liba-text: #14233b;
  --liba-muted: #5e6b7d;
  background: #ffffff;
  overflow: hidden;
}

.liba-about-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Image */
.liba-about-image-wrap {
  position: relative;
  min-width: 0;
  padding: 0 18px 18px 0;
}

.liba-about-image {
  position: relative;
  isolation: isolate;
  height: 480px;
  overflow: hidden;
  border-radius: 8px 72px 8px 8px;
  background: #e8edf5;
}

.liba-about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.liba-about-image-wrap:hover .liba-about-image img {
  transform: scale(1.04);
}

.liba-about-image-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 22, 61, 0.72) 100%);
  pointer-events: none;
}

/* Image caption */
.liba-about-image-caption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 25px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.liba-about-caption-line {
  width: 4px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--liba-gold);
}

.liba-about-caption-label {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.liba-about-image-caption strong {
  display: block;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

/* Decorative accent */
.liba-about-image-accent {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 65%;
  height: 72%;
  border-radius: 8px 0 8px 8px;
  background: var(--liba-primary);
}

/* Content */
.liba-about-content {
  min-width: 0;
  padding: 12px 0;
}

.liba-about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--liba-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.liba-about-eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--liba-gold);
}

.liba-about-heading {
  margin: 0;
  color: var(--liba-text);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.liba-about-heading span {
  display: block;
  margin-top: 5px;
  color: var(--liba-primary);
}

.liba-about-divider {
  width: 64px;
  height: 4px;
  margin: 25px 0;
  border-radius: 4px;
  background: var(--liba-gold);
}

.liba-about-description {
  margin: 0 0 17px;
  color: var(--liba-muted);
  font-size: 15px;
  line-height: 1.9;
}

.liba-about-description em {
  color: var(--liba-primary);
  font-weight: 700;
}

/* Footer and CTA */
.liba-about-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.liba-about-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 24px;
  border: 2px solid var(--liba-primary);
  border-radius: 5px;
  background: var(--liba-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.liba-about-button:hover {
  transform: translateY(-2px);
  border-color: var(--liba-primary-dark);
  background: var(--liba-primary-dark);
}

.liba-about-button:focus-visible {
  outline: 3px solid var(--liba-gold);
  outline-offset: 4px;
}

.liba-about-button span {
  font-size: 18px;
}

.liba-about-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--liba-muted);
  font-size: 13px;
}

/* Tablet */
@media (max-width: 900px) {
  .liba-about-section {
    padding: 70px 22px;
  }

  .liba-about-container {
    gap: 34px;
  }

  .liba-about-image {
    height: 410px;
    border-top-right-radius: 52px;
  }

  .liba-about-heading {
    font-size: clamp(29px, 4vw, 38px);
  }

  .liba-about-description {
    font-size: 14px;
    line-height: 1.8;
  }

  .liba-about-footer {
    gap: 14px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #zsiq_float {
    bottom: 80px !important;
  }
  .liba-about-section {
    padding: 48px 18px;
  }

  .liba-about-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .liba-about-image-wrap {
    padding: 0 10px 10px 0;
  }

  .liba-about-image {
    height: clamp(230px, 68vw, 340px);
    border-top-right-radius: 48px;
  }

  .liba-about-image-caption {
    right: 17px;
    bottom: 17px;
    left: 17px;
  }

  .liba-about-caption-line {
    height: 40px;
  }

  .liba-about-image-caption strong {
    font-size: 26px;
  }

  .liba-about-content {
    padding: 0;
  }

  .liba-about-eyebrow {
    margin-bottom: 15px;
    font-size: 11px;
  }

  .liba-about-heading {
    font-size: clamp(29px, 4.5vw, 36px);
    line-height: 1.2;
  }

  .liba-about-divider {
    margin: 20px 0;
  }

  .liba-about-description {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .liba-about-footer {
    gap: 15px;
    margin-top: 24px;
  }

  .liba-about-button {
    min-height: 46px;
    gap: 20px;
    padding: 0 19px;
    font-size: 13px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .liba-about-section {
    padding: 38px 14px;
  }

  .liba-about-container {
    gap: 25px;
  }

  .liba-about-heading {
    font-size: 27px;
  }

  .liba-about-description {
    font-size: 13px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {

  .liba-about-image img,
  .liba-about-button {
    transition: none;
  }

  .liba-about-image-wrap:hover .liba-about-image img,
  .liba-about-button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #liba-features *,
  #liba-features *::before,
  #liba-features *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* premium primary color */
.hover\:bg-primary:hover {
  background-color: #2563eb;
}

.hover\:border-primary:hover {
  border-color: #2563eb;
}

.hover\:text-primary:hover {
  color: #2563eb;
}

.group:hover .group-hover\:text-primary {
  color: #2563eb;
}

.focus\:ring-primary:focus {
  --tw-ring-color: #2563eb;
}

/* smooth scale & shadows */
.video-card {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s ease, border-color 0.2s ease;
  will-change: transform;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: #2563eb20;
  box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.18), 0 12px 24px -8px rgba(37, 99, 235, 0.12);
}

/* thumbnail scale on hover */
.video-card .thumb-img {
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.video-card:hover .thumb-img {
  transform: scale(1.06);
}

/* play button pulse on hover */
.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #ffffff;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35);
}

/* hide scrollbar for swipe area */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* mobile swipe hint */
.swipe-hint {
  animation: swipePulse 2.2s infinite ease-in-out;
}

@keyframes swipePulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* premium modal backdrop */
.modal-backdrop {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(8px);
}

/* card border subtle gradient */
.premium-border {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

/* section background subtle pattern / gradient */
.video-section-bg {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ============================================================
   LIBA Mobile Bottom Sheet — Programmes
   Slides up from the bottom navigation bar
   ============================================================ */

/* Backdrop */
.liba-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(10 20 35 / 48%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.liba-sheet-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sheet container */
.liba-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;

  display: flex;
  flex-direction: column;

  max-height: min(85vh, 720px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 45px rgb(15 23 42 / 18%);

  /* Leave room for the bottom nav so users can still see it */
  padding-bottom: max(8px, env(safe-area-inset-bottom));

  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 340ms ease;
  will-change: transform;
}
.liba-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* Grab handle */
.liba-sheet__handle {
  flex: 0 0 auto;
  width: 44px;
  height: 5px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: #d7dee8;
}

/* Header */
.liba-sheet__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px 14px;
  border-bottom: 1px solid #eef1f6;
}
.liba-sheet__eyebrow {
  margin: 0 0 4px;
  color: #003da8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.liba-sheet__title {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}
.liba-sheet__close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.liba-sheet__close:hover { background: #003da8; color: #fff; }
.liba-sheet__close:focus-visible,
.liba-course:focus-visible,
.liba-sheet__all:focus-visible {
  outline: 3px solid #ffbd00;
  outline-offset: 3px;
}

/* Scrollable body */
.liba-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 14px;
}

/* Course card */
.liba-course {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 12px;
  padding: 14px 12px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.liba-course:hover,
.liba-course:active {
  border-color: #b8cdf6;
  background: #f8faff;
  box-shadow: 0 5px 16px rgb(0 61 168 / 7%);
}
.liba-course__num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf1ff;
  color: #003da8;
  font-size: 12px;
  font-weight: 800;
}
.liba-course__info { min-width: 0; }
.liba-course__info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.liba-course__info p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.liba-course__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.liba-course__tags span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}
.liba-course__chev {
  margin-top: 8px;
  color: #94a3b8;
}

/* Footer */
.liba-sheet__footer {
  flex: 0 0 auto;
  padding: 10px 18px 16px;
  border-top: 1px solid #eef1f6;
}
.liba-sheet__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  background: #003da8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease;
}
.liba-sheet__all:hover { background: #002d7a; }

/* Small phones */
@media (max-width: 360px) {
  .liba-sheet { max-height: 88vh; border-radius: 18px 18px 0 0; }
  .liba-course {
    grid-template-columns: 30px minmax(0, 1fr) 14px;
    gap: 8px;
    padding: 12px 10px;
  }
  .liba-course__num { width: 30px; height: 30px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .liba-sheet,
  .liba-sheet-backdrop,
  .liba-course,
  .liba-sheet__all {
    transition: none !important;
  }
}

/* Lock body scroll while sheet is open */
body.liba-sheet-open { overflow: hidden; }

/* ============================================================
   Enquiry Modal — bottom-to-top open, top-to-bottom close
   ============================================================ */

.enq-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-end;             /* sheet sits at bottom */
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.enq-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Overlay */
.enq-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgb(10 20 35 / 55%);
  opacity: 0;
  transition: opacity 320ms ease;
  backdrop-filter: blur(2px);
}
.enq-modal.is-open .enq-modal__overlay { opacity: 1; }

/* Panel */
.enq-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -22px 55px rgb(15 23 42 / 22%);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Start off-screen bottom */
  transform: translateY(100%);
  opacity: 0;

  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 380ms ease;
  will-change: transform, opacity;
}

.enq-modal.is-open .enq-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

/* When closing, we flip the animation to top-to-bottom via .is-closing */
.enq-modal.is-closing .enq-modal__panel {
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 340ms cubic-bezier(0.4, 0, 0.6, 1),
    opacity 340ms ease;
}
.enq-modal.is-closing .enq-modal__overlay {
  opacity: 0;
}

/* Handle */
.enq-modal__handle {
  flex: 0 0 auto;
  width: 44px;
  border-radius: 999px;
  background: #d7dee8;
}

/* Header */
.enq-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px 16px;
  border-bottom: 1px solid #eef1f6;
  position: relative;
  min-height: 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.enq-modal__header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.80),
        rgba(0, 0, 0, 0.25)
    );
    z-index: 0;
}

/* Text overlay-ku mela irukkanum */
.enq-modal__header > div {
    position: relative;
    z-index: 1;
}

.enq-modal__eyebrow {
  margin: 0 0 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.enq-modal__title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}
.enq-modal__subtitle {
  margin: 4px 0 0;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
}
.enq-modal__close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #fafafa;
  border-radius: 12px;
  color: #000000;
  background-color: #fff;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  z-index: 9;
}
.enq-modal__close:hover { background: #000000; color: #fff; }
.enq-modal__close:focus-visible {
  outline: 3px solid #ff0000;
  outline-offset: 3px;
}

/* Form */
.enq-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 24px;
}

/* Field */
.enq-field {
   margin-bottom: 16px; 
    position: relative;
  }

.enq-label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
}
.enq-req { color: #dc2626; }

.enq-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid #d7dee8;
  border-radius: 5px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.enq-input::placeholder { color: #94a3b8; }

.enq-input:focus {
  outline: 0;
  border-color: #003da8;
  box-shadow: 0 0 0 4px rgb(0 61 168 / 12%);
}

.enq-input[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fff7f7;
}
.enq-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(220 38 38 / 12%);
}

/* Select */
.enq-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

/* Phone */
.enq-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d7dee8;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  background: #fff;
}
.enq-phone-wrap:focus-within {
  border-color: #003da8;
  box-shadow: 0 0 0 4px rgb(0 61 168 / 12%);
}
.enq-phone-wrap.is-invalid {
  border-color: #dc2626;
  background: #fff7f7;
}
.enq-phone-wrap.is-invalid:focus-within {
  box-shadow: 0 0 0 4px rgb(220 38 38 / 12%);
}
.enq-phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid #e2e8f0;
}
.enq-input--phone {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}
.enq-input--phone:focus { box-shadow: none !important; }

.enq-phone-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 46px;
    background: #fff;
    border: 1px solid #dbe3ed;
    border-radius: 5px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.enq-phone-wrap:focus-within {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .10);
}

.enq-country {
    flex-shrink: 0;
}

.enq-country-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 100%;
    min-height: 44px;
    padding: 0 10px;
    color: #26364b;
    background: #f8fafc;
    border: 0;
    border-right: 1px solid #dbe3ed;
    border-radius: 8px 0 0 8px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.enq-country-trigger img {
    display: block;
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 2px;
}

.enq-country-trigger svg {
    width: 14px;
    height: 14px;
    color: #64748b;
}

.enq-country-trigger:focus-visible,
.enq-country-option:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
}

.enq-country-dropdown {
    position: absolute;
    z-index: 10010;
    top: calc(100% + 7px);
    left: 0;
    width: min(290px, 75vw);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .16);
}

.enq-country-search {
    display: block;
    width: calc(100% - 16px);
    margin: 8px;
    padding: 10px 11px;
    border: 1px solid #dbe3ed;
    border-radius: 7px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

.enq-country-search:focus {
    border-color: #0066cc;
}

.enq-country-options {
    max-height: 220px;
    padding: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.enq-country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    color: #253650;
    background: #fff;
    border: 0;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.enq-country-option:hover,
.enq-country-option[aria-selected="true"] {
    background: #eff6ff;
}

.enq-country-option img {
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 2px;
}

.enq-country-option .country-name {
    flex: 1;
}

.enq-country-option .country-dial {
    color: #64748b;
    font-weight: 600;
}

.enq-input--phone {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0 8px 8px 0;
    outline: none;
    box-shadow: none;
}

.enq-input--phone:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

.enq-country-dropdown[hidden] {
    display: none !important;
}

@media (max-width: 380px) {
    .enq-country-trigger {
        gap: 5px;
        padding: 0 7px;
    }

    .enq-country-dropdown {
        width: min(270px, 82vw);
    }
}

/* Error text */
.enq-error {
  display: none;
  margin-top: 6px;
  padding-left: 2px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.enq-error.is-visible { display: block; }

/* API error */
.enq-api-error {
  display: none;
  margin: 4px 0 14px;
  padding: 11px 13px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.enq-api-error.is-visible { display: block; }

/* Submit */
.enq-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 12px 18px;
  border: 0;
  border-radius: 5px;
  background: #0066cc;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background 180ms ease, transform 120ms ease;
}
.enq-submit:hover { background: #002d7a; }
.enq-submit:active { transform: scale(0.99); }
.enq-submit:focus-visible {
  outline: 3px solid #ffbd00;
  outline-offset: 3px;
}
.enq-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.85;
}

/* Spinner */
.enq-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: enqSpin 700ms linear infinite;
}
@keyframes enqSpin { to { transform: rotate(360deg); } }

/* Loading state */
.enq-submit.is-loading .enq-submit__spinner { display: inline-block; }
.enq-submit.is-loading .enq-submit__label   { opacity: 0.85; }

/* Privacy */
.enq-privacy {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* Lock body scroll */
body.enq-modal-open { overflow: hidden; }

/* Small phones */
@media (max-width: 380px) {
  .enq-modal__panel { max-height: 94vh; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .enq-modal__header { padding: 6px 14px 12px; }
  .enq-modal__form   { padding: 14px 14px 20px; }
  .enq-modal__title  { font-size: 16.5px; }
}

/* Desktop: center as a card instead of a bottom sheet */
@media (min-width: 768px) {
  .enq-modal { align-items: center; padding: 24px; }
  .enq-modal__panel {
    border-radius: 18px;
    max-height: 90vh;
    max-height: 90dvh;
    /* Start further down so the entry motion still reads "up" */
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition:
      transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 340ms ease;
  }
  .enq-modal.is-open .enq-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .enq-modal.is-closing .enq-modal__panel {
    transform: translateY(-24px) scale(0.97);
    opacity: 0;
  }
  .enq-modal__handle { display: none !important;}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .enq-modal__panel,
  .enq-modal__overlay { transition: none !important; }
}


/* ===== OTP & SUCCESS SCREEN ===== */

#enqOtpStep,
#enqSuccessStep {
  box-sizing: border-box;
  width: 100%;
  padding: 28px;
  color: #1e293b;
  font-family: inherit;
}

#enqOtpStep[hidden],
#enqSuccessStep[hidden] {
  display: none !important;
}

/* Heading */

#enqOtpStep h3,
#enqSuccessStep h3 {
  margin: 0 0 12px;
  color: #10213d;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* Description */

#enqOtpStep > p,
#enqSuccessStep > p {
  max-width: 390px;
  margin: 0 auto 24px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
}

#enqOtpDestination {
  color: #005eb8;
  font-weight: 600;
}

/* Simple heading icon */

#enqOtpStep h3::before {
  content: "✉";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: #eff6ff;
  color: #005eb8;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Form */

#enqOtpForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#enqOtpForm label {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

/* OTP input */

#enqOtpCode {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-align: center;
  transition: border-color 0.2s ease;
}

#enqOtpCode::placeholder {
  color: #cbd5e1;
}

#enqOtpCode:focus {
  border-color: #005eb8;
  box-shadow: 0 0 0 3px rgb(0 94 184 / 10%);
}

#enqOtpCode[aria-invalid="true"] {
  border-color: #dc2626;
}

/* Error messages */

#enqOtpError,
#enqOtpApiError {
  box-sizing: border-box;
  width: 100%;
  margin: 4px 0;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#enqOtpError:empty,
#enqOtpApiError:empty {
  display: none;
}

/* Primary buttons */

#enqVerifyBtn,
#enqSuccessClose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid #005eb8;
  border-radius: 8px;
  background: #005eb8;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#enqVerifyBtn:hover:not(:disabled),
#enqSuccessClose:hover:not(:disabled) {
  background: #004b93;
}

#enqVerifyBtn:disabled,
#enqSuccessClose:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#enqVerifyBtn:focus-visible,
#enqSuccessClose:focus-visible,
#enqResendOtp:focus-visible,
#enqEditDetails:focus-visible {
  outline: 3px solid rgb(0 94 184 / 25%);
  outline-offset: 3px;
}

/* Resend OTP */

#enqResendOtp {
  display: block;
  margin: 16px auto 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #005eb8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#enqResendOtp:hover:not(:disabled) {
  background: #eff6ff;
}

#enqResendOtp:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

#enqOtpCountdown {
  margin: 0 auto 14px !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Back button */

#enqEditDetails {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

#enqEditDetails:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

/* Success screen */

#enqSuccessStep {
  text-align: center;
}

#enqSuccessStep h3 {
  color: #166534;
}

#enqSuccessStep h3::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #f0fdf4;
  color: #15803d;
  font-size: 30px;
  font-weight: 600;
}

/* Mobile */

@media (max-width: 480px) {
  #enqOtpStep,
  #enqSuccessStep {
    padding: 22px 18px;
  }

  #enqOtpStep h3,
  #enqSuccessStep h3 {
    font-size: 22px;
  }

  #enqOtpCode {
    min-height: 52px;
    font-size: 23px;
    letter-spacing: 0.35em;
  }

  #enqVerifyBtn,
  #enqSuccessClose {
    min-height: 46px;
  }
}

/* Mobile bottom navigation */
.liba-mobile-link {
  color: #64748b;
  -webkit-tap-highlight-color: transparent;
}

.liba-mobile-link.active {
  color: #003da8;
  background: #eff6ff;
}

.liba-mobile-link.active svg,
.liba-mobile-link.active i {
  color: #003da8;
}

.liba-mobile-link.active span {
  font-weight: 700;
}

.liba-mobile-link:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
