/* 
===============================================
HOTSPOT FINANCE REDESIGN - MODERN STYLES
===============================================
*/

:root {
  /* Primary Brand Colors */
  --primary-color: #FF4040;
  --primary-light: #FFEDED;
  --primary-dark: #D32F2F;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF4040 0%, #FF6B6B 100%);
  --gradient-glass: rgba(255, 255, 255, 0.1);

  /* Neutrals */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Shadow Settings */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-arabic: "Cairo", sans-serif;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Animations */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Typography Utility Classes */
.text-primary {
  color: var(--primary-color);
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}
.fw-bold {
  font-weight: 700;
}
.fw-medium {
  font-weight: 500;
}
.fs-sm {
  font-size: 0.875rem;
}
.fs-lg {
  font-size: 1.125rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}

/* Additional Spacing & Display Utilities */
.flex-wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
[dir="rtl"] .me-2 { margin-right: 0; margin-left: 0.5rem; }
.text-success { color: var(--success); }
.bg-light { background-color: var(--bg-main); }
.font-weight-bold { font-weight: 700; }
.h4 { font-size: 1.25rem; font-family: var(--font-heading); font-weight: 700; }

/* Responsive Column Utilities */
.col-md-6 { width: 100%; }
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 auto; width: 50%; }
}

/* Flex Order Utilities */
.order-1 { order: 1; }
.order-2 { order: 2; }
@media (min-width: 992px) {
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
}

/* Page Header (shared across inner pages) */
.page-header {
  padding: 8rem 0 4rem;
  background: var(--bg-main);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 64, 64, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 64, 64, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1000;
  border: 1px solid var(--border-color);
}

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

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 62px;
  width: auto;
  transition: transform var(--transition-normal);
}

html:not([dir="rtl"]) .logo-img {
  height: 72px;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: white;
  background: var(--gradient-primary, linear-gradient(135deg, #ff4040, #d32f2f));
  border-radius: var(--radius-full, 999px);
  box-shadow: 0 6px 16px -4px rgba(255, 64, 64, 0.45);
  transition: all var(--transition-normal, 0.25s ease);
  position: relative;
  overflow: hidden;
}

.nav-link-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.nav-link-cta:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 10px 22px -4px rgba(255, 64, 64, 0.55);
}

.nav-link-cta:hover::before {
  transform: translateX(100%);
}

.nav-link-cta i {
  font-size: 0.85rem;
  animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}

[data-theme="dark"] .nav-link-cta {
  box-shadow: 0 6px 16px -4px rgba(255, 64, 64, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-arabic), var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Animations Tools*/
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Media Queries */
@media (max-width: 991px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }

  /* Mobile Open State */
  .navbar.nav-open {
    background: white !important;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
  }

  .navbar.nav-open .nav-container {
    flex-wrap: wrap;
  }

  .navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 2rem 0 1rem;
    gap: 1.25rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
  }

  .navbar.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 4;
    padding: 1rem 0 2rem;
    gap: 1.25rem;
    align-items: center;
  }

  .navbar.nav-open .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .navbar.nav-open .nav-link-cta {
    align-self: center;
    font-size: 1rem;
    padding: 0.7rem 1.75rem;
  }

  .navbar.nav-open .dropdown,
  .navbar.nav-open .dropdown > button {
    width: 100%;
  }

  .navbar.nav-open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-main);
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* =========================================================================
   HERO SECTION & Glassmorphism
   ========================================================================= */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: var(--bg-card);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Background Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.hero-shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(255, 64, 64, 0.15); /* Primary Light */
}
.hero-shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.1); /* Blue Light */
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Content */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}
.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.badge-success {
    background: #FFEDED; /* Light red background */
    color: #D32F2F; /* Dark red text */
}
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}
.hero-cta-main.mid-cta-bar {
    width: auto;
    min-width: 340px;
    padding: 1.35rem 3rem;
    border-radius: var(--radius-xl);
}
.hero-cta-main .mid-cta-content {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
@media (max-width: 576px) {
    .hero-cta-main.mid-cta-bar { min-width: 0; width: 100%; padding: 1.1rem 1.5rem; }
}

/* Trust Metrics */
.hero-trust-metrics {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.metric strong {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}
.metric span {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* -------------------------------------
   Glass Dashboard Graphic (Replacing Image) 
   ------------------------------------- */
.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}
.glass-dashboard {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}
.glass-dashboard:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

.dash-header {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dash-dots {
    display: flex;
    gap: 0.35rem;
    margin-right: 1rem;
}
.dash-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.dash-dots span:nth-child(1) { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #f59e0b; }
.dash-dots span:nth-child(3) { background: #10b981; }

.dash-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dash-body {
    padding: 1.5rem;
}

/* Dashboard Cards inside Graphic */
.dash-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.dash-card.primary-offer {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(255, 64, 64, 0.1);
}
.dash-card:hover {
    transform: translateX(5px);
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.bank-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}
.bank-logo-img {
    height: 56px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.bank-logo--snb .bank-logo-img {
    height: 120px;
    max-width: 300px;
}
.sama-license-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.sama-license-row--hero {
    justify-content: flex-start;
    gap: 0.9rem;
}
[dir="rtl"] .sama-license-row--hero { justify-content: flex-start; }
.sama-license-row--hero .sama-license-logo { height: 54px; max-width: 170px; }
.sama-license-row--hero .badge-primary { color: #000; }
.sama-license-row--hero .badge-primary i { color: #000; }

/* About page — hero polish + stats */
.about-hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}
.about-hero .sama-license-row--hero {
    justify-content: center !important;
    margin-top: 0.5rem;
}
.about-hero .sama-license-row--hero .sama-license-logo {
    height: 64px;
    max-width: 200px;
}
@media (max-width: 768px) {
    .about-hero { padding: 5.5rem 0 3rem; }
    .about-hero .sama-license-row--hero .sama-license-logo { height: 52px; max-width: 160px; }
}
.about-stats-section {
    padding: 3rem 0 4rem;
    background: #fff;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.about-stat-item {
    background: linear-gradient(145deg, #fff 0%, #fafafa 100%);
    border: 1px solid var(--border-color, #eee);
    border-radius: var(--radius-xl);
    padding: 2rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.about-stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 64, 64, 0.4);
    box-shadow: 0 14px 40px -12px rgba(255, 64, 64, 0.25);
}
.about-stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 64, 64, 0.08);
    color: var(--primary-color, #FF4040);
    font-size: 1.4rem;
}
.about-stat-number {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary-color, #FF4040);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}
.about-stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}
.about-cta-section {
    background: linear-gradient(135deg, #fff7f7 0%, #ffffff 60%);
    padding: 5rem 0;
}
@media (max-width: 992px) {
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .about-stats-grid { grid-template-columns: 1fr; }
}

/* Contact page — quick contact cards + polish */
.contact-quick-section {
    padding: 2rem 0 3rem;
    background: #fff;
}
.contact-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.contact-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 2rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border-color, #eee);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-quick-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 64, 64, 0.4);
    box-shadow: 0 14px 40px -12px rgba(255, 64, 64, 0.25);
    color: inherit;
}
.contact-quick-card--hours {
    pointer-events: none;
    background: linear-gradient(145deg, #fff 0%, #fafafa 100%);
}
.contact-quick-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}
.contact-quick-icon.icon-phone { background: linear-gradient(135deg, #FF4040 0%, #FF6B6B 100%); }
.contact-quick-icon.icon-wa    { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.contact-quick-icon.icon-mail  { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); }
.contact-quick-icon.icon-hours { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.contact-quick-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main, #1a1a1a);
}
.contact-quick-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    direction: ltr;
    unicode-bidi: plaintext;
}
.contact-info-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-info-link:hover {
    color: var(--primary-color, #FF4040);
}
.contact-hero { padding: 6rem 0 3rem; }

@media (max-width: 992px) {
    .contact-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .contact-quick-grid { grid-template-columns: 1fr; }
}
.sama-license-logo {
    height: 72px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
@media (max-width: 576px) {
    .sama-license-logo { height: 56px; max-width: 170px; }
    .sama-license-row { gap: 0.75rem; }
}
.bank-alrajhi i { color: #1e3a8a; }
.bank-alinma i { color: #9a3412; }
.badge-sm {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}
.card-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-main);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}
.card-rates small {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-weight: 600;
}
.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

/* Floating Elements around dashboard */
.floating-bubble {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    animation: float 3s ease-in-out infinite alternate;
}
.bubble-1 {
    top: 10%;
    right: -2%;
    animation-delay: 0.5s;
}
.bubble-2 {
    bottom: 20%;
    left: -4%;
    animation-delay: 1.5s;
}

@keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(-15px); }
}

@media (max-width: 991px) {
    .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-cta-group { justify-content: center; flex-wrap: wrap; }
    .hero-trust-metrics { justify-content: center; flex-wrap: wrap; }
    .floating-bubble { display: none; }
    .hero-section { padding-top: 7rem; }
}

/* =========================================================================
   HOW IT WORKS SECTION 
   ========================================================================= */
.bg-white { background-color: #ffffff; }
.mb-5 { margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; margin-top: 0.5rem; }

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    flex: 1;
    padding: 2rem;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform var(--transition-normal);
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.step-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.5;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .steps-container { flex-direction: column; gap: 2rem; }
    .step-arrow { transform: rotate(90deg); padding: 1rem 0; }
}

/* =========================================================================
   CALCULATOR SECTION
   ========================================================================= */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.calc-sidebar {
    background: var(--primary-dark);
    padding: 3rem;
    color: white;
}
.text-white { color: white; }
.opacity-75 { opacity: 0.75; }
.w-100 { width: 100%; }

.calc-results-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.result-row span {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.5rem;
}
.result-row h3 { font-size: 2.5rem; color: white; }
.result-row h4 { font-size: 1.5rem; color: white; }
.result-row hr { border-color: rgba(255,255,255,0.2); margin: 1.5rem 0; }

.calc-main {
    padding: 3rem;
    background: white;
}

.finance-type-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    background: var(--bg-main);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.slider-group {
    margin-bottom: 2.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.slider-header label { font-weight: 600; }
.val-display { color: var(--primary-color); font-weight: 700; font-size: 1.25rem; }

.modern-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin-bottom: 0.5rem;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 64, 64, 0.5);
    border: 3px solid white;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .calculator-wrapper { grid-template-columns: 1fr; }
    .calc-sidebar { padding: 2rem; }
    .calc-main { padding: 2rem; }
}

/* =========================================================================
   PARTNERS SECTION
   ========================================================================= */
.partner-logo {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) opacity(0.7);
    transition: all var(--transition-normal);
}
.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}
.partner-logo img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

.filters-bar {
    margin-bottom: 3rem;
}

.filter-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.filter-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-tabs .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.modern-select {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: white;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

/* Tablet and Desktop adjustments */
@media (min-width: 768px) {
    .filter-tabs {
        overflow: visible;
        padding: 0;
        width: auto;
    }
    .modern-select {
        width: auto;
        min-width: 250px;
    }
}

@media (max-width: 767px) {
    .filters-bar > .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1.5rem;
    }
}

.offer-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 2.5rem; /* Increased padding for breathing room */
    position: relative;
    transition: all var(--transition-normal);
}
.offer-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.offer-card.best-offer {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 64, 64, 0.1);
}

.offer-badge {
    position: absolute;
    top: 1rem;
    left: 2.5rem;
    background: #ef4444; /* Use standard red for high visibility */
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr 1.2fr; /* Adjusted for better spacing */
    align-items: center;
    gap: 2rem;
    margin-top: 1rem; /* Space for the badge if present */
}

.offer-bank {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.offer-bank img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
}
.offer-bank h5 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.offer-bank span { font-size: 0.8rem; font-weight: 500; }

.offer-detail small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.offer-detail h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.highlight-detail {
    background: #FFF5F5; /* Lighter, fresher red background */
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 64, 64, 0.1);
}
.highlight-detail h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.offer-action { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; /* Standardized spacing between buttons */
}

@media (max-width: 991px) {
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .offer-bank { margin-bottom: 1rem; }
    .offer-detail {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }
    .offer-detail small { margin-bottom: 0; }
    .highlight-detail {
        padding: 0;
        background: transparent;
    }
}

/* =========================================================================
   OFFER DETAIL PAGE
   ========================================================================= */
.offer-detail-hero {
    padding: 8rem 0 3rem;
    background: var(--bg-main);
}

.offer-detail-hero .bank-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.offer-detail-hero .bank-header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: white;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.offer-detail-hero .bank-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.offer-detail-hero .bank-header .approval-badge {
    font-size: 0.9rem;
    font-weight: 500;
}

.offer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.offer-stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.offer-stat-card.highlight {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.offer-stat-card small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.offer-stat-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.offer-stat-card.highlight h3 {
    color: var(--primary-color);
}

.offer-detail-body {
    padding: 3rem 0;
}

.offer-detail-body .content-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.offer-detail-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-main);
}

.offer-detail-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.offer-detail-body ul {
    margin-bottom: 1.5rem;
}

.offer-detail-body ul li {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

[dir="rtl"] .offer-detail-body ul { padding-right: 1.5rem; }
html:not([dir="rtl"]) .offer-detail-body ul { padding-left: 1.5rem; }

.offer-detail-body .info-box {
    background: var(--bg-main);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

[dir="rtl"] .offer-detail-body .info-box { border-right: 4px solid var(--primary-color); }
html:not([dir="rtl"]) .offer-detail-body .info-box { border-left: 4px solid var(--primary-color); }

.offer-detail-body .info-box p {
    margin: 0;
    font-weight: 500;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .offer-detail-hero .bank-header {
        flex-direction: column;
        text-align: center;
    }
    .offer-detail-hero .bank-header h1 {
        font-size: 1.75rem;
    }
}

/* =========================================================================
   APPLICATION FORM PAGE
   ========================================================================= */
.apply-hero {
    padding: 8rem 0 3rem;
    background: var(--bg-main);
}

.apply-hero .apply-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    max-width: 1100px;
    margin-inline: auto;
}

.apply-hero .apply-header img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: white;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.apply-hero .apply-header-text {
    flex: 1;
    min-width: 0;
}

.apply-hero .apply-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.apply-hero .apply-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.apply-form-section {
    padding: 3rem 0 5rem;
}

.apply-form-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.form-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-card h2:not(:first-of-type) {
    margin-top: 2.5rem;
}

.form-card .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-main);
    color: var(--text-main);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 64, 64, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-note {
    background: var(--bg-main);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-note i {
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.apply-sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.apply-sidebar-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.apply-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apply-sidebar-card ul li {
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apply-sidebar-card ul li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.apply-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .apply-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 1.5rem;
    }
    .apply-hero .apply-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* =========================================================================
   ALERTS (shared)
   ========================================================================= */
.alert {
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert ul { margin: 0; }

/* =========================================================================
   FINANCING REQUEST PAGE
   ========================================================================= */
.financing-request-page {
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, var(--bg-main) 0%, #fff 70%);
    min-height: calc(100vh - 4rem);
}

.fr-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.fr-intro h1 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--text-main);
}

.fr-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
}

.fr-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.5rem;
}

.fr-highlights li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.fr-highlights li i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 64, 64, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.fr-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.15);
}

.fr-card .form-group {
    margin-bottom: 1.15rem;
}

.fr-card .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.fr-card .form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.fr-card .form-group input,
.fr-card .form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: #fafbfc;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.fr-card .form-group input:focus,
.fr-card .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 64, 64, 0.08);
}

.fr-submit {
    margin-top: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    gap: 0.6rem;
    transition: all var(--transition-normal);
}

.fr-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 64, 64, 0.4);
}

.fr-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.fr-privacy i {
    color: var(--primary-color);
}

[data-theme="dark"] .financing-request-page {
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-section) 70%);
}

[data-theme="dark"] .fr-card {
    background: var(--bg-section);
    border-color: var(--border-color);
}

[data-theme="dark"] .fr-card .form-group input,
[data-theme="dark"] .fr-card .form-group select {
    background: var(--bg-main);
    color: var(--text-main);
}

@media (max-width: 900px) {
    .fr-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .fr-intro {
        text-align: center;
    }
    .fr-subtitle {
        margin-inline: auto;
    }
    .fr-highlights {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .financing-request-page {
        padding: 5rem 0 3rem;
    }
    .fr-card {
        padding: 1.75rem 1.25rem;
    }
    .fr-highlights {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   SAMA LICENSE SECTION
   ========================================================================= */
.row {
    display: flex;
    flex-wrap: wrap;
}
.col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
}

.trust-checklist li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.trust-checklist li i {
    font-size: 1.25rem;
}

.sama-license-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 400px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}
.sama-license-card:hover {
    transform: translateY(-5px);
}

.license-img-wrapper {
    position: relative;
    width: 100%;
}
.license-img-wrapper img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.license-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.license-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* =========================================================================
   EDUCATION / ARTICLES SECTION
   ========================================================================= */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.article-img {
    height: 200px;
    position: relative;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
.article-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================================================
   TESTIMONIALS SECTION
   ========================================================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.review-stars {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.reviewer strong {
    display: block;
    font-size: 0.95rem;
}
.reviewer span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .col-lg-6 { width: 100%; }
    .row { gap: 3rem; }
    .sama-license-card { margin-top: 2rem; }
}

/* =========================================================================
   FOOTER SECTION
   ========================================================================= */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
}
.pb-0 { padding-bottom: 0 !important; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    max-width: 300px;
    font-size: 0.95rem;
}
.footer-brand .footer-description {
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
}
[dir="rtl"] .footer-brand .footer-description {
    font-family: var(--font-arabic), var(--font-body);
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-links ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom > .container { flex-direction: column; text-align: center; }
}

/* Footer App Links */
.footer-app-links p {
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.app-btn-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-store-btn {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.app-store-btn:hover {
    transform: translateY(-3px);
}

.app-store-btn img {
    height: 38px;
    width: auto;
}

/* Footer Regulator */
.footer-regulator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-regulator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sama-logo {
    height: 60px;
    width: auto;
    filter: grayscale(0);
    opacity: 1;
    transition: all var(--transition-normal);
}

.sama-logo:hover {
    filter: grayscale(1);
    opacity: 0.7;
}


/* =========================================================================
   MODERN CONTACT CARD UI (FIXED DESIGN)
   ========================================================================= */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.contact-sidebar {
    width: 40%;
    background: #D32F2F; /* Brand-aligned red (Primary Dark) */
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
}

.contact-info-list {
    margin-bottom: 3rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-info-item .icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-info-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.contact-map-preview {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: auto;
    position: relative;
}

.contact-map-preview iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.5) contrast(1.1);
}

.contact-socials {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

.contact-socials a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.contact-socials a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Body (Form Side) */
.contact-body {
    width: 60%;
    padding: 3rem 4rem;
}

.contact-form-title {
    margin-bottom: 2.5rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.modern-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.modern-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 64, 64, 0.1);
}

textarea.modern-input {
    min-height: 150px;
    resize: vertical;
}

.contact-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2rem 0;
}

.contact-legal a {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 64, 64, 0.2);
    transition: all var(--transition-normal);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 64, 64, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .contact-card {
        flex-direction: column;
    }
    .contact-sidebar, .contact-body {
        width: 100%;
    }
    .contact-body {
        padding: 3rem;
    }
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .contact-sidebar {
        padding: 2rem;
    }
}

/* =========================================================================
   CHECKBOX STYLES
   ========================================================================= */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* =========================================================================
   MODERN SERVICES UI
   ========================================================================= */
.service-feature {
    padding: 6rem 0;
    transition: all var(--transition-normal);
}

.service-feature.bg-light {
    background-color: var(--bg-main);
}

.service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.service-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.service-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Soft, professional shadow */
    border: 1px solid var(--border-color);
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 1 / 1; /* Force perfect square proportions */
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Scale icons to fit exactly */
    padding: 1rem;
    transition: transform var(--transition-normal);
}

.service-image:hover {
    transform: translateY(-10px);
}

/* Service App Links */
.service-app-links {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: inline-block;
}

.service-app-links p {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.app-btn-container {
    display: flex;
    gap: 1rem;
}

.app-store-btn {
    display: block;
    height: 44px; /* Fix for the huge App Store button */
    transition: transform var(--transition-fast);
}

.app-store-btn img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
}

.app-store-btn:hover {
    transform: translateY(-2px);
}

/* Coming Soon Badge */
.badge-coming-soon {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 64, 64, 0.2);
}

@media (max-width: 991px) {
    .service-feature {
        padding: 4rem 0;
    }
    
    .service-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .service-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .app-btn-container {
        justify-content: center;
    }
    
    .service-image-wrapper {
        margin-top: 3rem;
    }
}

/* =========================================================================
   HOMEPAGE SERVICES GRID
   ========================================================================= */
.services-grid-section {
    padding: 5rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-card-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-card-item .service-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.service-card-item .service-icon.icon-personal { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.service-card-item .service-icon.icon-auto { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.service-card-item .service-icon.icon-mortgage { background: linear-gradient(135deg, #10b981, #059669); }
.service-card-item .service-icon.icon-credit { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.service-card-item .service-icon.icon-sme { background: linear-gradient(135deg, #ec4899, #be185d); }

.service-card-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.service-card-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.service-card-item .card-arrow {
    margin-top: auto;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transition: all var(--transition-normal);
}

.service-card-item:hover .card-arrow {
    opacity: 1;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card-item {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Service Detail Page */
.service-detail-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: var(--bg-main);
    overflow: hidden;
}

.service-detail-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 64, 64, 0.08), transparent 70%);
    border-radius: 50%;
}

.service-detail-hero .hero-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.service-detail-hero .hero-text {
    flex: 1;
}

.service-detail-hero .hero-text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-detail-hero .hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-detail-hero .hero-img {
    flex: 0 0 380px;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-hero .hero-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    display: block;
}

.service-cta-wrap {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .service-detail-hero .hero-row { flex-direction: column; gap: 2rem; }
    .service-detail-hero .hero-img { flex: 0 0 auto; max-width: 280px; }
}

.service-detail-body {
    padding: 4rem 0;
}

.service-detail-body .content-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.service-detail-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
}

.service-detail-body p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.service-detail-body ul {
    margin-bottom: 1.5rem;
}

.service-detail-body ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

[dir="rtl"] .service-detail-body ul {
    padding-right: 1.5rem;
}

[dir="ltr"] .service-detail-body ul,
html:not([dir="rtl"]) .service-detail-body ul {
    padding-left: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.service-info-box {
    background: var(--bg-main);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

[dir="rtl"] .service-info-box {
    border-right: 4px solid var(--primary-color);
}

html:not([dir="rtl"]) .service-info-box {
    border-left: 4px solid var(--primary-color);
}

.service-info-box p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-main);
}

.back-to-services {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.back-to-services:hover {
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .service-detail-hero .hero-row {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .service-detail-hero .hero-img {
        flex: none;
        max-width: 250px;
    }
    .service-detail-hero .hero-text h1 {
        font-size: 2rem;
    }
}

/* =========================================================================
   MODERN ABOUT PAGE UI
   ========================================================================= */
.about-grid {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.about-card-vision {
    background: var(--bg-main); /* Light red background for vision card */
    flex: 1.4;
    border: 1px solid var(--border-color);
}

.about-card-mission {
    background: #D32F2F; /* Dark red for mission card */
    color: white;
    flex: 1;
}

.about-card .material-symbols-outlined {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.about-card-vision .material-symbols-outlined {
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.about-card-mission > .material-symbols-outlined {
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.about-card h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-card-mission h2 {
    color: white;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
}

.about-card-mission .about-card-footer {
    background: var(--bg-main);
    margin: 2rem -3rem -3rem -3rem;
    padding: 2rem 3rem;
    color: var(--text-main);
    border-top: 1px solid rgba(255, 64, 64, 0.1);
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.about-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.about-link .material-symbols-outlined {
    color: inherit;
    font-size: 1.2rem !important;
    margin: 0 !important;
}

.card-established {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Attributes Section */
.attributes-section {
    padding-top: 8rem;
}

.attributes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 4rem;
}

.attributes-header h2 {
    font-size: 2.5rem;
    max-width: 600px;
}

.attributes-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 0.5rem;
}

.attribute-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.attribute-card {
    background: #f8fafc;
    padding: 3rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid transparent;
}

.attribute-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
    transform: translateY(-5px);
}

.attribute-card .material-symbols-outlined {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: block;
}

.attribute-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.attribute-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.attribute-bar {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

/* Our Partners Section */
.our-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.partner-item {
    display: flex;
    justify-content: center;
    filter: grayscale(1) opacity(0.5);
    transition: all var(--transition-normal);
}

.partner-item:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

.partner-item img {
    max-height: 80px;
    width: auto;
}

/* Responsive */
@media (max-width: 1100px) {
    .about-grid {
        flex-direction: column;
    }
    .attribute-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .attributes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .attribute-grid {
        grid-template-columns: 1fr;
    }
    .our-partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* =========================================================================
   RTL SUPPORT (Arabic Version)
   ========================================================================= */
[dir="rtl"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6,
[dir="rtl"] .btn,
[dir="rtl"] .nav-link,
[dir="rtl"] .badge {
    font-family: var(--font-arabic);
}

/* Navbar RTL */
[dir="rtl"] .logo {
    gap: 0.75rem;
}

[dir="rtl"] .nav-actions {
    gap: 1.5rem;
}

/* Hero Section RTL */
[dir="rtl"] .hero-shape-1 {
    right: auto;
    left: -5%;
}

[dir="rtl"] .hero-shape-2 {
    left: auto;
    right: -10%;
}

[dir="rtl"] .animate-slide-in-right {
    animation-name: slideInLeft;
}

[dir="rtl"] .glass-dashboard {
    transform: rotateY(5deg) rotateX(5deg);
}

[dir="rtl"] .glass-dashboard:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
}

[dir="rtl"] .dash-dots {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .bubble-1 {
    right: auto;
    left: -2%;
}

[dir="rtl"] .bubble-2 {
    left: auto;
    right: -4%;
}

/* How it works RTL */
[dir="rtl"] .step-arrow i {
    transform: rotate(180deg);
}

/* Calculator RTL */
[dir="rtl"] .calc-sidebar {
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

[dir="rtl"] .calc-main {
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

/* Footer RTL */
[dir="rtl"] .footer-links ul li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .contact-ul li i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* Specific component fixes */
[dir="rtl"] .offer-badge {
    left: auto;
    right: 2rem;
    border-radius: 0 0 1rem 1rem;
}

[dir="rtl"] .read-more i {
    transform: rotate(180deg);
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] .fa-chevron-right {
    transform: rotate(180deg);
}

[dir="rtl"] .hero-cta-group .fa-arrow-right {
    transform: rotate(180deg);
}

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

@media (max-width: 991px) {
    [dir="rtl"] .calc-sidebar,
    [dir="rtl"] .calc-main {
        border-radius: 0;
    }
    [dir="rtl"] .step-arrow i {
        transform: rotate(90deg);
    }
}

/* =========================================================================
   TESTIMONIALS STARS YELLOW COLOR
   ========================================================================= */

.review-stars i {
    color: #FFD700 !important;
}

/* =========================================================================
   FAQ PAGE STYLES
   ========================================================================= */

.faq-section {
    padding: 3rem 0 5rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-category-header .material-symbols-outlined {
    font-size: 1.75rem;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.faq-category-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    gap: 1rem;
    transition: var(--transition-fast);
}

[dir="rtl"] .faq-question {
    text-align: right;
    font-family: var(--font-arabic), var(--font-heading);
}

[dir="rtl"] .faq-category-header h2 {
    font-family: var(--font-arabic), var(--font-heading);
}

[dir="rtl"] .faq-answer p,
[dir="rtl"] .faq-answer li {
    font-family: var(--font-arabic), var(--font-body);
}

[dir="rtl"] .faq-cta h3,
[dir="rtl"] .faq-cta p {
    font-family: var(--font-arabic), var(--font-body);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

[dir="rtl"] .faq-answer ul,
[dir="rtl"] .faq-answer ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.35rem;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--text-main);
    font-weight: 600;
}

/* FAQ CTA */
.faq-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    margin-top: 2rem;
}

.faq-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.faq-cta p {
    margin-bottom: 1.5rem;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }

    .faq-category-header h2 {
        font-size: 1.25rem;
    }

    .faq-cta {
        padding: 2rem 1.5rem;
    }
}

/* =========================================================================
   FAQ PAGE — ENHANCED (hero, search, category cards, CTA)
   ========================================================================= */

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}
.faq-hero .sama-license-row--hero {
    justify-content: center !important;
    margin-top: 0.5rem;
}
.faq-hero .sama-license-row--hero .sama-license-logo {
    height: 64px;
    max-width: 200px;
}
@media (max-width: 768px) {
    .faq-hero { padding: 5.5rem 0 3rem; }
    .faq-hero .sama-license-row--hero .sama-license-logo { height: 52px; max-width: 160px; }
}

.faq-search-wrap {
    position: relative;
    max-width: 620px;
    margin: 2rem auto 0;
}
.faq-search-input {
    width: 100%;
    padding: 1.05rem 3.25rem;
    font-size: 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: 0 10px 30px rgba(227,30,36,0.08);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    outline: none;
}
.faq-search-input:focus {
    border-color: var(--primary-color, #e31e24);
    box-shadow: 0 14px 36px rgba(227,30,36,0.18);
}
.faq-search-icon {
    position: absolute;
    top: 50%;
    left: 1.35rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
}
[dir="rtl"] .faq-search-icon { left: auto; right: 1.35rem; }
[dir="rtl"] .faq-search-input { text-align: right; font-family: var(--font-arabic), var(--font-body); }

/* Category card refresh */
.faq-category {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 8px 24px rgba(15,23,42,0.04);
    margin-bottom: 1.5rem;
    transition: box-shadow .25s ease, transform .25s ease;
}
.faq-category:hover {
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
    transform: translateY(-2px);
}

.faq-category .faq-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}
.faq-category-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}
.faq-category-icon.cat-blue   { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.faq-category-icon.cat-green  { background: linear-gradient(135deg,#10b981,#22c55e); }
.faq-category-icon.cat-amber  { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.faq-category-icon.cat-red    { background: linear-gradient(135deg,#e31e24,#f05359); }
.faq-category-icon.cat-purple { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.faq-category-icon.cat-teal   { background: linear-gradient(135deg,#0d9488,#14b8a6); }
.faq-category-icon.cat-dark   { background: linear-gradient(135deg,#1a1a1a,#334155); }

.faq-category-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.faq-category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
[dir="rtl"] .faq-category-count { font-family: var(--font-arabic), var(--font-body); }

/* Empty / no-results state */
.faq-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.faq-empty i {
    font-size: 2.5rem;
    color: #94a3b8;
}

/* CTA */
.faq-cta {
    background: linear-gradient(135deg, #fff 0%, #fef2f3 100%);
    border: 1px solid #fee2e4;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
}
.faq-cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e31e24, #ff5a60);
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 14px 32px rgba(227,30,36,0.3);
}
.faq-cta h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.faq-cta p {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
}
.faq-cta-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
}
.faq-cta-actions .btn-primary {
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-cta-main { min-width: 260px; }

@media (max-width: 640px) {
    .faq-category { padding: 1.25rem; }
    .faq-category-icon { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 14px; }
    .faq-category-header h2 { font-size: 1.15rem; }
    .faq-cta { padding: 2.25rem 1.25rem; }
    .faq-cta h3 { font-size: 1.35rem; }
    .faq-cta-actions { flex-direction: column; width: 100%; }
    .faq-cta-actions .btn-primary,
    .faq-cta-main { width: 100%; justify-content: center; }
}

/* =========================================================================
   THEME TOGGLE BUTTON
   ========================================================================= */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* =========================================================================
   DARK THEME
   ========================================================================= */
[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-light: rgba(255, 64, 64, 0.12);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

/* General Overrides */
[data-theme="dark"] .bg-white {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .text-success {
    color: #34d399 !important;
}

/* Navbar */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .mobile-menu-btn {
    color: var(--text-main);
}

[data-theme="dark"] .navbar.nav-open {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .navbar.nav-open .dropdown-menu {
    background: var(--bg-main);
}

/* Dropdown */
[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-main);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--primary-light);
}

/* Hero Section */
[data-theme="dark"] .hero-section {
    background: var(--bg-card);
}

[data-theme="dark"] .hero-shape-1 {
    background: rgba(255, 64, 64, 0.08);
}

[data-theme="dark"] .hero-shape-2 {
    background: rgba(59, 130, 246, 0.05);
}

/* Glass Dashboard */
[data-theme="dark"] .glass-dashboard {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(51, 65, 85, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .glass-dashboard:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

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

[data-theme="dark"] .dash-dots span {
    background: #475569;
}

[data-theme="dark"] .dash-dots span:nth-child(1) { background: #ef4444; }
[data-theme="dark"] .dash-dots span:nth-child(2) { background: #f59e0b; }
[data-theme="dark"] .dash-dots span:nth-child(3) { background: #10b981; }

[data-theme="dark"] .dash-card {
    background: var(--bg-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .dash-card.primary-offer {
    box-shadow: 0 10px 20px rgba(255, 64, 64, 0.15);
}

[data-theme="dark"] .card-rates {
    background: var(--bg-card);
}

[data-theme="dark"] .floating-bubble {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

/* Services Grid Section */
[data-theme="dark"] .services-grid-section {
    background: var(--bg-card);
}

[data-theme="dark"] .service-card-item {
    background: var(--bg-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-card-item:hover {
    box-shadow: var(--shadow-md);
}

/* SAMA Banner */
[data-theme="dark"] .sama-banner {
    background: var(--primary-light) !important;
    border-color: var(--border-color) !important;
}

/* How It Works */
[data-theme="dark"] .step-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .step-card:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .step-icon {
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
}

/* Quote Section (has inline style: background: var(--text-main)) */
[data-theme="dark"] .quote-section {
    background: #1e293b !important;
}

[data-theme="dark"] .quote-section .text-white {
    color: #f1f5f9 !important;
}

/* Calculator */
[data-theme="dark"] .calculator-wrapper {
    background: var(--bg-card);
}

[data-theme="dark"] .calc-main {
    background: var(--bg-card);
}

[data-theme="dark"] .finance-type-tabs {
    background: var(--bg-main);
}

[data-theme="dark"] .tab-btn {
    color: var(--text-muted);
}

[data-theme="dark"] .tab-btn.active {
    background: var(--bg-card);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .modern-slider {
    background: #334155;
}

[data-theme="dark"] .modern-slider::-webkit-slider-thumb {
    border-color: var(--bg-card);
}

/* Partners */
[data-theme="dark"] .partners-section {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .partner-logo {
    filter: grayscale(100%) opacity(0.5) brightness(1.5);
}

[data-theme="dark"] .partner-logo:hover {
    filter: grayscale(0%) opacity(1) brightness(1);
}

/* Offer Cards */
[data-theme="dark"] .offer-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .offer-card:hover {
    border-color: #475569;
}

[data-theme="dark"] .offer-card.best-offer {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 64, 64, 0.12);
}

[data-theme="dark"] .offer-bank img {
    background: var(--bg-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .highlight-detail {
    background: rgba(255, 64, 64, 0.1);
    border-color: rgba(255, 64, 64, 0.2);
}

[data-theme="dark"] .modern-select {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}

/* SAMA License Section */
[data-theme="dark"] .sama-license-section {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .sama-license-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .license-footer {
    background: var(--bg-main);
    border-top-color: var(--border-color);
}

/* Article Cards */
[data-theme="dark"] .article-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .article-card:hover {
    border-color: var(--primary-color);
}

/* Testimonials */
[data-theme="dark"] .testimonials-section {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .review-card {
    background: var(--bg-main);
    border-color: var(--border-color);
}

/* Footer */
[data-theme="dark"] .footer {
    background-color: var(--bg-card);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .social-links a {
    background: var(--bg-main);
    color: var(--text-muted);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Forms & Inputs */
[data-theme="dark"] .form-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-main);
    border-color: var(--border-color);
    color: var(--text-main);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: var(--bg-card);
}

[data-theme="dark"] .modern-input {
    background: var(--bg-main);
    border-color: var(--border-color);
    color: var(--text-main);
}

[data-theme="dark"] .modern-input:focus {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

/* Contact Page */
[data-theme="dark"] .contact-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .contact-body {
    background: var(--bg-card);
}

/* FAQ */
[data-theme="dark"] .faq-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .faq-question {
    color: var(--text-main);
}

[data-theme="dark"] .faq-cta {
    background: var(--bg-card);
}

/* About Page */
[data-theme="dark"] .about-card-vision {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .about-card-mission .about-card-footer {
    background: var(--bg-card);
    color: var(--text-main);
}

[data-theme="dark"] .attribute-card {
    background: var(--bg-card);
}

[data-theme="dark"] .attribute-card:hover {
    background: var(--bg-main);
    border-color: var(--border-color);
}

/* Service Detail Pages */
[data-theme="dark"] .service-detail-hero {
    background: var(--bg-card);
}

[data-theme="dark"] .service-image-wrapper {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-app-links {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-box {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-info-box {
    background: var(--bg-card);
}

/* Offer Detail Pages */
[data-theme="dark"] .offer-detail-hero {
    background: var(--bg-card);
}

[data-theme="dark"] .offer-stat-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .offer-stat-card.highlight {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

[data-theme="dark"] .offer-detail-body .info-box {
    background: var(--bg-card);
}

[data-theme="dark"] .offer-detail-hero .bank-header img {
    background: var(--bg-main);
    border-color: var(--border-color);
}

/* Apply Page */
[data-theme="dark"] .apply-hero {
    background: var(--bg-card);
}

[data-theme="dark"] .apply-sidebar-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .apply-hero .apply-header img {
    background: var(--bg-main);
    border-color: var(--border-color);
}

/* Form Notes & Misc */
[data-theme="dark"] .form-note {
    background: var(--bg-main);
}

[data-theme="dark"] .checkmark {
    background: var(--bg-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .badge-success {
    background: rgba(255, 64, 64, 0.12);
    color: #ff6b6b;
}

[data-theme="dark"] .badge-primary {
    background: rgba(255, 64, 64, 0.12);
    color: #ff6b6b;
}

[data-theme="dark"] .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 64, 64, 0.1);
}

/* Logo visibility on dark backgrounds */
[data-theme="dark"] .logo-img {
    border-radius: var(--radius-sm);
    background: white;
    padding: 4px;
}

/* Utility class overrides */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .page-header {
    background: var(--bg-card);
}

/* Privacy / Terms page content */
[data-theme="dark"] .content-section {
    background: var(--bg-card);
}

/* Login / Register pages */
[data-theme="dark"] .auth-section {
    background: var(--bg-card);
}

/* Smooth transition for theme change */
[data-theme="dark"] body,
[data-theme="dark"] .navbar,
[data-theme="dark"] .footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================
   English logo sizing (match Arabic pixel dimensions)
   ========================================================== */
html:not([dir="rtl"]) .logo-img,
html:not([dir="rtl"]) .logo-img-en {
    height: 72px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}

/* ==========================================================
   SAMA Licensed & Instant Approvals — glowing pulse badge
   ========================================================== */
.sama-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: samaGlow 2.2s ease-in-out infinite;
    box-shadow: 0 0 0 rgba(255, 64, 64, 0.55);
    will-change: box-shadow, transform;
}
.sama-pulse i {
    animation: samaBolt 1.6s ease-in-out infinite;
}
@keyframes samaGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 64, 64, 0.55),
                    0 0 12px rgba(255, 64, 64, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 64, 64, 0),
                    0 0 22px rgba(255, 64, 64, 0.75);
        transform: scale(1.03);
    }
}
@keyframes samaBolt {
    0%, 100% { transform: scale(1); color: inherit; }
    50% { transform: scale(1.25); color: #fff; filter: drop-shadow(0 0 6px #ff4040); }
}

/* Dash title small note */
.dash-title-note {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 2px;
    letter-spacing: 0.2px;
    opacity: 0.92;
}

/* ==========================================================
   Middle CTA bar — "Request your Financing Now"
   ========================================================== */
.mid-cta-section {
    padding: 3.5rem 0;
}
.mid-cta-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.4rem 2rem;
    background: linear-gradient(135deg, #FF4040 0%, #FF6B6B 55%, #FF4040 100%);
    background-size: 200% 200%;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px -8px rgba(255, 64, 64, 0.55);
    animation: midCtaShift 4s ease-in-out infinite, midCtaPulse 2.4s ease-in-out infinite;
    transition: transform var(--transition-fast);
}
.mid-cta-bar:hover {
    transform: translateY(-2px) scale(1.01);
    color: #fff;
}
.mid-cta-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    letter-spacing: 0.3px;
}
[dir="rtl"] .mid-cta-content { font-family: var(--font-arabic); }
.mid-cta-icon,
.mid-cta-arrow {
    font-size: 1.1em;
}
.mid-cta-arrow {
    transition: transform var(--transition-fast);
}
.mid-cta-bar:hover .mid-cta-arrow {
    transform: translateX(6px);
}
[dir="rtl"] .mid-cta-bar:hover .mid-cta-arrow {
    transform: translateX(-6px);
}
.mid-cta-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: midCtaShine 3s ease-in-out infinite;
    z-index: 1;
}
@keyframes midCtaShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes midCtaPulse {
    0%, 100% { box-shadow: 0 10px 30px -8px rgba(255,64,64,0.55), 0 0 0 0 rgba(255,64,64,0.45); }
    50%      { box-shadow: 0 14px 40px -6px rgba(255,64,64,0.7), 0 0 0 14px rgba(255,64,64,0); }
}
@keyframes midCtaShine {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

/* ==========================================================
   WhatsApp floating button
   ========================================================== */
.wa-float {
    position: fixed;
    bottom: 100px;
    right: 22px;
    left: auto;
    z-index: 1040;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform var(--transition-fast);
}
[dir="rtl"] .wa-float { right: auto; left: 22px; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: waPulse 1.8s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.9; }
    100% { transform: scale(1.7); opacity: 0;   }
}

/* ==========================================================
   AI Chatbot widget
   ========================================================== */
.chatbot-widget {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1050;
}
[dir="rtl"] .chatbot-widget { right: auto; left: 22px; }

.chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 28px rgba(255, 64, 64, 0.5);
    transition: transform var(--transition-fast);
}
.chatbot-toggle:hover { transform: scale(1.07); }
.chatbot-toggle-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 64, 64, 0.6);
    animation: waPulse 2.2s ease-out infinite;
    pointer-events: none;
}

.chatbot-panel[hidden] { display: none !important; }
.chatbot-panel {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: min(360px, calc(100vw - 44px));
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.25s ease-out;
}
[dir="rtl"] .chatbot-panel { right: auto; left: 0; }

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: var(--gradient-primary);
    color: #fff;
}
.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.chatbot-header-info strong { display: block; font-size: 0.95rem; }
.chatbot-header-info small { font-size: 0.72rem; opacity: 0.85; }
.chatbot-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.chatbot-close {
    background: transparent; border: 0; color: #fff;
    font-size: 1.1rem; cursor: pointer; opacity: 0.85;
}
.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.chatbot-msg {
    max-width: 85%;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-wrap: break-word;
}
.chatbot-msg.bot {
    align-self: flex-start;
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}
[dir="rtl"] .chatbot-msg.bot {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 4px;
}
.chatbot-msg.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}
[dir="rtl"] .chatbot-msg.user {
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 4px;
}
.chatbot-msg.typing { opacity: 0.65; font-style: italic; }

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem;
    background: #fff;
    border-top: 1px solid var(--border-color);
}
.chatbot-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.55rem 0.9rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}
.chatbot-input input:focus { border-color: var(--primary-color); }
.chatbot-input button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: var(--gradient-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform var(--transition-fast);
}
.chatbot-input button:hover { transform: scale(1.06); }

@media (max-width: 480px) {
    .chatbot-panel { height: 70vh; }
    .wa-float { width: 52px; height: 52px; font-size: 1.55rem; }
    .chatbot-toggle { width: 54px; height: 54px; font-size: 1.35rem; }
}

/* =========================================================================
   Subtitle / secondary text size bump (front-end wide)
   ========================================================================= */
.hero-subtitle { font-size: 1.4rem; line-height: 1.85; }
.section-header p,
.section-header .text-muted { font-size: 1.35rem; line-height: 1.8; max-width: 780px; margin-left: auto; margin-right: auto; }
.step-card p { font-size: 1.2rem; line-height: 1.75; }
.service-card-item p,
.card-text,
.service-description,
.service-card-item .text-muted { font-size: 1.2rem; line-height: 1.75; }
.faq-item p,
.faq-answer,
.testimonial-text,
.article-excerpt,
.feature-card p,
.feature-card .text-muted,
.about-section p,
.contact-info p,
.cta-section p { font-size: 1.2rem; line-height: 1.8; }
.footer-col p,
.footer-about p { font-size: 1.05rem; line-height: 1.75; }
.dash-title-note { font-size: 0.95rem; }

@media (max-width: 768px) {
    .hero-subtitle { font-size: 1.15rem; }
    .section-header p,
    .section-header .text-muted { font-size: 1.15rem; }
    .step-card p,
    .service-card-item p,
    .card-text,
    .service-description,
    .faq-item p,
    .faq-answer,
    .testimonial-text,
    .article-excerpt,
    .feature-card p,
    .about-section p,
    .contact-info p,
    .cta-section p { font-size: 1.05rem; }
}
