/* Sabah Theme - Professional CSS v5.0 */
:root {
  --sabah-primary: #073B3A;
  --sabah-secondary: #17656d;
  --sabah-accent: #0b4e54;
  --sabah-bg: #d3c3a7;
  --sabah-light: rgba(255, 255, 255, 0.8);
  --sabah-shadow: rgba(0, 0, 0, 0.1);
  --sabah-cream: #c4b59a;
  --sabah-gold: #c9a876;
  --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  background-color: var(--sabah-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ========== HEADER GLASS EFFECT ========== */
#sabah-header {
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), background 0.4s var(--transition-smooth), backdrop-filter 0.4s var(--transition-smooth);
  transform: translateY(0);
  background: rgba(211,195,167,0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(7,59,58,0.06);
}
#sabah-header.header-hidden {
  transform: translateY(-100%);
}
#sabah-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: rgba(211,195,167,0.85);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(7,59,58,0.08);
}
#sabah-header:not(.scrolled) nav {
  border-bottom: 1px solid rgba(7,59,58,0.04);
}

/* Mobile menu panel */
#mobile-menu {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}
#mobile-menu a {
  position: relative;
  overflow: hidden;
}
#mobile-menu a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,59,58,0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#mobile-menu a:hover::after {
  opacity: 1;
}

/* ========== BUTTONS - ENHANCED ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.4s var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--sabah-secondary), var(--sabah-accent));
  color: white;
  border: 1px solid rgba(23, 101, 109, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--sabah-accent), var(--sabah-secondary));
  box-shadow: 0 8px 32px rgba(23, 101, 109, 0.4);
  transform: translateY(-3px) scale(1.02);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--sabah-primary);
  border: 1px solid rgba(23, 101, 109, 0.2);
}
.btn-secondary:hover {
  background: white;
  box-shadow: 0 8px 24px rgba(23, 101, 109, 0.18);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--sabah-secondary);
  color: var(--sabah-secondary);
}
.btn-outline:hover {
  background: var(--sabah-secondary);
  color: white;
  box-shadow: 0 8px 32px rgba(23, 101, 109, 0.3);
  transform: translateY(-3px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.btn-ghost {
  background: transparent;
  color: var(--sabah-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(23, 101, 109, 0.1);
  transform: translateX(4px);
}
[dir="rtl"] .btn-ghost:hover { transform: translateX(-4px); }

/* ========== LINK ARROW ========== */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s var(--transition-smooth);
}
.link-arrow:hover { gap: 0.5rem; }
.link-arrow svg { transition: transform 0.3s var(--transition-smooth); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: translateX(-4px); }

/* ========== CARDS - PROFESSIONAL ========== */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(23, 101, 109, 0.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.5s var(--transition-bounce);
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(23, 101, 109, 0.3);
}

/* ========== DROPDOWN MENUS ========== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 12rem;
  border-radius: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.25s var(--transition-bounce);
  z-index: 50;
}
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ========== LOADING STATES ========== */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading { opacity: 0.6; pointer-events: none; transition: opacity 0.2s ease; }
.loaded { opacity: 1; pointer-events: auto; }

/* ========== ACCESSIBILITY ========== */
.screen-reader-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 6px;
  background: var(--sabah-secondary); color: white;
  padding: 8px; text-decoration: none; border-radius: 4px; z-index: 1000;
}
.skip-link:focus { top: 6px; }

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid var(--sabah-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== FOOTER ========== */
footer a {
  transition: color 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}
footer a:hover {
  color: #d3c3a7;
  transform: translateY(-2px);
}

footer .social-icon {
  transition: all 0.4s var(--transition-bounce);
}
footer .social-icon:hover {
  transform: translateY(-3px) scale(1.15);
}

/* ========== RTL SUPPORT ========== */
[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
  --space-x-reverse: 1;
}
[dir="rtl"] .header-logo {
  margin-left: 0;
  margin-right: 0;
}
[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sabah-bg); }
::-webkit-scrollbar-thumb { background: var(--sabah-secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sabah-accent); }

/* ========== SELECTION ========== */
::selection {
  background: var(--sabah-secondary);
  color: white;
}

/* ========== PRINT ========== */
@media print {
  body { background: white !important; color: black !important; }
  nav, footer, .ball, .no-print { display: none !important; }
  .print-only { display: block !important; }
  .print-content { margin-top: 0 !important; padding: 1rem !important; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ball { animation: none !important; }
  .btn, .card { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ========== WELLBEING WITH SABAH REFRESH v5.1 ========== */
/* Static rules intentionally live in the theme stylesheet so the refreshed
   homepage remains correct even when the server has not rebuilt Vite/Tailwind. */
.sabah-home-hero {
  min-height: calc(100vh - 5rem);
  background:
    radial-gradient(circle at 10% 8%, rgba(255,255,255,.24), transparent 26rem),
    radial-gradient(circle at 90% 90%, rgba(7,59,58,.055), transparent 28rem),
    var(--sabah-bg);
}
.sabah-home-logo {
  width: 14rem;
  height: 14rem;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 20px 60px rgba(7,59,58,.08);
}
.sabah-discovery-cta {
  min-width: 18rem;
  background: var(--sabah-primary);
  color: #fff;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(7,59,58,.15);
  text-decoration: none;
}
.sabah-discovery-cta:hover {
  background: var(--sabah-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(7,59,58,.18);
}
.sabah-home-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(23,101,109,.92);
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(7,59,58,.14);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.sabah-home-icon:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--sabah-primary);
  box-shadow: 0 12px 24px rgba(7,59,58,.2);
}
@media (max-width: 640px) {
  .sabah-home-hero { min-height: calc(100vh - 4.5rem); }
  .sabah-home-logo { width: 10rem; height: 10rem; }
  .sabah-discovery-cta { min-width: min(15.5rem, 88vw); }
  .sabah-home-icon { width: 4.25rem; height: 4.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sabah-home-icon, .sabah-discovery-cta { transition: none; }
  .sabah-home-icon:hover, .sabah-discovery-cta:hover { transform: none; }
}

/* ========== LARAVEL MOBILE HEADER & CONTENT REPAIR v5.4 ========== */
/* These rules deliberately do not depend on a Tailwind rebuild. They keep the
   Laravel Blade header and primary homepage usable on Hostinger even when the
   prebuilt Tailwind bundle is older than the current templates. */
html.sabah-menu-open,
body.sabah-menu-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

#sabah-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 80;
  display: block;
}

.sabah-site-nav {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(16px, 3vw, 48px);
  background: rgba(211,195,167,.94);
  border-bottom: 1px solid rgba(7,59,58,.08);
  box-shadow: 0 4px 20px rgba(7,59,58,.045);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

.sabah-brand,
.sabah-mobile-brand {
  color: var(--sabah-primary);
  text-decoration: none;
}

.sabah-brand {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sabah-brand-logo-wrap {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.46);
  box-shadow: 0 4px 14px rgba(7,59,58,.07);
}
.sabah-brand-logo { width: 35px; height: 35px; object-fit: contain; display: block; }
.sabah-brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.sabah-brand-title { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 700; letter-spacing: .015em; white-space: nowrap; }
.sabah-brand-subtitle { margin-top: 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 10px; font-weight: 600; letter-spacing: .11em; opacity: .68; white-space: nowrap; }

.sabah-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex: 1 1 auto;
  min-width: 0;
}
.sabah-nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sabah-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.sabah-nav-link:hover,
.sabah-nav-link.is-active { background: rgba(255,255,255,.4); color: var(--sabah-primary); }
.sabah-nav-link:hover { transform: translateY(-1px); }
.sabah-nav-dropdown { position: relative; }
.sabah-chevron { width: 16px; height: 16px; flex: 0 0 16px; transition: transform .2s ease; }
.sabah-chevron.rotate-180,
.sabah-mobile-services-toggle.is-open .sabah-chevron { transform: rotate(180deg); }
.sabah-desktop-dropdown {
  min-width: 225px;
  padding: 7px;
  background: rgba(238,229,214,.98);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(7,59,58,.14);
}
.sabah-desktop-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sabah-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.sabah-desktop-dropdown a:hover { background: rgba(255,255,255,.5); }
.sabah-dropdown-separator { display: block; height: 1px; margin: 5px 8px; background: rgba(7,59,58,.1); }

.sabah-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.sabah-language-pill {
  min-width: 48px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  color: var(--sabah-primary);
  background: rgba(255,255,255,.27);
  border: 1px solid rgba(255,255,255,.38);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.sabah-language-pill svg { width: 16px; height: 16px; }
.sabah-language-pill:hover { background: rgba(255,255,255,.5); color: var(--sabah-primary); }
.sabah-desktop-auth { display: flex; align-items: center; gap: 6px; }
.sabah-login-link,
.sabah-register-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sabah-login-link { color: var(--sabah-primary); background: transparent; }
.sabah-login-link:hover { background: rgba(255,255,255,.34); color: var(--sabah-primary); }
.sabah-register-link { color: #fff; background: var(--sabah-primary); box-shadow: 0 7px 18px rgba(7,59,58,.13); }
.sabah-register-link:hover { color: #fff; background: var(--sabah-secondary); transform: translateY(-1px); }
.sabah-inline-form { display: inline-flex; margin: 0; }
.sabah-button-reset { border: 0; font-family: inherit; cursor: pointer; }

.sabah-mobile-only { display: none !important; }
.sabah-desktop-only { display: flex !important; }
.sabah-mobile-menu-toggle,
.sabah-mobile-menu-close {
  border: 0;
  appearance: none;
  color: var(--sabah-primary);
  background: rgba(255,255,255,.27);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sabah-mobile-menu-toggle { width: 42px; height: 42px; border-radius: 12px; }
.sabah-menu-icon { width: 23px; height: 23px; }

.sabah-mobile-menu-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 120;
  display: none;
  background: rgba(7,59,58,.23);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  overscroll-behavior: contain;
  transition: opacity .25s ease, visibility .25s ease;
}
.sabah-mobile-menu-shell {
  width: min(92vw, 390px);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin-inline-start: auto;
  display: flex;
  flex-direction: column;
  background: #e3d7c3;
  box-shadow: -18px 0 55px rgba(7,59,58,.2);
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
[dir="rtl"] .sabah-mobile-menu-shell {
  margin-inline-start: 0;
  margin-inline-end: auto;
  box-shadow: 18px 0 55px rgba(7,59,58,.2);
  transform: translateX(-105%);
}
#sabah-header .sabah-mobile-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#sabah-header .sabah-mobile-menu-panel.is-open .sabah-mobile-menu-shell { transform: translateX(0); }
.sabah-mobile-menu-head {
  min-height: 72px;
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: 12px;
  padding-left: max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(7,59,58,.09);
  background: rgba(255,255,255,.12);
}
.sabah-mobile-brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.sabah-mobile-brand-logo { width: 39px; height: 39px; object-fit: contain; }
.sabah-mobile-brand span { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.sabah-mobile-brand strong { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; letter-spacing: .03em; }
.sabah-mobile-brand small { margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .11em; opacity: .65; }
.sabah-mobile-menu-close { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; }
.sabah-mobile-menu-close svg { width: 22px; height: 22px; }
.sabah-mobile-menu-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.sabah-mobile-links { display: flex; flex-direction: column; gap: 4px; }
.sabah-mobile-links > a,
.sabah-mobile-services-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 0;
  border-radius: 13px;
  color: var(--sabah-primary);
  background: transparent;
  text-decoration: none;
  text-align: start;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  cursor: pointer;
}
.sabah-mobile-links > a:hover,
.sabah-mobile-links > a.is-active,
.sabah-mobile-services-toggle:hover,
.sabah-mobile-services-toggle.is-open { background: rgba(255,255,255,.42); color: var(--sabah-primary); }
.sabah-mobile-services-list { padding: 3px 8px 7px 14px; }
[dir="rtl"] .sabah-mobile-services-list { padding: 3px 14px 7px 8px; }
.sabah-mobile-services-list[hidden] { display: none !important; }
.sabah-mobile-services-list a {
  display: block;
  padding: 9px 12px;
  margin: 2px 0;
  border-radius: 10px;
  color: rgba(7,59,58,.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.sabah-mobile-services-list a:hover { background: rgba(255,255,255,.38); color: var(--sabah-primary); }
.sabah-mobile-links > .sabah-mobile-discovery {
  justify-content: center;
  margin-top: 8px;
  color: #fff;
  background: var(--sabah-primary);
  box-shadow: 0 10px 24px rgba(7,59,58,.15);
}
.sabah-mobile-links > .sabah-mobile-discovery:hover { color: #fff; background: var(--sabah-secondary); }
.sabah-mobile-menu-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(7,59,58,.1); }
.sabah-mobile-language-full {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--sabah-primary);
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(7,59,58,.1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.sabah-mobile-language-full svg { width: 18px; height: 18px; }
.sabah-mobile-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.sabah-mobile-auth-grid form { margin: 0; display: flex; }
.sabah-mobile-login,
.sabah-mobile-register {
  width: 100%;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.sabah-mobile-login { color: var(--sabah-primary); border: 1px solid rgba(7,59,58,.16); background: rgba(255,255,255,.25); }
.sabah-mobile-register { color: #fff; background: var(--sabah-primary); border: 1px solid var(--sabah-primary); }
.sabah-mobile-login:hover { color: var(--sabah-primary); background: rgba(255,255,255,.48); }
.sabah-mobile-register:hover { color: #fff; background: var(--sabah-secondary); }

.sabah-page-main {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  min-height: 55vh;
  padding-top: 72px;
}

/* Homepage semantic fallback. */
.sabah-home-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 16px;
}
.sabah-home-content {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sabah-home-title {
  margin: 0;
  color: var(--sabah-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.05rem, 6vw, 3.7rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
}
.sabah-home-tagline {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(7,59,58,.76);
  font-size: clamp(.9rem, 2.2vw, 1.18rem);
  line-height: 1.75;
  font-weight: 600;
}
.sabah-home-quicknav {
  width: 100%;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(7,59,58,.1);
}
.sabah-home-quicknav-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px 34px;
}
.sabah-home-quicknav-item {
  min-width: 82px;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sabah-primary);
  text-align: center;
}
.sabah-home-quicknav-item > span { margin-top: 10px; font-size: 13px; line-height: 1.35; font-weight: 700; }

@media (max-width: 1180px) {
  .sabah-desktop-nav { gap: 0; }
  .sabah-nav-link { padding-inline: 7px; font-size: 12px; }
  .sabah-desktop-auth .sabah-login-link { display: none; }
}

@media (max-width: 900px) {
  .sabah-desktop-auth { display: none !important; }
}

@media (max-width: 767px) {
  /* IMPORTANT: keep the mobile header untransformed. Any transform value,
     including translateY(0), creates a containing block and clips the fixed
     drawer to the header height instead of the viewport. */
  #sabah-header,
  #sabah-header.header-hidden,
  #sabah-header.scrolled.header-hidden {
    transform: none !important;
  }
  #sabah-header { z-index: 100; }
  .sabah-site-nav { min-height: 68px; padding: 9px 12px; gap: 8px; }
  .sabah-brand { min-width: 0; max-width: calc(100vw - 126px); gap: 8px; }
  .sabah-brand-logo-wrap { width: 40px; height: 40px; flex-basis: 40px; }
  .sabah-brand-logo { width: 32px; height: 32px; }
  .sabah-brand-title { font-size: 14px; }
  .sabah-brand-subtitle { font-size: 8.5px; letter-spacing: .08em; }
  .sabah-header-actions { gap: 6px; }
  .sabah-language-pill { min-width: 44px; height: 40px; padding: 0 8px; border-radius: 12px; }
  .sabah-language-pill svg { width: 15px; height: 15px; }
  .sabah-mobile-only { display: flex !important; }
  .sabah-desktop-only { display: none !important; }
  .sabah-mobile-menu-panel { display: block !important; }
  .sabah-page-main { padding-top: 68px; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-3d, .grid-card, .stagger-item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .sabah-home-hero { min-height: calc(100svh - 68px); padding: 26px 14px 30px; overflow: visible; }
  .sabah-home-content { max-width: 100%; }
  .sabah-home-logo { width: 9.25rem; height: 9.25rem; margin-bottom: 16px; }
  .sabah-home-title { font-size: clamp(2rem, 9.5vw, 2.65rem); }
  .sabah-home-tagline { margin-top: 12px; font-size: .88rem; line-height: 1.65; padding: 0 5px; }
  .sabah-discovery-cta { width: min(100%, 290px); min-width: 0; margin-top: 24px; padding: 13px 18px; }
  .sabah-home-quicknav { margin-top: 30px; padding-top: 22px; }
  .sabah-home-quicknav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; }
  .sabah-home-quicknav-item { min-width: 0; width: 100%; max-width: none; }
  .sabah-home-icon { width: 4rem; height: 4rem; }
  .sabah-home-quicknav-item > span { font-size: 11px; margin-top: 7px; }
}

@media (max-width: 380px) {
  .sabah-site-nav { padding-inline: 10px; }
  .sabah-brand { max-width: calc(100vw - 112px); }
  .sabah-brand-logo-wrap { width: 37px; height: 37px; flex-basis: 37px; }
  .sabah-brand-logo { width: 29px; height: 29px; }
  .sabah-brand-title { font-size: 12.5px; }
  .sabah-brand-subtitle { font-size: 7.5px; }
  .sabah-language-pill { min-width: 40px; padding: 0 7px; }
  .sabah-language-pill svg { display: none; }
  .sabah-mobile-menu-toggle { width: 40px; height: 40px; }
  .sabah-mobile-menu-shell { width: 94vw; }
  .sabah-mobile-auth-grid { grid-template-columns: 1fr; }
  .sabah-home-quicknav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
