/* ==========================================================================
   REDEEMER HOSPITAL - PRINCIPAL STYLE SHEET
   ========================================================================== */

/* IMPORT MODERN WEB FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. CUSTOMIZABLE DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Brand Medical Color Palette */
  --primary: #03a9f4;             /* Redeemer Electric Blue */
  --primary-hover: #0288d1;       /* Darker Blue for Buttons */
  --secondary: #00a3e0;           /* Clean Medical Teal/Blue */
  --accent-orange: #f49c00;       /* Lab Gold Accent */
  --accent-purple: #8e24aa;       /* Renal purple */
  --accent-pink: #d81b60;         /* Highlighting gradient */
  --warning-yellow: #ffb300;      /* Core CTAs */
  --success-green: #10b981;       /* Success messages */
  --success-bg: #ecfdf5;          /* Success alert box background */
  --success-border: #d1fae5;      /* Success alert box border */
  
  /* Text Color Palette */
  --text-main: #2c3e50;           /* Charcoal Blue/Gray */
  --text-dark: #1e293b;           /* Slate Blue Slate for Headings */
  --text-light: #64748b;          /* Light Slate for Body Paragraphs */
  --text-muted: #8e9aa8;          /* Super soft gray-blue */
  
  /* Background Canvas Tones */
  --bg-main: #fbfcff;             /* Pure Medical Aesthetic White */
  --bg-alternate: #f9fbfd;        /* Team & Contact background tint */
  --bg-facilities: #f8fafc;       /* Facility grey-tint */
  --bg-dark: #111111;             /* Header, mobile drawer & footer primary tone */
  --bg-card: #ffffff;             /* Main card backgrounds */
  
  /* Fonts Pairing */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-title: "Outfit", sans-serif;
  
  /* Design Radii & Transitions */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Elegant Depth Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   2. DOM ELEMENT RESETS & BASE TYPOGRAPHY
   ========================================================================== */
*, :before, :after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  background-color: transparent;
  cursor: pointer;
}

img, svg {
  display: block;
}

input, select, textarea {
  font-family: inherit;
}

/* Custom Highlight Selection colors */
::selection {
  background-color: var(--primary);
  color: #fff;
}

/* Active Navigation Dots Container */
#sidebar-dots {
  display: flex;
}

/* ==========================================================================
   3. SEMANTIC STYLING RULES & LAYOUT SEGMENTS
   ========================================================================== */

/* --- HEADER / NAVIGATION BAR --- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: var(--transition);
}

/* Header variant scrolled state (Injected dynamically inside script.js) */
#main-header.scrolled {
  background-color: rgba(17, 17, 17, 0.9);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Branding Font Families */
.font-title {
  font-family: var(--font-title);
}

/* Navigation button highlights */
.nav-btn {
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  transition: var(--transition);
}

.nav-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- HERO LANDING BANNER --- */
#home {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #000;
}

#home img.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#home img.hero-slide.active {
  opacity: 0.85;
}

/* --- SERVICES PANEL --- */
.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* --- FACILITIES SYSTEM --- */
.facility-card {
  background-color: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.facility-card img {
  transition: transform 0.5s ease;
}

.facility-card:hover img {
  transform: scale(1.05);
}

/* --- LIGHTBOX & DIALOG POPUPS --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
}

/* ==========================================================================
   4. TAILWIND COMPATIBILITY LAYER
   This section guarantees that the existing HTML layout and class references
   rendered statically or dynamically from script.js continue to design
   correctly. It organizes them systematically by category so they are extremely
   easy to find and edit.
   ========================================================================== */

/* --- FLEXBOX & GRID ALIGNMENTS --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: shrink; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

/* Grid columns templates classes */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 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\:flex { display: flex !important; }
}

/* Gaps and spacing values */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
@media (min-width: 1024px) { .lg\:gap-16 { gap: 4rem; } }
@media (min-width: 1280px) { .xl\:gap-8 { gap: 2rem; } }

/* Space-y margins spacer helper */
.space-y-0\.5 > :not(:last-child) { margin-bottom: 0.125rem; }
.space-y-1 > :not(:last-child) { margin-bottom: 0.25rem; }
.space-y-1\.5 > :not(:last-child) { margin-bottom: 0.375rem; }
.space-y-2 > :not(:last-child) { margin-bottom: 0.5rem; }
.space-y-3 > :not(:last-child) { margin-bottom: 0.75rem; }
.space-y-4 > :not(:last-child) { margin-bottom: 1rem; }
.space-y-6 > :not(:last-child) { margin-bottom: 1.5rem; }

/* Self placements */
.self-start { align-self: flex-start; }
.shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* --- MARGINS & SIZING SPACING --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.-mt-20 { margin-top: -5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* --- PADDINGS (STRETCH & SPACING) --- */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.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-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.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; }
.pr-3 { padding-right: 0.75rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }

@media (min-width: 640px) {
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* --- CONTAINER & MAX WIDTH LIMITS --- */
.container { width: 100%; margin-left: auto; margin-right: auto; }
.max-w-xs { max-width: 20rem; }
.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; }
.max-w-full { max-width: 100%; }
.max-w-\[90\%\] { max-width: 90%; }

/* Heights & Widths sizes */
.w-1\.5 { width: 0.375rem; }
.w-2\.5 { width: 0.625rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-28 { width: 7rem; }
.w-52 { width: 13rem; }
.w-80 { width: 20rem; }
.w-full { width: 100%; }
.w-\[200\%\] { width: 200%; }

.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-2\.5 { height: 0.625rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-28 { height: 7rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.h-\[200\%\] { height: 200%; }

.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[85\%\] { max-height: 85%; }

@media (min-width: 640px) {
  .sm\:h-80 { height: 20rem; }
  .sm\:w-64 { width: 16rem; }
  .sm\:w-auto { width: auto; }
}

/* --- POSITIONS & LAYOUT CONTROLS --- */
.absolute { position: absolute; }
.fixed { position: fixed; }
.relative { position: relative; }
.static { position: static; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.overflow-hidden { overflow: hidden; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-4 { top: 1rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[1\] { z-index: 1; }
.z-\[60\] { z-index: 60; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.translate-x-full { transform: translateX(100%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.translate-x-4 { transform: translateX(1rem); }
.translate-x-8 { transform: translateX(2rem); }
.rotate-6 { transform: rotate(6deg); }
.rotate-12 { transform: rotate(12deg); }
.-rotate-45 { transform: rotate(-45deg); }

/* Double transformation variables */
.-translate-x-1\/2.-translate-y-1\/2 {
  transform: translate(-50%, -50%);
}

@media (min-width: 640px) {
  .sm\:translate-y-10 { transform: translateY(2.5rem); }
}

/* --- BORDERS & RADII --- */
.border { border-width: 1px; border-style: solid; border-color: rgba(0,0,0,0.08); }
.border-2 { border-width: 2px; border-style: solid; }
.border-x { border-left-width: 1px; border-right-width: 1px; border-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #f3f4f6; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #f3f4f6; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-dashed { border-style: dashed; }

/* Custom Border colors */
.border-\[\#03a9f4\] { border-color: var(--primary); }
.border-\[\#e2e8f0\]\/80 { border-color: rgba(226, 232, 240, 0.8); }
.border-black\/5 { border-color: rgba(0,0,0,0.05); }
.border-emerald-100 { border-color: var(--success-border); }
.border-gray-50 { border-color: #f9fafb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-slate-400 { border-color: #94a3b8; }
.border-transparent { border-color: transparent; }
.border-white { border-color: #ffffff; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

/* Border radius models */
.rounded { border-radius: var(--radius-xs); }
.rounded-md { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* --- BACKGROUNDS STYLING --- */
.bg-\[\#00a3e0\] { background-color: var(--secondary); }
.bg-\[\#03a9f4\] { background-color: var(--primary); }
.bg-\[\#03a9f4\]\/15 { background-color: rgba(3, 169, 244, 0.15); }
.bg-\[\#8e24aa\] { background-color: var(--accent-purple); }
.bg-\[\#111111\] { background-color: var(--bg-dark); }
.bg-\[\#e7f1f7\] { background-color: #e7f1f7; }
.bg-\[\#f8fafc\] { background-color: var(--bg-facilities); }
.bg-\[\#f9fbfd\] { background-color: var(--bg-alternate); }
.bg-\[\#f49c00\] { background-color: var(--accent-orange); }
.bg-\[\#fbfcff\] { background-color: var(--bg-main); }
.bg-\[\#fcfdfd\] { background-color: #fcfdfd; }
.bg-\[\#ffb300\] { background-color: var(--warning-yellow); }

.bg-black { background-color: #000000; }
.bg-black\/10 { background-color: rgba(0, 0, 0, 0.1); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-black\/95 { background-color: rgba(0, 0, 0, 0.95); }

.bg-emerald-50 { background-color: var(--success-bg); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.bg-sky-100\/60 { background-color: rgba(224, 242, 254, 0.6); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #ffffff; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }

/* Gradient backgrounds */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-\[\#8e24aa\] { --tw-gradient-from: var(--accent-purple); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(142, 36, 170, 0)); }
.from-\[\#fbfcff\] { --tw-gradient-from: var(--bg-main); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251, 252, 255, 0)); }
.from-black\/80 { --tw-gradient-from: rgba(0,0,0,0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,0,0,0)); }
.via-black\/65 { --tw-gradient-stops: var(--tw-gradient-from), rgba(0,0,0,0.65) 50%, var(--tw-gradient-to, rgba(0,0,0,0)); }
.to-\[\#d81b60\] { --tw-gradient-to: var(--accent-pink); }
.to-\[\#f2f6fa\] { --tw-gradient-to: #f2f6fa; }
.to-black\/80 { --tw-gradient-to: rgba(0,0,0,0.8); }

/* --- TYPOGRAPHY & TEXT STYLES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }

.font-sans { font-family: var(--font-sans); }
.title-font, .font-title { font-family: var(--font-title); }

.text-xs { font-size: 0.875rem; }
.text-sm { font-size: 1rem; }
.text-base { font-size: 1.125rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.4rem; }
.text-2xl { font-size: 1.75rem; }
.text-3xl { font-size: 1.625rem; }
.text-4xl { font-size: 1.875rem; }
.text-5xl { font-size: 2.25rem; }
.text-6xl { font-size: 2.75rem; }

.text-\[8px\] { font-size: 11px; }
.text-\[9px\] { font-size: 12px; }
.text-\[10px\] { font-size: 13px; }
.text-\[11px\] { font-size: 14px; }
.text-\[12px\] { font-size: 15px; }
.text-\[13px\] { font-size: 16px; }
.text-\[15px\] { font-size: 17px; }
.text-\[18px\] { font-size: 21px; }
.text-\[22px\] { font-size: 25px; }

@media (min-width: 640px) {
  .sm\:text-3xl { font-size: 2.125rem; }
  .sm\:text-4xl { font-size: 2.625rem; }
  .sm\:text-5xl { font-size: 3.5rem; }
  .sm\:text-sm { font-size: 1rem; }
  .sm\:text-xl { font-size: 1.4rem; }
  .sm\:text-xs { font-size: 0.875rem; }
  .sm\:text-\[18px\] { font-size: 21px; }
  .sm\:text-\[46px\] { font-size: 52px; }
}
@media (min-width: 768px) {
  .md\:text-left { text-align: left; }
  .md\:text-2xl { font-size: 1.75rem; }
  .md\:text-4xl { font-size: 2.625rem; }
  .md\:text-6xl { font-size: 4.5rem; }
  .md\:text-base { font-size: 1.125rem; }
}

.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

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

.tracking-\[0\.03em\] { letter-spacing: 0.03em; }
.tracking-\[0\.1em\] { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-normal { letter-spacing: normal; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.lowercase { text-transform: lowercase; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Custom colors matching hex strings */
.text-\[\#1e293b\] { color: var(--text-dark); }
.text-\[\#2b2b2b\] { color: #2b2b2b; }
.text-\[\#2b354e\] { color: #2b354e; }
.text-\[\#2c3e50\] { color: var(--text-main); }
.text-\[\#03a9f4\] { color: var(--primary); }
.text-\[\#8e9aa8\] { color: var(--text-muted); }
.text-\[\#64748b\] { color: var(--text-light); }

.text-emerald-600 { color: #059669; }
.text-emerald-800 { color: #065f46; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-white { color: #ffffff; }
.text-white\/65 { color: rgba(255, 255, 255, 0.65); }

/* --- SELECTION & INTERACTION ACTIONS --- */
.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }
.opacity-0 { opacity: 0; }
.opacity-85 { opacity: 0.85; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-xs { box-shadow: var(--shadow-xs); }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xs { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* --- SCALE HOVERS & HOVER RESPONSES --- */
.transition-all { transition: var(--transition); }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-transform { transition: transform 0.3s ease; }

.duration-100 { transition-duration: 0.1s; }
.duration-200 { transition-duration: 0.2s; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%) translateX(-50%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }
  50% {
    transform: translateY(0) translateX(-50%);
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

/* Hover effects with smooth response */
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:border-\[\#03a9f4\]:hover { border-color: var(--primary); }
.hover\:bg-\[\#03a9f4\]:hover { background-color: var(--primary); }
.hover\:bg-black:hover { background-color: #000000; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-transparent:hover { background-color: transparent; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }

.hover\:text-\[\#03a9f4\]:hover { color: var(--primary); }
.hover\:text-black:hover { color: #000000; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-sky-500:hover { color: #0ea5e9; }
.hover\:text-white:hover { color: #ffffff; }

.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }

.focus\:border-\[\#03a9f4\]:focus { border-color: var(--primary); outline: none; }
.focus\:outline-none:focus { outline: none; }
.outline-none { outline: none; }

/* Group Hover effects classes */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

/* Custom categories scrollbars & alignments */
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.line-clamp-4:hover {
  display: block;
  overflow: visible;
}

/* Custom Grid item overrides */
@media (min-width: 1024px) {
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:hidden { display: none !important; }
}
