@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap");



/* -----------------------------------
       RESET / BASE
    ----------------------------------- */

/* Global header height variable for consistent spacing */
:root {
  --header-height: 100px;
  --header-height-active: 60px;
  --header-height-safe: calc(var(--header-height) + 20px);
  
  /* Responsive breakpoint system */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1200px;
  
  /* Touch target minimum (accessibility) */
  --touch-target-min: 44px;
  
  /* Navigation animation timing */
  --nav-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  list-style-type: none;
  list-style: none;
  text-decoration: none;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to main content link for accessibility */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2a2a3e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--gold-crayola, #d4a574);
  outline-offset: 2px;
}

li {
  list-style: none;
}

a,
img,
data,
span,
input,
button,
select,
textarea,
ion-icon {
  display: block;
}

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

img {
  height: auto;
}

input,
button,
select,
textarea {
  background: none;
  border: none;
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  outline: none;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

html {
  font-size: clamp(9px, 1vw + 6px, 11px);
  scroll-behavior: smooth;
}

@media (min-width: 1600px) {
  html {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 9px;
  }
}

.food-item.hide {
  display: none;
}

.img-line {
  width: 50%;
  height: 1px;
  margin: 0 15px;
  border-bottom: 1px dashed #7D7D7D;
}

/* -----------------------------------
       ORIENTATION LOCK - DISABLED for better UX
       (Layouts now work in any orientation)
    ----------------------------------- */
.orientation-lock {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* -----------------------------------
       ENHANCED MOBILE RESPONSIVE STYLES
    ----------------------------------- */

/* Mobile-first: Header adjustments for small screens */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
    --header-height-safe: 90px;
  }
  
  .header {
    padding-block: 15px;
  }
  
  .header.active {
    padding-block: 8px;
  }
  
  /* Ensure touch targets are accessible */
  .nav-open-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .navbar .close-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Improve navbar on mobile */
  .navbar {
    max-width: 300px;
    left: -300px;
  }
  
  .navbar.active {
    transform: translateX(300px);
  }
  
  .navbar-link {
    padding-block: 14px;
    min-height: 44px;
  }
}

/* Landscape phone adjustments - content works without forcing rotation */
@media screen and (max-width: 900px) and (orientation: landscape) {
  :root {
    --header-height: 50px;
    --header-height-safe: 60px;
  }
  
  .header {
    padding-block: 8px;
  }
  
  .header.active {
    padding-block: 5px;
  }
  
  /* Reduce hero height in landscape */
  #main-hero.hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  
  /* Smaller topbar in landscape */
  .topbar {
    padding-block: 6px;
  }
  
  .topbar-item .span {
    font-size: 12px;
  }
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  
  .topbar {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
  
  .navbar {
    padding-left: max(30px, env(safe-area-inset-left));
  }
}

/* -----------------------------------
       ROOT / VARIABLES
    ----------------------------------- */
:root {
  --bg: #f5f5f5;
  --primary: #A1CAF1;
  --color-primary: #af916d;
  --gold-crayola: #af916d;

  --quick-silver: hsla(0, 0%, 65%, 1);
  --davys-grey: hsla(30, 3%, 34%, 1);

  --smoky-black-1: hsla(40, 12%, 5%, 1);
  --smoky-black-2: hsla(30, 8%, 5%, 1);
  --smoky-black-3: hsla(0, 3%, 7%, 1);

  --eerie-black-1: hsla(210, 4%, 9%, 1);
  --eerie-black-2: hsla(210, 4%, 11%, 1);
  --eerie-black-3: hsla(180, 2%, 8%, 1);
  --eerie-black-4: hsla(0, 0%, 13%, 1);

  --white: hsla(0, 0%, 100%, 1);
  --white-alpha-20: hsla(0, 0%, 100%, 0.2);
  --white-alpha-10: hsla(0, 0%, 100%, 0.1);

  --black: hsla(0, 0%, 0%, 1);
  --black-alpha-80: hsla(0, 0%, 0%, 0.8);
  --black-alpha-15: hsla(0, 0%, 0%, 0.15);

  --color: #77bb41;

  --bs-warning: #96d35f;
  --bs-font-sans-serif: Poppins, sans-serif !important;
  --bs-warning-rgb: 254, 159, 16;
  --bs-link-hover-color-rgb: #96d35f;
  --bs-light-rgb: 255, 248, 224;
  --bg-color: #f4f4f4;

  --loading-text-gradient: linear-gradient(90deg,
      transparent 0% 16.66%,
      var(--smoky-black-3) 33.33% 50%,
      transparent 66.66% 75%);
  --gradient-1: linear-gradient(to top,
      hsla(0, 0%, 0%, 0.9),
      hsla(0, 0%, 0%, 0.7),
      transparent);

  /* font-family */
  --fontFamily-forum: 'Poppins', sans-serif;
  --fontFamily-dm_sans: 'Poppins', sans-serif;

  /* font-size */
  --fontSize-display-1: calc(1.3rem + 6.7vw);
  --fontSize-headline-1: calc(2rem + 2.5vw);
  --fontSize-headline-2: calc(1.3rem + 2.4vw);
  --fontSize-title-1: calc(1.6rem + 1.2vw);
  --fontSize-title-2: 2.2rem;
  --fontSize-title-3: 2.1rem;
  --fontSize-title-4: calc(1.6rem + 1.2vw);
  --fontSize-body-1: 2.4rem;
  --fontSize-body-2: 1.6rem;
  --fontSize-body-3: 1.8rem;
  --fontSize-body-4: 1.6rem;
  --fontSize-label-1: 1.4rem;
  --fontSize-label-2: 1.2rem;

  /* font-weight */
  --weight-regular: 400;
  --weight-bold: 700;

  /* line-height */
  --lineHeight-1: 1em;
  --lineHeight-2: 1.2em;
  --lineHeight-3: 1.5em;
  --lineHeight-4: 1.6em;
  --lineHeight-5: 1.85em;
  --lineHeight-6: 1.4em;

  /* letter-spacing */
  --letterSpacing-1: 0.15em;
  --letterSpacing-2: 0.4em;
  --letterSpacing-3: 0.2em;
  --letterSpacing-4: 0.3em;
  --letterSpacing-5: 3px;

  --section-space: 70px;

  --shadow-1: 0px 0px 25px 0px hsla(0, 0%, 0%, 0.25);

  --radius-24: 24px;
  --radius-circle: 50%;

  --transition-1: 250ms ease;
  --transition-2: 500ms ease;
  --transition-3: 1000ms ease;
}

/* -----------------------------------
       BODY
    ----------------------------------- */
body {
  flex-direction: column;
  padding-top: var(--header-height-safe);
  display: flex;
  min-height: 100vh;

  font-family: 'Poppins', sans-serif;
  font-size: var(--fontSize-body-4);
  font-weight: var(--weight-regular);
  line-height: var(--lineHeight-5);

  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-primary, #1a1a2e);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global overflow prevention */
html {
  overflow-x: hidden;
}

/* Ensure all containers respect viewport width */
.container,
section,
main,
article,
footer {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Responsive images and media */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Main content area - ensure it clears the fixed header */
main,
.main-content,
[role="main"] {
  padding-top: 20px;
}

/* Scroll margin for anchor navigation - ensures sections don't hide under fixed header */
section[id],
h2[id],
h3[id],
[id]:target {
  scroll-margin-top: var(--header-height-safe);
}

body.nav-active {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: black;
}

::-webkit-scrollbar-thumb {
  background-color: var(--gold-crayola);
}

/* -----------------------------------
       TYPOGRAPHY
    ----------------------------------- */
.display-1,
.headline-1,
.headline-2,
.title-1,
.title-2,
.title-3,
.title-4 {
  font-family: var(--fontFamily-forum);
  font-weight: var(--weight-regular);
  line-height: var(--lineHeight-2);
}

.display-1 {
  font-size: var(--fontSize-display-1);
  line-height: var(--lineHeight-1);
}

.headline-1 {
  font-size: var(--fontSize-headline-1);
  color: hsla(93.44, 48.41%, 49.41%, 1);
}

.headline-2 {
  font-size: var(--fontSize-headline-2);
  line-height: var(--lineHeight-6);
}

.title-1 {
  font-size: var(--fontSize-title-1);
}

.title-2 {
  color: rgb(254, 254, 254);
  font-size: var(--fontSize-title-2);
}

.title-3 {
  font-size: var(--fontSize-title-3);
}

.title-4 {
  font-size: var(--fontSize-title-4);
}

.body-1 {
  font-size: var(--fontSize-body-1);
  line-height: var(--lineHeight-6);
}

.body-2 {
  font-size: var(--fontSize-body-2);
  line-height: var(--lineHeight-4);
}

.body-3 {
  font-size: var(--fontSize-body-3);
}

.body-4 {
  font-size: var(--fontSize-body-4);
}

.label-1 {
  font-size: var(--fontSize-label-1);
}

.label-2 {
  font-size: var(--fontSize-label-2);
}

/* -----------------------------------
       CRITICAL UTILITIES
    ----------------------------------- */
.container {
  padding-inline: 16px;
}

.separator {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-crayola);
  transform: rotate(45deg);
}

.contact-label {
  font-weight: var(--weight-bold);
}

.contact-number {
  color: var(--gold-crayola);
  max-width: max-content;
  margin-inline: auto;
}

.hover-underline {
  position: relative;
  max-width: max-content;
}

.hover-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  border-block: 1px solid var(--gold-crayola);
  transform: scaleX(0.2);
  opacity: 0;
  transition: var(--transition-2);
}

.hover-underline:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
  opacity: 1;
}

.contact-number::after {
  bottom: -5px;
}

.text-center {
  text-align: center;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-subtitle {
  position: relative;
  color: var(--gold-crayola);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-2);
  margin-block-end: 12px;
}

.section-subtitle::after {
  content: url('../images/separator.svg');
  display: block;
  width: 100px;
  margin-inline: auto;
  margin-block-start: 5px;
}

.btn {
  position: relative;
  color: var(--gold-crayola);
  font-size: var(--fontSize-label-2);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-5);
  max-width: max-content;
  border: 2px solid var(--gold-crayola);
  padding: 12px 45px;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  border-radius: var(--radius-circle);
  background-color: var(--gold-crayola);
  transition: var(--transition-2);
  z-index: -1;
}

.btn .text {
  transition: var(--transition-1);
}

.btn .text-2 {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: max-content;
  color: var(--smoky-black-1);
}

.btn:is(:hover, :focus-visible)::before {
  bottom: -50%;
}

.btn:is(:hover, :focus-visible) .text-1 {
  transform: translateY(-40px);
}

.btn:is(:hover, :focus-visible) .text-2 {
  top: 50%;
  transform: translate(-50%, -50%);
}

.btn-secondary {
  background-color: hsla(93.44, 48.41%, 49.41%, 1);
  color: var(--black);
}

.btn-secondary::before {
  background-color: var(--smoky-black-1);
}

.btn-secondary .text-2 {
  color: var(--white);
}

.has-before,
.has-after {
  position: relative;
  z-index: 1;
}

.has-before::before,
.has-after::after {
  content: "";
  position: absolute;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
  z-index: 1;
}

.bg-black-10 {
  background-color: var(--smoky-black-2);
}

.grid-list {
  display: grid;
  gap: 40px;
}

/* -----------------------------------
       PRELOAD
    ----------------------------------- */
.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f8a19d;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-2);
}

.preload>* {
  transition: var(--transition-1);
}

.preload.loaded>* {
  opacity: 0;
}

.preload.loaded {
  transition-delay: 250ms;
  transform: translateY(100%);
  pointer-events: none;
}

.loader-gif {
  width: min(450px, 80vw);
  height: min(450px, 80vw);
  position: relative;
  object-fit: contain;
}

.progress-bar {
  width: min(400px, 90vw);
  height: 15px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .loader-gif {
    width: 80vw;
    height: 80vw;
  }

  .progress-bar {
    width: 90vw;
    height: 12px;
  }
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: white;
  animation: progress 2s ease-in-out forwards;
}

@keyframes progress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* -----------------------------------
       TOPBAR (your build)
    ----------------------------------- */
.topbar {
  display: none;
}

/* -----------------------------------
       HEADER / NAV
    ----------------------------------- */
.header .btn {
  display: block;
  margin-inline-start: auto;
  margin-inline-end: 15px;
}

/* Improved header with smoother scroll transitions */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #d6bd9f;
  padding-block: 40px;
  z-index: 4;
  border-block-end: 1px solid rgba(0, 0, 0, 0.1);
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s ease;
}

.header.active {
  padding-block: 9px;
  background-color: #d6bd9f;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 16px 16px;
}

.header .container {
  padding-inline: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Animated hamburger menu */
.nav-open-btn {
  padding: 12px;
  padding-inline-end: 0;
  z-index: 100;
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.nav-open-btn .line {
  width: 28px;
  height: 2px;
  background-color: var(--white);
  margin-block: 3px;
  transform-origin: center;
  transition: var(--nav-transition);
  border-radius: 2px;
}

/* Hamburger to X animation */
.nav-open-btn.is-active .line-1 {
  transform: rotate(45deg) translateY(6px) translateX(4px);
}

.nav-open-btn.is-active .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-open-btn.is-active .line-3 {
  transform: rotate(-45deg) translateY(-6px) translateX(4px);
}

/* Subtle hover effect on hamburger */
.nav-open-btn:hover .line {
  background-color: var(--gold-crayola, #d4a574);
}

.nav-open-btn:focus-visible {
  outline: 2px solid var(--gold-crayola, #d4a574);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Mobile nav drawer with smooth animation - REDESIGNED */
.navbar {
  position: fixed;
  background: #f5f0e8;
  top: 0;
  left: -360px;
  bottom: 0;
  max-width: 360px;
  width: 100%;
  padding-inline: 24px;
  padding-block-end: 24px;
  overflow: hidden;
  visibility: hidden;
  z-index: 2;
  transition: transform var(--nav-transition), visibility 0s 0.35s;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

/* Scrollable content area within navbar */
.navbar-scroll-content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.navbar.active {
  visibility: visible;
  transform: translateX(360px);
  transition: transform var(--nav-transition), visibility 0s 0s;
}

/* Staggered animation for nav items */
.navbar.active .navbar-item {
  animation: slideInLeft 0.4s ease forwards;
  opacity: 0;
}

.navbar.active .navbar-item:nth-child(1) { animation-delay: 0.1s; }
.navbar.active .navbar-item:nth-child(2) { animation-delay: 0.15s; }
.navbar.active .navbar-item:nth-child(3) { animation-delay: 0.2s; }
.navbar.active .navbar-item:nth-child(4) { animation-delay: 0.25s; }
.navbar.active .navbar-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.navbar .close-btn {
  color: #4a4a68;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-inline-start: auto;
  margin-block: 20px 24px;
  padding: 0;
  transition: all 0.25s ease;
}

.navbar .close-btn ion-icon {
  --ionicon-stroke-width: 48px;
  font-size: 20px;
}

.navbar .close-btn:is(:hover, :focus-visible) {
  color: #1a1a2e;
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.navbar .logo {
  max-width: max-content;
  margin-inline: auto;
  margin-block-end: 32px;
  padding-block: 8px;
}

.navbar-list {
  border-block-end: 1px solid rgba(0, 0, 0, 0.08);
  margin-block-end: 16px;
  flex-shrink: 0;
  padding-block: 8px;
}

/* Make navbar scroll content area */
.navbar .logo,
.navbar .close-btn {
  flex-shrink: 0;
}

.navbar-item {
  border-block-start: none;
  margin-block: 4px;
}

.navbar-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  margin-block: 2px;
  max-width: unset;
  border-radius: 12px;
  color: #4a4a68;
  background: transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.navbar-link::after {
  display: none;
}

.navbar-link .span {
  transition: all 0.25s ease;
}

.navbar-link:is(:hover, :focus-visible) {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a2e;
}

.navbar-link:is(:hover, :focus-visible) .span {
  color: #1a1a2e;
  transform: translateX(8px);
}

/* Mobile nav active state */
.navbar-link.active {
  background: rgba(212, 165, 116, 0.2);
  border: 1px solid rgba(212, 165, 116, 0.5);
  color: #1a1a2e;
}

.navbar-link.active .span {
  color: #b89b5e;
  font-weight: 600;
  transform: none;
}

.navbar-link .separator {
  display: none;
}

.navbar-title {
  margin-block-end: 15px;
}

.navbar-text {
  margin-block: 10px;
}

.navbar .body-4 {
  color: var(--quick-silver);
}

.sidebar-link {
  transition: var(--transition-1);
}

.sidebar-link:is(:hover, :focus-visible) {
  color: var(--gold-crayola);
}

.navbar .text-center .separator {
  margin-block: 30px;
  margin-inline: auto;
}

.navbar .contact-label {
  margin-block-end: 10px;
}

.navbar::-webkit-scrollbar-thumb {
  background-color: var(--white-alpha-10);
}

/* Overlay - solid background */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nav-transition);
  z-index: 1;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Touch ripple effect for nav links */
.navbar-link {
  position: relative;
  overflow: hidden;
}

.navbar-link .ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
}

[data-theme="dark"] .navbar-link .ripple {
  background-color: rgba(255, 255, 255, 0.3);
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.header .btn {
  display: none;
}

/* TOPBAR (the fixed bar you use) */
.topbar {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 10px;
  background-color: #b89b5e;
  border-block-end: 1px solid rgba(0, 0, 0, 0.15);
  z-index: 4;
  transition: var(--transition-1);
}

.topbar .span,
.topbar-item,
.topbar-item ion-icon {
  color: #fff;
}

.topbar:has(~ .header.active) {
  transform: translateY(-100%);
}

.topbar-item:not(.link),
.topbar .separator {
  display: none;
}

.topbar .container,
.topbar-item {
  display: flex;
  align-items: center;
}

.topbar .container {
  justify-content: center;
  gap: 30px;
}

.topbar-item {
  gap: 6px;
}

.topbar-item ion-icon {
  --ionicon-stroke-width: 60px;
}

.topbar-item .span {
  font-size: var(--fontSize-label-1);
}

.topbar .link {
  transition: var(--transition-1);
}

.topbar .link:is(:hover, :focus-visible) {
  color: var(--gold-crayola);
}

/* Topbar mobile responsiveness - stack items on small screens */
@media (max-width: 600px) {
  .topbar .container {
    flex-wrap: wrap;
    gap: 8px 15px;
    padding-inline: 10px;
  }
  
  .topbar-item .span {
    font-size: 11px;
  }
  
  .topbar {
    padding-block: 8px;
  }
  
  /* Hide less important items on very small screens */
  .topbar .item-2 {
    display: none;
  }
}

@media (max-width: 400px) {
  .topbar .container {
    gap: 6px 10px;
  }
  
  .topbar-item .span {
    font-size: 10px;
  }
  
  /* Hide address on very small screens */
  .topbar .item-1 {
    display: none;
  }
}

/* -----------------------------------
       HERO
    ----------------------------------- */
#main-hero.hero {
  width: 100%;
  margin-top: -48px;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: revert;
}

/* Dark overlay using ::before so video can show through */
#main-hero.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

#main-hero .back-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #1a1a2e;
}

#main-hero .hero-content {
  text-align: center;
  z-index: 2;
  line-height: 1.2;
}

#main-hero .hero-content h1 {
  font-size: 80px;
  color: transparent;
  margin-bottom: 20px;
  -webkit-text-stroke: 2px #fff;
  font-weight: 600;
  transition: 0.5s;
}

#main-hero .hero-content h1:hover {
  color: #fff;
  -webkit-text-stroke: 0px;
}

@media (max-width: 600px) {
  #main-hero .hero-content h1 {
    font-size: 46px;
  }
}

#main-hero .hero-content a {
  text-decoration: none;
  display: inline-block;
  color: #fff;
  font-size: 24px;
  border: 2px solid #fff;
  padding: 14px 70px;
  border-radius: 50px;
  transition: 0.5s;
}

#main-hero .hero-content a:hover {
  transform: scale(1.1);
  color: #fff;
  -webkit-text-stroke: 0px;
}

@media (max-width: 768px) {
  #main-hero .hero-content a {
    padding: 10px 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #main-hero .hero-content a {
    padding: 8px 25px;
    font-size: 14px;
  }
}

/* -----------------------------------
       INTRO
    ----------------------------------- */
.intro-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #f4f4f4;
}

.intro-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 80px;
  align-items: center;
}

.intro-text {
  flex: 1;
  color: #333;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  position: relative;
}

.intro-line {
  position: absolute;
  top: 0;
  left: -20px;
  height: 100%;
  width: 5px;
  background-color: #AF916D;
  border-radius: 5px;
}

.intro-title {
  font-size: 36px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
}

.intro-description {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 30px;
}

.intro-image {
  flex: 1;
  max-width: 500px;
}

.intro-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .intro-image {
    margin-bottom: 30px;
  }

  .intro-title {
    font-size: 30px;
  }

  .intro-description {
    font-size: 16px;
  }
}

/* -----------------------------------
       MindBalance - Feature Slider (FULL SEGMENT)
    ----------------------------------- */
.mb-actionbox {
  background: #ffffff;
  padding: 70px 16px;
  position: relative;
  z-index: 1;
}

.mb-actionbox button {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

.mb-actionbox__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.mb-actionbox__feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}

.mb-actionbox__media {
  border-radius: 22px;
  overflow: hidden;
  background: #f3f5f7;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.mb-actionbox__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: opacity 220ms ease;
  will-change: opacity;
}

.mb-actionbox__content {
  padding: 6px 4px;
}

.mb-actionbox__kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2b5aa6;
  margin-bottom: 12px;
}

.mb-actionbox__title {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  color: #0e1b2a;
  margin-bottom: 14px;
}

.mb-actionbox__desc {
  font-size: 18px;
  line-height: 1.6;
  color: #2f3b4a;
  max-width: 52ch;
  margin-bottom: 22px;
}

.mb-actionbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: #f2a33b;
  color: #0e1b2a;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  box-shadow: 0 10px 24px rgba(242, 163, 59, 0.25);
  pointer-events: auto !important;
  position: relative;
  z-index: 11;
}

.mb-actionbox__btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.mb-actionbox__btn:active {
  transform: translateY(0);
}

.mb-actionbox__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 12;
}

.mb-card {
  text-align: left;
  background: #ffffff;
  border: 1.5px solid #d9e1ee;
  border-radius: 18px;
  padding: 18px 18px 20px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
  min-height: 110px;
  position: relative;
  z-index: 13;
  pointer-events: auto !important;
}

.mb-card__kicker {
  font-size: 13px;
  font-weight: 700;
  color: #2b5aa6;
  margin-bottom: 10px;
}

.mb-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #0e1b2a;
}

.mb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: #bcd0f1;
}

.mb-card.is-active {
  background: #fbf4e8;
  border-color: #2b5aa6;
  box-shadow: 0 14px 34px rgba(43, 90, 166, 0.18);
}

.mb-card.is-soft:not(.is-active) {
  background: #ffffff;
  border: 1.5px solid #d9e1ee;
  box-shadow: none;
}

/* Smooth transitions (JS toggles .is-fading on .mb-actionbox__feature) */
.mb-actionbox__content,
.mb-actionbox__media {
  will-change: opacity, transform;
  transition: opacity 220ms ease, transform 220ms ease;
}

.mb-actionbox__feature.is-fading .mb-actionbox__content,
.mb-actionbox__feature.is-fading .mb-actionbox__media {
  opacity: 0;
  transform: translateY(6px);
}

@media (max-width: 980px) {
  .mb-actionbox__feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mb-actionbox__cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .mb-actionbox {
    padding: 54px 14px;
  }

  .mb-actionbox__cards {
    grid-template-columns: 1fr;
  }

  .mb-actionbox__desc {
    font-size: 16px;
  }
}

/* -----------------------------------
       TIMELINE (your section)
    ----------------------------------- */
.our-story-section {
  padding: 60px 20px;
  background-color: #f4f4f4;
}

.our-story-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.our-story-title {
  font-size: 36px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 40px;
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.timeline {
  display: flex;
  width: 480%;
  animation: scroll-timeline 50s linear infinite;
}

.timeline-inner {
  display: flex;
  width: 100%;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 20%;
  padding: 20px;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.timeline-icon ion-icon {
  font-size: 40px;
  color: #AF916D;
}

.timeline-item::after {
  content: none;
}

@keyframes scroll-timeline {
  0% {
    transform: translateX(0);
  }

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

@media (max-width: 768px) {
  .timeline {
    flex-direction: row;
    align-items: center;
    width: 2100%;
    animation: scroll-timeline 50s linear infinite;
  }

  .timeline-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .timeline-item {
    width: 100vw;
    flex-shrink: 0;
    padding: 15px;
    margin-right: 10px;
  }

  .timeline-wrapper {
    overflow: hidden;
    max-width: 100%;
  }

  .timeline-item {
    scroll-snap-align: center;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  .timeline-date {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
    word-wrap: break-word;
  }

  .timeline-content {
    display: block;
    max-width: 90%;
    word-wrap: break-word;
  }
}

/* -----------------------------------
       Resource Library (rl)
    ----------------------------------- */
.rl {
  background: #ffffff;
  padding: 60px 0 90px;
  padding-top: 180px;
}

.rl-container {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
}

.rl-header {
  padding-bottom: 16px;
}

.rl-title {
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111111;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.rl-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  max-width: 110ch;
  margin: 0 0 10px;
}

.rl-support {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #111111;
}

.rl-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.rl-search {
  position: relative;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.rl-searchInput {
  width: 100%;
  height: 52px;
  padding: 0 56px 0 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.rl-searchInput:hover {
  border-color: #d1d5db;
}

.rl-searchInput:focus {
  outline: none;
  border-color: #f2c200;
  box-shadow: 0 0 0 4px rgba(242, 194, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fffef5;
}

.rl-searchInput::placeholder {
  color: #9ca3af;
}

.rl-clearSearch {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-18%);
  height: 38px;
  width: 42px;
  border-radius: 10px;
  border: 0;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.rl-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  flex-wrap: wrap;
}

.rl-chipList {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rl-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #eeeeee;
  color: #111111;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.rl-chip span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  line-height: 18px;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.rl-clearAll {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
  color: #111111;
}

.rl-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  padding-top: 26px;
  align-items: start;
}

.rl-sidebar {
  position: sticky;
  top: 20px;
}

.rl-filterBlock {
  margin-bottom: 22px;
}

.rl-filterTitle {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111111;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #111111;
}

.rl-filterList {
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
  padding-right: 8px;
}

.rl-filterBtn {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 2px;
  font-size: 14px;
  color: #111111;
  cursor: pointer;
}

.rl-filterBtn:hover {
  text-decoration: underline;
}

.rl-meta {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 12px;
}

.rl-results {
  max-height: 800px;
  overflow-y: auto;
  padding-right: 15px;
}

.rl-cards {
  display: grid;
  gap: 20px;
}

.rl-card {
  border-left: 4px solid #f2c200;
  padding: 20px 24px;
  background: #fafafa;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: rl-card-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.rl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(242, 194, 0, 0.15);
  border-color: #d4aa00;
}

@keyframes rl-card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rl-card:nth-child(1) { animation-delay: 0.05s; }
.rl-card:nth-child(2) { animation-delay: 0.1s; }
.rl-card:nth-child(3) { animation-delay: 0.15s; }
.rl-card:nth-child(4) { animation-delay: 0.2s; }
.rl-card:nth-child(5) { animation-delay: 0.25s; }
.rl-card:nth-child(6) { animation-delay: 0.3s; }
.rl-card:nth-child(7) { animation-delay: 0.35s; }
.rl-card:nth-child(8) { animation-delay: 0.4s; }
.rl-card:nth-child(n+9) { animation-delay: 0.45s; }

.rl-cardSmall {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rl-cardSmall::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #f2c200;
  border-radius: 50%;
}

.rl-cardTitle {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: #111111;
  transition: color 0.2s ease;
}

.rl-card:hover .rl-cardTitle {
  color: #d4aa00;
}

.rl-cardBody {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  max-width: 110ch;
  margin: 12px 0 16px;
}

.rl-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.rl-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f2c200 0%, #e6b800 100%);
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(242, 194, 0, 0.3);
}

.rl-tag:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(242, 194, 0, 0.4);
}

.rl-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.rl-visitBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-width: 110px;
  padding: 0 20px;
  background: linear-gradient(135deg, #111111 0%, #2d2d2d 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.rl-visitBtn::after {
  content: "\2192";
  font-size: 14px;
  transition: transform 0.3s ease;
}

.rl-visitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #2d2d2d 0%, #111111 100%);
}

.rl-visitBtn:hover::after {
  transform: translateX(4px);
}

.rl-visitBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.rl-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: rl-skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes rl-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.rl-skeleton-card {
  padding: 20px 24px;
  border-left: 4px solid #e0e0e0;
  background: #fafafa;
  border-radius: 0 12px 12px 0;
}

.rl-skeleton-title {
  height: 28px;
  width: 60%;
  margin-bottom: 12px;
}

.rl-skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: 8px;
}

.rl-skeleton-text:last-child {
  width: 75%;
}

.rl-skeleton-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.rl-skeleton-tag {
  height: 28px;
  width: 70px;
  border-radius: 20px;
}

.rl-results::-webkit-scrollbar {
  width: 6px;
}

.rl-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.rl-results::-webkit-scrollbar-thumb {
  background: #f2c200;
  border-radius: 10px;
}

.rl-results::-webkit-scrollbar-thumb:hover {
  background: #d4aa00;
}

@media (max-width: 980px) {
  .rl-grid {
    grid-template-columns: 1fr;
  }

  .rl-sidebar {
    position: static;
  }

  .rl-filterList {
    max-height: 220px;
  }

  .rl-cardTitle {
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .rl {
    padding: 48px 0 70px;
  }

  .rl-title {
    font-size: 38px;
  }

  .rl-searchInput {
    height: 50px;
  }
}

/* -----------------------------------
       Resource Library - Spotlight Section
    ----------------------------------- */
.rl-spotlight {
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
  border-radius: 16px;
  border: 1px solid rgba(242, 194, 0, 0.2);
}

.rl-spotlight__header {
  text-align: center;
  margin-bottom: 24px;
}

.rl-spotlight__title {
  font-size: 24px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rl-spotlight__title::before {
  content: "⭐";
}

.rl-spotlight__subtitle {
  color: #666;
  font-size: 14px;
}

.rl-spotlight__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rl-spotlight-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 5px solid #f2c200;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rl-spotlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.rl-spotlight-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f2c200, #e5a800);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rl-spotlight-card__provider {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.rl-spotlight-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.3;
}

.rl-spotlight-card__desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.rl-spotlight-card__actions {
  display: flex;
  gap: 10px;
}

.rl-spotlight-card__btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rl-spotlight-card__btn--primary {
  background: linear-gradient(135deg, #f2c200, #e5a800);
  color: #fff;
}

.rl-spotlight-card__btn--primary:hover {
  background: linear-gradient(135deg, #e5a800, #d49600);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .rl-spotlight__cards {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------
       Resource Library - Local Search
    ----------------------------------- */
.rl-local-search {
  margin-bottom: 30px;
  padding: 24px 30px;
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
  border-radius: 16px;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.rl-local-search__header {
  text-align: center;
  margin-bottom: 20px;
}

.rl-local-search__title {
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rl-local-search__title i {
  color: #4CAF50;
}

.rl-local-search__subtitle {
  color: #666;
  font-size: 14px;
}

.rl-local-search__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rl-local-search__input-group {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.rl-local-search__input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.2s ease;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 600;
}

.rl-local-search__input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.rl-local-search__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rl-local-search__btn:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
}

.rl-local-search__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rl-local-search__powered {
  font-size: 12px;
  color: #888;
}

.rl-local-search__powered a {
  color: #4CAF50;
  text-decoration: none;
}

.rl-local-search__powered a:hover {
  text-decoration: underline;
}

.rl-local-search__results {
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.rl-local-search__results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.rl-local-search__results-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0;
}

.rl-local-search__close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color 0.2s;
}

.rl-local-search__close:hover {
  color: #333;
}

.rl-local-search__results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rl-local-result {
  padding: 16px;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid #4CAF50;
  transition: background 0.2s;
}

.rl-local-result:hover {
  background: #f0f0f0;
}

.rl-local-result__name {
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 6px;
}

.rl-local-result__address {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.rl-local-result__phone {
  font-size: 13px;
  color: #4CAF50;
  font-weight: 500;
}

.rl-local-result__phone a {
  color: inherit;
  text-decoration: none;
}

.rl-local-result__phone a:hover {
  text-decoration: underline;
}

.rl-local-result__distance {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.rl-local-search__view-more {
  margin-top: 16px;
  text-align: center;
}

.rl-local-search__view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4CAF50;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.rl-local-search__view-more-link:hover {
  color: #45a049;
  text-decoration: underline;
}

.rl-local-search__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  color: #666;
}

.rl-local-search__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #eee;
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: rl-spin 0.8s linear infinite;
}

@keyframes rl-spin {
  to { transform: rotate(360deg); }
}

.rl-local-search__error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #ffebee;
  border-radius: 8px;
  color: #c62828;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  .rl-local-search__input-group {
    flex-direction: column;
  }
  
  .rl-local-search__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode for local search */
body.dark-theme .rl-local-search {
  background: linear-gradient(135deg, #1a2a1a 0%, #1e1e2e 100%);
  border-color: rgba(76, 175, 80, 0.3);
}

body.dark-theme .rl-local-search__title {
  color: #fff;
}

body.dark-theme .rl-local-search__subtitle {
  color: #aaa;
}

body.dark-theme .rl-local-search__input {
  background: #2a2a3a;
  border-color: #444;
  color: #fff;
}

body.dark-theme .rl-local-search__input:focus {
  border-color: #4CAF50;
}

body.dark-theme .rl-local-search__results {
  background: #2a2a3a;
}

body.dark-theme .rl-local-search__results-header {
  border-bottom-color: #444;
}

body.dark-theme .rl-local-search__results-header h4 {
  color: #fff;
}

body.dark-theme .rl-local-result {
  background: #1e1e2e;
}

body.dark-theme .rl-local-result:hover {
  background: #252535;
}

body.dark-theme .rl-local-result__name {
  color: #fff;
}

body.dark-theme .rl-local-result__address {
  color: #aaa;
}

body.dark-theme .rl-local-search__error {
  background: #3a1a1a;
}

/* -----------------------------------
       Resource Library - Suggest Resource
    ----------------------------------- */
.rl-suggest-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.rl-suggest-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.rl-suggest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.rl-suggest-btn ion-icon {
  font-size: 20px;
}

/* Suggest Modal */
.suggest-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.suggest-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.suggest-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.suggest-modal__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.suggest-modal.is-active .suggest-modal__content {
  transform: translateY(0);
}

.suggest-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f0f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggest-modal__close:hover {
  background: #e0e0e0;
}

.suggest-modal__close ion-icon {
  font-size: 24px;
  color: #666;
}

.suggest-modal__title {
  font-size: 28px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.suggest-modal__desc {
  color: #666;
  margin-bottom: 24px;
}

.suggest-form__group {
  margin-bottom: 20px;
}

.suggest-form__group label {
  display: block;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
  font-size: 14px;
}

.suggest-form__group input,
.suggest-form__group textarea,
.suggest-form__group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.suggest-form__group input:focus,
.suggest-form__group textarea:focus,
.suggest-form__group select:focus {
  outline: none;
  border-color: #f2c200;
  box-shadow: 0 0 0 4px rgba(242, 194, 0, 0.1);
}

.suggest-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .suggest-form__row {
    grid-template-columns: 1fr;
  }
}

.suggest-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.suggest-form__cancel {
  flex: 1;
  padding: 14px 20px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggest-form__cancel:hover {
  background: #e0e0e0;
}

.suggest-form__submit {
  flex: 2;
  padding: 14px 20px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggest-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.suggest-modal__success {
  text-align: center;
  padding: 20px;
}

.suggest-modal__success ion-icon {
  font-size: 80px;
  color: #4CAF50;
  margin-bottom: 16px;
}

.suggest-modal__success h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.suggest-modal__success p {
  color: #666;
  margin-bottom: 24px;
}

/* -----------------------------------
       Resource Library - Share Buttons
    ----------------------------------- */
.rl-share-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.rl-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.rl-share-btn--copy {
  background: #f0f0f0;
  color: #666;
}

.rl-share-btn--copy:hover {
  background: #e0e0e0;
}

.rl-share-btn--copy.is-copied {
  background: #4CAF50;
  color: #fff;
}

.rl-share-btn--twitter {
  background: #1DA1F2;
  color: #fff;
}

.rl-share-btn--twitter:hover {
  background: #0d8bd9;
}

.rl-share-btn--facebook {
  background: #4267B2;
  color: #fff;
}

.rl-share-btn--facebook:hover {
  background: #365899;
}

/* -----------------------------------
       Resource Library - Quick Info
    ----------------------------------- */
.rl-quickinfo {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e0e0e0;
  display: none;
}

.rl-quickinfo.is-expanded {
  display: block;
}

.rl-quickinfo__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.rl-quickinfo__item ion-icon {
  color: #f2c200;
  font-size: 16px;
}

.rl-quickinfo-toggle {
  background: none;
  border: none;
  color: #f2c200;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  margin-top: 8px;
}

.rl-quickinfo-toggle:hover {
  text-decoration: underline;
}

/* Updated rl-actions to include share */
.rl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* -----------------------------------
       Dark Mode - Resource Library Enhancements
    ----------------------------------- */
[data-theme="dark"] .rl-spotlight {
  background: linear-gradient(135deg, #2d2b3d 0%, #1e1c2e 100%);
  border-color: rgba(242, 194, 0, 0.3);
}

[data-theme="dark"] .rl-spotlight__title {
  color: #fff;
}

[data-theme="dark"] .rl-spotlight__subtitle {
  color: #aaa;
}

[data-theme="dark"] .rl-spotlight-card {
  background: #2d2b3d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .rl-spotlight-card__title {
  color: #fff;
}

[data-theme="dark"] .rl-spotlight-card__desc {
  color: #bbb;
}

[data-theme="dark"] .rl-spotlight-card__provider {
  color: #999;
}

[data-theme="dark"] .suggest-modal__content {
  background: #2d2b3d;
}

[data-theme="dark"] .suggest-modal__title {
  color: #fff;
}

[data-theme="dark"] .suggest-modal__desc {
  color: #aaa;
}

[data-theme="dark"] .suggest-form__group label {
  color: #fff;
}

[data-theme="dark"] .suggest-form__group input,
[data-theme="dark"] .suggest-form__group textarea,
[data-theme="dark"] .suggest-form__group select {
  background: #1e1c2e;
  border-color: #3d3a50;
  color: #fff;
}

[data-theme="dark"] .suggest-form__cancel {
  background: #3d3a50;
  color: #ddd;
}

[data-theme="dark"] .suggest-modal__close {
  background: #3d3a50;
}

[data-theme="dark"] .suggest-modal__close ion-icon {
  color: #ddd;
}

[data-theme="dark"] .rl-share-btn--copy {
  background: #3d3a50;
  color: #ddd;
}

[data-theme="dark"] .rl-quickinfo {
  border-color: #3d3a50;
}

[data-theme="dark"] .rl-quickinfo__item {
  color: #bbb;
}

/* -----------------------------------
       Testimonials (auto scrolling 3-column)
    ----------------------------------- */
.mb-testimonials {
  background: #f1f1f1;
  padding: 80px 16px;
  position: relative;
  z-index: 2;
}

.mb-testimonials__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.mb-testimonials__header {
  text-align: center;
  margin-bottom: 28px;
}

.mb-testimonials__title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0e1b2a;
}

.mb-testimonials__rule {
  width: 90px;
  height: 3px;
  background: rgba(14, 27, 42, 0.55);
  margin: 14px auto 0;
  border-radius: 999px;
}

.mb-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 38px;
}

.mb-testimonials__col {
  position: relative;
}

.mb-testimonials__viewport {
  height: 520px;
  overflow: hidden;
  position: relative;
}

.mb-testimonials__mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to bottom,
      rgba(238, 243, 246, 1) 0%,
      rgba(238, 243, 246, 0) 14%,
      rgba(238, 243, 246, 0) 86%,
      rgba(238, 243, 246, 1) 100%);
}

.mb-testimonials__track {
  display: grid;
  gap: 22px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.mb-tcard {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.mb-tcard__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mb-tcard__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.mb-tcard__name {
  font-size: 16px;
  font-weight: 900;
  color: #0e1b2a;
  line-height: 1.15;
}

.mb-tcard__role {
  font-size: 13px;
  font-weight: 600;
  color: rgba(14, 27, 42, 0.65);
  line-height: 1.15;
  margin-top: 2px;
}

.mb-tcard__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(14, 27, 42, 0.82);
}

.mb-tcard:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease;
}

.mb-testimonials__col[data-direction="up"] .mb-testimonials__track {
  animation: mb-tm-up var(--mb-tm-duration, 18s) linear infinite;
}

.mb-testimonials__col[data-direction="down"] .mb-testimonials__track {
  animation: mb-tm-down var(--mb-tm-duration, 18s) linear infinite;
}

@keyframes mb-tm-up {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, calc(-1 * var(--mb-tm-distance, 300px)), 0);
  }
}

@keyframes mb-tm-down {
  from {
    transform: translate3d(0, calc(-1 * var(--mb-tm-distance, 300px)), 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.mb-testimonials__col:hover .mb-testimonials__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .mb-testimonials__track {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .mb-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mb-testimonials__viewport {
    height: 420px;
  }
}

/* -----------------------------------
       Footer
    ----------------------------------- */
.mb-footer {
  margin-top: 80px;
  color: rgb(244, 244, 244, 0.85);
}

.mb-footer__top {
  background: #d6bd9f;
  padding: 56px 16px;
}

.mb-footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.mb-footer__top .mb-footer__wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.mb-footer__brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.mb-footer__heading {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.mb-footer__subheading {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 18px;
  margin-bottom: 10px;
}

.mb-footer__text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 14px;
}

.mb-footer__list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.mb-footer__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 180ms ease, transform 180ms ease;
  max-width: max-content;
}

.mb-footer__link:hover {
  color: #f2a33b;
  transform: translateX(2px);
}

.mb-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mb-footer__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mb-footer__tag:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 163, 59, 0.55);
  color: #fff;
}

.mb-footer__cta {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.mb-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f2a33b;
  color: #111;
  font-weight: 900;
  font-size: 13px;
  transition: transform 160ms ease, filter 160ms ease;
}

.mb-footer__btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.mb-footer__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mb-footer__btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.30);
}

.mb-footer__social {
  display: flex;
  gap: 10px;
}

.mb-footer__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mb-footer__icon ion-icon {
  font-size: 18px;
}

.mb-footer__icon:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 163, 59, 0.55);
  color: #fff;
}

.mb-footer__bottom {
  background: #af916d;
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mb-footer__bottomwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mb-footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.60);
}

.mb-footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.mb-footer__legal-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.60);
  transition: color 160ms ease;
}

.mb-footer__legal-link:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .mb-footer__top .mb-footer__wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mb-footer__top .mb-footer__wrap {
    grid-template-columns: 1fr;
  }

  .mb-footer__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .mb-footer__btn {
    width: 100%;
  }

  .mb-footer__bottomwrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -----------------------------------
       RESPONSIVE BREAKPOINTS (CLEANED)
    ----------------------------------- */
@media (min-width: 575px) {
  :root {
    --fontSize-body-2: 2rem;
  }

  :is(.service, .about) .section-text {
    max-width: 420px;
    margin-inline: auto;
  }

  .contact-number {
    --fontSize-body-1: 3rem;
  }

  .header {
    top: 51px;
  }

  .header.active {
    top: 0;
  }

  .header .btn {
    display: block;
    margin-inline-start: auto;
  }

  .navbar-list {
    margin-inline: 30px;
  }
}

@media (min-width: 992px) {
  :root {
    --section-space: 100px;
  }

  .topbar-item:not(.link) {
    display: flex;
  }

  .topbar .item-2 {
    margin-inline-end: auto;
  }
}

@media (min-width: 1200px) {
  :root {
    --fontSize-title-2: 2.5rem;
  }

  .container,
  :is(.service, .event) .container {
    max-width: 1600px;
    width: 100%;
    margin-inline: auto;
  }

  .topbar .container {
    max-width: unset;
  }

  .topbar .separator {
    display: block;
  }

  .nav-open-btn,
  .header .overlay {
    display: none;
  }

  /* Hide nav drawer elements but keep navbar-actions visible on desktop */
  .navbar-scroll-content .logo,
  .navbar-scroll-content .navbar-drawer-footer,
  .nav-close-btn,
  .navbar .close-btn {
    display: none;
  }

  .header .container {
    max-width: unset;
    overflow: visible;
  }

  /* Ensure header allows dropdowns to overflow */
  .header {
    overflow: visible;
  }

  .navbar,
  .navbar.active,
  .navbar-list {
    all: unset;
  }

  .navbar,
  .navbar.active {
    margin-inline: auto 20px;
    display: block;
    position: static;
    visibility: visible;
    overflow: visible;
  }

  .navbar-scroll-content {
    display: contents;
    overflow: visible;
  }

  .navbar-scroll-content .logo {
    display: none;
  }

  .navbar-list {
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .navbar-item {
    border-block-start: none;
  }

  .navbar .separator {
    display: none;
  }

  .navbar-link:is(:hover, :focus-visible, .active) .span {
    transform: unset;
  }

  .navbar-link {
    font-weight: var(--weight-bold);
    letter-spacing: var(--letterSpacing-1);
    font-size: 13px;
  }

  .navbar-link::after {
    display: block;
  }

  .navbar-link.active::after {
    transform: scaleX(1);
    opacity: 1;
  }

  .header .btn {
    margin-inline-start: 0;
  }
}

@media (min-width: 1400px) {
  .navbar {
    margin-inline: auto;
  }
}





/* =========================
   NAVIGATION POLISH – ACTIVE STATE
========================= */

/* Ensure navbar items are vertically centered */
.navbar-list {
  align-items: center;
}

/* Reset old underline behavior for active links */
.navbar-link::after {
  display: none !important;
}

/* Base nav link alignment with improved underline effect */
/* Desktop-only overrides - mobile uses different padding from earlier rules */
@media (min-width: 1200px) {
  .navbar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background-color var(--nav-transition-fast), color var(--nav-transition-fast);
    position: relative;
  }
}

/* Sliding underline effect for desktop */
@media (min-width: 1200px) {
  .navbar-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold-crayola, #d4a574);
    transition: width var(--nav-transition), left var(--nav-transition);
    border-radius: 2px;
  }
  
  .navbar-link:hover::before,
  .navbar-link:focus-visible::before {
    width: 70%;
    left: 15%;
  }
  
  .navbar-link.active::before {
    width: 80%;
    left: 10%;
  }
}

/* ACTIVE NAV ITEM */
.navbar-link.active {
  background-color: #fefdfb;
  color: #000000 !important;
  font-weight: 700;
}

/* Active text span */
.navbar-link.active .span {
  color: #000000 !important;
  transform: none !important;
}

/* Hover state (non-active) */
.navbar-link:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Improved focus states for accessibility */
.navbar-link:focus-visible {
  outline: 2px solid var(--gold-crayola, #d4a574);
  outline-offset: 2px;
}

/* Prevent separator from shifting layout */
.navbar-link .separator {
  display: none !important;
}



@media (max-width: 1024px) {

  /* 1) SOLID navbar background (no glass/blur) */
  .navbar {
    background: #f5f0e8 !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Dark mode: solid dark background */
  [data-theme="dark"] .navbar {
    background: #2d2b3d !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* 2) Solid overlay without blur */
  .overlay.active {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 3) HIDE the top-right hamburger/trigger while the nav is open */
  body.nav-active .nav-open-btn,
  body.nav-active .nav-toggler,
  body.nav-active .menu-btn,
  body.nav-active .hamburger {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  /* If your hamburger is inside header, keep header visible but hide the button */
  body.nav-active .header .nav-open-btn,
  body.nav-active .header .nav-toggler {
    display: none !important;
  }

  /* 4) Add a nice “staggered” entrance for menu items */
  .navbar-list .navbar-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  /* When nav is active, items animate in */
  body.nav-active .navbar.active .navbar-item {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger delays (up to 8 items; add more lines if you add more menu links) */
  body.nav-active .navbar.active .navbar-item:nth-child(1) {
    transition-delay: 60ms;
  }

  body.nav-active .navbar.active .navbar-item:nth-child(2) {
    transition-delay: 110ms;
  }

  body.nav-active .navbar.active .navbar-item:nth-child(3) {
    transition-delay: 160ms;
  }

  body.nav-active .navbar.active .navbar-item:nth-child(4) {
    transition-delay: 210ms;
  }

  body.nav-active .navbar.active .navbar-item:nth-child(5) {
    transition-delay: 260ms;
  }

  body.nav-active .navbar.active .navbar-item:nth-child(6) {
    transition-delay: 310ms;
  }

  body.nav-active .navbar.active .navbar-item:nth-child(7) {
    transition-delay: 360ms;
  }

  body.nav-active .navbar.active .navbar-item:nth-child(8) {
    transition-delay: 410ms;
  }

  /* 5) Add a subtle "shine" hover effect to each link */
  .navbar-link {
    position: relative;
    overflow: hidden;
  }

  .navbar-link::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 60%;
    height: 180%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent);
    transform: rotate(18deg);
    opacity: 0;
    transition: opacity 200ms ease, left 400ms ease;
    pointer-events: none;
  }

  .navbar-link:hover::before {
    opacity: 1;
    left: 120%;
  }

  /* 6) Slightly lighter “pill” buttons */
  .navbar-link {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
  }

  .navbar-link:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
  }

  /* 7) Active item polish: brighter but still classy */
  .navbar-link.active {
    background: rgba(242, 194, 0, 0.22) !important;
    border-color: rgba(242, 194, 0, 0.60) !important;
  }

  /* 8) Make close button match the lighter glass */
  .navbar .close-btn {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
  }
}



@media (max-width:1024px) {

  .navbar.active~.header .nav-open-btn,
  .navbar.active~.header .nav-toggler {
    display: none !important;
  }
}






/* =========================================================
   MindBalance Blog (Mora-inspired layout) – APPEND ONLY
   ========================================================= */

/* Hide the open button while the side nav is open (fix conflict) */
.nav-open-btn.is-hidden,
body.nav-active .nav-open-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Make active nav item look like a rounded-square border + black text (desktop) */
@media (min-width: 1200px) {
  .navbar-link.active .span {
    color: #111 !important;
  }

  .navbar-link.active {
    padding: 8px 14px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(0, 0, 0, 0.45) !important;
    background: rgba(255, 255, 255, 0.55) !important;
  }
}

/* ===== Blog Hero ===== */
.mb-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mb-blogHero {
  padding: 110px 0 34px;
  background: #f4f4f4;
}

.mb-blogHero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.mb-blogHero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(175, 145, 109, 0.18);
  border: 1px solid rgba(175, 145, 109, 0.35);
  color: #111;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 999px;
  width: max-content;
  margin-bottom: 14px;
}

.mb-blogHero__title {
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 12px;
  font-weight: 900;
}

.mb-blogHero__lead {
  font-size: 15px;
  line-height: 1.75;
  color: #1f2937;
  max-width: 70ch;
  margin: 0 0 18px;
}

.mb-blogHero__search {
  position: relative;
  margin: 14px 0 14px;
}

.mb-blogHero__input {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  padding: 0 56px 0 14px;
  font-size: 14px;
  color: #111;
}

.mb-blogHero__searchBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  width: 42px;
  border-radius: 10px;
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.mb-blogHero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mb-chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: #111;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.mb-chip:hover {
  transform: translateY(-1px);
}

.mb-chip.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ===== Ticker strip (numbers) ===== */
.mb-ticker {
  background: rgba(14, 27, 42, 0.96);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mb-ticker__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mb-ticker__num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(242, 163, 59, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #111;
}

.mb-ticker__link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 13px;
}

.mb-ticker__link:hover {
  text-decoration: underline;
}

/* ===== Featured card ===== */
.mb-featureCard {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mb-featureCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.14);
}

.mb-featureCard__imgWrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.mb-featureCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mb-featureCard:hover .mb-featureCard__img {
  transform: scale(1.04);
}

.mb-featureCard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.10), transparent);
}

.mb-featureCard__content {
  padding: 16px 16px 18px;
}

.mb-metaRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 90, 166, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mb-metaDot {
  color: rgba(0, 0, 0, 0.30);
  font-size: 10px;
}

.mb-metaText {
  color: rgba(0, 0, 0, 0.60);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.mb-featureCard__title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 700;
}

.mb-featureCard__title a {
  color: #111;
  transition: color 0.2s ease;
}

.mb-featureCard__title a:hover {
  color: #2b5aa6;
  text-decoration: none;
}

.mb-featureCard__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.72);
  margin: 0 0 14px;
}

.mb-featureCard__subtext,
.mb-postCard__subtext,
.mb-listPost__subtext {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.50);
  margin: 10px 0 12px;
  font-style: normal;
  font-weight: 400;
}

.mb-postHint {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
  margin: 8px 0;
}

.mb-postHint strong {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
}

.mb-featureCard__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: #f2a33b;
  color: #111;
  font-weight: 600;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 163, 59, 0.35);
}

.mb-btn--ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #111;
}

/* ===== Main blog grid ===== */
.mb-blog {
  padding: 26px 24px 80px;
  background: #f4f4f4;
}

.mb-blog>.container,
.mb-blogGrid {
  max-width: 1600px;
  width: 100%;
  margin-inline: auto;
}

.mb-blogGrid {
  display: grid;
  grid-template-columns: 1.65fr 0.95fr;
  gap: 26px;
  align-items: start;
}

@media (min-width: 1800px) {

  .mb-blog>.container,
  .mb-blogGrid {
    max-width: 1700px;
  }
}

@media (max-width: 1200px) {
  .mb-blogGrid {
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .mb-blog {
    padding: 20px 16px 60px;
  }

  .mb-resultsBar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mb-resultsBar__reset {
    width: 100%;
  }
}

/* Results bar */
.mb-resultsBar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
}

.mb-resultsBar__left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mb-resultsBar__count {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.mb-resultsBar__active {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  padding: 4px 10px;
  background: rgba(43, 90, 166, 0.1);
  border-radius: 6px;
}

.mb-resultsBar__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border: 0;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.mb-resultsBar__reset:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Empty state message */
.mb-emptyState {
  display: none;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-align: center;
  color: #555;
  margin-bottom: 16px;
}

.mb-emptyState.is-visible {
  display: block;
}

/* Section headers like Mora */
.mb-sectionHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 10px;
  border-top: 2px solid rgba(242, 194, 0, 0.9);
  margin-top: 6px;
}

.mb-sectionHead__title {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.mb-sectionHead__more {
  font-weight: 600;
  font-size: 13px;
  color: rgba(43, 90, 166, 0.95);
  transition: color 0.2s ease;
}

.mb-sectionHead__more:hover {
  color: #1d4a8a;
  text-decoration: none;
}

/* 2-up cards */
.mb-2up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.mb-postCard {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mb-postCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mb-postCard__imgWrap {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.mb-postCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mb-postCard:hover .mb-postCard__img {
  transform: scale(1.06);
}

.mb-postCard__pill {
  position: absolute;
  top: 12px;
  left: 12px;
}

.mb-postCard__body {
  padding: 16px;
}

.mb-postCard__title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.mb-postCard__title a {
  color: #111;
  transition: color 0.2s ease;
}

.mb-postCard__title a:hover {
  color: #2b5aa6;
  text-decoration: none;
}

.mb-postCard__meta {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.mb-postCard__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
  margin: 0;
}

/* mini cards row */
.mb-2up--mini {
  grid-template-columns: 1fr 1fr;
}

.mb-miniCard {
  background: rgba(255, 255, 255, 0.90);
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.mb-miniCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.mb-miniCard__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.mb-miniCard__content {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.mb-miniCard__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.mb-miniCard__title a {
  color: #111;
  transition: color 0.2s ease;
}

.mb-miniCard__title a:hover {
  color: #2b5aa6;
  text-decoration: none;
}

.mb-miniCard__meta {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.01em;
}

.mb-miniCard__pill {
  background: rgba(242, 163, 59, 0.96);
  color: #111;
  width: max-content;
  font-weight: 600;
}

/* list posts */
.mb-listStack {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.mb-listPost {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mb-listPost:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mb-listPost__imgWrap {
  display: block;
  height: 100%;
  overflow: hidden;
}

.mb-listPost__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mb-listPost:hover .mb-listPost__img {
  transform: scale(1.06);
}

.mb-listPost__body {
  padding: 18px 20px;
}

.mb-listPost__title {
  margin: 6px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.mb-listPost__title a {
  color: #111;
  transition: color 0.2s ease;
}

.mb-listPost__title a:hover {
  color: #2b5aa6;
  text-decoration: none;
}

.mb-listPost__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
}

.mb-linkArrow {
  font-weight: 600;
  font-size: 13px;
  color: rgba(43, 90, 166, 0.95);
  transition: color 0.2s ease;
}

.mb-linkArrow:hover {
  color: #1d4a8a;
  text-decoration: none;
}

/* 3-column grid */
.mb-3grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.mb-compactCard {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mb-compactCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mb-compactCard__imgWrap {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.mb-compactCard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mb-compactCard:hover .mb-compactCard__img {
  transform: scale(1.06);
}

.mb-compactCard__pill {
  position: absolute;
  top: 12px;
  left: 12px;
}

.mb-compactCard__title {
  margin: 14px 14px 8px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.mb-compactCard__title a {
  color: #111;
  transition: color 0.2s ease;
}

.mb-compactCard__title a:hover {
  color: #2b5aa6;
  text-decoration: none;
}

.mb-compactCard__meta {
  margin: 0 14px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.01em;
}

.mb-loadMore {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.mb-loadMore__btn {
  height: 44px;
  min-width: 160px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.80);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

.mb-loadMore__btn:hover {
  transform: translateY(-1px);
}

/* ===== Sidebar widgets ===== */
.mb-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 14px;
}

.mb-widget {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.mb-widget__title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.mb-sideSearch__input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  font-size: 14px;
  color: #111;
}

/* trending list */
.mb-trending {
  display: grid;
  gap: 10px;
}

.mb-trending__item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.03);
}

.mb-trending__thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.mb-trending__kicker {
  font-size: 11px;
  font-weight: 900;
  color: rgba(43, 90, 166, 0.95);
}

.mb-trending__title {
  font-size: 13px;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
}

.mb-trending__item:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* categories */
.mb-cats {
  display: grid;
  gap: 8px;
}

.mb-catBtn {
  text-align: left;
  border: 0;
  background: rgba(0, 0, 0, 0.03);
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 900;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mb-catBtn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* tags */
.mb-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mb-tag {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #111;
  cursor: pointer;
}

.mb-tag:hover {
  transform: translateY(-1px);
}

/* actions */
.mb-actions {
  display: grid;
  gap: 10px;
}

.mb-actionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

/* Newsletter form */
.mb-newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-newsletter .mb-actionBtn {
  width: 100%;
  text-align: center;
}

.mb-actionBtn--ghost {
  background: transparent;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.mb-actionBtn:hover {
  transform: translateY(-1px);
}

/* toast */
.mb-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 9999;
}

.mb-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .mb-blogHero__inner {
    grid-template-columns: 1fr;
  }

  .mb-blogGrid {
    grid-template-columns: 1fr;
  }

  .mb-sidebar {
    position: static;
  }

  .mb-3grid {
    grid-template-columns: 1fr;
  }

  .mb-2up {
    grid-template-columns: 1fr;
  }

  .mb-listPost {
    grid-template-columns: 1fr;
  }

  .mb-listPost__imgWrap {
    aspect-ratio: 16/9;
  }
}


/* ==== THEME VARIABLES ==== */
:root {
  /* Core backgrounds - subtle off-white shades for visual hierarchy */
  --bg-primary: #faf9f7;
  --bg-secondary: #f5f4f2;
  --bg-tertiary: #eeede9;
  --bg-card: #ffffff;
  --bg-surface: #f8f7f5;
  --bg-input: #ffffff;
  --bg-hover: rgba(0, 0, 0, 0.03);

  /* Text colors */
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-muted: #6c757d;
  --text-inverse: #ffffff;

  /* Border and shadows */
  --border-color: rgba(0, 0, 0, 0.12);
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);

  /* Accent colors */
  --accent-color: #b89b5e;
  --accent-hover: #a08550;
  --accent-light: rgba(184, 155, 94, 0.15);

  /* Semantic colors */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --info-color: #17a2b8;

  /* Footer specific - matching original design (tan/gold) */
  --footer-bg: #d6bd9f;
  --footer-text: rgba(0, 0, 0, 0.7);
  --footer-heading: #ffffff;
}

[data-theme="dark"] {
  /* Core backgrounds */
  --bg-primary: #121220;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #252542;
  --bg-card: #1e1e32;
  --bg-surface: #16162a;
  --bg-input: #1e1e32;
  --bg-hover: rgba(255, 255, 255, 0.05);

  /* Text colors */
  --text-primary: #f0f0f5;
  --text-secondary: #b8b8c8;
  --text-muted: #8888a0;
  --text-inverse: #1a1a2e;

  /* Border and shadows */
  --border-color: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-strong: rgba(0, 0, 0, 0.5);

  /* Accent colors */
  --accent-light: rgba(184, 155, 94, 0.25);

  /* Footer specific - dark mode */
  --footer-bg: #1a1a2e;
  --footer-text: #d0d0d0;
  --footer-heading: #f0f0f5;
}

[data-theme="dark"] .intro-title {
  color: #ffffff;
}

/* ==== HIGH CONTRAST MODE ==== */
[data-high-contrast="true"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f0f0f0;
  --bg-tertiary: #e0e0e0;
  --bg-card: #ffffff;
  --text-primary: #000000;
  --text-secondary: #1a1a1a;
  --text-muted: #333333;
  --border-color: #000000;
  --accent-color: #b89b5e;
}

[data-theme="dark"][data-high-contrast="true"] {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #141414;
  --bg-card: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #c0c0c0;
  --border-color: #ffffff;
}

/* ==== HIGH CONTRAST - COMPREHENSIVE ELEMENT TARGETING ==== */
/* Light mode high contrast - targeted scope, not blanket */
[data-high-contrast="true"] {
  --hc-text: #000000;
  --hc-bg: #ffffff;
  --hc-border: #000000;
  --hc-link: #0000EE;
  --hc-focus: #ffff00;
}

/* High contrast text - universal content coverage using semantic elements */
/* Target all main content areas except hero overlays */
[data-high-contrast="true"] main h1,
[data-high-contrast="true"] main h2,
[data-high-contrast="true"] main h3,
[data-high-contrast="true"] main h4,
[data-high-contrast="true"] main h5,
[data-high-contrast="true"] main h6,
[data-high-contrast="true"] main p,
[data-high-contrast="true"] main li,
[data-high-contrast="true"] main td,
[data-high-contrast="true"] main th,
[data-high-contrast="true"] main label,
[data-high-contrast="true"] main span:not(.article-hero__content span),
[data-high-contrast="true"] section h1:not(.article-hero__content h1),
[data-high-contrast="true"] section h2:not(.article-hero__content h2),
[data-high-contrast="true"] section h3,
[data-high-contrast="true"] section p:not(.article-hero__content p),
[data-high-contrast="true"] section li,
[data-high-contrast="true"] article h1,
[data-high-contrast="true"] article h2,
[data-high-contrast="true"] article h3,
[data-high-contrast="true"] article p,
[data-high-contrast="true"] article li,
[data-high-contrast="true"] .container h1:not(.article-hero__content h1),
[data-high-contrast="true"] .container h2:not(.article-hero__content h2),
[data-high-contrast="true"] .container h3,
[data-high-contrast="true"] .container p:not(.article-hero__content p),
[data-high-contrast="true"] .container li,
[data-high-contrast="true"] .mb-footer__text,
[data-high-contrast="true"] .mb-footer__link {
  color: var(--hc-text) !important;
}

/* Fallback high contrast text for any elements outside main/section/article */
[data-high-contrast="true"] body > div:not(.hero):not(.article-hero) h1,
[data-high-contrast="true"] body > div:not(.hero):not(.article-hero) h2,
[data-high-contrast="true"] body > div:not(.hero):not(.article-hero) h3,
[data-high-contrast="true"] body > div:not(.hero):not(.article-hero) p,
[data-high-contrast="true"] body > div:not(.hero):not(.article-hero) li,
[data-high-contrast="true"] dialog h1,
[data-high-contrast="true"] dialog h2,
[data-high-contrast="true"] dialog h3,
[data-high-contrast="true"] dialog p,
[data-high-contrast="true"] [role="dialog"] h1,
[data-high-contrast="true"] [role="dialog"] h2,
[data-high-contrast="true"] [role="dialog"] h3,
[data-high-contrast="true"] [role="dialog"] p {
  color: var(--hc-text) !important;
}

/* Exclude hero overlay text from high contrast text color override */
[data-high-contrast="true"] .article-hero__content h1,
[data-high-contrast="true"] .article-hero__content p,
[data-high-contrast="true"] .article-hero__content span,
[data-high-contrast="true"] .hero-text,
[data-high-contrast="true"] .hero h1,
[data-high-contrast="true"] .hero p {
  /* Keep original styling for hero overlays for visual appeal */
}

/* High contrast links - scoped to content areas */
[data-high-contrast="true"] .article-content a,
[data-high-contrast="true"] .mb-footer a,
[data-high-contrast="true"] nav a:not(.article-hero__content a) {
  color: var(--hc-link) !important;
  text-decoration: underline !important;
}

[data-high-contrast="true"] .article-content a:hover,
[data-high-contrast="true"] .article-content a:focus,
[data-high-contrast="true"] nav a:hover,
[data-high-contrast="true"] nav a:focus {
  background-color: var(--hc-focus) !important;
  color: var(--hc-text) !important;
  outline: 2px solid var(--hc-text) !important;
}

/* High contrast - Header/Nav/Topbar */
[data-high-contrast="true"] .header,
[data-high-contrast="true"] .topbar,
[data-high-contrast="true"] header {
  background-color: #ffffff !important;
  border-bottom: 3px solid #000000 !important;
}

[data-high-contrast="true"] .header *,
[data-high-contrast="true"] .topbar * {
  color: #000000 !important;
}

[data-high-contrast="true"] .navbar-link,
[data-high-contrast="true"] .nav-link {
  color: #000000 !important;
}

[data-high-contrast="true"] .navbar-link:hover,
[data-high-contrast="true"] .navbar-link:focus,
[data-high-contrast="true"] .nav-link:hover,
[data-high-contrast="true"] .nav-link:focus {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

/* High contrast - Side navigation / Navbar drawer */
[data-high-contrast="true"] .navbar {
  background-color: #ffffff !important;
  border-right: 3px solid #000000 !important;
}

[data-high-contrast="true"] .navbar *,
[data-high-contrast="true"] .navbar .navbar-link .span,
[data-high-contrast="true"] .navbar .close-btn {
  color: #000000 !important;
  border-color: #000000 !important;
}

[data-high-contrast="true"] .navbar-item {
  border-color: #000000 !important;
}

/* High contrast - Buttons */
[data-high-contrast="true"] button,
[data-high-contrast="true"] .btn,
[data-high-contrast="true"] [type="button"],
[data-high-contrast="true"] [type="submit"],
[data-high-contrast="true"] .navbar-action-btn {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

[data-high-contrast="true"] button:hover,
[data-high-contrast="true"] button:focus,
[data-high-contrast="true"] .btn:hover,
[data-high-contrast="true"] .btn:focus,
[data-high-contrast="true"] .navbar-action-btn:hover,
[data-high-contrast="true"] .navbar-action-btn:focus {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* High contrast - Form inputs */
[data-high-contrast="true"] input,
[data-high-contrast="true"] textarea,
[data-high-contrast="true"] select {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

[data-high-contrast="true"] input::placeholder,
[data-high-contrast="true"] textarea::placeholder {
  color: #333333 !important;
}

[data-high-contrast="true"] input:focus,
[data-high-contrast="true"] textarea:focus,
[data-high-contrast="true"] select:focus {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

/* High contrast - Cards */
[data-high-contrast="true"] .card,
[data-high-contrast="true"] .mb-postCard,
[data-high-contrast="true"] .mb-listPost,
[data-high-contrast="true"] .rl-card,
[data-high-contrast="true"] .resource-card {
  background-color: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

/* High contrast - Modals/Dropdowns */
[data-high-contrast="true"] .modal,
[data-high-contrast="true"] .dropdown,
[data-high-contrast="true"] .settings-dropdown,
[data-high-contrast="true"] [class*="modal"],
[data-high-contrast="true"] [class*="dropdown"] {
  background-color: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}

/* High contrast - Footer */
[data-high-contrast="true"] footer,
[data-high-contrast="true"] .mb-footer,
[data-high-contrast="true"] .mb-footer__top,
[data-high-contrast="true"] .mb-footer__bottom {
  background-color: #ffffff !important;
  border-top: 3px solid #000000 !important;
}

[data-high-contrast="true"] footer *,
[data-high-contrast="true"] .mb-footer * {
  color: #000000 !important;
}

/* High contrast - Icons */
[data-high-contrast="true"] ion-icon,
[data-high-contrast="true"] svg,
[data-high-contrast="true"] .icon,
[data-high-contrast="true"] i[class*="fa"] {
  color: #000000 !important;
  fill: #000000 !important;
}

/* High contrast - Focus states for keyboard navigation */
[data-high-contrast="true"] *:focus {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

[data-high-contrast="true"] *:focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px #ffff00 !important;
}

/* High contrast - Error/Success text */
[data-high-contrast="true"] .error,
[data-high-contrast="true"] .error-message,
[data-high-contrast="true"] [class*="error"] {
  color: #cc0000 !important;
  font-weight: bold !important;
}

[data-high-contrast="true"] .success,
[data-high-contrast="true"] .success-message,
[data-high-contrast="true"] [class*="success"] {
  color: #006600 !important;
  font-weight: bold !important;
}

/* ==== DARK MODE HIGH CONTRAST ==== */
[data-theme="dark"][data-high-contrast="true"] {
  --hc-text: #ffffff;
  --hc-bg: #000000;
  --hc-border: #ffffff;
  --hc-link: #00ffff;
  --hc-focus: #ffff00;
}

/* Dark mode high contrast - universal content coverage using semantic elements */
[data-theme="dark"][data-high-contrast="true"] main h1,
[data-theme="dark"][data-high-contrast="true"] main h2,
[data-theme="dark"][data-high-contrast="true"] main h3,
[data-theme="dark"][data-high-contrast="true"] main h4,
[data-theme="dark"][data-high-contrast="true"] main h5,
[data-theme="dark"][data-high-contrast="true"] main h6,
[data-theme="dark"][data-high-contrast="true"] main p,
[data-theme="dark"][data-high-contrast="true"] main li,
[data-theme="dark"][data-high-contrast="true"] main td,
[data-theme="dark"][data-high-contrast="true"] main th,
[data-theme="dark"][data-high-contrast="true"] main label,
[data-theme="dark"][data-high-contrast="true"] main span:not(.article-hero__content span),
[data-theme="dark"][data-high-contrast="true"] section h1:not(.article-hero__content h1),
[data-theme="dark"][data-high-contrast="true"] section h2:not(.article-hero__content h2),
[data-theme="dark"][data-high-contrast="true"] section h3,
[data-theme="dark"][data-high-contrast="true"] section p:not(.article-hero__content p),
[data-theme="dark"][data-high-contrast="true"] section li,
[data-theme="dark"][data-high-contrast="true"] article h1,
[data-theme="dark"][data-high-contrast="true"] article h2,
[data-theme="dark"][data-high-contrast="true"] article h3,
[data-theme="dark"][data-high-contrast="true"] article p,
[data-theme="dark"][data-high-contrast="true"] article li,
[data-theme="dark"][data-high-contrast="true"] .container h1:not(.article-hero__content h1),
[data-theme="dark"][data-high-contrast="true"] .container h2:not(.article-hero__content h2),
[data-theme="dark"][data-high-contrast="true"] .container h3,
[data-theme="dark"][data-high-contrast="true"] .container p:not(.article-hero__content p),
[data-theme="dark"][data-high-contrast="true"] .container li,
[data-theme="dark"][data-high-contrast="true"] .mb-footer__text,
[data-theme="dark"][data-high-contrast="true"] .mb-footer__link {
  color: #ffffff !important;
}

/* Dark mode high contrast - fallback for elements outside main/section/article */
[data-theme="dark"][data-high-contrast="true"] body > div:not(.hero):not(.article-hero) h1,
[data-theme="dark"][data-high-contrast="true"] body > div:not(.hero):not(.article-hero) h2,
[data-theme="dark"][data-high-contrast="true"] body > div:not(.hero):not(.article-hero) h3,
[data-theme="dark"][data-high-contrast="true"] body > div:not(.hero):not(.article-hero) p,
[data-theme="dark"][data-high-contrast="true"] body > div:not(.hero):not(.article-hero) li,
[data-theme="dark"][data-high-contrast="true"] dialog h1,
[data-theme="dark"][data-high-contrast="true"] dialog h2,
[data-theme="dark"][data-high-contrast="true"] dialog h3,
[data-theme="dark"][data-high-contrast="true"] dialog p,
[data-theme="dark"][data-high-contrast="true"] [role="dialog"] h1,
[data-theme="dark"][data-high-contrast="true"] [role="dialog"] h2,
[data-theme="dark"][data-high-contrast="true"] [role="dialog"] h3,
[data-theme="dark"][data-high-contrast="true"] [role="dialog"] p {
  color: #ffffff !important;
}

/* Dark mode high contrast - scoped links */
[data-theme="dark"][data-high-contrast="true"] .article-content a,
[data-theme="dark"][data-high-contrast="true"] .mb-footer a {
  color: #00ffff !important;
  text-decoration: underline !important;
}

[data-theme="dark"][data-high-contrast="true"] .article-content a:hover,
[data-theme="dark"][data-high-contrast="true"] .article-content a:focus {
  color: #000000 !important;
  background-color: #ffff00 !important;
}

[data-theme="dark"][data-high-contrast="true"] .header,
[data-theme="dark"][data-high-contrast="true"] .topbar,
[data-theme="dark"][data-high-contrast="true"] header {
  background-color: #000000 !important;
  border-bottom: 3px solid #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] .header *,
[data-theme="dark"][data-high-contrast="true"] .topbar * {
  color: #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] .navbar {
  background-color: #000000 !important;
  border-right: 3px solid #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] .navbar *,
[data-theme="dark"][data-high-contrast="true"] .navbar .navbar-link .span,
[data-theme="dark"][data-high-contrast="true"] .navbar .close-btn {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] button,
[data-theme="dark"][data-high-contrast="true"] .btn,
[data-theme="dark"][data-high-contrast="true"] .navbar-action-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] button:hover,
[data-theme="dark"][data-high-contrast="true"] button:focus,
[data-theme="dark"][data-high-contrast="true"] .btn:hover,
[data-theme="dark"][data-high-contrast="true"] .btn:focus {
  background-color: #ffffff !important;
  color: #000000 !important;
}

[data-theme="dark"][data-high-contrast="true"] input,
[data-theme="dark"][data-high-contrast="true"] textarea,
[data-theme="dark"][data-high-contrast="true"] select {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] input::placeholder,
[data-theme="dark"][data-high-contrast="true"] textarea::placeholder {
  color: #cccccc !important;
}

[data-theme="dark"][data-high-contrast="true"] .card,
[data-theme="dark"][data-high-contrast="true"] .mb-postCard,
[data-theme="dark"][data-high-contrast="true"] .mb-listPost,
[data-theme="dark"][data-high-contrast="true"] .rl-card {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] footer,
[data-theme="dark"][data-high-contrast="true"] .mb-footer,
[data-theme="dark"][data-high-contrast="true"] .mb-footer__top,
[data-theme="dark"][data-high-contrast="true"] .mb-footer__bottom {
  background-color: #000000 !important;
  border-top: 3px solid #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] footer *,
[data-theme="dark"][data-high-contrast="true"] .mb-footer * {
  color: #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] ion-icon,
[data-theme="dark"][data-high-contrast="true"] svg,
[data-theme="dark"][data-high-contrast="true"] .icon {
  color: #ffffff !important;
  fill: #ffffff !important;
}

[data-theme="dark"][data-high-contrast="true"] *:focus,
[data-theme="dark"][data-high-contrast="true"] *:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* ==== COLORBLIND ACCESSIBILITY ==== */
[data-colorblind="protanopia"] {
  filter: url('#protanopia-filter');
}

[data-colorblind="deuteranopia"] {
  filter: url('#deuteranopia-filter');
}

[data-colorblind="tritanopia"] {
  filter: url('#tritanopia-filter');
}

/* ==== ADHD-FRIENDLY MODE ==== */
/* Focus mode: Hides distracting elements and disables animations - NO color changes */
[data-adhd-mode="true"] * {
  transition-duration: 0s !important;
  animation-duration: 0s !important;
}

[data-adhd-mode="true"] .hero,
[data-adhd-mode="true"] .back-video,
[data-adhd-mode="true"] .swiper,
[data-adhd-mode="true"] [class*="carousel"],
[data-adhd-mode="true"] [class*="slider"]:not(.theme-toggle-slider),
[data-adhd-mode="true"] video,
[data-adhd-mode="true"] .preload {
  display: none !important;
}

/* ==== DYSLEXIA-FRIENDLY FONT ==== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

[data-dyslexia-font="true"] * {
  font-family: 'Lexend', 'OpenDyslexic', sans-serif !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.1em !important;
  line-height: 1.8 !important;
}

/* Font size adjustments */
[data-font-size="large"] {
  font-size: 110%;
}

[data-font-size="x-large"] {
  font-size: 120%;
}

/* Reduce motion */
[data-reduce-motion="true"] *,
[data-reduce-motion="true"] *::before,
[data-reduce-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ==== NAVBAR ACTIONS ==== */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
  z-index: 100;
}

.navbar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  color: var(--text-primary, #1a1a2e);
}

.navbar-action-btn:hover {
  background: var(--bg-tertiary, rgba(0, 0, 0, 0.05));
  transform: scale(1.05);
}

.navbar-action-btn .action-icon {
  font-size: 22px;
}

.navbar-action-btn.auth-btn {
  width: auto;
  padding: 8px 16px;
  border-radius: 25px;
  background: var(--accent-color, #b89b5e);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.navbar-action-btn.auth-btn:hover {
  background: var(--accent-hover, #a08550);
}

.navbar-action-btn.auth-btn .auth-text {
  white-space: nowrap;
}

/* User button states */
.navbar-action-btn[data-user-btn].is-signed-in {
  padding: 0;
  overflow: visible;
}

.navbar-action-btn[data-user-btn].is-signed-in .user-avatar {
  overflow: hidden;
}

.navbar-action-btn[data-user-btn] .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color, #b89b5e);
}

.navbar-action-btn[data-user-btn].is-signed-in:hover .user-avatar {
  border-color: var(--accent-hover, #a08550);
}

.navbar-action-btn[data-user-btn].signed-in .action-icon {
  color: var(--accent-color, #ffffff);
}

/* Settings wrapper */
.settings-wrapper {
  position: relative;
  z-index: 101;
}

/* Settings dropdown - Light mode by default */
.settings-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

/* Dark mode settings dropdown */
[data-theme="dark"] .settings-dropdown {
  background: #252542;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.settings-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .settings-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.settings-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #3d3a50;
}

[data-theme="dark"] .settings-title {
  color: #d6bd9f;
}

.settings-content {
  padding: 12px 0;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  transition: background-color 0.15s ease;
}

.setting-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .setting-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.setting-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

[data-theme="dark"] .setting-info {
  color: #fff;
}

.setting-info ion-icon {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .setting-info ion-icon {
  color: rgba(255, 255, 255, 0.7);
}

/* Toggle switch */
.theme-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.theme-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary, #ccc);
  border-radius: 24px;
  transition: 0.3s;
}

.theme-toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-switch input:checked+.theme-toggle-slider {
  background-color: var(--accent-color, #b89b5e);
}

.theme-toggle-switch input:checked+.theme-toggle-slider::before {
  transform: translateX(20px);
}

/* Select dropdown */
.setting-select {
  padding: 6px 12px;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
  border-radius: 6px;
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #1a1a2e);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.setting-select:hover {
  border-color: var(--accent-color, #b89b5e);
}

.setting-select:focus {
  outline: none;
  border-color: var(--accent-color, #b89b5e);
}

/* ==== MOBILE SETTINGS SECTION ==== */
.mobile-settings-section {
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
  flex-shrink: 0;
  background: #ebe5db;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Collapsible settings toggle */
.mobile-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
}

.mobile-settings-toggle ion-icon {
  font-size: 16px;
  color: var(--accent-color, #b89b5e);
  transition: transform 0.2s ease;
}

.mobile-settings-section.collapsed .mobile-settings-toggle ion-icon {
  transform: rotate(-90deg);
}

.mobile-settings-section.collapsed .mobile-settings-list {
  display: none;
}

.mobile-settings-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color, #b89b5e);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.mobile-settings-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-setting-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-primary, #1a1a2e);
}

.mobile-setting-label ion-icon {
  font-size: 18px;
  color: var(--text-secondary, #4a4a68);
}

/* Hide mobile settings on desktop, show on mobile */
@media (min-width: 1200px) {
  .mobile-settings-section {
    display: none;
  }

  .navbar-actions {
    display: flex;
  }
}

@media (max-width: 1199px) {
  .navbar-actions {
    display: none;
  }

  .mobile-settings-section {
    display: block;
  }
}

/* ==== COMPREHENSIVE DARK/LIGHT THEME OVERRIDES ==== */

/* Base elements */




/* Header and navbar - Light mode uses tan/gold to match footer */
.header {
  background: #d6bd9f;
}

.header.active {
  background: #d6bd9f;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.topbar {
  background: #b89b5e;
}

.topbar .span,
.topbar-item {
  color: #fff;
}

/* Dark mode header/topbar */
[data-theme="dark"] .header {
  background: #1a1a2e;
}

[data-theme="dark"] .header.active {
  background: #1a1a2e;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .topbar {
  background: #252542;
}

[data-theme="dark"] .topbar .span,
[data-theme="dark"] .topbar-item {
  color: rgba(255, 255, 255, 0.8);
}

.navbar-link .span {
  color: #1a1a2e;
}

.nav-open-btn .line {
  background: #1a1a2e;
}

/* Navbar action icons on tan background */
.navbar-action-btn .action-icon {
  color: #1a1a2e;
}

.navbar-action-btn.auth-btn {
  background: #3d3a50;
  color: #fff;
}

.navbar-action-btn.auth-btn:hover {
  background: #2d2b3d;
}

[data-theme="dark"] .navbar {
  background: #2d2b3d;
  border-right-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar .close-btn {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .navbar .close-btn:is(:hover, :focus-visible) {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .navbar-link:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

[data-theme="dark"] .navbar-link:is(:hover, :focus-visible) .span {
  color: #fff;
}

[data-theme="dark"] .navbar-link.active {
  background: linear-gradient(135deg, 
    rgba(212, 165, 116, 0.25) 0%, 
    rgba(212, 165, 116, 0.15) 100%);
  border-color: rgba(212, 165, 116, 0.4);
  color: #fff;
}

[data-theme="dark"] .navbar-link.active .span {
  color: #d4a574;
}

[data-theme="dark"] .navbar-link {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .navbar-link .span {
  color: #fff;
}

[data-theme="dark"] .nav-open-btn .line {
  background: #fff;
}

[data-theme="dark"] .navbar-action-btn .action-icon {
  color: #fff;
}

[data-theme="dark"] .navbar-action-btn.auth-btn {
  background: #d6bd9f;
  color: #1a1a2e;
}

[data-theme="dark"] .navbar-action-btn.auth-btn:hover {
  background: #c4a87f;
}



/* Cards and surfaces */
.card,
.mb-card,
.mb-sidebar,
.mb-listPost,
.resource-card,
.community-card,
.blog-card {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

/* Dark mode: Action box cards text readability */
[data-theme="dark"] .mb-card {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-card__kicker {
  color: #7eb3ff;
}

[data-theme="dark"] .mb-card__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-card.is-active {
  background: var(--bg-secondary);
  border-color: #7eb3ff;
  box-shadow: 0 14px 34px rgba(126, 179, 255, 0.15);
}

[data-theme="dark"] .mb-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

/* Dark mode: Testimonial cards */
[data-theme="dark"] .mb-tcard {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-tcard__name {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-tcard__role {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-tcard__text {
  color: var(--text-secondary);
}

/* Dark mode: Alternating section backgrounds for visual rhythm */
[data-theme="dark"] .intro-section,
[data-theme="dark"] .mb-testimonials {
  background: var(--bg-primary);
}

[data-theme="dark"] .mb-actionbox,
[data-theme="dark"] .our-story-section {
  background: var(--bg-secondary);
}

[data-theme="dark"] .mb-actionbox__wrap {
  background: transparent;
}

/* Dark mode: Action box content */
[data-theme="dark"] .mb-actionbox__kicker {
  color: #7eb3ff;
}

[data-theme="dark"] .mb-actionbox__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-actionbox__desc {
  color: var(--text-secondary);
}

/* Dark mode: Our story section */
[data-theme="dark"] .our-story-section h2,
[data-theme="dark"] .our-story-section .section-title {
  color: var(--text-primary);
}

[data-theme="dark"] .our-story-section p {
  color: var(--text-secondary);
}

/* Dark mode: Impact section */
[data-theme="dark"] .mb-impact {
  background: var(--bg-primary);
}

[data-theme="dark"] .mb-impact__title,
[data-theme="dark"] .impact-title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-impact__desc,
[data-theme="dark"] .impact-desc {
  color: var(--text-secondary);
}

/* Dark mode: Testimonials section */
[data-theme="dark"] .mb-testimonials__title {
  color: var(--text-primary);
}

/* Dark mode: Testimonials mask gradient - replaces white fade with dark fade */
[data-theme="dark"] .mb-testimonials__mask {
  background: linear-gradient(to bottom,
      rgba(18, 18, 32, 1) 0%,
      rgba(18, 18, 32, 0) 14%,
      rgba(18, 18, 32, 0) 86%,
      rgba(18, 18, 32, 1) 100%);
}

/* Dark mode: Testimonials section background */
[data-theme="dark"] .mb-testimonials {
  background: #121220;
}

/* Inputs and forms */
input,
textarea,
select {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Footer - Dark Mode Overrides */
[data-theme="dark"] .mb-footer__top {
  background: #1a1a2e;
}

[data-theme="dark"] .mb-footer__text,
[data-theme="dark"] .mb-footer__link {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .mb-footer__brand,
[data-theme="dark"] .mb-footer__heading,
[data-theme="dark"] .mb-footer__subheading {
  color: #ffffff;
}

[data-theme="dark"] .mb-footer__bottom {
  background: #0d0d18;
}

[data-theme="dark"] .mb-footer__copy,
[data-theme="dark"] .mb-footer__legal-link {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .mb-footer__tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .mb-footer__btn {
  background: var(--accent-color);
  color: #fff;
}

[data-theme="dark"] .mb-footer__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .mb-footer__icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* Footer - High Contrast Mode */
[data-high-contrast="true"] .mb-footer__top {
  background: #000000;
}

[data-high-contrast="true"] .mb-footer__text,
[data-high-contrast="true"] .mb-footer__link {
  color: #ffffff;
}

[data-high-contrast="true"] .mb-footer__brand,
[data-high-contrast="true"] .mb-footer__heading,
[data-high-contrast="true"] .mb-footer__subheading {
  color: #ffff00;
}

[data-high-contrast="true"] .mb-footer__bottom {
  background: #111111;
}

[data-high-contrast="true"] .mb-footer__copy,
[data-high-contrast="true"] .mb-footer__legal-link {
  color: #ffffff;
}

[data-high-contrast="true"] .mb-footer__tag {
  background: #000000;
  border: 2px solid #ffffff;
  color: #ffffff;
}

[data-high-contrast="true"] .mb-footer__btn {
  background: #ffff00;
  color: #000000;
  border: 2px solid #000000;
}

[data-high-contrast="true"] .mb-footer__btn--ghost {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

[data-high-contrast="true"] .mb-footer__icon {
  background: #000000;
  border: 2px solid #ffffff;
  color: #ffffff;
}

/* Resource Library specific */
.rl-sidebar,
.resource-sidebar {
  background: var(--bg-card);
  color: var(--text-primary);
}

.rl-sidebar a,
.resource-sidebar a {
  color: var(--text-secondary);
}

.rl-sidebar a:hover,
.resource-sidebar a:hover {
  color: var(--accent-color);
}

.resource-item,
.rl-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.resource-item h3,
.rl-item h3 {
  color: var(--text-primary);
}

.resource-item p,
.rl-item p {
  color: var(--text-secondary);
}

/* ===== RESOURCE LIBRARY DARK MODE ===== */
/* Main section background */
[data-theme="dark"] .rl {
  background: var(--bg-primary);
}

/* Header text */
[data-theme="dark"] .rl-title {
  color: var(--text-primary);
}

[data-theme="dark"] .rl-lead {
  color: var(--text-secondary);
}

[data-theme="dark"] .rl-support {
  color: var(--text-muted);
}

/* Search bar */
[data-theme="dark"] .rl-search {
  border-top-color: var(--border-color);
}

[data-theme="dark"] .rl-searchInput {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .rl-searchInput::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .rl-clearSearch {
  color: var(--text-muted);
}

[data-theme="dark"] .rl-clearSearch:hover {
  color: var(--text-primary);
}

/* Filter chips */
[data-theme="dark"] .rl-chip {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="dark"] .rl-chip span {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .rl-clearAll {
  color: var(--text-secondary);
}

[data-theme="dark"] .rl-clearAll:hover {
  color: var(--accent-color);
}

/* Sidebar filters */
[data-theme="dark"] .rl-filterTitle {
  color: var(--text-primary);
}

[data-theme="dark"] .rl-filterBtn {
  color: var(--text-secondary);
}

[data-theme="dark"] .rl-filterBtn:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .rl-filterBtn.is-active {
  color: var(--accent-color);
}

/* Results meta */
[data-theme="dark"] .rl-meta {
  color: var(--text-muted);
}

/* Cards */
[data-theme="dark"] .rl-card {
  border-left-color: var(--accent-color);
  background: var(--bg-tertiary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .rl-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(242, 194, 0, 0.1);
}

[data-theme="dark"] .rl-cardSmall {
  color: var(--text-muted);
}

[data-theme="dark"] .rl-cardSmall::before {
  background: var(--accent-color);
}

[data-theme="dark"] .rl-cardTitle {
  color: var(--text-primary);
}

[data-theme="dark"] .rl-card:hover .rl-cardTitle {
  color: var(--accent-color);
}

[data-theme="dark"] .rl-cardBody {
  color: var(--text-secondary);
}

[data-theme="dark"] .rl-tag {
  background: linear-gradient(135deg, var(--accent-color) 0%, #d4aa00 100%);
  color: #111111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .rl-visitBtn {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .rl-visitBtn:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, #d4aa00 100%);
  color: #111111;
  border-color: var(--accent-color);
}

[data-theme="dark"] .rl-skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
}

[data-theme="dark"] .rl-skeleton-card {
  background: var(--bg-tertiary);
  border-left-color: var(--border-color);
}

[data-theme="dark"] .rl-searchInput:focus {
  background-color: var(--bg-tertiary);
  box-shadow: 0 0 0 4px rgba(242, 194, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== COMMUNITY HUB COMMENT STYLES (BASE/LIGHT MODE) ===== */
.mb-commentBox {
  margin-top: 12px;
}

.mb-commentInputRow {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mb-commentInput {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #111;
}

.mb-commentInput::placeholder {
  color: #888;
}

.mb-sendBtn {
  background: #111 !important;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.mb-comments {
  margin-top: 8px;
}

.mb-comment {
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}

.mb-commentUser {
  font-weight: bold;
  color: #111;
}

.mb-commentBody {
  color: #333;
}

/* ===== COMMUNITY HUB DARK MODE ===== */
/* Main container */
[data-theme="dark"] .mb-community {
  background: var(--bg-primary);
}

/* Panels (left sidebar, main feed, right sidebar) */
[data-theme="dark"] .mb-panel {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-panelHeader {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mb-panelBody {
  color: var(--text-secondary);
}

/* Navigation list in sidebar */
[data-theme="dark"] .mb-navLink {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-navLink:hover,
[data-theme="dark"] .mb-navLink.is-active {
  color: var(--accent-color);
  background: var(--bg-tertiary);
}

/* Feed header and search */
[data-theme="dark"] .mb-feedHeader {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mb-feedTitle {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-search {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .mb-search::placeholder {
  color: var(--text-muted);
}

/* Composer */
[data-theme="dark"] .mb-composer {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-input {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .mb-input::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-avatar {
  background: var(--accent-color);
  color: #111111;
}

/* Posts */
[data-theme="dark"] .mb-post {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-postHead {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-postName {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-postTime {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-postBody {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-postFooter {
  border-top-color: var(--border-color);
}

/* Buttons in posts */
[data-theme="dark"] .mb-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-btn:hover {
  background: var(--accent-color);
  color: #111111;
}

[data-theme="dark"] .mb-btnPrimary {
  background: var(--accent-color);
  color: #111111;
}

/* Pills/tags */
[data-theme="dark"] .mb-pill {
  background: var(--accent-light);
  color: var(--accent-color);
}

/* Comments */
[data-theme="dark"] .mb-commentInputRow {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mb-commentInput {
  background: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

[data-theme="dark"] .mb-commentInput::placeholder {
  color: #888;
}

[data-theme="dark"] .mb-comments {
  background: transparent;
}

[data-theme="dark"] .mb-comment {
  background: #2d2d2d;
  color: #e0e0e0;
}

[data-theme="dark"] .mb-commentUser {
  color: #fff;
}

[data-theme="dark"] .mb-commentBody {
  color: #e0e0e0;
}

/* Right sidebar */
[data-theme="dark"] .mb-right {
  background: var(--bg-card);
}

[data-theme="dark"] .mb-heading {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-trendingItem {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-trendingItem:hover {
  color: var(--accent-color);
}

/* ===== BLOG PAGE DARK MODE ===== */
/* Blog hero section */
[data-theme="dark"] .mb-blogHero {
  background: var(--bg-primary);
}

[data-theme="dark"] .mb-blogHero__badge {
  background: var(--accent-color);
  color: #111111;
}

[data-theme="dark"] .mb-blogHero__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-blogHero__lead {
  color: var(--text-secondary);
}

/* Search bar */
[data-theme="dark"] .mb-blogHero__input {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .mb-blogHero__input::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-blogHero__searchBtn {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-blogHero__searchBtn:hover {
  color: var(--text-primary);
}

/* Filter chips */
[data-theme="dark"] .mb-chip {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-chip:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-color);
}

[data-theme="dark"] .mb-chip.is-active {
  background: var(--accent-color);
  color: #111111;
  border-color: var(--accent-color);
}

/* Ticker strip */
[data-theme="dark"] .mb-ticker {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-ticker__num {
  background: var(--accent-color);
  color: #111111;
}

[data-theme="dark"] .mb-ticker__link {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-ticker__link:hover {
  color: var(--accent-color);
}

/* Feature card */
[data-theme="dark"] .mb-featureCard {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-featureCard__content {
  background: var(--bg-card);
}

[data-theme="dark"] .mb-featureCard__title a {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-featureCard__title a:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .mb-featureCard__desc,
[data-theme="dark"] .mb-featureCard__subtext {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-metaRow {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-metaText {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-metaDot {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-postHint {
  color: var(--text-secondary);
}

/* Main blog grid */
[data-theme="dark"] .mb-blog {
  background: var(--bg-primary);
}

[data-theme="dark"] .mb-blogGrid {
  background: var(--bg-primary);
}

/* Results bar */
[data-theme="dark"] .mb-resultsBar {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-resultsBar__count,
[data-theme="dark"] .mb-resultsBar__active {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-resultsBar__reset {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-resultsBar__reset:hover {
  color: var(--accent-color);
}

/* Section headings */
[data-theme="dark"] .mb-sectionHead {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mb-sectionHead__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-sectionHead__more {
  color: var(--accent-color);
}

/* Post cards (blog grid cards) */
[data-theme="dark"] .mb-postCard {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-postCard__body {
  background: var(--bg-card);
}

[data-theme="dark"] .mb-postCard__title a {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-postCard__title a:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .mb-postCard__meta {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-postCard__excerpt {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-postCard__subtext {
  color: var(--text-muted);
}

/* Mini cards (blog mini grid) */
[data-theme="dark"] .mb-miniCard {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-miniCard__title a {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-miniCard__title a:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .mb-miniCard__meta {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-miniCard__pill {
  background: var(--accent-color);
  color: #111;
}

/* Compact cards (blog 3-column grid) */
[data-theme="dark"] .mb-compactCard {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-compactCard__title a {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-compactCard__title a:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .mb-compactCard__meta {
  color: var(--text-muted);
}

/* List posts (horizontal blog cards) */
[data-theme="dark"] .mb-listPost {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-listPost__body {
  background: var(--bg-card);
}

[data-theme="dark"] .mb-listPost__title a {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-listPost__title a:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .mb-listPost__excerpt {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-listPost__subtext {
  color: var(--text-muted);
}

[data-theme="dark"] .mb-postHint strong {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-linkArrow {
  color: var(--accent-color);
}

/* Widget boxes */
[data-theme="dark"] .mb-widget {
  background: var(--bg-card);
  border-color: var(--border-color);
}

/* Load more button */
[data-theme="dark"] .mb-loadMore__btn {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .mb-loadMore__btn:hover {
  background: var(--accent-color);
  color: #111;
  border-color: var(--accent-color);
}

/* Empty state */
[data-theme="dark"] .mb-emptyState {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

/* Article cards */
[data-theme="dark"] .mb-articleCard {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-articleCard__content {
  background: var(--bg-card);
}

[data-theme="dark"] .mb-articleCard__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-articleCard__title:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .mb-articleCard__desc {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-articleCard__meta {
  color: var(--text-muted);
}

/* List cards (smaller style) */
[data-theme="dark"] .mb-listCard {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-listCard__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-listCard__desc {
  color: var(--text-secondary);
}

/* Sidebar widgets */
[data-theme="dark"] .mb-sidebar {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-sidebar h3,
[data-theme="dark"] .mb-sidebar__heading {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-sidebar a,
[data-theme="dark"] .mb-sidebar__link {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-sidebar a:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .mb-catBtn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-catBtn:hover {
  background: var(--accent-color);
  color: #fff;
}

[data-theme="dark"] .mb-tag {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-tag:hover,
[data-theme="dark"] .mb-tag.active {
  background: var(--accent-color);
  color: #fff;
}

[data-theme="dark"] .mb-widget__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-widget__text {
  color: var(--text-secondary);
}

[data-theme="dark"] .mb-sideSearch__input {
  background: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .mb-sideSearch__input::placeholder {
  color: var(--text-muted);
}

/* Trending widget */
[data-theme="dark"] .mb-trending {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .mb-trending__title {
  color: var(--text-primary);
}

[data-theme="dark"] .mb-trending__item {
  color: var(--text-secondary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mb-trending__item:hover {
  color: var(--accent-color);
}

/* Legacy Community Hub specific */
.community-sidebar,
.ch-sidebar {
  background: var(--bg-card);
  color: var(--text-primary);
}

.community-post,
.ch-post {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.community-post h4,
.ch-post h4 {
  color: var(--text-primary);
}

.community-post p,
.ch-post p {
  color: var(--text-secondary);
}

.mb-listPost__content {
  background: var(--bg-card);
}

.mb-listPost__title {
  color: var(--text-primary);
}

.mb-listPost__meta {
  color: var(--text-muted);
}

/* Testimonials */
.testimonial-card,
.review-card {
  background: var(--bg-card);
  color: var(--text-primary);
}

.testimonial-text,
.review-text {
  color: var(--text-secondary);
}

/* Intro and text sections */
.intro-section,
.text-section,
.about-section {
  background: var(--bg-secondary);
}

.intro-text h2,
.text-section h2 {
  color: var(--text-primary);
}

.intro-text p,
.text-section p {
  color: var(--text-secondary);
}

/* General text elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* Buttons */
.btn,
.button {
  background: var(--accent-color);
  color: var(--text-inverse);
}

.btn:hover,
.button:hover {
  background: var(--accent-hover);
}

/* Tags and badges */
.tag,
.badge,
.category-tag {
  background: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

/* Search inputs */
.search-input,
.search-box input {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Mobile navbar text center section */
.navbar .text-center {
  color: var(--text-primary);
}

.navbar .text-center .body-4,
.navbar .text-center address {
  color: var(--text-secondary);
}

/* Settings text fix for light mode */
.settings-dropdown .setting-info span,
.settings-title,
.setting-info {
  color: var(--text-primary);
}

.mobile-setting-label {
  color: var(--text-primary);
}

.mobile-settings-section {
  background: #ebe5db;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mobile-settings-section {
  background: #3d3a50;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==== KEYBOARD FOCUS STYLES ==== */
/* Visible focus ring for keyboard navigation accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-color, #b89b5e);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ==== SCROLL SAFETY OVERRIDE ==== */
html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  position: static;
}

/* Scroll lock during preloader - body hidden until loaded */
body:not(.loaded) {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

/* Enable scrolling after page loads - no !important so nav-active and orientation lock can override */
body.loaded {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: static;
}

/* Nav active takes priority over loaded state */
body.loaded.nav-active {
  overflow: hidden !important;
}

/* ==== SCROLL PROGRESS INDICATOR ==== */
/* Global scroll progress navigation - available on all pages */
.scroll-progress {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-progress.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-progress__bar {
  position: absolute;
  width: 2px;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-progress__bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--progress, 0%);
  background: #d6bd9f;
  border-radius: 2px;
  transition: height 0.15s ease-out;
}

.scroll-progress__sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.scroll-progress__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0;
}

.scroll-progress__dot:hover {
  transform: scale(1.3);
  border-color: #d6bd9f;
}

.scroll-progress__dot.active {
  background: #d6bd9f;
  border-color: #d6bd9f;
  transform: scale(1.2);
}

.scroll-progress__label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-progress__dot:hover .scroll-progress__label {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* Hide scroll progress on mobile */
@media (max-width: 768px) {
  .scroll-progress {
    display: none;
  }
}

/* Dark mode for scroll progress */
[data-theme="dark"] .scroll-progress__bar {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .scroll-progress__dot {
  background: #252542;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .scroll-progress__dot:hover {
  border-color: #d6bd9f;
}

[data-theme="dark"] .scroll-progress__dot.active {
  background: #d6bd9f;
}

[data-theme="dark"] .scroll-progress__label {
  background: #252542;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* High contrast for scroll progress */
[data-high-contrast="true"] .scroll-progress__bar {
  background: rgba(255, 255, 255, 0.3);
}

[data-high-contrast="true"] .scroll-progress__bar::before {
  background: #ffeb3b;
}

[data-high-contrast="true"] .scroll-progress__dot {
  background: #000;
  border-color: #fff;
  border-width: 3px;
}

[data-high-contrast="true"] .scroll-progress__dot.active {
  background: #ffeb3b;
  border-color: #ffeb3b;
}

[data-high-contrast="true"] .scroll-progress__label {
  background: #000;
  color: #ffeb3b;
  border: 2px solid #fff;
}

/* ============================================
   BLOG ACCESSIBILITY FEATURES
   ============================================ */

/* Reading Progress Bar */
.mb-readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.mb-readingProgress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4a6fa5, #d6bd9f);
  transition: width 0.1s ease-out;
}

[data-theme="dark"] .mb-readingProgress {
  background: rgba(255, 255, 255, 0.1);
}

/* Text-to-Speech Button */
.mb-ttsBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #4a6fa5;
  border-radius: 20px;
  color: #4a6fa5;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mb-ttsBtn:hover {
  background: #4a6fa5;
  color: #fff;
}

.mb-ttsBtn:focus-visible {
  outline: 2px solid #4a6fa5;
  outline-offset: 2px;
}

.mb-ttsBtn.is-playing {
  background: #d6bd9f;
  border-color: #d6bd9f;
  color: #1a1a2e;
}

.mb-ttsBtn .tts-icon {
  font-size: 1rem;
}

[data-theme="dark"] .mb-ttsBtn {
  border-color: #d6bd9f;
  color: #d6bd9f;
}

[data-theme="dark"] .mb-ttsBtn:hover {
  background: #d6bd9f;
  color: #1a1a2e;
}

/* Article Actions Container */
.mb-articleActions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Reading Mode Toggle */
.mb-readingModeWrapper {
  margin-top: 16px;
}

.mb-readingModeBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid #4a6fa5;
  border-radius: 25px;
  color: #4a6fa5;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mb-readingModeBtn:hover {
  background: #4a6fa5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.25);
}

.mb-readingModeBtn.is-active {
  background: #4a6fa5;
  color: #fff;
}

.mb-readingModeBtn:focus-visible {
  outline: 2px solid #d6bd9f;
  outline-offset: 2px;
}

[data-theme="dark"] .mb-readingModeBtn {
  background: #252542;
  border-color: #d6bd9f;
  color: #d6bd9f;
}

[data-theme="dark"] .mb-readingModeBtn:hover,
[data-theme="dark"] .mb-readingModeBtn.is-active {
  background: #d6bd9f;
  color: #1a1a2e;
}

/* Reading Mode Styles */
body.reading-mode {
  --reading-bg: #faf9f6;
  --reading-text: #2d2d2d;
  --reading-max-width: 720px;
}

body.reading-mode .mb-blogGrid {
  max-width: var(--reading-max-width);
  margin: 0 auto;
}

body.reading-mode .mb-posts {
  width: 100%;
}

body.reading-mode .mb-sidebar {
  display: none;
}

body.reading-mode .mb-postCard,
body.reading-mode .mb-listPost,
body.reading-mode .mb-miniCard {
  background: var(--reading-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

body.reading-mode .mb-postCard__title,
body.reading-mode .mb-listPost__title,
body.reading-mode .mb-miniCard__title {
  font-size: 1.4rem;
  line-height: 1.5;
}

body.reading-mode .mb-postCard__excerpt,
body.reading-mode .mb-listPost__excerpt {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--reading-text);
}

body.reading-mode .mb-2up {
  grid-template-columns: 1fr;
}

[data-theme="dark"] body.reading-mode,
body.reading-mode[data-theme="dark"] {
  --reading-bg: #1e1e3a;
  --reading-text: #e0e0e0;
}

/* Enhanced Hover & Focus States */
.mb-postCard.is-hovered,
.mb-postCard.is-focused,
.mb-listPost.is-hovered,
.mb-listPost.is-focused,
.mb-miniCard.is-hovered,
.mb-miniCard.is-focused {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mb-postCard:focus-visible,
.mb-listPost:focus-visible,
.mb-miniCard:focus-visible {
  outline: 3px solid #4a6fa5;
  outline-offset: 4px;
}

[data-theme="dark"] .mb-postCard:focus-visible,
[data-theme="dark"] .mb-listPost:focus-visible,
[data-theme="dark"] .mb-miniCard:focus-visible {
  outline-color: #d6bd9f;
}

/* High Contrast Reading Mode */
[data-high-contrast="true"] .mb-readingModeBtn {
  border-width: 3px;
}

[data-high-contrast="true"] body.reading-mode .mb-postCard,
[data-high-contrast="true"] body.reading-mode .mb-listPost {
  border: 2px solid #000;
}

/* Audio Badge for Blog Cards */
.mb-tts-badge {
  background: rgba(74, 111, 165, 0.15);
  color: #4a6fa5;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.mb-tts-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 2;
}

.mb-postCard__imgWrap,
.mb-listPost__imgWrap {
  position: relative;
}

[data-theme="dark"] .mb-tts-badge {
  background: rgba(214, 189, 159, 0.2);
  color: #d6bd9f;
}

[data-theme="dark"] .mb-tts-badge-overlay {
  background: rgba(214, 189, 159, 0.9);
  color: #1a1a2e;
}

/* High Contrast for Blog Accessibility */
[data-high-contrast="true"] .mb-readingProgress {
  background: #000;
  height: 6px;
}

[data-high-contrast="true"] .mb-readingProgress__fill {
  background: #ffeb3b;
}

[data-high-contrast="true"] .mb-ttsBtn {
  border-width: 3px;
  border-color: #000;
  color: #000;
  font-weight: 700;
}

[data-high-contrast="true"] .mb-ttsBtn:hover,
[data-high-contrast="true"] .mb-ttsBtn.is-playing {
  background: #ffeb3b;
  border-color: #000;
  color: #000;
}

[data-high-contrast="true"] .mb-readingModeBtn {
  border-width: 3px;
  border-color: #000;
  color: #000;
  font-weight: 700;
}

[data-high-contrast="true"] .mb-readingModeBtn:hover,
[data-high-contrast="true"] .mb-readingModeBtn.is-active {
  background: #ffeb3b;
  border-color: #000;
  color: #000;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .mb-readingProgress__fill {
    transition: none;
  }
  
  .mb-postCard,
  .mb-listPost,
  .mb-miniCard {
    transition: none;
  }
}

/* ===== NOTIFICATION BADGE ===== */
.navbar-action-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #dc3545;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
  animation: notif-bounce 0.5s ease;
  z-index: 10;
  cursor: pointer;
}

@keyframes notif-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== CRISIS BUTTON ===== */
.crisis-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  animation: crisis-pulse 2s infinite;
}

.crisis-btn ion-icon {
  font-size: 1.1rem;
}

.crisis-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

@keyframes crisis-pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(220, 53, 69, 0.6);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .crisis-btn {
    animation: none;
  }
}

/* Mobile: hide text, show icon only */
@media (max-width: 768px) {
  .crisis-btn {
    padding: 10px;
    border-radius: 50%;
  }
  .crisis-btn span {
    display: none;
  }
  .crisis-btn ion-icon {
    font-size: 1.3rem;
  }
}

/* ===== NAVBAR SEARCH BAR ===== */
.navbar-search {
  position: relative;
  margin-right: 10px;
}

.navbar-search__input {
  width: 0;
  padding: 8px 0;
  border: none;
  border-radius: 20px;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.navbar-search.is-open .navbar-search__input {
  width: 200px;
  padding: 8px 40px 8px 15px;
  background: #f5f5f5;
  opacity: 1;
}

.navbar-search__btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #1a1a2e;
  transition: color 0.3s ease;
}

.navbar-search__btn:hover {
  color: #b89b5e;
}

.navbar-search__btn ion-icon {
  font-size: 1.2rem;
}

.navbar-search {
  position: relative;
  z-index: 102;
}

.navbar-search__results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1001;
}

.navbar-search__results.is-visible {
  display: block;
}

.navbar-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: #1a1a2e;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.navbar-search__item:last-child {
  border-bottom: none;
}

.navbar-search__item:hover {
  background: #f8f6f2;
}

.navbar-search__item-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #b89b5e 0%, #d6bd9f 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.navbar-search__item-content {
  flex: 1;
}

.navbar-search__item-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.navbar-search__item-type {
  font-size: 0.75rem;
  color: #6b6b8a;
}

.navbar-search__empty {
  padding: 20px;
  text-align: center;
  color: #6b6b8a;
  font-size: 0.875rem;
}

/* Dark mode search */
[data-theme="dark"] .navbar-search.is-open .navbar-search__input {
  background: #252542;
  color: #fff;
}

[data-theme="dark"] .navbar-search__btn {
  color: #fff;
}

[data-theme="dark"] .navbar-search__results {
  background: #1a1a2e;
  border: 1px solid #3a3a5a;
}

[data-theme="dark"] .navbar-search__item {
  color: #fff;
  border-color: #3a3a5a;
}

[data-theme="dark"] .navbar-search__item:hover {
  background: #252542;
}

/* Hide search on mobile */
@media (max-width: 768px) {
  .navbar-search {
    display: none;
  }
}

/* ===== NAVBAR DROPDOWN MENUS ===== */
.navbar-item {
  position: relative;
}

.navbar-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.navbar-item:hover .navbar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.navbar-dropdown__item:hover {
  background: #f8f6f2;
  color: #b89b5e;
}

.navbar-dropdown__item ion-icon {
  font-size: 1.1rem;
  color: #b89b5e;
}

.navbar-dropdown__divider {
  height: 1px;
  background: #e8e4dc;
  margin: 8px 0;
}

/* Dark mode dropdown */
[data-theme="dark"] .navbar-dropdown {
  background: #1a1a2e;
  border: 1px solid #3a3a5a;
}

[data-theme="dark"] .navbar-dropdown__item {
  color: #fff;
}

[data-theme="dark"] .navbar-dropdown__item:hover {
  background: #252542;
  color: #d6bd9f;
}

[data-theme="dark"] .navbar-dropdown__divider {
  background: #3a3a5a;
}

/* Hide dropdowns on mobile */
@media (max-width: 768px) {
  .navbar-dropdown {
    display: none !important;
  }
}

/* ===== MOOD CHECK-IN WIDGET ===== */
.mb-moodcheck {
  background: linear-gradient(135deg, #f8f6f2 0%, #fff 100%);
  padding: 60px 20px;
  text-align: center;
}

.mb-moodcheck__wrap {
  max-width: 800px;
  margin: 0 auto;
}

.mb-moodcheck__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.mb-moodcheck__subtitle {
  font-size: 1rem;
  color: #6b6b8a;
  margin-bottom: 30px;
}

.mb-moodcheck__options {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.mb-moodcheck__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 25px;
  background: #fff;
  border: 2px solid #e8e4dc;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.mb-moodcheck__btn:hover {
  border-color: #d6bd9f;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mb-moodcheck__btn.is-selected {
  border-color: #b89b5e;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
  box-shadow: 0 4px 15px rgba(184, 155, 94, 0.3);
}

.mb-moodcheck__emoji {
  font-size: 2.5rem;
}

.mb-moodcheck__label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a2e;
}

.mb-moodcheck__result {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e4dc;
  animation: fadeInUp 0.4s ease;
}

.mb-moodcheck__message {
  font-size: 1rem;
  color: #4a4a68;
  margin-bottom: 15px;
}

.mb-moodcheck__link {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #b89b5e 0%, #d6bd9f 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mb-moodcheck__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 155, 94, 0.4);
}

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

/* Dark mode */
[data-theme="dark"] .mb-moodcheck {
  background: linear-gradient(135deg, #1a1a2e 0%, #252542 100%);
}

[data-theme="dark"] .mb-moodcheck__title {
  color: #fff;
}

[data-theme="dark"] .mb-moodcheck__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .mb-moodcheck__btn {
  background: #252542;
  border-color: #3a3a5a;
}

[data-theme="dark"] .mb-moodcheck__btn:hover {
  border-color: #d6bd9f;
}

[data-theme="dark"] .mb-moodcheck__btn.is-selected {
  background: #2a2a4a;
  border-color: #d6bd9f;
}

[data-theme="dark"] .mb-moodcheck__label {
  color: #fff;
}

[data-theme="dark"] .mb-moodcheck__result {
  background: #252542;
  border-color: #3a3a5a;
}

[data-theme="dark"] .mb-moodcheck__message {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== SOURCE BADGES SECTION ===== */
.mb-sources {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.mb-sources__wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.mb-sources__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mb-sources__subtitle {
  font-size: 1rem;
  color: #6b6b8a;
  margin-bottom: 40px;
}

.mb-sources__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.mb-sources__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.mb-sources__item:hover {
  transform: translateY(-4px);
  background: #f8f6f2;
}

.mb-sources__logo {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #b89b5e 0%, #d6bd9f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(184, 155, 94, 0.3);
}

.mb-sources__abbr {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.mb-sources__name {
  font-size: 0.75rem;
  color: #6b6b8a;
  max-width: 120px;
  line-height: 1.3;
}

/* Dark mode */
[data-theme="dark"] .mb-sources {
  background: #1a1a2e;
}

[data-theme="dark"] .mb-sources__title {
  color: #fff;
}

[data-theme="dark"] .mb-sources__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .mb-sources__item:hover {
  background: #252542;
}

[data-theme="dark"] .mb-sources__name {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .mb-moodcheck__options {
    gap: 10px;
  }
  
  .mb-moodcheck__btn {
    padding: 15px 18px;
    min-width: 80px;
  }
  
  .mb-moodcheck__emoji {
    font-size: 2rem;
  }
  
  .mb-sources__grid {
    gap: 20px;
  }
  
  .mb-sources__logo {
    width: 60px;
    height: 60px;
  }
}

/* ===== MENTIONS DROPDOWN ===== */
.mb-mention-dropdown {
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.mb-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mb-mention-item:hover,
.mb-mention-item.active {
  background: var(--bg-tertiary, #f5f5f5);
}

.mb-mention-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.mb-mention-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary, #333);
}

[data-theme="dark"] .mb-mention-dropdown {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mb-mention-item:hover,
[data-theme="dark"] .mb-mention-item.active {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mb-mention-name {
  color: #fff;
}

/* ===== INBOX MODAL ===== */
.mb-inbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  z-index: 1000;
}

.mb-inbox-modal[hidden] {
  display: none !important;
}

.mb-inbox-content {
  background: var(--bg-primary, #fff);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mb-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.mb-inbox-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.mb-inbox-actions {
  display: flex;
  gap: 10px;
}

.mb-inbox-mark-read {
  background: none;
  border: none;
  color: var(--accent-color, #b89b5e);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
}

.mb-inbox-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary, #666);
  line-height: 1;
}

.mb-inbox-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.mb-inbox-loading,
.mb-inbox-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary, #666);
}

.mb-notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-color, #f0f0f0);
}

.mb-notif-item:hover {
  background: var(--bg-tertiary, #f8f8f8);
}

.mb-notif-item.mb-notif-unread {
  background: rgba(184, 155, 94, 0.08);
}

.mb-notif-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mb-notif-content {
  flex: 1;
  min-width: 0;
}

.mb-notif-text {
  font-size: 0.9rem;
  color: var(--text-primary, #333);
  margin-bottom: 4px;
}

.mb-notif-preview {
  font-size: 0.8rem;
  color: var(--text-secondary, #666);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.mb-notif-time {
  font-size: 0.75rem;
  color: var(--text-tertiary, #999);
}

[data-theme="dark"] .mb-inbox-content {
  background: #2d2b3d;
}

[data-theme="dark"] .mb-inbox-header {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mb-inbox-title {
  color: #fff;
}

[data-theme="dark"] .mb-inbox-close {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .mb-notif-item {
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .mb-notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .mb-notif-text {
  color: #fff;
}

[data-theme="dark"] .mb-notif-preview {
  color: rgba(255, 255, 255, 0.6);
}

/* Mention highlight in posts */
.mb-mention {
  color: var(--accent-color, #b89b5e);
  font-weight: 500;
  cursor: pointer;
}

.mb-mention:hover {
  text-decoration: underline;
}
/* ===== MOBILE SUBMENU PANEL SYSTEM ===== */
@media (max-width: 1024px) {
  /* Override glass effects with solid colors */
  .navbar-link {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  .navbar-link:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
  }

  [data-theme="dark"] .navbar-link {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  [data-theme="dark"] .navbar-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  .navbar-link.active {
    background: rgba(175, 145, 109, 0.15) !important;
    border-color: rgba(175, 145, 109, 0.4) !important;
  }

  [data-theme="dark"] .navbar-link.active {
    background: rgba(212, 165, 116, 0.2) !important;
    border-color: rgba(212, 165, 116, 0.5) !important;
  }

  .navbar .close-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }

  [data-theme="dark"] .navbar .close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  /* Chevron indicator for items with dropdowns */
  .navbar-item.has-submenu .navbar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 12px;
  }

  .navbar-item.has-submenu .submenu-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .navbar-item.has-submenu .navbar-link:hover .submenu-chevron {
    opacity: 1;
  }

  /* Mobile Submenu Panel */
  .navbar-submenu-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f0e8;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .navbar-submenu-panel.active {
    transform: translateX(0);
  }

  [data-theme="dark"] .navbar-submenu-panel {
    background: #2d2b3d;
  }

  .submenu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  [data-theme="dark"] .submenu-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .submenu-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a2e;
  }

  .submenu-back-btn:hover {
    background: rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .submenu-back-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  [data-theme="dark"] .submenu-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .submenu-back-btn ion-icon {
    font-size: 1.3rem;
  }

  .submenu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
  }

  [data-theme="dark"] .submenu-title {
    color: #fff;
  }

  .submenu-items {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    min-height: 48px;
  }

  .submenu-item:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .submenu-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  [data-theme="dark"] .submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .submenu-item ion-icon {
    font-size: 1.2rem;
    color: #af916d;
    flex-shrink: 0;
  }

  [data-theme="dark"] .submenu-item ion-icon {
    color: #d4a574;
  }

  .submenu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
  }

  [data-theme="dark"] .submenu-divider {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Hide main navbar content when submenu is open */
  .navbar.submenu-open .navbar-scroll-content,
  .navbar.submenu-open .mobile-settings-section {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  /* Hide chevron on desktop - keep this only in mobile */
  .submenu-chevron {
    display: flex !important;
  }
}

/* Hide chevron and submenu panel on desktop */
@media (min-width: 1025px) {
  .submenu-chevron {
    display: none !important;
  }
  
  .navbar-submenu-panel {
    display: none !important;
  }
}
