/* ==========================================================================
   Amir Hossein Fallah - Dedicated Blog Theme (100% Self-Hosted & Local)
   No External CDN, No Google Fonts, 100% Local kalamehweb Font & Pure CSS Engine
   Version: 2.3.0
   ========================================================================== */

/* 1. Local KalamehWeb Font Definition */
@font-face {
  font-family: 'KalamehWeb';
  src: url('/fonts/KalamehWeb-Regular.woff2') format('woff2'),
       url('/fonts/KalamehWeb-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KalamehWeb';
  src: url('/fonts/KalamehWeb-Medium.woff2') format('woff2'),
       url('/fonts/KalamehWeb-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KalamehWeb';
  src: url('/fonts/KalamehWeb-SemiBold.woff2') format('woff2'),
       url('/fonts/KalamehWeb-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KalamehWeb';
  src: url('/fonts/KalamehWeb-Bold.woff2') format('woff2'),
       url('/fonts/KalamehWeb-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KalamehWeb';
  src: url('/fonts/KalamehWeb-Black.woff2') format('woff2'),
       url('/fonts/KalamehWeb-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KalamehWeb';
  src: url('/fonts/KalamehWeb-ExtraLight.woff2') format('woff2'),
       url('/fonts/KalamehWeb-ExtraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KalamehWeb';
  src: url('/fonts/KalamehWeb-Thin.woff2') format('woff2'),
       url('/fonts/KalamehWeb-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* 2. Theme CSS Variables */
:root {
  --bg-main: #0A0A0B;
  --bg-card: #0D0D0E;
  --bg-card-hover: #141417;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(234, 88, 12, 0.4);
  --brand-orange: #EA580C;
  --brand-orange-light: #F97316;
  --brand-amber: #F59E0B;
  --font-family: 'KalamehWeb', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 3. Global Reset & Base Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #0A0A0B;
  color: #F1F5F9;
  font-family: var(--font-family);
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #0A0A0B;
  color: #E2E8F0;
  font-family: var(--font-family);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #FB923C;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

/* 4. Complete Flex, Grid & Layout Utility Classes */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.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-20 { width: 5rem; }
.h-20 { height: 5rem; }
.h-16 { height: 4rem; }
.min-w-0 { min-width: 0px; }
.min-h-\[60px\] { min-height: 60px; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

.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-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }

.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; }

/* Margins & Spacings */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.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-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.-mt-0\.5 { margin-top: -0.125rem; }
.-mt-1 { margin-top: -0.25rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.p-0 { padding: 0; }
.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-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.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-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 { 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-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }

/* Border Radii */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.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; }

/* Borders & Colors */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-r-4 { border-right-width: 4px; border-right-style: solid; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-orange-400\/30 { border-color: rgba(251, 146, 60, 0.3); }
.border-orange-500\/20 { border-color: rgba(249, 115, 22, 0.2); }
.border-orange-500\/25 { border-color: rgba(249, 115, 22, 0.25); }
.border-orange-500\/30 { border-color: rgba(234, 88, 12, 0.3); }
.border-orange-500\/40 { border-color: rgba(234, 88, 12, 0.4); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-purple-500\/20 { border-color: rgba(168, 85, 247, 0.2); }
.border-purple-500\/25 { border-color: rgba(168, 85, 247, 0.25); }
.border-pink-500\/20 { border-color: rgba(236, 72, 153, 0.2); }
.border-sky-500\/20 { border-color: rgba(14, 165, 233, 0.2); }
.border-indigo-500\/30 { border-color: rgba(99, 102, 241, 0.3); }
.border-transparent { border-color: transparent; }

/* Backgrounds & Colors */
.bg-\[\#0A0A0B\] { background-color: #0A0A0B; }
.bg-\[\#0D0D0E\] { background-color: #0D0D0E; }
.bg-\[\#141416\] { background-color: #141416; }
.bg-\[\#161617\] { background-color: #161617; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-orange-600 { background-color: #EA580C; }
.bg-orange-500 { background-color: #F97316; }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-500 { background-color: #10B981; }
.bg-purple-600 { background-color: #9333EA; }
.bg-orange-500\/10 { background-color: rgba(249, 115, 22, 0.1); }
.bg-orange-500\/15 { background-color: rgba(249, 115, 22, 0.15); }
.bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-sky-500\/10 { background-color: rgba(14, 165, 233, 0.1); }
.bg-sky-500\/20 { background-color: rgba(14, 165, 233, 0.2); }
.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.1); }
.bg-purple-950\/20 { background-color: rgba(59, 7, 100, 0.2); }
.bg-pink-500\/10 { background-color: rgba(236, 72, 153, 0.1); }
.bg-pink-500\/20 { background-color: rgba(236, 72, 153, 0.2); }
.bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2); }

/* Text Colors */
.text-white { color: #FFFFFF; }
.text-slate-100 { color: #F1F5F9; }
.text-slate-200 { color: #E2E8F0; }
.text-slate-300 { color: #CBD5E1; }
.text-slate-400 { color: #94A3B8; }
.text-slate-500 { color: #64748B; }
.text-orange-400 { color: #FB923C; }
.text-orange-300 { color: #FDBA74; }
.text-amber-300 { color: #FCD34D; }
.text-amber-400 { color: #FBBF24; }
.text-emerald-400 { color: #34D399; }
.text-emerald-300 { color: #6EE7B7; }
.text-sky-400 { color: #38BDF8; }
.text-blue-400 { color: #60A5FA; }
.text-purple-300 { color: #D8B4FE; }
.text-purple-400 { color: #C084FC; }
.text-pink-400 { color: #F472B6; }
.text-red-400 { color: #F87171; }
.text-indigo-400 { color: #818CF8; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 900; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.text-\[9px\] { font-size: 0.5625rem; line-height: 0.75rem; }
.text-\[10px\] { font-size: 0.625rem; line-height: 0.875rem; }
.text-\[11px\] { font-size: 0.6875rem; line-height: 1rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem;text-align: justify; }
.text-sm { font-size: 0.875rem; text-align: justify; }
.text-base { font-size: 1rem; line-height: 1.5rem;text-align: justify; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem;text-align: justify; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem;text-align: justify; }
.text-2xl { font-size: 1.5rem; line-height: 2rem;text-align: justify; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem;text-align: justify; }
.text-center { text-align: justify; }

/* Positioning & Layout */
.sticky { position: sticky; }
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { right: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.bottom-3 { bottom: 0.75rem; }
.right-0 { right: 0; }
.right-2 { right: 0.5rem; }
.top-2 { top: 0.5rem; }
.left-0 { left: 0; }
.-bottom-1 { bottom: -0.25rem; }
.-right-1 { right: -0.25rem; }

.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

/* Shadows & Transitions */
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* Gradients */
.bg-gradient-to-l { background-image: linear-gradient(to left, #EA580C, #F59E0B); }
.bg-gradient-to-r { background-image: linear-gradient(to right, #EA580C, #F59E0B); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, #EA580C, #F59E0B); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, rgba(234,88,12,0.12), #0D0D0E, #0A0A0B); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* Line Clamping */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover States */
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/15:hover { background-color: rgba(255, 255, 255, 0.15); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-orange-500:hover { background-color: #F97316; }
.hover\:bg-emerald-500:hover { background-color: #10B981; }
.hover\:bg-purple-500:hover { background-color: #A855F7; }
.hover\:bg-purple-500\/20:hover { background-color: rgba(168, 85, 247, 0.2); }
.hover\:bg-pink-500\/20:hover { background-color: rgba(236, 72, 153, 0.2); }
.hover\:bg-emerald-500\/20:hover { background-color: rgba(16, 185, 129, 0.2); }
.hover\:border-white\/10:hover { border-color: rgba(255, 255, 255, 0.1); }
.hover\:border-white\/20:hover { border-color: rgba(255, 255, 255, 0.2); }
.hover\:border-orange-500\/30:hover { border-color: rgba(234, 88, 12, 0.3); }
.hover\:border-orange-500\/40:hover { border-color: rgba(234, 88, 12, 0.4); }
.hover\:text-white:hover { color: #FFFFFF; }
.hover\:text-orange-300:hover { color: #FDBA74; }
.hover\:text-orange-400:hover { color: #FB923C; }
.hover\:text-purple-300:hover { color: #D8B4FE; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Group Hover States */
.group:hover .group-hover\:text-orange-400 { color: #FB923C; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Grid Responsive Columns */
.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)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .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\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-80 { width: 20rem; }
  .lg\:hidden { display: none; }
  .lg\:pb-12 { padding-bottom: 3rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

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

/* 5. Special Headings & Article Content Styles */
.article-h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-right: 0.75rem;
  border-right: 4px solid #EA580C;
}

.article-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #FDBA74;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #CBD5E1;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
  color: #CBD5E1;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* 6. Code Block Container & Copy Tool */
.code-container {
  background-color: #050506;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  margin: 1.5rem 0;
  direction: ltr;
  text-align: left;
}

.code-header {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94A3B8;
}

.code-header .lang-badge {
  background-color: #EA580C;
  color: #FFFFFF;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.code-body {
  padding: 1rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #E2E8F0;
}

/* 7. Table of Contents (TOC) Box */
.toc-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #FB923C;
  margin-bottom: 0.75rem;
}

.toc-list li {
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list li a:hover {
  color: #FB923C;
  transform: translateX(-3px);
}

/* 8. Table Styles - Fully Responsive & Modern */
.entry-content table,
.prose table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Table Container for Horizontal Scroll on Mobile */
.entry-content .table-wrapper,
.prose .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content .table-wrapper table,
.prose .table-wrapper table {
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Table Header */
.entry-content thead,
.prose thead {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
}

.entry-content thead th,
.prose thead th {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Table Body */
.entry-content tbody td,
.prose tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
    line-height: 1.7;
}

/* Zebra Striping - Alternating Row Colors */
.entry-content tbody tr:nth-child(even),
.prose tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.04);
}

.entry-content tbody tr:nth-child(odd),
.prose tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Hover Effect on Rows */
.entry-content tbody tr:hover,
.prose tbody tr:hover {
    background-color: rgba(234, 88, 12, 0.12) !important;
    transition: background-color 0.2s ease;
}

/* Table Footer */
.entry-content tfoot td,
.prose tfoot td {
    padding: 12px 18px;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 2px solid rgba(234, 88, 12, 0.3);
    font-weight: 600;
    color: #CBD5E1;
}

/* Responsive Table - Stack on Mobile */
@media (max-width: 768px) {
    .entry-content table,
    .prose table {
        font-size: 0.75rem;
    }
    
    .entry-content thead th,
    .prose thead th,
    .entry-content tbody td,
    .prose tbody td {
        padding: 10px 12px;
        min-width: 80px;
    }
    
    /* Optional: Stack table on very small screens */
    @media (max-width: 480px) {
        .entry-content table,
        .prose table {
            font-size: 0.7rem;
        }
        
        .entry-content thead th,
        .prose thead th,
        .entry-content tbody td,
        .prose tbody td {
            padding: 8px 10px;
            min-width: 60px;
        }
    }
}

/* Table Border & Cell Styles */
.entry-content table th,
.prose table th {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content table td,
.prose table td {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Specific cell colors */
.entry-content table .highlight-cell,
.prose table .highlight-cell {
    background-color: rgba(234, 88, 12, 0.15);
    font-weight: 600;
    color: #FB923C;
}

/* For tables with colored first column */
.entry-content table td:first-child,
.prose table td:first-child {
    font-weight: 600;
    color: #F1F5F9;
}

/* Caption Styles */
.entry-content table caption,
.prose table caption {
    caption-side: bottom;
    padding: 10px 0;
    color: #94A3B8;
    font-size: 0.8rem;
    font-style: italic;
}