/* ========================================
   APPTRUM SOLUTIONS - CORPORATE WEBSITE
   ======================================== */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;600&display=swap');

/* === CSS VARIABLES (BRAND COLORS) === */
:root {
  /* Primary Blues - from user requirements */
  --primary-blue: #0870B8;
  --secondary-blue: #2B88C3;
  --dark-navigation: #0B0B0B;
  --cta-green: #2FBE15;
  --accent-red: #D74A49;

  /* Neutrals */
  --text-primary: #0B1220;
  --text-muted: #52606D;
  --bg-light: #F7FAFC;
  --card-bg: #FFFFFF;
  --border: #E6EEF5;

  /* Typography - English */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Typography - Arabic */
  --font-ar: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;

  /* Spacing System (8px grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-standard: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: #0B1220;
  /* Desktop dark text */
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic font switching */
[dir="rtl"] body {
  font-family: var(--font-ar);
  font-size: 18px;
  /* 10-15% larger for Arabic readability */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #0B1220;
  /* Desktop dark text */
}

h1 {
  font-size: clamp(36px, 5vw, 48px);
}

h2 {
  font-size: clamp(32px, 4vw, 40px);
}

h3 {
  font-size: clamp(28px, 3.5vw, 32px);
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

p {
  margin-bottom: var(--space-sm);
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-success {
  background: var(--cta-green);
  color: white;
}

.btn-success:hover {
  background: #28a612;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
}

/* White outline for hero section */
.hero .btn-outline {
  border-color: white;
  color: white;
}

.hero .btn-outline:hover {
  background: white;
  color: var(--primary-blue);
}

/* === HEADER & NAVIGATION === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-navigation);
  box-shadow: var(--shadow-medium);
  height: var(--header-height);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 65px;
  width: auto;
}

.company-name {
  font-size: 20px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .company-name {
    display: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: white;
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link:hover {
  color: var(--secondary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-blue);
  transition: width var(--transition-standard);
}

.nav-link:hover::after {
  width: 100%;
}

/* Services dropdown trigger */
.services-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.services-trigger svg {
  transition: transform var(--transition-fast);
}

.services-trigger:hover svg {
  transform: rotate(180deg);
}

/* === MEGA MENU === */
.mega-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-standard);
  max-height: 0;
  overflow: hidden;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: calc(100vh - var(--header-height) - 20px);
  overflow-y: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
}

.mega-menu-category {
  padding: var(--space-sm);
}

.mega-menu-category h4 {
  color: var(--primary-blue);
  margin-bottom: var(--space-xs);
  font-size: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
}

.mega-menu-category ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu-category a {
  color: #0B1220 !important;
  /* Force dark text on desktop */
  ;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
  font-size: 14px;
}

.mega-menu-category a:hover {
  color: var(--primary-blue);
  background: var(--bg-light);
  padding-left: var(--space-sm);
}

[dir="rtl"] .mega-menu-category a:hover {
  padding-left: var(--space-xs);
  padding-right: var(--space-sm);
}

/* === HEADER ACTIONS === */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 20px;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* === SECTIONS === */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-xs);
  position: relative;
  padding-bottom: 8px;
}

.section-title {
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 16px;
}

.section-description {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-standard);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: white;
  font-size: 28px;
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-blue);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary-blue);
  font-weight: 600;
  margin-top: var(--space-md);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-sm);
}

/* === STATS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-muted);
  font-size: 16px;
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: #0B1220;
  /* Desktop dark text */
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(8, 112, 184, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-checkbox {
  margin-top: 4px;
}

.form-error {
  color: var(--accent-red);
  font-size: 14px;
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: var(--accent-red);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(215, 74, 73, 0.15);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.form-group.error .form-checkbox {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.form-success-message {
  background: #d4edda;
  color: #155724;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  display: none;
}

.form-success-message.active {
  display: block;
}

/* === FOOTER === */
.site-footer {
  background: var(--dark-navigation);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--secondary-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* === LOADER === */
.loader {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(8, 112, 184, 0.1);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-md) auto;
}

.loader.active {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === BUTTON SPINNER (INLINE) === */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

[dir="rtl"] .btn-spinner {
  margin-right: 0;
  margin-left: 8px;
}

/* Add this comprehensive mobile responsive CSS to replace lines 738-812 in styles.css */

/* Enhanced Mobile Responsive CSS - v2
 * 1. Smart company name visibility (show on larger mobile, hide on small)
 * 2. Accordion-style services mega menu for mobile
 * 3. Extended breakpoint to 1024px for tablet support
 */

/* Enhanced Mobile Responsive CSS - v2
 * 1. Smart company name visibility (show on larger mobile, hide on small)
 * 2. Accordion-style services mega menu for mobile
 * 3. Extended breakpoint to 1024px for tablet support
 */

/* Enhanced Mobile Responsive CSS - v2
 * 1. Smart company name visibility (show on larger mobile, hide on small)
 * 2. Accordion-style services mega menu for mobile
 * 3. Extended breakpoint to 1024px for tablet support
 */

/* === RESPONSIVE === */

/* Hide company name only on very small screens (360px and below) */
@media (max-width: 360px) {
  .company-name {
    display: none;
  }
}

/* Show company name on mobile screens 361px-768px */
@media (min-width: 361px) and (max-width: 768px) {
  .company-name {
    display: inline;
    font-size: 16px;
  }
}

/* Tablet breakpoint (769px - 1280px) - reduced styles, still uses desktop menu */
@media (min-width: 769px) and (max-width: 1280px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .company-name {
    font-size: 18px;
  }

  .nav-link {
    font-size: 14px;
    padding: var(--space-xs) var(--space-sm);
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .header-actions .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .hero-cta {
    gap: var(--space-sm);
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile and Small Tablet breakpoint (max-width: 1280px) - Use mobile menu */
@media (max-width: 1280px) {
  :root {
    --header-height: 70px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }

  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--dark-navigation);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-standard);
    box-shadow: var(--shadow-elevated);
  }

  .main-nav.active {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm);
  }

  .nav-link {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Services trigger on mobile */
  .services-trigger {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 48px;
    justify-content: space-between;
  }


  /* Services li should not have extra indentation */
  .nav-links .services-trigger {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links .services-trigger>span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Smart Accordion-Style Mega Menu for Mobile/Tablet */
  .mega-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    border-radius: var(--radius-md);
    margin: 0;
  }

  .mega-menu.active {
    transform: none;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  /* Category headers for mobile - make them collapsible-looking */
  .mega-menu-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0;
    margin-bottom: var(--space-xs);
  }

  .mega-menu-category h4 {
    color: white;
    background: rgba(8, 112, 184, 0.3);
    padding: var(--space-sm) var(--space-md);
    margin: 0;
    border-radius: var(--radius-sm);
    border-bottom: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 15px;
  }

  .mega-menu-category ul {
    padding: var(--space-xs) 0;
  }

  .mega-menu-category a {
    padding: 12px var(--space-md);
    min-height: 48px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    /* Mobile needs white text on dark bg */
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
  }

  .mega-menu-category a:hover,
  .mega-menu-category a:active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary-blue);
    padding-left: calc(var(--space-md) + 8px);
    color: white !important;
  }

  [dir="rtl"] .mega-menu-category a {
    border-left: none;
    border-right: 3px solid transparent;
  }

  [dir="rtl"] .mega-menu-category a:hover,
  [dir="rtl"] .mega-menu-category a:active {
    border-right-color: var(--secondary-blue);
    padding-right: calc(var(--space-md) + 8px);
    padding-left: var(--space-md);
  }

  /* Header Actions Mobile */
  .header-actions {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .header-actions .btn {
    flex: 0 0 auto;
    min-width: 160px;
    justify-content: center;
  }

  .lang-toggle {
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
  }

  /* Hero Section Mobile */
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-cta {
    flex-direction: row;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-cta .btn {
    width: auto;
    min-height: 50px;
    justify-content: center;
    font-size: 16px;
    padding: 16px 24px;
  }

  /* Buttons Mobile - Better Touch Targets */
  .btn {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 15px;
    justify-content: center;
  }

  /* Section Spacing */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Stats Grid Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 36px;
  }

  /* Card Grid Mobile */
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .card {
    padding: var(--space-lg);
  }

  /* Form Elements Mobile */
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 48px;
    font-size: 16px;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 32px;
  }

  /* Full-width buttons on very small screens */
  .btn {
    width: auto;
    text-align: center;
  }

  .card {
    padding: var(--space-md);
  }
}



/* Desktop Mega Menu Color Override - MUST come after mobile styles */
@media (min-width: 1281px) {
  .mega-menu-category a {
    color: #0B1220 !important;
  }

  .mega-menu-category a:hover {
    color: #0870B8 !important;
  }
}

/* === RTL ADJUSTMENTS === */
[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .card-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .services-trigger svg {
  transform: scaleX(-1);
}

[dir="rtl"] .services-trigger:hover svg {
  transform: scaleX(-1) rotate(180deg);
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.hidden {
  display: none;
}

.bg-white {
  background: white;
}

/* === SERVICE PAGE ENHANCEMENTS === */
.section .card {
  position: relative;
  overflow: hidden;
}

.section .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #0870B8, #2B88C3);
  transition: height 0.4s ease;
}

.section .card:hover::before {
  height: 100%;
}

.section .card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon {
  transition: transform 0.3s ease;
}

/* Custom service page section headers */
.section h2 {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

/* FAQ cards enhancement */
.section div[style*='max-width: 800px'] .card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid #0870B8;
  transition: all 0.3s ease;
}

.section div[style*='max-width: 800px'] .card:hover {
  border-left-width: 6px;
  box-shadow: 0 8px 25px rgba(8, 112, 184, 0.12);
}

.section div[style*='max-width: 800px'] .card h4 {
  color: #0870B8;
  font-weight: 600;
}

/* === ENHANCED DELIVERABLES SECTION === */
.deliverables-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 32px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.deliverables-list li {
  padding: 16px 20px 16px 50px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.deliverables-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #2FBE15, #28a612);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(47, 190, 21, 0.3);
}

.deliverables-list li::after {
  content: '\2713';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.deliverables-list li:hover {
  transform: translateX(8px);
  border-color: #0870B8;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 4px 15px rgba(8, 112, 184, 0.15);
}

.deliverables-list li:last-child {
  margin-bottom: 0;
}

.deliverables-list li span {
  font-weight: 500;
  color: #0B1220;
}

.deliverables-list li:hover span {
  color: #0870B8;
}

/* RTL Support for Deliverables */
[dir='rtl'] .deliverables-list li {
  padding: 16px 50px 16px 20px;
}

[dir='rtl'] .deliverables-list li::before,
[dir='rtl'] .deliverables-list li::after {
  left: auto;
  right: 18px;
}

[dir='rtl'] .deliverables-list li::after {
  right: 22px;
}

[dir='rtl'] .deliverables-list li:hover {
  transform: translateX(-8px);
}

/* Fix: Hide the old checkmark text and align title underline */
.deliverables-list li {
  list-style: none;
}


/* Keep benefits cards centered and full width */
.section.bg-white .card {
  width: 100%;
}

/* Override previous: Show 2 benefits cards per row */
.section.bg-white .card-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 1000px;
  margin: 0 auto;
  gap: 24px;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
  .section.bg-white .card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Update deliverables styling to use class-based selector */
.deliverables-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 32px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.deliverables-list li {
  padding: 16px 20px 16px 50px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.deliverables-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #2FBE15, #28a612);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(47, 190, 21, 0.3);
}



.deliverables-list li:hover {
  transform: translateX(8px);
  border-color: #0870B8;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 4px 15px rgba(8, 112, 184, 0.15);
}

.deliverables-list li:last-child {
  margin-bottom: 0;
}

.deliverables-list li span {
  font-weight: 500;
  color: #0B1220;
  font-size: 18px;
}

.deliverables-list li:hover span {
  color: #0870B8;
}

/* Display FAQ cards in a grid (2 columns on desktop) */
.section div[style*='max-width: 800px'] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px !important;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
  .section div[style*='max-width: 800px'] {
    grid-template-columns: 1fr;
  }
}

/* Remove individual card margin since grid handles spacing */
.section div[style*='max-width: 800px'] .card {
  margin-bottom: 0 !important;
}

/* Center icons and titles in benefit cards */
.section.bg-white .card {
  text-align: center;
}

.section.bg-white .card .card-icon {
  margin: 0 auto 16px auto;
}

.section.bg-white .card h3 {
  text-align: center;
}

.section.bg-white .card p {
  text-align: center;
}

/* FAQ Container - 2 column grid */
.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
  .faq-container {
    grid-template-columns: 1fr;
  }
}

/* Remove individual card margin */
.faq-container .card {
  margin-bottom: 0 !important;
}

/* Fix: Center the underline for home page section titles */
.section-subtitle::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Fix: Center the underline for section titles and h2 elements */
.section-title::after,
h2::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Thin separator lines between sections */
.section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.section:last-of-type {
  border-bottom: none;
}

/* Slightly lighter separator for white background sections */
.section.bg-white {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* Alternating section backgrounds - light gray for sections without bg-white */
.section:not(.bg-white) {
  background-color: #f5f5f5;
}

.section.bg-white {
  background-color: #ffffff;
}

/* Force navigation links to be white on dark header background - but NOT mega menu */
.nav-links>li>a,
.nav-links>li>span,
.services-trigger>span {
  color: white !important;
}

.nav-links>li>a:hover,
.services-trigger:hover>span {
  color: var(--secondary-blue) !important;
}


/* Desktop Mega Menu - Override mobile white text */
@media (min-width: 1025px) {
  .mega-menu-category a {
    color: #0B1220 !important;
  }

  .mega-menu-category a:hover {
    color: #0870B8 !important;
  }
}