/* ============ TOKENS + BOOTSTRAP OVERRIDES ============ */
:root {
  --primary: #F97316;
  --primary-600: #ea6a0d;
  --secondary: #6F4E37;
  --accent: #22C55E;

  --bg: #FBF8F4;
  --bg-soft: #F4EFE7;
  --surface: #ffffff;
  --text: #1F1A16;
  --text-muted: #6B5E54;
  --border: #ECE3D5;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(111, 78, 55, 0.08);
  --shadow-md: 0 14px 38px rgba(111, 78, 55, 0.12);
  --shadow-lg: 0 24px 60px rgba(249, 115, 22, 0.25);

  --gradient-warm: linear-gradient(135deg, #FFF7EE 0%, #FDEFE0 100%);
  --gradient-primary: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  --gradient-hero:
    radial-gradient(ellipse at top right, rgba(249, 115, 22, 0.18), transparent 55%);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-ar: 'Tajawal', system-ui, sans-serif;

  --header-h: 72px;
  --transition: 0.4s cubic-bezier(.2, .7, .2, 1);

  /* Bootstrap variable mapping */
  --bs-primary: #F97316;
  --bs-primary-rgb: 249, 115, 22;
  --bs-secondary: #6F4E37;
  --bs-secondary-rgb: 111, 78, 55;
  --bs-success: #22C55E;
  --bs-success-rgb: 34, 197, 94;
  --bs-body-bg: #FBF8F4;
  --bs-body-color: #1F1A16;
  --bs-body-font-family: var(--font-sans);
  --bs-border-color: #ECE3D5;
  --bs-link-color: var(--text);
  --bs-link-hover-color: var(--primary);
  --bs-border-radius: 14px;
  --bs-border-radius-lg: 22px;
  --bs-border-radius-pill: 999px;
}

[data-theme="dark"] {
  --bg: #15110E;
  --bg-soft: #1C1814;
  --surface: #211C18;
  --text: #F5EFE7;
  --text-muted: #B8A99B;
  --border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 38px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(249, 115, 22, 0.35);

  --gradient-warm: linear-gradient(135deg, #1C1814 0%, #241C16 100%);
  --gradient-hero:
    radial-gradient(ellipse at top right, rgba(249, 115, 22, 0.22), transparent 55%);

  --bs-body-bg: #15110E;
  --bs-body-color: #F5EFE7;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-link-color: var(--text);
}

/* ============ BASE ============ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  background: 
    linear-gradient(rgba(251, 248, 244, 0.88), rgba(251, 248, 244, 0.92)),
    url('../bg.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

[data-theme="dark"] body {
  background: 
    linear-gradient(rgba(21, 17, 14, 0.90), rgba(21, 17, 14, 0.94)),
    url('../bg.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

button {
  font-family: inherit;
}

.container {
  max-width: 1200px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ HEADER / NAVBAR ============ */
.site-header {
  height: var(--header-h);
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header>.container.header-inner {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.site-header .navbar-collapse {
  flex-grow: 1;
  align-items: center;
}

.site-header .nav {
  align-items: center;
}

@media (min-width: 992px) {
  .site-header>.container.header-inner {
    justify-content: center;
  }

  .logo.navbar-brand {
    position: absolute;
    left: calc(var(--bs-gutter-x, 24px) * 0.5 + 12px);
    top: 50%;
    transform: translateY(-50%);
  }

  [dir="rtl"] .logo.navbar-brand {
    left: auto;
    right: calc(var(--bs-gutter-x, 24px) * 0.5 + 12px);
  }

  .site-header .navbar-collapse {
    justify-content: center;
  }

  .site-header .nav {
    margin: 0 auto !important;
  }

  .site-header .header-actions {
    position: absolute;
    right: calc(var(--bs-gutter-x, 24px) * 0.5 + 12px);
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
  }

  [dir="rtl"] .site-header .header-actions {
    right: auto;
    left: calc(var(--bs-gutter-x, 24px) * 0.5 + 12px);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  margin: 0;
  padding: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  font-family: var(--font-display);
}

[dir="rtl"] .logo-text {
  font-family: var(--font-ar);
}

.site-header .nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.header-actions {
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.lang-btn {
  font-weight: 700;
  font-size: 13px;
}

.theme-btn .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-btn .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-btn .icon-moon {
  display: block;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .site-header .nav-link {
    padding: 12px 16px;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 110px) 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--gradient-hero);
  pointer-events: none;
}

.hero-grid {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 540px;
}

.hero-ctas {
  margin: 28px 0 36px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-image-wrap img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-qr {
  position: absolute;
  bottom: -20px;
  left: -28px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

[dir="rtl"] .hero-qr {
  left: auto;
  right: -28px;
}

.hero-badge {
  position: absolute;
  top: 20px;
  right: -16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

[dir="rtl"] .hero-badge {
  right: auto;
  left: -16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

.float-slow {
  animation: float 8s ease-in-out infinite;
}

/* ============ SECTIONS ============ */
.section {
  padding: 96px 0;
}

.section-muted {
  background: transparent;
}

.section-head {
  max-width: 720px;
}

.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5em;
}

.section-head p {
  font-size: 1.05rem;
}

/* ============ FEATURES ============ */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14.5px;
  margin: 0;
}

/* ============ CLIENTS LOADER ============ */
.clients-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 0;
}

.clients-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

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

/* ============ CLIENTS MARQUEE ============ */
.client-card {
  flex: 0 0 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  min-height: 180px;
}

[dir="rtl"] .client-card {
  direction: rtl;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 14px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.client-logo.no-bg {
  background: none !important;
  box-shadow: none !important;
}

.client-name {
  display: block;
  color: var(--text);
  font-weight: 700;
  transition: color 0.2s;
}

.client-card:hover .client-name {
  color: var(--primary);
}

.client-city {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  min-height: 20px;
}

.marquee {
  position: relative;
  overflow: hidden;
  /* Force LTR so overflow origin stays on the left in both EN and AR modes.
     Individual cards restore RTL text direction via [dir=rtl] .client-card */
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll-ltr 120s linear infinite;
  direction: ltr !important;
}

[dir="rtl"] .marquee-track {
  animation: marquee-scroll-rtl 120s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll-ltr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes marquee-scroll-rtl {
  from {
    transform: translateX(0);
  }

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

/* ============ THEMES ============ */
.theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  color: inherit;
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.theme-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}

.theme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.theme-card:hover .theme-image img {
  transform: scale(1.06);
}

.theme-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

.theme-body {
  padding: 22px;
}

.theme-body h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.theme-body p {
  font-size: 14px;
  margin-bottom: 12px;
}

.theme-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============ FAQ (Bootstrap accordion themed) ============ */
.faq-list {
  max-width: 800px;
}

.faq-list.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:has(.accordion-collapse.show) {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border)) !important;
}

.faq-item .accordion-button {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 20px 24px;
  box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed) {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.faq-item .accordion-button::after {
  background-image: none;
  content: '+';
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--primary);
  width: auto;
  height: auto;
  transform: none;
  transition: transform 0.3s;
}

.faq-item .accordion-button:not(.collapsed)::after {
  transform: rotate(45deg);
}

[dir="rtl"] .faq-item .accordion-button::after {
  margin-left: 0;
  margin-right: auto;
}

.faq-item .accordion-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============ CONTACT ============ */
.contact-section {
  background: transparent;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-list h4 {
  font-size: 15px;
  margin: 0 0 4px;
}

.contact-list p {
  margin: 0;
  font-size: 14.5px;
}

.contact-list a {
  color: var(--text-muted);
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-height: 420px;
  background: var(--surface);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: saturate(0.9);
}

[data-theme="dark"] .contact-map iframe {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7);
}

/* ============ FOOTER ============ */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 72px 0 24px;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 12px;
  font-size: 14px;
}

.footer-grid h4 {
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-grid ul {
  padding-inline-start: 0;
  padding-left: 0;
  padding-right: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid ul a:hover {
  color: var(--primary);
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all 0.2s;
}

.socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.socials svg {
  width: 16px;
  height: 16px;
}

.newsletter .form-control {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
}

.newsletter .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
  background: var(--surface);
  color: var(--text);
}

.newsletter .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .hero {
    padding: calc(var(--header-h) + 70px) 0 64px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .surface-card {
    padding: 24px;
  }

  .hero-qr {
    transform: scale(0.85);
    left: -10px;
    bottom: -10px;
  }

  [dir="rtl"] .hero-qr {
    right: -10px;
    left: auto;
  }

  .hero-badge {
    right: 8px;
    top: 8px;
    font-size: 12px;
  }

  [dir="rtl"] .hero-badge {
    left: 8px;
    right: auto;
  }
}

@media (max-width: 420px) {
  .lang-btn {
    display: none;
  }
}

/* ============ GLOBAL FORM CONTROLS ============ */
.form-control {
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14.5px;
  transition: all var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
  background: var(--surface);
  color: var(--text);
}

.developer-link {
  color: inherit;
  font-weight: 600;
  transition: color var(--transition);
}

.developer-link:hover {
  color: var(--primary);
}

/* ============ BLOG CARDS ============ */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  color: inherit;
}

.blog-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.06);
}

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text);
  transition: color var(--transition);
}

.blog-card:hover h3 {
  color: var(--primary);
}

.blog-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  margin-top: auto;
}

.blog-link svg {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  transition: transform 0.2s;
}

[dir="rtl"] .blog-link svg {
  margin-left: 0;
  margin-right: 6px;
  transform: scaleX(-1);
}

.blog-card:hover .blog-link svg {
  transform: translateX(4px);
}

[dir="rtl"] .blog-card:hover .blog-link svg {
  transform: scaleX(-1) translateX(4px);
}

.blog-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 80px 0;
}

/* ============ BLOG MODAL ============ */
.blog-modal .modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg);
}

.blog-modal-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.blog-modal-header {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.blog-modal-header .btn-close {
  background-color: var(--surface);
  opacity: 0.9;
  border-radius: 50%;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.blog-modal-header .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.blog-modal-body {
  padding: 40px;
  background-color: var(--surface);
}

.blog-modal-date {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.blog-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 25px;
  line-height: 1.3;
}

.blog-modal-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.blog-modal-text p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .blog-modal-img {
    height: 250px;
  }
  .blog-modal-body {
    padding: 25px;
  }
  .blog-modal-title {
    font-size: 1.5rem;
  }
}

/* ============ FLOATING CONTACTS ============ */
.floating-contacts {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

[dir="rtl"] .floating-contacts {
  right: auto;
  left: 30px;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.floating-btn:hover {
  transform: translateY(-5px);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.floating-btn.whatsapp {
  background: #25D366;
}

.floating-btn.whatsapp:hover {
  background: #1ebe57;
}

.floating-btn.phone {
  background: var(--primary);
}

.floating-btn.phone:hover {
  background: var(--primary-600);
}