/**
 * MED+ Volunteering Main Stylesheet
 * Complete production-ready design system matching the MED+ Volunteering specification.
 * Eliminates external Tailwind CDN dependencies while supporting full utility classes,
 * RTL/LTR bilingual typography, and tactile micro-interactions.
 */

/* ==========================================================================
   1. Typography & Font Families
   ========================================================================== */
.font-sans   { font-family: 'Plus Jakarta Sans', 'Noto Kufi Arabic', sans-serif; }
.font-arabic { font-family: 'Noto Kufi Arabic', 'Plus Jakarta Sans', sans-serif; }
.font-serif  { font-family: 'Instrument Serif', Georgia, serif; }
.font-mono   { font-family: 'JetBrains Mono', monospace; }

/* ==========================================================================
   2. Colors: Official MED+ Palette & Backgrounds
   ========================================================================== */
.bg-map-red       { background-color: #7A1E2C; }
.bg-map-redDark   { background-color: #5C1520; }
.bg-map-redSoft   { background-color: #F9F1F2; }
.bg-map-navy      { background-color: #0D233E; }
.bg-map-navyLight { background-color: #16375E; }
.bg-map-orange    { background-color: #7CA3D0; }
.bg-map-blueSoft  { background-color: #7CA3D0; }
.bg-map-green     { background-color: #589D32; }
.bg-map-sand      { background-color: #F5F7FA; }
.bg-map-stone     { background-color: #E6ECF2; }
.bg-map-paper     { background-color: #FCFBF9; }
.bg-white         { background-color: #FFFFFF; }
.bg-white\/5      { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10     { background-color: rgba(255, 255, 255, 0.10); }
.bg-white\/15     { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/95     { background-color: rgba(255, 255, 255, 0.95); }
.bg-map-redSoft\/40 { background-color: rgba(249, 241, 242, 0.40); }
.bg-map-paper\/95 { background-color: rgba(252, 251, 249, 0.95); }
.bg-map-navy\/60  { background-color: rgba(13, 35, 62, 0.60); }
.bg-map-navy\/75  { background-color: rgba(13, 35, 62, 0.75); }

/* Text Colors */
.text-map-red       { color: #7A1E2C; }
.text-map-redDark   { color: #5C1520; }
.text-map-navy      { color: #0D233E; }
.text-map-navyLight { color: #16375E; }
.text-map-orange    { color: #7CA3D0; }
.text-map-blueSoft  { color: #7CA3D0; }
.text-map-green     { color: #589D32; }
.text-map-slate     { color: #475569; }
.text-white         { color: #FFFFFF; }
.text-white\/60     { color: rgba(255, 255, 255, 0.60); }
.text-white\/70     { color: rgba(255, 255, 255, 0.70); }
.text-white\/75     { color: rgba(255, 255, 255, 0.75); }
.text-white\/80     { color: rgba(255, 255, 255, 0.80); }
.text-white\/85     { color: rgba(255, 255, 255, 0.85); }
.text-map-navy\/75  { color: rgba(13, 35, 62, 0.75); }
.text-map-navy\/80  { color: rgba(13, 35, 62, 0.80); }
.text-map-navy\/85  { color: rgba(13, 35, 62, 0.85); }

/* Border Colors */
.border-map-border  { border-color: #D6D6D6; }
.border-map-red     { border-color: #7A1E2C; }
.border-map-red\/20 { border-color: rgba(122, 30, 44, 0.20); }
.border-map-navy\/20 { border-color: rgba(13, 35, 62, 0.20); }
.border-map-border\/80 { border-color: rgba(214, 214, 214, 0.80); }
.border-white\/10   { border-color: rgba(255, 255, 255, 0.10); }
.border-white\/15   { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/20   { border-color: rgba(255, 255, 255, 0.20); }
.border-white\/25   { border-color: rgba(255, 255, 255, 0.25); }

/* Hover States */
.hover\:bg-map-redDark:hover { background-color: #5C1520; }
.hover\:bg-map-navyLight:hover { background-color: #16375E; }
.hover\:bg-map-sand:hover { background-color: #F5F7FA; }
.hover\:bg-map-stone:hover { background-color: #E6ECF2; }
.hover\:bg-map-red:hover { background-color: #7A1E2C; }
.hover\:text-map-red:hover { color: #7A1E2C; }
.hover\:text-map-redDark:hover { color: #5C1520; }
.hover\:text-map-navy:hover { color: #0D233E; }
.hover\:text-white:hover { color: #FFFFFF; }
.hover\:border-map-red:hover { border-color: #7A1E2C; }
.hover\:border-map-red\/40:hover { border-color: rgba(122, 30, 44, 0.40); }
.hover\:border-map-red\/50:hover { border-color: rgba(122, 30, 44, 0.50); }
.hover\:border-white\/40:hover { border-color: rgba(255, 255, 255, 0.40); }
.hover\:underline:hover { text-decoration: underline; }

/* Focus States */
.focus\:outline-none:focus { outline: none; }
.focus\:border-map-red:focus { border-color: #7A1E2C; }

/* Selection */
::selection { background-color: #7A1E2C; color: #FFFFFF; }

/* ==========================================================================
   3. Micro-Interactions, Textures & Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

.card-lift {
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(13, 35, 62, 0.14);
  border-color: rgba(122, 30, 44, 0.35);
}

.nav-link {
  position: relative;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background-color: #7A1E2C;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link.active {
  color: #7A1E2C !important;
  font-weight: 700;
}

/* Fabric & Limestone Textures */
.fabric-weave {
  background-color: #EBF1F6;
  background-image: 
    radial-gradient(at 20% 25%, rgba(255,255,255,0.85) 0px, transparent 55%),
    radial-gradient(at 80% 75%, rgba(13, 35, 62, 0.07) 0px, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0px, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 3px);
}
.limestone-facade {
  background-color: #D7C5B0;
  background-image: 
    radial-gradient(rgba(110, 88, 63, 0.10) 1px, transparent 0),
    radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

/* Page transitions */
.page-view {
  animation: pageFade 0.45s var(--ease-out-expo) forwards;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Side Drawer */
.side-drawer {
  transition: transform 0.4s var(--ease-out-expo);
}
html[dir="ltr"] .side-drawer.drawer-closed {
  transform: translateX(100%);
}
html[dir="rtl"] .side-drawer.drawer-closed {
  transform: translateX(-100%);
}
.side-drawer.drawer-open {
  transform: translateX(0);
}

/* Map pin pulse */
@keyframes pinPulse {
  0%   { transform: scale(1); opacity: 0.75; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pin-ring {
  animation: pinPulse 2.4s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
  transform-box: fill-box;
}

/* ==========================================================================
   4. Layout, Containers & Grid Helpers
   ========================================================================== */
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.w-full    { width: 100%; }
.h-full    { height: 100%; }
.min-h-screen { min-height: 100vh; }
.flex-grow { flex-grow: 1; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

.ps-2\.5 { padding-inline-start: 0.625rem; }
.ps-3\.5 { padding-inline-start: 0.875rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-14 { padding-top: 3.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-7 { padding-bottom: 1.75rem; }
.pb-12 { padding-bottom: 3rem; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-14 > * + * { margin-top: 3.5rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-around { justify-content: space-around; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-s { border-inline-start-width: 1px; border-inline-start-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.sticky { position: sticky; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.end-0 { inset-inline-end: 0; }
.bottom-5 { bottom: 1.25rem; }
.end-5 { inset-inline-end: 1.25rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.transition { transition: all 0.25s var(--ease-out-expo); }
.transition-all { transition: all 0.3s var(--ease-out-expo); }
.duration-300 { transition-duration: 300ms; }

/* Text Sizes & Weights */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.text-start { text-align: start; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }

/* Specific dimensions */
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-36 { width: 9rem; }
.h-36 { height: 9rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }

/* Responsive Variants */
@media (min-width: 640px) {
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .sm\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .sm\:py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:ps-3\.5 { padding-inline-start: 0.875rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:gap-3\.5 { gap: 0.875rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-5 { gap: 1.25rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:gap-8 { gap: 2rem; }
  .sm\:mb-10 { margin-bottom: 2.5rem; }
  .sm\:mb-12 { margin-bottom: 3rem; }
  .sm\:mt-16 { margin-top: 4rem; }
  .sm\:mt-20 { margin-top: 5rem; }
  .sm\:space-y-8 > * + * { margin-top: 2rem; }
  .sm\:space-y-14 > * + * { margin-top: 3.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:w-16 { width: 4rem; }
  .sm\:h-16 { height: 4rem; }
  .sm\:w-40 { width: 10rem; }
  .sm\:w-44 { width: 11rem; }
  .sm\:h-44 { height: 11rem; }
  .sm\:h-24 { height: 6rem; }
  .sm\:min-h-\[520px\] { min-height: 520px; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-\[9\.5px\] { font-size: 9.5px; }
  .sm\:text-\[12\.5px\] { font-size: 12.5px; }
  .sm\:text-\[27px\] { font-size: 27px; }
  .sm\:text-\[26px\] { font-size: 26px; }
  .sm\:text-start { text-align: start; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-14 { gap: 3.5rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:flex-col { flex-direction: column; }
  .lg\:text-\[52px\] { font-size: 52px; }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex; }
  .xl\:hidden { display: none; }
}

/* RTL Helpers */
html[dir="rtl"] .rtl\:rotate-180 { transform: rotate(180deg); }

/* Touch Target Compliance (Minimum 44px as per SEOmator & WCAG 2.5.5) */
button,
a.med-btn,
.nav-link,
input[type="submit"],
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  min-height: 44px;
}

/* ==========================================================================
   5. Backward Compatibility Classes (For Test Suite & Legacy Widgets)
   ========================================================================== */
.med-pulse-divider {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #7A1E2C, #0D233E, #7CA3D0);
  margin: 1.5rem 0;
}
.med-mascot-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #F9F1F2;
  border-radius: 1rem;
  border: 1px solid rgba(122, 30, 44, 0.2);
}
.med-mascot-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.coursera-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.coursera-mega-drawer {
  display: none;
}
.med-tier-card {
  padding: 1.5rem;
  background: #FCFBF9;
  border: 1px solid #D6D6D6;
  border-radius: 1rem;
}
.med-survey-preview-card {
  padding: 1.25rem;
  background: #FFFFFF;
  border: 1px solid #D6D6D6;
  border-radius: 1rem;
}
.med-hash-box {
  padding: 1rem;
  background: #F5F7FA;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}
.med-timeline-wrapper {
  position: relative;
  padding-inline-start: 1.5rem;
}
.med-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.med-lang-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid #D6D6D6;
  background-color: #FFFFFF;
  padding: 0.125rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  min-height: 44px;
}
.med-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  color: #0D233E;
  font-weight: 700;
  transition: all 0.2s ease;
}
.med-lang-btn:hover {
  background-color: #F5F7FA;
}
.med-lang-btn.is-active {
  background-color: #0D233E;
  color: #FFFFFF;
}
.med-menu-toggle,
.med-survey-btn,
.med-filter-btn,
.med-center-zoom-btn {
  min-height: 44px;
  min-width: 44px;
}
.med-footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--map-orange);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.med-mobile-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}
