/* ====== components.css ====== */

/* -------- Buttons -------- */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: var(--transition-smooth);
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-secondary);
  letter-spacing: 0.3px;
}

.btn-primary-custom::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary-custom:hover::before { opacity: 1; }

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

.btn-primary-custom > * { position: relative; z-index: 1; }
.btn-full-width { width: 100%; justify-content: center; }

.btn-primary-custom,
.btn-light-custom,
.btn-outline-custom,
.header-cta { position: relative; overflow: hidden; }

/* -------- Ripple Effect -------- */
.ripple-effect {
  position: absolute;
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
  z-index: 1;
}

/* -------- Service Cards -------- */
.services-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-section);
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 45px 30px;
  text-align: center; /* Centered card layout */
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
  z-index: 2;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: var(--primary-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(var(--primary-rgb), 0.05);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--primary-light-rgb), 0.15);
}

.service-card .icon-wrap {
  width: 75px; height: 75px;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 50%; /* sleek circular badge */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.service-card:hover .icon-wrap {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.service-card .icon-wrap i {
  font-size: 28px;
  color: var(--primary);
  transition: all 0.4s ease;
}

.service-card:hover .icon-wrap i {
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Bullet list (Centered wrapper, RTL items) */
.service-check-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  display: inline-block;
  text-align: right;
  width: fit-content;
}

.service-check-list li {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.service-check-list li i {
  color: #10b981; /* emerald green */
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.service-card:hover .service-check-list li i {
  background: #10b981;
  color: var(--white);
  transform: scale(1.1);
}

/* Bottom request link button */
.service-card .service-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-card .service-link i {
  transition: transform 0.3s ease;
}

.service-card:hover .service-link {
  color: var(--primary-light);
}

.service-card:hover .service-link i {
  transform: translateX(-6px); /* move arrow left */
}

/* -------- Portfolio -------- */
.portfolio-section {
  padding: 120px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img { transform: scale(1.12); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h5 {
  color: var(--white);
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: var(--transition) 0.1s;
}

.portfolio-item:hover .portfolio-overlay h5 { transform: translateY(0); }

.portfolio-overlay a {
  width: 45px; height: 45px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transform: translateY(20px);
  transition: var(--transition) 0.15s;
}

.portfolio-item:hover .portfolio-overlay a { transform: translateY(0); }
.portfolio-overlay a:hover { background: var(--white); }

/* -------- About Section -------- */
.about-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 40%;
  height: 100%;
  background: var(--bg-light);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.about-img-wrap {
  position: relative; z-index: 1;
  display: inline-block;
}

.about-img-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.about-img-wrap:hover img { transform: scale(1.02); }

.about-exp-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 22px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.35);
  z-index: 2;
}

.about-exp-badge .num { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.about-exp-badge .lbl { font-size: 14px; opacity: 0.9; }

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.about-feat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  color: var(--text);
  transition: var(--transition);
  border-right: 3px solid var(--primary-light);
}

.about-feat-item i {
  color: var(--primary);
  font-size: 16px;
}

.about-feat-item:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-right-color: var(--primary);
  transform: translateX(-5px);
}

/* -------- Timeline -------- */
.experience-section {
  padding: 120px 0;
  background: var(--bg-light);
  position: relative;
}

.experience-section-compact {
  padding: 80px 0;
}

.experience-section::after {
  content: ''; position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(var(--primary-light-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.timeline-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.timeline-card:hover::after { transform: scaleX(1); }

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.timeline-card.full-width { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
.timeline-card-stretch { height: 100%; }

.timeline-year {
  display: inline-block;
  padding: 5px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
}

.timeline-card h4 {
  font-size: 19px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.timeline-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

.timeline-step {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800;
  color: rgba(var(--primary-light-rgb), 0.15);
  line-height: 1;
}

/* -------- Contact -------- */
.contact-section {
  padding: 120px 0;
}

.contact-info-card {
  background: var(--primary);
  padding: 50px;
  border-radius: var(--radius-lg);
  color: var(--white);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: ''; position: absolute;
  top: -80px; left: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(var(--primary-light-rgb), 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  margin-bottom: 20px; position: relative;
}

.contact-info-card p { color: var(--primary-light); margin-bottom: 30px; position: relative; }

.contact-detail {
  display: flex; align-items: center; gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.contact-detail i {
  width: 50px; height: 50px;
  background: rgba(var(--primary-light-rgb), 0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary-light);
  transition: var(--transition);
}

.contact-detail:hover i { background: var(--primary-light); color: var(--primary); }

.contact-detail .label { display: block; font-size: 13px; opacity: 0.7; }

.contact-detail .value {
  color: var(--white);
  font-weight: 600; font-size: 16px;
}

.contact-detail .value:hover { color: var(--primary-light); }

.contact-social-links {
  display: flex; gap: 12px;
  margin-top: 30px; position: relative;
}

.contact-social-links a {
  width: 45px; height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px;
  transition: var(--transition);
}

.contact-social-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-5px);
}

.contact-form-card {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}

/* -------- Testimonials -------- */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.testimonials-carousel {
  max-width: 700px;
  margin: 40px auto 0;
  position: relative;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 35px;
  text-align: center;
  box-shadow: var(--shadow);
  display: none;
  animation: fadeInUp 0.5s ease;
}

.testimonial-card.active { display: block; }

.testimonial-stars { margin-bottom: 15px; }
.testimonial-stars i { color: var(--star); margin: 0 2px; font-size: 16px; }

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-author strong { display: block; font-size: 15px; color: var(--text); }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonial-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dots .dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* -------- Clients Marquee -------- */
.clients-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

.clients-marquee {
  overflow: hidden;
  margin-top: 30px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 40px;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.client-logo {
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.client-logo img { height: 100%; width: auto; }
.client-logo:hover { opacity: 1; filter: none; }

/* -------- FAQ -------- */
.faq-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.faq-list { margin-top: 40px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-hover); }

.faq-question {
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  gap: 15px;
  user-select: none;
}

.faq-question i {
  transition: transform 0.4s ease;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease;
  padding: 0 25px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

/* -------- Preloader -------- */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s, visibility 0.8s;
}

#preloader.hide { opacity: 0; visibility: hidden; }

#preloader .loader-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

#preloader .loader-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.loader-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary-light);
  border-right-color: var(--accent);
  animation: spin 1.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

.loader-ring::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--primary-light);
  border-left-color: var(--accent);
  animation: spin 0.8s cubic-bezier(0.6, 0, 0.4, 1) infinite reverse;
}

.loader-progress {
  width: 160px; height: 3px;
  background: rgba(var(--primary-light-rgb), 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 10px;
  animation: loadProgress 2s ease-in-out forwards;
}

.loader-text {
  margin-top: 20px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-secondary);
  letter-spacing: 1px;
  animation: pulseText 1.5s ease-in-out infinite;
}

/* -------- Toast Notification -------- */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
}

.toast-notification {
  background: var(--card-bg);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  pointer-events: auto;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  direction: ltr;
}
[dir="rtl"] .toast-notification {
  direction: rtl;
}

.toast-notification i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}
.toast-notification .toast-msg {
  flex: 1;
  color: var(--text);
  line-height: 1.4;
}

/* Toast Types */
.toast-notification.toast-success i {
  background: rgba(var(--success-rgb, 16, 185, 129), 0.1);
  color: var(--success, #10B981);
}
.toast-notification.toast-error i {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}
.toast-notification.toast-info i {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

/* Toast Progress Bar */
.toast-notification::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--success, #10B981);
  animation: toastProgress 3s linear forwards;
}
.toast-notification.toast-error::after {
  background: var(--accent);
}
.toast-notification.toast-info::after {
  background: var(--primary);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
[dir="rtl"] .toast-notification {
  animation-name: toastSlideInRTL;
}
@keyframes toastSlideInRTL {
  from {
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.toast-notification.toast-out {
  animation: toastSlideOut 0.3s ease forwards !important;
}
@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
}

[data-theme="dark"] .toast-notification {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Undo Toast */
.toast-notification.toast-undo {
  padding: 10px 16px;
  gap: 8px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  direction: ltr;
}
[dir="rtl"] .toast-notification.toast-undo {
  direction: rtl;
}
.toast-notification.toast-undo .toast-msg {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  flex: 1;
}
.toast-notification.toast-undo .toast-undo-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.toast-notification.toast-undo .toast-undo-btn:hover {
  background: rgba(255,255,255,0.35);
}
.toast-notification.toast-undo::after {
  background: rgba(255,255,255,0.3);
}

/* -------- Scroll to Top -------- */
.scroll-top-btn {
  position: fixed;
  bottom: 25px; left: 25px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none; border-radius: 50%;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 998;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* -------- WhatsApp Float (Single Official Button) -------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 54px; height: 54px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

/* Disable duplicate plugin wrappers */
.dsw-wa-floating-wrapper,
#dsw-wa-wrapper,
.dsw-wa-btn-trigger {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* -------- Page Breadcrumb -------- */
.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.page-breadcrumb a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.page-breadcrumb a:hover { color: var(--primary-light); }
.page-breadcrumb span { color: rgba(255,255,255,0.4); font-size: 12px; }
.page-breadcrumb .current { color: var(--primary-light); font-weight: 600; }



/* -------- Enhanced Hover Glow -------- */
.timeline-card, .portfolio-item {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s;
}

.timeline-card:hover {
  box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.12);
}

/* -------- Image Zoom -------- */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-zoom-wrap img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom-wrap:hover img {
  transform: scale(1.08);
}

/* -------- Confetti -------- */
.confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  top: -10px;
  animation: confettiFall 3s linear forwards;
}

/* ====== GLASS CARD ====== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.glass-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(var(--primary-light-rgb), 0.25);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}
[data-theme="dark"] .glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .glass-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(126,200,227,0.15);
}

/* ====== GLOW TEXT ====== */
.glow-text {
  text-shadow: 0 0 20px rgba(var(--primary-light-rgb), 0.3), 0 0 40px rgba(var(--primary-rgb), 0.15);
}
.glow-text-accent {
  text-shadow: 0 0 20px rgba(230,57,70,0.3), 0 0 40px rgba(230,57,70,0.15);
}

/* ====== GLOW BORDER ====== */
.glow-border {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.glow-border::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.glow-border:hover::before { opacity: 0.8; }

/* ====== RTL OVERRIDES ====== */
[dir="rtl"] .scroll-top-btn { right: auto; left: 25px; }
[dir="rtl"] .whatsapp-float { left: auto; right: 25px; }
[dir="ltr"] .scroll-top-btn { left: auto; right: 25px; }
[dir="ltr"] .whatsapp-float { right: auto; left: 25px; }
[dir="rtl"] .timeline-step { left: auto; right: 20px; }
[dir="rtl"] .about-exp-badge { right: auto; left: -20px; }
[dir="rtl"] .footer-title::after { right: auto; left: 0; }
[dir="rtl"] .about-feat-item:hover { transform: translateX(5px); }

/* ====== INDEX PAGE UTILITY CLASSES ====== */
.about-text { font-size: 17px; color: var(--text-light); line-height: 1.8; margin-bottom: 15px; }
.about-text-sm { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 25px; }
.about-philosophy { font-size: 15px; color: var(--text-muted); margin-bottom: 25px; font-weight: 600; }
.service-subtitle { font-size: 14px; color: var(--primary-light); font-weight: 500; }
.cta-phone-text { color: var(--primary); font-weight: 700; font-size: 24px; direction: ltr; }
.cta-subtext { color: var(--text-light); margin-bottom: 25px; }

/* Service check lists (services page) */
.about-vision-card { text-align: right; }
.about-vision-icon { margin: 0 0 20px; }

/* ====== PORTFOLIO PAGE ITEMS ====== */
.portfolio-page-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: var(--transition-smooth);
}
.portfolio-page-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--primary-light-rgb), 0.4);
}
.portfolio-page-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-page-item:hover img { transform: scale(1.08); }
.portfolio-page-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 38, 56, 0.95) 0%, rgba(12, 38, 56, 0.75) 45%, rgba(12, 38, 56, 0.2) 80%, transparent 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 24px 20px;
  text-align: center;
  opacity: 0;
  transition: all 0.35s ease;
}
.portfolio-page-item:hover .overlay { opacity: 1; }
.portfolio-page-item .portfolio-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(165, 205, 215, 0.2);
  border: 1px solid rgba(165, 205, 215, 0.4);
  color: var(--primary-light);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(15px);
  transition: transform 0.3s ease;
}
.portfolio-page-item:hover .portfolio-tag-pill { transform: translateY(0); }
.portfolio-page-item .overlay h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.4;
  transform: translateY(15px);
  transition: transform 0.35s ease 0.05s;
}
.portfolio-page-item:hover .overlay h4 { transform: translateY(0); }
.portfolio-page-item .project-brief {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 90%;
  transform: translateY(15px);
  transition: transform 0.35s ease 0.08s;
}
.portfolio-page-item:hover .project-brief { transform: translateY(0); }
.portfolio-page-item .overlay a {
  width: 44px; height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(15px);
  transition: all 0.3s ease 0.1s;
}
.portfolio-page-item:hover .overlay a { transform: translateY(0); }
.portfolio-page-item .overlay a:hover {
  background: #ffffff;
  color: var(--primary-dark);
  transform: translateY(-2px) scale(1.1);
}

@media (max-width: 991px) {
  .portfolio-page-item .overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.88) 0%, rgba(var(--primary-rgb), 0.3) 50%, transparent 100%);
    justify-content: flex-end;
    padding: 20px;
    align-items: flex-start;
  }
  .portfolio-page-item .overlay h4,
  .portfolio-page-item .overlay a {
    transform: translateY(0);
  }
  .portfolio-page-item .overlay h4 {
    font-size: 16px;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
}

/* ====== MAP SECTION (Contact page - Luxury Design) ====== */
.map-section-wrapper {
  padding: 80px 0 110px;
  background: var(--bg-section);
  position: relative;
}
.map-container-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(32, 96, 136, 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  height: 560px;
}
.map-container-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* FIX #50: z-index 3 ليظهر فوق SVG (1) و overlay (2) */
  position: absolute;
  inset: 0;
  z-index: 3;
}
/* FIX #50: عندما يكون data-loaded="false" (iframe لم يُحمَّل بعد) نُخفيه */
.map-preview-wrapper:not([data-loaded="true"]) .map-iframe {
  visibility: hidden;
}

/* FIX #47: Map Preview Wrapper — يحلّ مشكلة CSP/AdBlock.
   يعرض صورة OpenStreetMap ستاتيكية أولاً، وعند النقر على زر التحميل
   يُستبدل بـ iframe Google Maps. هذا يتجنب طلب maps.googleapis.com
   المحظور من AdBlock. */
.map-preview-wrapper {
  position: absolute;
  inset: 0;
  background: #1a2332;
  overflow: hidden;
}
.map-preview-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #1a2332;
  overflow: hidden;
  /* FIX #50: z-index أقل من iframe ليظهر iframe فوقه عند التحميل */
  z-index: 1;
}
.map-preview-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  /* FIX #48: تحسين الجودة والـ filter */
  filter: brightness(0.95) saturate(0.95);
}
.map-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
  /* FIX #50: z-index فوق SVG (1) وتحت iframe (3) - لإضافة تأثير overlay داكن على الخريطة */
  z-index: 2;
}
.map-load-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: rgba(12, 38, 56, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(96, 165, 250, 0.5);
  border-radius: 18px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.85, 0.3, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(96, 165, 250, 0.08);
  text-align: center;
  min-width: 240px;
  max-width: 90%;
}
.map-load-btn:hover {
  transform: translate(-50%, -50%) translateY(-3px);
  background: rgba(12, 38, 56, 1);
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(96, 165, 250, 0.12);
}
.map-load-btn:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.9);
  outline-offset: 4px;
}
.map-load-btn:active {
  transform: translate(-50%, -50%) translateY(-1px);
}
.map-load-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1877f2 0%, #a855f7 100%);
  border-radius: 50%;
  font-size: 24px;
  margin-bottom: 4px;
  animation: mapLoadIconPulse 2s ease-in-out infinite;
}
@keyframes mapLoadIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(96, 165, 250, 0); }
}
.map-load-text {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}
.map-load-subtext {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* FIX #50: عند تحميل الـ iframe بنجاح (data-loaded="true")، نخفي الـ SVG ونُظهر الـ iframe */
.map-preview-wrapper[data-loaded="true"] .map-preview-svg,
.map-preview-wrapper[data-loaded="true"] .map-preview-overlay {
  display: none;
}
/* الـ iframe يكون ظاهراً افتراضياً (z-index: 3) فوق الـ SVG (z-index: 1) */

/* FIX #46: Map Fallback Overlay — يظهر فقط إذا فشل تحميل الخريطة.
   يستخدم :empty pseudo-class للـ iframe لاكتشاف فشل التحميل. */
.map-fallback-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%),
    radial-gradient(circle at top right, rgba(24, 119, 242, 0.2) 0%, transparent 60%);
  color: #fff;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.map-container-card iframe[src]:not([src=""]) + .map-fallback-overlay {
  /* FIX #47: لم يعد يعمل لأن البنية تغيرت (الـ fallback داخل .map-preview-wrapper).
     JS الآن يتحكم في إظهار/إخفاء الـ fallback عبر data-loaded attribute. */
  display: none;
}
.map-container-card .map-fallback-overlay:not([hidden]) {
  display: flex;
}
.map-fallback-content {
  text-align: center;
  padding: 32px;
  max-width: 420px;
}
.map-fallback-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 30px;
  color: #60a5fa;
  animation: mapFallbackPulse 2s ease-in-out infinite;
}
@keyframes mapFallbackPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(96, 165, 250, 0); }
}
.map-fallback-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.map-fallback-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
  line-height: 1.6;
}
.map-fallback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #fff;
  color: #1877f2;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.map-fallback-overlay:hover .map-fallback-btn {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: #fff;
  color: #0d65d9;
}
.map-fallback-btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}
.map-fallback-overlay:hover .map-fallback-btn i {
  transform: translate(-3px, -3px);
}
.map-fallback-overlay:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.8);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Luxury Floating Location Hub Card */
.map-luxury-card {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 420px;
  max-width: calc(100% - 60px);
  background: rgba(12, 38, 56, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(165, 205, 215, 0.3);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(32, 96, 136, 0.25);
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.map-luxury-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(197, 168, 128, 0.25);
}

/* Card Topbar */
.map-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.map-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #4ade80;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: mapPulseDot 1.8s infinite;
}
@keyframes mapPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.map-country-tag {
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Card Header */
.map-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.map-logo-symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(32, 96, 136, 0.4);
}
.map-company-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px;
  line-height: 1.3;
}
.map-company-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

/* Card Details */
.map-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.map-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 12px;
  transition: var(--transition);
}
.map-info-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(165, 205, 215, 0.25);
}
.map-info-row .info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(165, 205, 215, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.map-info-row .info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-info-row .info-text strong {
  font-size: 0.76rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.map-info-row .info-text span {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

/* Card Actions */
.map-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-map-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(32, 96, 136, 0.4);
  transition: all 0.3s ease;
}
.btn-map-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 96, 136, 0.6);
}
.btn-map-secondary {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-map-secondary:hover {
  background: var(--accent);
  color: var(--primary-dark) !important;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* FIX #51: استجابة محسّنة لجميع الأجهزة */
@media (max-width: 991px) {
  .map-container-card {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .map-container-card iframe {
    height: 380px;
  }
  .map-luxury-card {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border: none;
    border-top: 1px solid rgba(165, 205, 215, 0.2);
  }
}

/* FIX #51: موبايل متوسط (تابلت) — iframe أكبر قليلاً */
@media (max-width: 767.98px) {
  .map-container-card iframe {
    height: 360px;
  }
  .map-fallback-text {
    font-size: 13px;
  }
}

/* FIX #51: موبايل صغير — iframe أصغر مع تكيف مثالي */
@media (max-width: 575.98px) {
  .map-container-card iframe {
    height: 320px;
  }
  .map-fallback-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  .map-fallback-title {
    font-size: 17px;
  }
  .map-fallback-text {
    font-size: 12.5px;
  }
}

/* FIX #51: موبايل XS (شاشات صغيرة جداً) */
@media (max-width: 380px) {
  .map-container-card iframe {
    height: 280px;
  }
  .map-fallback-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* ============================================================
   Landed Template Features & Icon Grid Styles
   ============================================================ */

#four {
  padding: 100px 0;
  background: var(--bg-section);
  text-align: center;
}

#four .major {
  margin-bottom: 60px;
}

#four .major h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 15px;
}

#four .major p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature grid structure */
.gtr-uniform {
  margin-top: 40px;
}

.gtr-uniform section {
  padding: 40px 30px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gtr-uniform section:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

/* Major circular icons */
.icon.major {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-light-rgb), 0.2));
  border: 2px solid rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 25px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.icon.major::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.icon.major:hover {
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.icon.major:hover::before {
  opacity: 1;
}

.icon.major i, .icon.major::after {
  position: relative;
  z-index: 2;
}

/* Feature texts */
.gtr-uniform section h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.gtr-uniform section p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.7;
/* ============================================================
   FIX #26: Facebook Clients Cards (نمط بطاقات فيسبوك)
   ============================================================ */
.fb-clients-section {
    padding: 90px 0;
    background: var(--bg-section, #f6f8fb);
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .fb-clients-section { background: #0d1424; }

.fb-clients-section .section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1877f2; color: #fff;
    padding: 7px 18px; border-radius: 50px;
    font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.fb-clients-section .section-title { font-weight: 800; margin-bottom: 12px; }
.fb-clients-section .section-sub { color: var(--text-light, #64748b); max-width: 640px; margin: 0 auto; }

/* ── البطاقة ── */
.fb-card {
    background: var(--white, #fff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, .08);
    transition: transform .35s cubic-bezier(.2,.7,.3,1.2), box-shadow .35s ease;
    height: 100%;
    display: flex; flex-direction: column;
}
[data-theme="dark"] .fb-card { background: #111a2e; }
.fb-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 44px rgba(24, 119, 242, .18);
}

/* الغلاف */
.fb-card-cover {
    height: 150px;
    position: relative;
    display: flex; align-items: flex-end;
    padding: 0 18px 12px;
    overflow: hidden;
}
/* صورة غلاف الصفحة الحقيقية من فيسبوك */
.fb-cover-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: transform .5s ease;
}
.fb-card:hover .fb-cover-img { transform: scale(1.06); }
/* طبقة تظليل خفيفة أسفل الصورة لوضوح شارة القطاع */
.fb-cover-img::after { content: none; }
.fb-card-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.55) 0%, rgba(15,23,42,0) 45%);
    pointer-events: none;
}
.fb-cover-watermark {
    position: absolute; inset-inline-end: -14px; top: -16px;
    font-size: 110px; opacity: .18; color: #fff;
    transform: rotate(-12deg); pointer-events: none;
    z-index: 1;
}
.fb-cover-sector {
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 50px;
    position: relative; z-index: 2;
}

/* جسم البطاقة */
.fb-card-body {
    padding: 0 20px 20px;
    display: flex; flex-direction: column;
    flex: 1;
}

/* الصورة الشخصية المتداخلة مع الغلاف */
.fb-avatar-wrap { margin-top: -38px; margin-bottom: 12px; z-index: 2; }
.fb-avatar-placeholder,
.fb-avatar-img {
    width: 76px; height: 76px;
    border-radius: 50%;
    border: 4px solid var(--white, #fff);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 30px; font-weight: 800;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15,23,42,.15);
}
[data-theme="dark"] .fb-avatar-placeholder,
[data-theme="dark"] .fb-avatar-img { border-color: #111a2e; }

/* الاسم + علامة التوثيق */
.fb-name {
    font-size: 17px; font-weight: 800;
    line-height: 1.45; min-height: 50px;
    display: flex; align-items: flex-start; gap: 7px;
    margin-bottom: 10px;
}
.fb-verified {
    color: #1877f2; font-size: 15px;
    margin-top: 3px; flex-shrink: 0;
}

/* المتابعون + نوع الخدمة */
.fb-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; flex-wrap: wrap;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1px dashed var(--border, #e2e8f0);
}
.fb-followers {
    display: inline-flex; align-items: center; gap: 6px;
    color: #1877f2; font-weight: 800; font-size: 14px;
}
.fb-followers small { color: var(--text-light, #64748b); font-weight: 600; }
.fb-service {
    font-size: 11px; font-weight: 700;
    color: var(--text-light, #64748b);
    background: var(--bg, #f1f5f9);
    padding: 4px 10px; border-radius: 50px;
    white-space: nowrap;
}

/* الوصف */
.fb-about {
    font-size: 13.5px; line-height: 1.75;
    color: var(--text-light, #64748b);
    margin-bottom: 16px; flex: 1;
}

/* زر الزيارة */
.btn-fb-visit {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    background: #1877f2; color: #fff !important;
    font-weight: 700; font-size: 14px;
    padding: 11px 18px; border-radius: 12px;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}
.btn-fb-visit:hover {
    background: #0d65d9; transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(24,119,242,.35);
}

@media (max-width: 576px) {
    .fb-clients-section { padding: 60px 0; }
    .fb-name { font-size: 15px; }
}
  margin: 0;
}

/* Five: Newsletter Section Form style */
#five {
  padding: 100px 0;
  background: var(--primary-darker);
  color: var(--white);
  text-align: center;
  position: relative;
}

#five h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
}

#five p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
}

#five form.cta {
  max-width: 650px;
  margin: 0 auto;
}

#five form.cta input[type="email"] {
  width: 100%;
  padding: 15px 25px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition);
}

#five form.cta input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-light);
  outline: none;
}

#five form.cta input[type="submit"] {
  width: 100%;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

/* Dark mode specific adjustments for feature section */
[data-theme="dark"] .gtr-uniform section {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] #four {
  background: var(--bg-dark);
}

/* -------- Block Editor Content -------- */
.page-content-section {
  padding: 40px 0;
}

.page-content-section > .container > *:last-child {
  margin-bottom: 0;
}

.page-content-section h1,
.page-content-section h2,
.page-content-section h3,
.page-content-section h4,
.page-content-section h5,
.page-content-section h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.page-content-section h1 { font-size: 36px; }
.page-content-section h2 { font-size: 28px; }
.page-content-section h3 { font-size: 24px; }
.page-content-section h4 { font-size: 20px; }
.page-content-section h5 { font-size: 18px; }
.page-content-section h6 { font-size: 16px; }

.page-content-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.page-content-section a {
  color: var(--primary);
  text-decoration: none;
}

.page-content-section a:hover {
  color: var(--primary-dark);
}

.page-content-section img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.page-content-section ul,
.page-content-section ol {
  margin-bottom: 16px;
  padding-right: 24px;
}

.page-content-section li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.page-content-section .wp-block-image {
  margin-bottom: 16px;
}

.page-content-section .wp-block-image img {
  border-radius: var(--radius);
}

.page-content-section .wp-block-gallery {
  margin-bottom: 16px;
}

.page-content-section .wp-block-cover {
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  min-height: 300px;
}

.page-content-section .wp-block-button {
  margin-bottom: 16px;
}

.page-content-section .wp-block-table {
  margin-bottom: 16px;
}

.page-content-section .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.page-content-section .wp-block-table th,
.page-content-section .wp-block-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.page-content-section .wp-block-table th {
  background: var(--bg-dark);
  font-weight: 700;
}

.page-content-section .wp-block-quote {
  border-right: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--bg-section);
  border-radius: 0 12px 12px 0;
  margin-bottom: 16px;
}

.page-content-section .wp-block-separator {
  margin: 24px 0;
  border: none;
  height: 2px;
  background: var(--border);
}

.page-content-section .wp-block-columns {
  gap: 24px;
  margin-bottom: 16px;
}

.page-content-section iframe {
  max-width: 100%;
  border-radius: var(--radius);
}

[data-theme="dark"] .page-content-section {
  color: var(--text);
}

[data-theme="dark"] .page-content-section .wp-block-table th {
  background: var(--bg-dark);
}

[data-theme="dark"] .page-content-section .wp-block-quote {
  background: var(--bg-section);
}
