/* =========================================
   Al Maqayes International - Main CSS
   Corporate Premium Blue & White Design
   ========================================= */

:root {
  --primary: #1976D2;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --secondary: #90CAF9;
  --background: #F8FBFF;
  --surface: #FFFFFF;
  --border: #E3F2FD;
  --text: #1F2937;
  --text-muted: #6B7280;
  --shadow: 0 4px 20px rgba(25, 118, 210, 0.08);
  --shadow-md: 0 8px 30px rgba(25, 118, 210, 0.12);
  --shadow-lg: 0 20px 60px rgba(25, 118, 210, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
}

/* Dark Mode */
body.dark-mode {
  --background: #0F172A;
  --surface: #1E293B;
  --border: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* clip لا hidden: كلاهما يمنع التجاوز الأفقي، لكن hidden يجعل العنصر حاوية
   تمرير فيتعطّل position:sticky في شريط التنقل. clip يقصّ دون حاوية تمرير. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-ar);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: clip;   /* وليس hidden — انظر التعليق عند قاعدة html أعلاه */
}

body.ltr-body { font-family: var(--font-en); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== NEWS TICKER ===== */
.news-ticker-wrapper {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  height: 38px;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  background: rgba(0,0,0,0.25);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.82rem;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-scroll {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-size: 0.85rem;
}

.ticker-sep { opacity: 0.5; }

@keyframes tickerScroll {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100vw); }
}

/* ===== NAVBAR ===== */
.navbar-main {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  box-shadow: 0 2px 20px rgba(25, 118, 210, 0.08);
  transition: var(--transition);
  z-index: 1030;
}

.navbar-main.scrolled {
  padding: 0.4rem 0;
  box-shadow: 0 4px 30px rgba(25, 118, 210, 0.15);
}

.navbar-logo {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* تبديل الشعار بين الوضع الفاتح والليلي */
.navbar-logo.logo-dark { display: none; }
body.dark-mode .navbar-logo.logo-light { display: none; }
body.dark-mode .navbar-logo.logo-dark { display: inline-block; }

@media (max-width: 576px) {
  .navbar-logo { height: 70px; }
}

.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--primary-dark); }
.brand-tagline { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.navbar-main .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--primary) !important;
  background: rgba(25, 118, 210, 0.08);
}

.btn-contact-nav {
  background: var(--primary) !important;
  color: white !important;
  border-radius: 25px !important;
  padding: 0.4rem 1.2rem !important;
}

.btn-contact-nav:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.35);
}

.btn-theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

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

.btn-lang {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  background: transparent;
}

.btn-lang:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-admin-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(25, 118, 210, 0.35);
}

.btn-admin-link--text {
  width: auto;
  border-radius: 20px;
  padding: 0 14px;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-admin-link--text span { display: inline; }

.btn-admin-link:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(25, 118, 210, 0.45);
}

.btn-logout-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout-link:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

/* ===== HERO SECTION ===== */
.hero-section { position: relative; }

.hero-swiper { height: 90vh; min-height: 600px; }

.hero-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-slide-default {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 40%, #1565C0 70%, #0A2463 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,0.88) 0%, rgba(25,118,210,0.65) 60%, rgba(13,71,161,0.5) 100%);
}

.hero-swiper .swiper-slide:not(.swiper-slide-active) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hero-swiper .swiper-slide-duplicate {
  visibility: hidden !important;
  opacity: 0 !important;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.btn-hero-primary {
  background: white;
  color: var(--primary-dark);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  background: var(--primary-light);
  color: white;
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: white;
  transform: translateY(-3px);
}

/* Hero Swiper Controls */
.hero-btn-next, .hero-btn-prev {
  color: white !important;
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(10px);
  border-radius: 50% !important;
  width: 50px !important; height: 50px !important;
  transition: var(--transition) !important;
}

.hero-btn-next:hover, .hero-btn-prev:hover {
  background: rgba(255,255,255,0.3) !important;
  transform: scale(1.1);
}

.hero-pagination .swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5;
  width: 8px; height: 8px;
}

.hero-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 4px;
  transition: width 0.3s;
}

/* ===== HERO STATS BAR ===== */
.hero-stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.stat-item {
  padding: 20px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:last-child { border-right: none; }

body.ltr-body .stat-item { border-right: none; border-left: 1px solid var(--border); }
body.ltr-body .stat-item:last-child { border-left: none; }

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-number::after { content: '+'; font-size: 0.6em; }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ===== SECTION STYLES ===== */
.section-padding { padding: 90px 0; }
.bg-light-blue { background: var(--background); }

.section-tag {
  display: inline-block;
  background: rgba(25, 118, 210, 0.1);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-text {
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-image-wrapper { position: relative; }

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img { display: block; width: 100%; height: 460px; object-fit: cover; }

.about-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 110px; height: 110px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(25,118,210,0.4);
  border: 4px solid white;
}

body.ltr-body .about-img-badge { left: auto; right: -20px; }

.about-img-badge .badge-number { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.about-img-badge .badge-text { font-size: 0.75rem; font-weight: 600; opacity: 0.9; }

.about-img-floating {
  position: absolute;
  top: 20px;
  right: -20px;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

body.ltr-body .about-img-floating { right: auto; left: -20px; }
.about-img-floating i { color: var(--primary); }

.feature-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 8px 0;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrapper { margin-bottom: 20px; }

.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(25,118,210,0.12), rgba(66,165,245,0.08));
  border: 2px solid rgba(25,118,210,0.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: scale(1.1) rotate(5deg);
  border-color: transparent;
}

.service-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.88rem;
  margin-top: 16px; transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* Service Full Card */
.service-card-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.service-card-full:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-image { overflow: hidden; height: 200px; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card-full:hover .service-card-image img { transform: scale(1.05); }

.service-card-body { padding: 28px; }

.service-icon-lg {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 16px;
}

.service-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== PROJECT CARDS ===== */
.project-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.project-image { position: relative; overflow: hidden; height: 240px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-image img { transform: scale(1.08); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,71,161,0.9), rgba(25,118,210,0.4));
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-view-btn {
  background: white;
  color: var(--primary-dark);
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  transform: translateY(20px);
  display: inline-flex; align-items: center;
}

.project-card:hover .project-view-btn {
  transform: translateY(0);
}

.project-info { padding: 22px; }
.project-category {
  display: inline-block;
  background: rgba(25,118,210,0.08);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.project-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.project-location { font-size: 0.82rem; color: var(--text-muted); }

/* ===== NEWS CARDS ===== */
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.news-image { position: relative; overflow: hidden; height: 220px; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-image img { transform: scale(1.06); }

.news-badge {
  position: absolute; top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

body.ltr-body .news-badge { left: auto; right: 14px; }

.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 14px; color: var(--text-muted); font-size: 0.82rem; margin-bottom: 12px; }
.news-title { font-size: 1.05rem; font-weight: 700; line-height: 1.5; margin-bottom: 10px; flex: 1; }
.news-excerpt { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; }
.news-link {
  color: var(--primary); font-weight: 600; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
  margin-top: auto;
}
.news-link:hover { gap: 10px; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-content {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
}

.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}

/* ===== PARTNERS ===== */
.partner-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  height: 90px;
  transition: var(--transition);
}

.partner-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: scale(1.05); }
.partner-item img { max-height: 50px; object-fit: contain; filter: grayscale(1); transition: var(--transition); }
.partner-item:hover img { filter: none; }
.partner-name { font-weight: 700; color: var(--text); font-size: 0.95rem; text-align: center; }

/* ===== WHY US ===== */
.why-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
  height: 100%;
}

.why-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }

.why-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: white;
  margin-bottom: 14px;
}

.why-title { color: white; font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.why-desc { color: rgba(255,255,255,0.8); font-size: 0.88rem; line-height: 1.6; margin: 0; }


.contact-info-grid { display: flex; flex-direction: column; gap: 16px; }

.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-info-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }

.ci-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}

.ci-label { font-size: 0.8rem; color: var(--text-muted); }
.ci-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }

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

.contact-form-card .form-control {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: var(--transition);
}

.contact-form-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(25,118,210,0.1);
}

.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover { background: var(--primary-dark); color: white; transform: translateY(-3px); }

/* ===== MAP ===== */
.map-section { height: 400px; overflow: hidden; }
.map-section iframe { display: block; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #1565C0 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,0.6) 0%, rgba(25,118,210,0.3) 100%);
}

.page-header .container { position: relative; z-index: 2; }

.page-header-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.page-header .breadcrumb { background: none; padding: 0; margin: 0; }
.page-header .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb-item a:hover { color: white; }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== VMV CARDS ===== */
.vmv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.vmv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.vmv-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.vmv-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.vmv-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

.values-list { text-align: start; }
.value-item { font-size: 0.9rem; color: var(--text); padding: 5px 0; }

/* ===== TEAM CARDS ===== */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: var(--transition);
  height: 100%;
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%; overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--border);
  transition: var(--transition);
}

.team-card:hover .team-avatar { border-color: var(--primary); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-avatar-placeholder {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: white; margin: 0 auto 14px;
}

.team-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.team-position { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.team-social {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; text-decoration: none;
  transition: var(--transition);
}
.team-social:hover { background: var(--primary-dark); color: white; transform: scale(1.1); }

/* ===== SUSTAINABILITY ===== */
.sustainability-pillar {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
  height: 100%;
}

.sustainability-pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.pillar-env { border-top: 4px solid #22C55E; }
.pillar-social { border-top: 4px solid var(--primary); }
.pillar-econ { border-top: 4px solid #F59E0B; }

.pillar-icon { margin-bottom: 16px; }
.pillar-env .pillar-icon { color: #22C55E; }
.pillar-social .pillar-icon { color: var(--primary); }
.pillar-econ .pillar-icon { color: #F59E0B; }

.sustainability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

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

.sus-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  background: rgba(25,118,210,0.1);
  color: var(--primary);
}

.sus-icon-wrap.social { background: rgba(25,118,210,0.1); color: var(--primary); }
.sus-icon-wrap.econ { background: rgba(245,158,11,0.1); color: #F59E0B; }
.env-card .sus-icon-wrap { background: rgba(34,197,94,0.1); color: #22C55E; }

.sus-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.sus-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

.bg-light-green { background: #F0FDF4; }

/* ===== PAGINATION ===== */
.pagination-main .page-link {
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 10px !important;
  margin: 0 3px;
  padding: 8px 14px;
  font-weight: 600;
  transition: var(--transition);
}

.pagination-main .page-link:hover,
.pagination-main .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25,118,210,0.3);
}

/* ===== FOOTER ===== */
.footer-main {
  background: #0D1B2A;
  color: #CBD5E1;
}

.footer-top { padding: 70px 0 50px; }

.footer-logo {
  height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-brand-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; flex-shrink: 0;
}

.footer-brand-name { font-size: 1rem; font-weight: 700; color: white; }
.footer-brand-sub { font-size: 0.75rem; color: #64748B; }
.footer-desc { color: #94A3B8; font-size: 0.9rem; line-height: 1.8; }

.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid #334155;
  color: #94A3B8;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-3px); }
.social-link--whatsapp { border-color: #25D366; color: #25D366; }
.social-link--whatsapp:hover { background: #25D366; border-color: #25D366; color: white; }
.social-btn--whatsapp { background: rgba(37,211,102,0.1); border-color: #25D366; color: #25D366; }
.social-btn--whatsapp:hover { background: #25D366; border-color: #25D366; color: white; }

.footer-title {
  color: white; font-weight: 700; font-size: 0.95rem;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid #1E3A5F;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #94A3B8; font-size: 0.88rem; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '←'; font-size: 0.7rem; opacity: 0; transition: var(--transition); }
.footer-links a:hover { color: white; padding-right: 8px; }
.footer-links a:hover::before { opacity: 1; }

body.ltr-body .footer-links a::before { content: '→'; }
body.ltr-body .footer-links a:hover { padding-right: 0; padding-left: 8px; }

.footer-contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: #94A3B8; }
.footer-contact-list i { color: var(--primary-light); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid #1E2D3D;
  padding: 18px 0;
  font-size: 0.85rem; color: #64748B;
}

/* ===== FOOTER CREDIT ===== */
.footer-credit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1E2D3D;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748B;
}

.footer-credit a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #94A3B8;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #1E2D3D;
  border-radius: 20px;
  transition: var(--transition);
}

.footer-credit a:hover {
  color: white;
  border-color: var(--primary-light);
  background: rgba(66, 165, 245, 0.12);
  transform: translateY(-2px);
}

.footer-credit a i { color: var(--primary-light); font-size: 0.8rem; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 48px; left: 48px;
  direction: ltr;
  display: flex; align-items: center;
  height: 54px;
  padding: 4px;
  background: #25D366;
  color: white;
  border-radius: 27px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  z-index: 999;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
}

/* التأثيرات للأجهزة ذات المؤشر الحقيقي فقط؛ على اللمس أول نقرة تُفعّل :hover
   بدل فتح الرابط، فنستثنيها حتى تعمل النقرة من أول مرة على الجوال */
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  }

  .whatsapp-float:hover .whatsapp-float-label {
    max-width: 160px;
    opacity: 1;
    padding-inline: 6px 14px;
  }
}

.whatsapp-float:active { transform: scale(0.94); }

.whatsapp-float-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.whatsapp-float-icon svg { width: 28px; height: 28px; display: block; }

.whatsapp-float-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

@media (max-width: 575.98px) {
  .whatsapp-float { bottom: 32px; left: 32px; height: 50px; }
  .whatsapp-float-icon { width: 42px; height: 42px; }
  .whatsapp-float-icon svg { width: 26px; height: 26px; }
}


/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; }

/* ===== Article ===== */
.article-image img { border-radius: var(--radius-lg); }
.article-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.35; }
.article-content { font-size: 1rem; line-height: 1.9; color: var(--text); }
.article-content p { margin-bottom: 1.2rem; }

.meta-item { font-size: 0.85rem; color: var(--text-muted); }

.related-img { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-title { font-size: 0.88rem; font-weight: 600; color: var(--text); display: block; line-height: 1.4; }
.related-title:hover { color: var(--primary); }

/* ===== BTN ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(25,118,210,0.4); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-primary:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ===== UTILITY ===== */
.text-white-75 { color: rgba(255,255,255,0.75); }

/* ===== EVENTS ===== */
.section-padding { padding: 80px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-swiper { height: 70vh; }
  .section-padding { padding: 60px 0; }
  .about-img-badge { bottom: -10px; left: -10px; width: 90px; height: 90px; }
  .about-img-floating { right: -10px; }
}

@media (max-width: 767px) {
  .hero-swiper { height: 85vh; min-height: 550px; }
  .hero-stats-bar .stat-item { border: none; border-bottom: 1px solid var(--border); }
  .news-ticker-wrapper { display: none !important; }
  .contact-form-card { padding: 24px; }
  .section-padding { padding: 50px 0; }
}

/* ===== DARK MODE ===== */
body.dark-mode .navbar-main { background: rgba(15,23,42,0.97); }
body.dark-mode .service-card,
body.dark-mode .news-card,
body.dark-mode .project-card,
body.dark-mode .testimonial-card,
body.dark-mode .vmv-card,
body.dark-mode .team-card,
body.dark-mode .sustainability-card,
body.dark-mode .contact-info-card,
body.dark-mode .contact-form-card { background: var(--surface); border-color: var(--border); }
body.dark-mode .hero-stats-bar { background: #1E293B; border-color: #334155; }
body.dark-mode .section-text { color: #CBD5E1; }
body.dark-mode .about-img-floating { background: #1E293B; border-color: #334155; }

/* ===== HERO SCROLL HINT ===== */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  animation: bounceDown 2s infinite;
}

.scroll-mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: scrollWheel 1.6s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== HERO BADGE DOT ===== */
.hero-badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  animation: pulse 2s infinite;
}

body.ltr-body .hero-badge-dot { margin-left: 0; margin-right: 6px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

/* ===== HERO DECORATIVE SHAPES ===== */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.hero-shape-1, .hero-shape-2, .hero-shape-3 {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: white;
}

.hero-shape-1 { width: 500px; height: 500px; top: -200px; right: -150px; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -100px; left: 10%; }
.hero-shape-3 { width: 150px; height: 150px; top: 30%; left: 60%; }


/* ===== SERVICE CARDS (HOME) ===== */
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 118, 210, 0.2);
}

.svc-card:hover::after { transform: scaleX(1); transform-origin: left; }

.svc-icon-wrap {
  width: 66px; height: 66px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}

.svc-card:hover .svc-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.svc-body { display: flex; flex-direction: column; flex: 1; }
.svc-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.svc-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; flex: 1; }

.svc-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 600; font-size: 0.88rem;
  margin-top: 18px; transition: var(--transition);
}

.svc-link:hover { gap: 12px; color: var(--primary-dark); }

/* ===== PROJECT CAT BADGE ===== */
.project-cat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.8);
}

body.ltr-body .project-cat-badge { right: auto; left: 14px; }

/* ===== WHY US V2 ===== */
.why-us-v2-section { background: var(--surface); }

.why-checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-checklist-center {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

/* ===== FEATURE PRO CARDS ===== */
.feature-pro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-pro-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(25,118,210,0.06), transparent);
  border-radius: 0 var(--radius-lg) 0 80px;
  transition: var(--transition);
}

.feature-pro-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 118, 210, 0.25);
}

.feature-pro-card:hover::before {
  width: 120px; height: 120px;
  background: linear-gradient(135deg, rgba(25,118,210,0.1), transparent);
}

.feature-pro-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
  margin-bottom: 22px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

.feature-pro-card:hover .feature-pro-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 28px rgba(25, 118, 210, 0.4);
}

.feature-pro-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-pro-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

body.dark-mode .feature-pro-card { background: var(--surface); border-color: var(--border); }

.why-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.why-checklist li i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.why-v2-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.why-v2-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.why-v2-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.why-v2-card:hover::before { transform: scaleX(1); }

.why-v2-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: white;
  margin-bottom: 16px;
  transition: var(--transition);
}

.why-v2-card:hover .why-v2-icon { transform: scale(1.08) rotate(5deg); }

.why-v2-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.why-v2-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-v2-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }


/* ===== RESPONSIVE (NEW) ===== */
@media (max-width: 991px) {
}

@media (max-width: 575px) {
  .hero-scroll-hint { display: none; }
}

/* ===== DARK MODE (NEW) ===== */
body.dark-mode .svc-card,
body.dark-mode .why-v2-card { background: var(--surface); border-color: var(--border); }
