/*
Theme Name: الاختيار الذكي
Theme URI: https://akhtiardhaki.com
Description: منصة الخدمات الاحترافية - قالب ووردبرس احترافي عربي مع نظام حجز متكامل و12 خدمة رئيسية و108+ خدمة فرعية
Version: 2.6.5
Author: الاختيار الذكي
Author URI: https://akhtiardhaki.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akhtiar-dhaki
Tags: one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* Font is loaded via functions.php wp_enqueue_style with display=swap */

:root {
  --primary: #0f5298;
  --primary-dark: #0a3d72;
  --primary-light: #e1edf7;
  --secondary: #f08726;
  --secondary-light: #fef3e2;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary); }
.logo-text span { color: var(--secondary); }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== Desktop nav icon + label alignment ===== */
.nav-menu .nm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-menu .nm-label {
  display: inline-block;
}

/* Header CTA: tighten padding so icon + label fit cleanly */
.header-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}
.header-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,82,152,0.4);
}

.nav-join-link {
  color: var(--secondary) !important;
  font-weight: 600 !important;
  border: 2px solid var(--secondary) !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  transition: all 0.2s !important;
}
.nav-join-link:hover {
  background: var(--secondary) !important;
  color: white !important;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

/* ========== MOBILE DRAWER (mobile-only menu) ========== */
/* Hidden on desktop by default; only shown on mobile via @media below */
.mobile-drawer {
  display: none;
}
.mobile-drawer-backdrop {
  display: none;
}
/* Prevent background scroll while mobile drawer is open */
body.mobile-drawer-open {
  overflow: hidden;
}

/* ========== HERO SLIDER ========== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Layer - always visible behind slides */
.hero-bg-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-grid-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: rgba(15,82,152,0.5);
  animation: glowFloat1 15s ease-in-out infinite;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -50px;
  background: rgba(240,135,38,0.25);
  animation: glowFloat2 18s ease-in-out infinite;
}
.hero-glow-3 {
  width: 300px; height: 300px;
  top: 40%; left: 50%;
  background: rgba(15,82,152,0.2);
  animation: glowFloat3 12s ease-in-out infinite;
}
@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 60px) scale(1.1); }
}
@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -40px) scale(1.15); }
}
@keyframes glowFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -50px) scale(0.9); }
}

.hero-slider {
  position: relative;
  width: 100%;
  flex: 1;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background: linear-gradient(160deg, #061a33 0%, #0a3d6e 30%, #0f5298 60%, #0a325a 100%);
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
  pointer-events: auto;
  position: relative;
}

/* Ken Burns background zoom */
.hero-slide[data-kenburns="kb-zoom-in"].active {
  animation: kbZoomIn 10s ease-out forwards;
}
.hero-slide[data-kenburns="kb-zoom-out"].active {
  animation: kbZoomOut 10s ease-out forwards;
}
@keyframes kbZoomIn {
  from { background-size: 100% auto; }
  to   { background-size: 112% auto; }
}
@keyframes kbZoomOut {
  from { background-size: 112% auto; }
  to   { background-size: 100% auto; }
}

/* Overlay */
.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(6,26,51,0.3) 0%, rgba(10,61,110,0.15) 40%, rgba(6,26,51,0.45) 100%);
  z-index: 1;
}

/* Hero Slide Inner */
.hero-slide .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Two-column Layout — desktop professional */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  justify-content: center;
  text-align: right;
  min-height: 0;
  gap: 60px;
  width: 100%;
}

.hero-content-side {
  max-width: 620px;
}

.hero-visual-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

/* Visual Side — floating glass stat cards */
.hero-visual-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.hero-visual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(240,135,38,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-visual-card .hvc-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--secondary), #e07520);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(240,135,38,0.35);
  font-size: 32px;
}
.hero-visual-card .hvc-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-visual-card .hvc-stat {
  text-align: center;
}
.hero-visual-card .hvc-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}
.hero-visual-card .hvc-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.hero-visual-card .hvc-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

/* Floating decorative elements on visual side */
.hero-visual-float {
  position: absolute;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatCard 6s ease-in-out infinite;
}
.hero-visual-float.hvf-1 {
  top: 10px;
  left: -30px;
  animation-delay: 0s;
}
.hero-visual-float.hvf-2 {
  bottom: 20px;
  right: -40px;
  animation-delay: 2s;
}
.hvf-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.hvf-icon.hvf-orange { background: rgba(240,135,38,0.2); }
.hvf-icon.hvf-blue { background: rgba(15,82,152,0.3); }
.hvf-text {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.hvf-text strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
  font-weight: 800;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hvc-icon-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15,82,152,0.4);
  font-size: 36px;
}

.hvc-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.hvc-stat {
  text-align: center;
}
.hvc-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}
.hvc-stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.hvc-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
}

/* Content entrance animations */
.hero-content-animate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-content-animate .hero-badge {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.hero-content-animate h1 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.hero-content-animate .hero-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.45s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.45s;
}
.hero-content-animate .hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.6s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}
.hero-slide.active .hero-content-animate .hero-badge,
.hero-slide.active .hero-content-animate h1,
.hero-slide.active .hero-content-animate .hero-desc,
.hero-slide.active .hero-content-animate .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* Heading — desktop */
.hero h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.hero-highlight {
  color: var(--secondary);
  -webkit-text-fill-color: var(--secondary);
  position: relative;
}

/* Description — desktop */
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 100%;
}

/* Hero Buttons — desktop: 3 equal columns in one row */
.hero-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.hero-buttons .btn-hero-primary {
  width: 100%;
  justify-content: center;
}

.hero-buttons-row {
  display: contents;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--secondary), #e07520);
  color: #ffffff !important;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(240,135,38,0.35), 0 2px 8px rgba(240,135,38,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(240,135,38,0.45), 0 4px 12px rgba(240,135,38,0.25);
}
.btn-hero-primary svg {
  width: 18px;
  height: 18px;
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  color: #ffffff !important;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-hero-wa {
  background: #25d366;
  color: #ffffff !important;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
}
.btn-hero-wa:hover {
  background: #20c05c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}
.btn-hero-wa svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-dot:hover {
  border-color: rgba(255,255,255,0.8);
}
.hero-dot.active {
  width: 40px;
  border-radius: 6px;
  border-color: var(--secondary);
  background: rgba(240,135,38,0.15);
}
.hero-dot.active::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: var(--secondary);
  border-radius: 4px;
  animation: dotProgressFill 5s linear forwards;
}
@keyframes dotProgressFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* Progress Bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}
.hero-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.3s ease;
}
.hero-progress-bar.animating {
  transition: width 5s linear;
  width: 100%;
}

/* Slide Counter */
.hero-slide-counter {
  position: absolute;
  bottom: 40px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}
.hsc-current {
  color: #ffffff;
  font-size: 16px;
}
.hsc-sep {
  opacity: 0.4;
  margin: 0 3px;
}

/* Arrows removed — swipe/dots navigation only */

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero-scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-wheel {
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ========== GLOBAL BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
  text-decoration: none;
}
.btn-white {
  background: #ffffff;
  color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ========== HERO → STATS WAVE DIVIDER ========== */
.hero-services-divider {
  position: relative;
  margin-top: -2px;
  line-height: 0;
  z-index: 2;
}
.hero-services-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Improved spacing: wave divider extends visually into services section */
.hero-services-divider + .services-section {
  margin-top: -1px;
}

.trust-stats-divider {
  position: relative;
  margin-top: -2px;
  line-height: 0;
  z-index: 2;
}
.trust-stats-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.payment-stats-divider {
  position: relative;
  margin-top: -2px;
  line-height: 0;
  z-index: 2;
}
.payment-stats-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ========== INDEPENDENT STATS SECTION ========== */
.stats-section {
  background: linear-gradient(135deg, #0b3d6e 0%, #0f5298 50%, #0a325a 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(240,135,38,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
  filter: brightness(1.1);
}

.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
 line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 6px 0 0;
}


/* Stats → Services wave divider */
.stats-services-divider {
  position: relative;
  margin-bottom: -2px;
  line-height: 0;
  z-index: 2;
}
.stats-services-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text);
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== SERVICES GRID ========== */
.services-section { background: var(--bg-light); }

/* Skeleton loader for services (shown only during AJAX fallback) */
.services-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.skeleton-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.skeleton-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-line {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.service-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 14px;
}

.service-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card.expanded {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(15,82,152,0.15);
}

.service-card.expanded .service-count::after {
  content: ' ▲';
  font-size: 8px;
}

.service-card:not(.expanded) .service-count::after {
  content: ' ▼';
  font-size: 8px;
}

.sub-services-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.sub-services-panel.open {
  max-height: 2000px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.sub-services-panel::-webkit-scrollbar { width: 4px; }
.sub-services-panel::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.sub-services-category {
  margin-bottom: 14px;
}

.sub-services-category-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.sub-services-category-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.sub-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  background: white;
  position: relative;
  user-select: none;
}

.sub-service-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,82,152,0.15);
}

.sub-service-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(15,82,152,0.2);
}

.sub-service-card .ssc-icon {
  font-size: 26px;
  line-height: 1;
}

.sub-service-card .ssc-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.sub-service-card .ssc-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.2s ease;
}

.sub-service-card.selected .ssc-check {
  background: var(--primary);
  color: white;
}

.sub-service-card .ssc-book {
  display: none;
  margin-top: 4px;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.sub-service-card.selected .ssc-book {
  display: inline-block;
}

.sub-service-tag {
  display: none;
}

/* ========== HOW IT WORKS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== TRUST BADGES ========== */
.trust-section { background: var(--bg-light); }

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

.trust-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.trust-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ========== CONTACT / CTA ========== */
.contact-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.contact-section .section-badge { background: rgba(255,255,255,0.2); color: white; }
.contact-section .section-title { color: white; }
.contact-section .section-desc { color: rgba(255,255,255,0.85); }

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.contact-item .ci-icon { font-size: 22px; }

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ========== PAGE HEADER BANNER ========== */
.page-header-banner {
  background: linear-gradient(135deg, #0f5298 0%, #0a3d72 50%, #f08726 100%);
  padding: 110px 0 50px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-banner h1 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-header-banner p {
  font-size: 17px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

.page-breadcrumb a {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  transition: opacity 0.2s;
}

.page-breadcrumb a:hover { opacity: 1; }

.page-breadcrumb .breadcrumb-sep { opacity: 0.6; }

@media (max-width: 768px) {
  .page-header-banner { padding: 100px 0 36px; }
  .page-header-banner h1 { font-size: 24px; }
  .page-header-banner p { font-size: 14px; }
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0b1a2e;
  color: rgba(255,255,255,0.7);
  padding: 0;
  position: relative;
}

.footer-top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Brand Column */
.footer-brand {
  max-width: 320px;
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand .footer-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1) saturate(1.15) drop-shadow(0 0 6px rgba(240,135,38,0.35)) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-brand .footer-logo:hover img {
  transform: scale(1.06);
  filter: brightness(1.15) saturate(1.2) drop-shadow(0 0 10px rgba(240,135,38,0.5)) drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.footer-brand-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.footer-brand-name span {
  color: var(--secondary);
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.06);
}

.footer-social a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,82,152,0.4);
}

/* PWA Install Banner */
.pwa-install-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(240,135,38,0.15), rgba(230,126,34,0.08));
  border: 1px solid rgba(240,135,38,0.3);
  border-radius: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.pwa-install-link:hover {
  background: linear-gradient(135deg, rgba(240,135,38,0.25), rgba(230,126,34,0.15));
  border-color: rgba(240,135,38,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,135,38,0.2);
}
.pwa-install-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f08726, #e67e22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(240,135,38,0.35);
}
.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pwa-install-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.pwa-install-sub {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}
.pwa-install-arrow {
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.pwa-install-link:hover .pwa-install-arrow {
  transform: translateY(-2px);
}
.pwa-install-hint {
  margin-top: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mobileDrawerSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer Columns */
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

/* Contact List */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-contact-list li a {
  color: rgba(255,255,255,0.7);
}

.footer-contact-list li a:hover {
  color: var(--primary);
  transform: none;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

.footer-sep {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

/* Footer Credit */
.footer-credit {
  font-size: 12px;
  opacity: 0.5;
  text-align: center;
}

.footer-credit a {
  color: var(--secondary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-credit a:hover { opacity: 1; }

/* Footer brand highlight in copyright line */
.footer-brand-highlight {
  color: var(--primary);
  font-weight: 700;
}
.footer-brand-highlight-alt {
  color: var(--secondary);
  font-weight: 700;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #25d366 !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4) !important;
  border: none !important;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #1da851 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.5) !important;
}

/* Contact info as links */
.contact-info .contact-item {
  cursor: pointer;
  transition: color 0.2s;
}

.contact-info .contact-item:hover {
  color: rgba(255,255,255,0.8);
}

/* Footer Responsive */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  /* Brand: full width, first */
  .footer-grid > :nth-child(1) {
    grid-column: 1 / -1;
  }
  .footer-brand-desc {
    font-size: 13px;
    line-height: 1.7;
  }
  /* Quick Links + Services: side by side */
  .footer-grid > :nth-child(2),
  .footer-grid > :nth-child(3) {
    order: 1;
  }
  /* Contact: full width, below */
  .footer-grid > :nth-child(4) {
    grid-column: 1 / -1;
    order: 2;
  }
  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .footer-col ul li {
    padding: 4px 0;
    font-size: 13px;
  }
  /* Contact section: compact 2-column grid on mobile */
  .footer-contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 6px 0;
    border-bottom: none;
    font-size: 12px;
  }
  .footer-contact-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .footer-contact-label {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1px;
  }
  .footer-contact-list li a {
    font-size: 12px;
  }
  .footer-main {
    padding: 40px 0 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 13px;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== BOOKING MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

/* Hide mobile bottom bar when modal is open — reliable approach via body class */
body.modal-open .mobile-bottom-bar {
  display: none !important;
}
/* Fallback: sibling selector for non-JS scenarios */
.modal-overlay.active ~ .mobile-bottom-bar {
  display: none !important;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

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

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #0a3d72);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.modal-header-sub {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 2px;
}

.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover { background: #fee2e2; color: #dc2626; }

.modal-body { padding: 20px 24px 24px; }

/* Step Indicator with labels */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 8px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 100px;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.3s;
}

.step-item.active .step-label { color: var(--primary); }
.step-item.completed .step-label { color: var(--primary); opacity: 0.7; }

.step-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
}

.step-circle.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 12px rgba(15,82,152,0.3);
}

.step-circle.completed {
  background: var(--primary-light);
  color: var(--primary);
}

.step-line {
  width: 40px; height: 2px;
  background: #e2e8f0;
  transition: background 0.3s;
  margin-bottom: 20px;
}

.step-line.active { background: var(--primary); }

.step-content { display: none; }
.step-content.active { display: block; }

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  transition: all 0.2s;
  direction: rtl;
  background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15,82,152,0.3);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.services-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}

.services-select-grid::-webkit-scrollbar { width: 4px; }
.services-select-grid::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.service-select-item {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.service-select-item:hover { border-color: var(--primary-light); background: var(--primary-light); }
.service-select-item.selected { border-color: var(--primary); background: var(--primary-light); }

.service-select-item .ssi-icon { font-size: 28px; margin-bottom: 6px; }
.service-select-item .ssi-name { font-size: 13px; font-weight: 700; }

.sub-services-select {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}

.sub-services-select::-webkit-scrollbar { width: 4px; }
.sub-services-select::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.sub-service-select-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  background: white;
}

.sub-service-select-item .sssi-icon {
  font-size: 28px;
}

.sub-service-select-item .sssi-name {
  font-size: 11px;
  line-height: 1.4;
}

.sub-service-select-item:hover { border-color: var(--primary-light); background: var(--primary-light); }
.sub-service-select-item.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .btn { flex: 1; }

/* 3-column layout for step 3 actions (back / whatsapp / confirm) */
.modal-actions-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.modal-actions-3col .btn-back {
  grid-column: auto;
}
.modal-actions-3col .btn-whatsapp {
  grid-column: auto;
}
.modal-actions-3col .btn-primary {
  grid-column: auto;
}

.btn-back {
  background: var(--bg-light);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-back:hover { background: var(--border); }

.modal-success {
  display: none;
  text-align: center;
  padding: 40px 28px;
}

.modal-success.active { display: block; }

.modal-success .success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.modal-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-success p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ========== FLOATING ACTION BUTTONS ========== */
.floating-actions {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.floating-actions.visible {
  pointer-events: auto;
}

.floating-actions.visible .fab-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(24px) scale(0.7);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  text-decoration: none;
}

.fab-btn:hover {
  transform: translateY(0) scale(1.15);
}

.fab-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Booking button — primary blue */
.fab-booking {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 20px rgba(15,82,152,0.45);
}

.fab-booking:hover {
  box-shadow: 0 6px 28px rgba(15,82,152,0.55);
}

/* WhatsApp button — green */
.fab-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}

.fab-whatsapp:hover {
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* Call button — orange */
.fab-call {
  background: linear-gradient(135deg, var(--secondary), #e06820);
  box-shadow: 0 4px 20px rgba(240,135,38,0.4);
}

.fab-call:hover {
  box-shadow: 0 6px 28px rgba(240,135,38,0.55);
}

/* Tooltip labels */
.fab-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-50%) translateX(-6px);
}

.fab-label::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(0,0,0,0.8);
  border-left: 0;
}

.fab-btn:hover .fab-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Pulse animation on WhatsApp */
.fab-whatsapp::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  animation: fab-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ========== TOAST ========== */
.toast-notification {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.error {
  background: #dc2626;
}

/* ========== ADMIN PANEL ========== */
.akhtiar-admin-wrap {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.akhtiar-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.akhtiar-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.akhtiar-stat-card .stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
}

.akhtiar-stat-card .stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

.akhtiar-bookings-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.akhtiar-bookings-table th,
.akhtiar-bookings-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.akhtiar-bookings-table th {
  background: var(--bg-light);
  font-weight: 700;
}

.akhtiar-bookings-table .status-pending { color: var(--secondary); font-weight: 700; }
.akhtiar-bookings-table .status-confirmed { color: var(--primary); font-weight: 700; }
.akhtiar-bookings-table .status-completed { color: #6b7280; }

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== GALLERY PAGE ========== */
.gallery-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.gallery-catalog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.gallery-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-catalog-images {
  position: relative;
}

.gallery-catalog-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-catalog-main-img:hover {
  transform: scale(1.02);
}

.gallery-catalog-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.gallery-catalog-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-light);
  overflow-x: auto;
}

.gallery-catalog-thumb {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.gallery-catalog-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.gallery-catalog-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gallery-catalog-body {
  padding: 16px;
}

.gallery-catalog-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gallery-catalog-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

.gallery-catalog-expand {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.gallery-catalog-expand:hover {
  background: var(--primary);
  color: white;
}

.gallery-placeholder-bg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder {
  font-size: 48px;
  color: var(--border);
}

.gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}

/* Gallery Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
}

.gallery-lightbox.active {
  display: block;
}

.gallery-lb-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
}

.gallery-lb-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-lb-close:hover { background: rgba(255,255,255,0.3); }

.gallery-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-lb-nav:hover { background: rgba(255,255,255,0.3); }
.gallery-lb-prev { left: 20px; }
.gallery-lb-next { right: 20px; }

.gallery-lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 15px;
  font-weight: 600;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  padding: 6px 18px;
  border-radius: 50px;
}

.gallery-lb-img-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lb-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.gallery-lb-slide.active { display: flex; }

.gallery-lb-slide img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ========== TECHNICIANS PAGE ========== */
.technicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tech-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.tech-card-avatar {
  width: 100%;
  aspect-ratio: 1;
  max-height: 200px;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.tech-status-dot {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tech-status-active { background: #22c55e; }
.tech-status-busy { background: #f59e0b; }
.tech-status-inactive { background: #ef4444; }

.tech-card-body {
  padding: 20px;
}

.tech-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tech-specialty {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px !important;
}

.tech-rating {
  font-size: 14px;
  margin-bottom: 12px;
}

.tech-info-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.tech-info-item {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-bio {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tech-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tech-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.tech-more {
  background: var(--border);
  color: var(--text-light);
}

.tech-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-light);
}

/* ========== FAQ SECTION ========== */
.faq-section {
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(15,82,152,0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border: none;
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: right;
  transition: color 0.2s;
}

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

.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 300;
  color: var(--text-light);
  flex-shrink: 0;
  transition: all 0.2s;
}

.faq-item.open .faq-toggle {
  background: var(--primary);
  color: white;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
}

/* ========== BLOG PAGE ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.blog-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #e8f0fa 0%, #fef6ec 100%);
}

.blog-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card-body h2 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 8px;
}

.blog-card-body h2 a {
  color: var(--text);
  transition: color 0.2s;
}

.blog-card-body h2 a:hover {
  color: var(--primary);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 12px;
}

.blog-read-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.blog-read-more:hover {
  color: var(--primary-dark);
  gap: 4px;
}

.blog-pagination {
  margin-top: 48px;
  text-align: center;
}

.blog-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
}

.blog-pagination ul li a,
.blog-pagination ul li span {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.blog-pagination ul li span.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.blog-pagination ul li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== SINGLE POST ========== */
.single-post {
  max-width: 800px;
  margin: 0 auto;
}

.single-post-header {
  margin-bottom: 32px;
}

.single-cat-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
   margin-bottom: 16px;
}

.single-post-header h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text);
}

.single-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.single-featured-img {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-featured-img img {
  width: 100%;
  display: block;
}

.single-content {
  line-height: 1.9;
  font-size: 16px;
  color: #374151;
}

.single-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary-light);
}

.single-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.single-content p {
  margin-bottom: 16px;
}

.single-content ul, .single-content ol {
  margin: 16px 0 16px 24px;
  list-style: disc;
}

.single-content li {
  margin-bottom: 8px;
}

.single-content strong {
  color: var(--primary-dark);
}

.single-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.single-tag {
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.single-cta-box {
  background: linear-gradient(135deg, #e8f0fa, #fef6ec);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.single-cta-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.single-cta-box p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.related-posts {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 2px solid var(--border);
}

/* ========== LEGAL PAGES (Privacy & Terms) ========== */
.legal-page-main {
  padding: 60px 0 80px;
}

.legal-page-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.legal-page-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.legal-page-content h2:first-of-type {
  margin-top: 28px;
}

.legal-page-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-page-content ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}

.legal-page-content ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--bg-light);
}

.legal-page-content ul li:last-child {
  border-bottom: none;
}

.legal-page-content ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

html[dir="ltr"] .legal-page-content ul li {
  padding: 8px 24px 8px 0;
}

html[dir="ltr"] .legal-page-content ul li::before {
  right: auto;
  left: 0;
}

.legal-intro {
  font-size: 16px !important;
  line-height: 2 !important;
  color: var(--text) !important;
  background: var(--primary-light);
  padding: 20px 24px;
  border-radius: 12px;
  border-right: 4px solid var(--primary);
  margin-bottom: 24px !important;
}

html[dir="ltr"] .legal-intro {
  border-right: none;
  border-left: 4px solid var(--primary);
}

.legal-update-date {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 24px;
}

.legal-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.legal-contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-light);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

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

.legal-contact-icon {
  font-size: 20px;
}

/* ========== UPLOAD AREA ========== */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-light);
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 13px;
}

.upload-icon { font-size: 28px; }

.upload-preview {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.upload-thumb {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--primary-light);
}

.upload-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.upload-remove {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(220,38,38,0.9);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}



/* ========== JOIN TECHNICIANS PAGE ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.benefit-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.join-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.join-form-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 32px;
  text-align: center;
  color: white;
}

.join-form-header h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.join-form-header p {
  font-size: 15px;
  opacity: 0.9;
}

.join-form-grid {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.join-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.join-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.join-field .required {
  color: #ef4444;
}

.join-field input[type="text"],
.join-field input[type="tel"],
.join-field input[type="number"],
.join-field select,
.join-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s;
  background: var(--bg-light);
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,82,152,0.3);
  background: white;
}

.join-field textarea {
  resize: vertical;
  min-height: 100px;
}

.join-field.full-width {
  grid-column: 1 / -1;
}

/* Services Checkboxes Grid */
.join-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.join-svc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}

.join-svc-checkbox:hover {
  border-color: var(--primary);
}

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

.join-svc-checkbox input[type="checkbox"]:checked + .join-svc-icon,
.join-svc-checkbox input[type="checkbox"]:checked ~ .join-svc-name {
  color: var(--primary);
}

.join-svc-checkbox:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light) !important;
  box-shadow: 0 0 0 2px rgba(15,82,152,0.15);
}

.join-svc-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.join-svc-name {
  color: var(--text);
}

/* CV Upload */
/* Visually hidden but remains clickable by label/JS */
.visually-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.join-cv-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-light);
  position: relative;
}

.join-cv-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.join-cv-click-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.join-cv-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
}

.join-cv-icon {
  font-size: 32px;
}

.join-cv-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.join-cv-remove {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
  z-index: 2;
}

.join-cv-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Form Actions */
.join-form-actions {
  padding: 0 32px 32px;
  text-align: center;
}

#submit-join-btn {
  min-width: 280px;
  padding: 16px 40px !important;
  font-size: 17px !important;
}

#submit-inst-btn {
  min-width: 280px;
  padding: 16px 40px !important;
  font-size: 17px !important;
}

/* ====== TAB SWITCHER ====== */
.join-tabs-wrapper {
  display: flex;
  gap: 0;
  background: var(--bg-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}

.join-tab-btn {
  flex: 1;
  padding: 18px 24px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.join-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.join-tab-btn:hover {
  color: var(--primary);
  background: rgba(15, 82, 152, 0.05);
}

.join-tab-btn.active {
  color: var(--primary);
  background: var(--bg);
}

.join-tab-btn.active::after {
  transform: scaleX(1);
}

/* Tab Content */
.join-tab-content {
  display: none;
}

.join-tab-content.active {
  display: block;
}

/* ====== TERMS CHECKBOX ====== */
.join-terms-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 14px 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.join-terms-label:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.join-terms-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
}

.join-terms-error {
  margin-top: 8px;
  padding: 10px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

/* Success Message */
.join-success-message {
  text-align: center;
  padding: 60px 32px;
}

.join-success-icon {
  font-size: 72px;
  margin-bottom: 20px;
}

.join-success-message h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

.join-success-message p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* Join Page Responsive */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .benefit-card { padding: 24px 16px; }
  .benefit-icon { font-size: 40px; margin-bottom: 12px; }
  .benefit-card h3 { font-size: 15px; }
  .benefit-card p { font-size: 13px; }
  .join-tab-btn { font-size: 14px; padding: 14px 16px; }
}

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .benefit-card { padding: 20px 14px; }
  .benefit-icon { font-size: 32px; margin-bottom: 8px; }
  .benefit-card h3 { font-size: 13px; margin-bottom: 4px; }
  .benefit-card p { font-size: 12px; line-height: 1.5; }

  .join-form-wrapper { border-radius: var(--radius); }
  .join-form-header { padding: 24px 20px; }
  .join-form-header h2 { font-size: 19px; }
  .join-form-header p { font-size: 13px; }
  .join-form-grid { padding: 20px 16px; gap: 14px; }
  .join-form-row { grid-template-columns: 1fr; gap: 14px; }
  .join-field input[type="text"],
  .join-field input[type="tel"],
  .join-field input[type="number"],
  .join-field select,
  .join-field textarea { padding: 10px 14px; font-size: 14px; }
  .join-services-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .join-svc-checkbox { padding: 8px 10px; font-size: 12px; gap: 6px; }
  .join-svc-icon { font-size: 18px; }
  .join-form-actions { padding: 0 16px 20px; }
  #submit-join-btn, #submit-inst-btn { width: 100%; min-width: auto; padding: 14px 24px !important; font-size: 15px !important; }
  .join-success-message { padding: 40px 20px; }
  .join-success-icon { font-size: 56px; }
  .join-success-message h3 { font-size: 19px; }
  .join-success-message p { font-size: 13px; }
  .join-tab-btn { font-size: 13px; padding: 12px 10px; }
  .join-terms-label { font-size: 13px; padding: 12px 14px; gap: 8px; }
  .join-terms-label input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  /* Hero tablet */
  .hero-layout { grid-template-columns: 1fr; align-items: center; text-align: center; gap: 0; }
  .hero-content-side { max-width: 600px; margin: 0 auto; }
  .hero-visual-side { display: none; }
  .hero h1 { font-size: 38px; white-space: normal; }
  .hero-desc { font-size: 16px; max-width: 500px; margin-left: auto; margin-right: auto; }
  .hero-buttons { max-width: 480px; }
  .hero-badge { font-size: 14px; padding: 8px 20px; margin-bottom: 24px; }
  /* arrows hidden globally */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-card { padding: 20px 12px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 13px; }
}

/* ========== MOBILE BOTTOM NAVIGATION BAR ========== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Mobile Bottom Bar */
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }

  .mbb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 12px;
    color: #6b7280;
    font-family: 'Cairo', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 56px;
    -webkit-tap-highlight-color: transparent;
  }
  .mbb-item svg {
    transition: all 0.2s ease;
  }
  .mbb-item:active {
    transform: scale(0.92);
  }
  .mbb-item.mbb-active {
    color: var(--primary);
  }

  /* Center CTA — Booking */
  .mbb-cta {
    background: linear-gradient(135deg, var(--primary), #1a6bc4);
    color: #ffffff !important;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin-top: -22px;
    box-shadow: 0 4px 15px rgba(15,82,152,0.4);
    min-width: 58px;
    padding: 0;
    gap: 0;
  }
  .mbb-cta svg {
    width: 24px;
    height: 24px;
  }
  .mbb-cta span {
    display: none;
  }
  .mbb-cta:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(15,82,152,0.3);
  }

  /* Hide floating actions on mobile (bottom bar replaces them) */
  .floating-actions {
    display: none !important;
  }

  /* Body bottom padding for bottom bar */
  body {
    padding-bottom: 76px;
  }

  /* Footer bottom links — more space */
  .footer-bottom {
    padding-bottom: 90px;
  }
}

/* ===== Compact desktop nav for tablets & small laptops (between 769px and 1100px) =====
   Keeps the desktop nav visible (with icons + labels), just tightens spacing
   so all 8 items fit on one row without overflow. */
@media (max-width: 1100px) and (min-width: 769px) {
  .nav-menu { gap: 2px; }
  .nav-menu a {
    padding: 6px 8px;
    font-size: 13px;
    gap: 4px;
  }
  .nav-menu .nm-icon { font-size: 15px; }
  .nav-menu .header-cta { padding: 6px 14px !important; }
  .nav-menu .nav-join-link { padding: 5px 10px !important; }
  /* Slightly tighten logo to free up header real estate */
  .logo-text { font-size: 18px; }
  .logo-img { height: 36px; }
}

/* ===== Very compact: hide the icon-label gap by dropping the icons only
   on screens where the 8 items barely fit (769-880px). Keeps text labels. ===== */
@media (max-width: 880px) and (min-width: 769px) {
  .nav-menu .nm-icon { display: none; }
  .nav-menu a { padding: 6px 10px; font-size: 13px; }
}

@media (max-width: 768px) {
  /* Desktop nav-menu stays hidden on mobile — its old "drawer" behavior is retired.
     The new .mobile-drawer takes over the drawer duty, so desktop markup is untouched. */
  .nav-menu { display: none !important; }
  .nav-menu.open { display: none !important; }

  /* Show the mobile toggle */
  .mobile-toggle { display: block; }

  /* ===== Header layout: [Logo] ← spacing → [Lang Pill] ← spacing → [☰] =====
     Using Flexbox + justify-content: space-between so the 3 visible items
     distribute evenly with appropriate spacing on both RTL (Arabic, default)
     and LTR (English) directions. */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 64px;
  }

  /* Ensure lang-pill sits inline (override any absolute positioning from critical CSS) */
  .lang-pill {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
  }
  .lang-pill-btn {
    padding: 4px 12px;
    font-size: 12px;
    min-width: 38px;
  }

  /* Hide brand text on mobile — keep logo image only */
  .logo-text { display: none; }

  /* ===== Mobile Logo Enhancement — prominent & clear ===== */
  .logo {
    gap: 0;
    padding: 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15,82,152,0.06) 0%, rgba(240,135,38,0.04) 100%);
    border: 1px solid rgba(15,82,152,0.08);
    flex-shrink: 0;
  }
  .logo-img {
    height: 44px;
    border-radius: 8px;
  }

  /* ===== MOBILE DRAWER =====
     Dropdown panel below the header; hidden by default, shown via .open class.
     Contains: Home, Services, Institutions, Technicians, Blog, Service Provider, Book Now (CTA) */
  .mobile-drawer {
    display: none;
    position: fixed;
    top: 64px; /* matches .header-inner mobile height */
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    z-index: 999;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-drawer.open {
    display: flex;
    animation: mobileDrawerSlideDown 0.25s ease-out;
  }
  .mobile-drawer a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
    text-align: start;
    /* Flex layout: icon + label aligned consistently across all items */
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mobile-drawer a:hover,
  .mobile-drawer a.active {
    background: var(--primary-light);
    color: var(--primary);
  }

  /* ===== Icon + Label alignment inside drawer items ===== */
  .mobile-drawer .md-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    /* Subtle rounded tint behind the icon for visual rhythm */
    background: rgba(15, 82, 152, 0.06);
    border-radius: 8px;
  }
  .mobile-drawer .md-label {
    flex: 1;
    /* Truncate long labels gracefully without breaking layout */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Active item: keep icon tint but lift the icon background slightly */
  .mobile-drawer a.active .md-icon,
  .mobile-drawer a:hover .md-icon {
    background: rgba(15, 82, 152, 0.14);
  }

  /* Service Provider link — outlined secondary style */
  .mobile-drawer .nav-join-link {
    color: var(--secondary) !important;
    font-weight: 700 !important;
    border: 2px solid var(--secondary) !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    margin-top: 4px;
    /* Center the icon+label pair horizontally */
    justify-content: center !important;
    transition: all 0.2s !important;
  }
  .mobile-drawer .nav-join-link .md-icon {
    background: rgba(240, 135, 38, 0.12);
  }
  .mobile-drawer .nav-join-link:hover {
    background: var(--secondary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
  }
  .mobile-drawer .nav-join-link:hover .md-icon {
    background: rgba(255, 255, 255, 0.18);
  }

  /* Book Now — highlighted CTA button */
  .mobile-drawer .header-cta {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    /* Center icon+label horizontally */
    justify-content: center !important;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(15, 82, 152, 0.25);
    transition: all 0.2s !important;
  }
  .mobile-drawer .header-cta .md-icon {
    background: rgba(255, 255, 255, 0.18);
  }
  .mobile-drawer .header-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 82, 152, 0.35);
  }

  /* Click-outside backdrop */
  .mobile-drawer-backdrop {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .mobile-drawer-backdrop.open {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }

  /* Mobile toggle active state — subtle feedback */
  .mobile-toggle {
    border-radius: 10px;
    transition: background 0.2s;
  }
  .mobile-toggle[aria-expanded="true"] {
    background: var(--primary-light);
    color: var(--primary);
  }

  /* ===== Hero mobile — Clean stacked layout v3 ===== */
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
  }
  .hero-layout {
    gap: 0;
    text-align: center;
  }
  .hero-visual-side { display: none; }
  .hero-content-side {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }
  .hero-slide {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-slide.active { position: relative; }
  .hero-slide .hero-inner {
    padding-top: 90px;
    padding-bottom: 110px;
    display: flex;
    align-items: flex-end;
  }

  /* Each element on its own line — clean stack, no glass card */
  .hero-content-animate {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Badge — centered own line */
  .hero-badge {
    font-size: 11px;
    padding: 6px 16px;
    margin-bottom: 20px;
    border-radius: 50px;
  }
  .hero-badge-dot { width: 6px; height: 6px; }

  /* Heading — centered own line, bolder */
  .hero h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
  }
  .hero-highlight { display: inline; }

  /* Description — centered own line */
  .hero-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 100%;
    color: rgba(255,255,255,0.7);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Buttons — 3 equal columns in last row */
  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
  }
  .hero-buttons-row {
    display: contents;
  }
  .hero-buttons .btn,
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-wa {
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 14px 6px;
    font-size: 12px;
    border-radius: 12px;
    white-space: nowrap;
    display: inline-flex;
  }
  .btn-hero-primary {
    box-shadow: 0 4px 16px rgba(240,135,38,0.3);
  }
  .btn-hero-primary svg { width: 14px; height: 14px; }
  .btn-hero-secondary {
    border-color: rgba(255,255,255,0.18);
    font-size: 11px;
    padding: 13px 6px;
  }
  .btn-hero-wa {
    background: #25d366;
    font-size: 11px;
    padding: 13px 6px;
    border-radius: 12px;
  }
  .btn-hero-wa svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* Dots — above bottom bar */
  .hero-dots {
    bottom: 88px;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .hero-dot { width: 7px; height: 7px; border-width: 1.5px; }
  .hero-dot.active { width: 20px; border-radius: 4px; }

  /* Slide counter — hide on mobile */
  .hero-slide-counter { display: none; }

  /* Progress bar */
  .hero-progress { height: 2px; }

  /* Hide scroll indicator on mobile */
  .hero-scroll-indicator { display: none; }

  /* Content animation delays — faster on mobile */
  .hero-content-animate .hero-badge { transition-delay: 0.05s; }
  .hero-content-animate h1 { transition-delay: 0.1s; }
  .hero-content-animate .hero-desc { transition-delay: 0.2s; }
  .hero-content-animate .hero-buttons { transition-delay: 0.3s; }

  /* Subtle glow adjustments for mobile */
  .hero-glow { opacity: 0.3; }
  .hero-grid-pattern { background-size: 30px 30px; opacity: 0.25; }
  /* Overlay — darker on mobile for readability */
  .hero-slide-overlay {
    background: linear-gradient(180deg,
      rgba(6,26,51,0.5) 0%,
      rgba(10,61,110,0.25) 35%,
      rgba(6,26,51,0.7) 100%
    );
  }

  /* Stats Section */
  .stats-section { padding: 32px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px 10px; border-radius: 12px; }
  .stat-icon { font-size: 22px; margin-bottom: 4px; }
  .stat-number { font-size: 22px; }
  .stat-label { font-size: 11px; margin-top: 4px; }

  /* Sections */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 14px; }
  .section-badge { font-size: 12px; padding: 4px 14px; }

  /* Ticker flush to header on mobile */
  .site-header + .akhtiar-ticker,
  .akhtiar-ticker:first-of-type {
    margin-top: 0;
  }

  /* Services Grid — 2 columns on mobile */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .service-card { padding: 16px 12px; }
  .service-card.expanded {
    grid-column: 1 / -1;
    padding: 16px 14px;
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(15,82,152,0.18);
  }
  .service-card-header { gap: 8px; margin-bottom: 8px; }
  .service-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }
  .service-card h3 { font-size: 13px; margin-bottom: 4px; }
  .service-card p { font-size: 11px; line-height: 1.5; }
  .service-count { font-size: 10px; padding: 3px 8px; margin-top: 8px; }

  /* Sub-services inside card — 3 columns full-width on mobile */
  .sub-services-panel.open {
    max-height: 2000px;
    margin-left: -14px;
    margin-right: -14px;
    padding: 14px 14px 6px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
  }
  .sub-services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .sub-service-card { padding: 10px 4px; gap: 3px; border-radius: 8px; }
  .sub-service-card .ssc-icon { font-size: 20px; }
  .sub-service-card .ssc-name { font-size: 9px; line-height: 1.3; }
  .sub-service-card .ssc-check { width: 12px; height: 12px; font-size: 7px; top: 3px; left: 3px; }
  .sub-service-card .ssc-book { font-size: 8px; padding: 2px 6px; }
  .sub-services-category-label { font-size: 11px; margin-bottom: 6px; }

  /* Steps — 3 columns always */
  .steps-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
  .step-card { padding: 20px 10px; }
  .step-number { width: 44px; height: 44px; font-size: 18px; margin-bottom: 12px; }
  .step-card h3 { font-size: 13px; margin-bottom: 6px; }
  .step-card p { font-size: 11px; line-height: 1.6; }

  /* Trust — 2 columns on mobile */
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trust-card { padding: 20px 14px; border-radius: 12px; }
  .trust-icon { font-size: 30px; margin-bottom: 10px; }
  .trust-card h3 { font-size: 14px; margin-bottom: 4px; }
  .trust-card p { font-size: 11px; }

  /* Contact */
  .contact-info { flex-direction: column; gap: 12px; align-items: center; }
  .contact-item { font-size: 14px; }

  /* Modal — full screen mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-content { margin: 0; border-radius: 20px 20px 0 0; max-height: 92vh; width: 100%; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
  .modal-header { padding: 16px 18px 12px; position: sticky; top: 0; background: linear-gradient(135deg, #f8fafc, #ffffff); z-index: 2; border-radius: 20px 20px 0 0; }
  .modal-header-icon { width: 38px; height: 38px; border-radius: 10px; }
  .modal-header-icon svg { width: 18px; height: 18px; }
  .modal-header h2 { font-size: 16px; }
  .modal-header-sub { font-size: 11px; }
  .modal-body { padding: 12px 16px 24px; }
  .services-select-grid { grid-template-columns: 1fr 1fr; gap: 8px; max-height: 200px; }
  .sub-services-select { grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 220px; }
  .sub-service-select-item { padding: 8px 4px; border-radius: 8px; gap: 4px; }
  .sub-service-select-item .sssi-icon { font-size: 22px; }
  .sub-service-select-item .sssi-name { font-size: 9px; line-height: 1.3; }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 13px; margin-bottom: 6px; }
  .form-group input, .form-group select, .form-group textarea { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .form-group textarea { min-height: 80px; }
  .modal-actions { gap: 8px; margin-top: 18px; }
  .modal-actions .btn { padding: 13px 10px; font-size: 13px; border-radius: 12px; flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .modal-actions .btn-back { flex: 0 0 auto; padding: 13px 16px; }
  /* Step 3: 3 equal buttons in 1 row on mobile */
  .modal-actions-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .modal-actions-3col .btn { padding: 12px 6px; font-size: 12px; min-height: 48px; white-space: nowrap; border-radius: 10px; }
  .modal-actions-3col .btn-back { padding: 12px 6px; grid-column: auto; }
  .step-indicator { margin-bottom: 16px; }
  .step-circle { width: 32px; height: 32px; font-size: 13px; }
  .step-line { width: 28px; }
  .modal-success { padding: 32px 20px; }
  .modal-success .success-icon { font-size: 48px; }
  .modal-success h3 { font-size: 18px; }
  .modal-success p { font-size: 13px; }
  .payment-modal-options { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .payment-option-item { padding: 12px 8px; border-radius: 12px; }
  .payment-option-icon { font-size: 22px; }
  .payment-option-wallet-icon { width: 36px; height: 36px; }
  .payment-option-label { font-size: 11px; }

  /* Floating Action Buttons mobile */
  .floating-actions { bottom: 16px; left: 14px; gap: 10px; }
  .fab-btn { width: 52px; height: 52px; }
  .fab-btn svg { width: 22px; height: 22px; }
  .fab-label { display: none; }

  /* Toast */
  .toast-notification { font-size: 12px; padding: 10px 18px; top: 82px; }

  /* Legal pages mobile */
  .legal-page-main { padding: 32px 0 60px; }
  .legal-page-content { padding: 28px 20px; border-radius: 16px; }
  .legal-page-content h2 { font-size: 17px; margin-top: 28px; }
  .legal-page-content p { font-size: 14px; line-height: 1.8; }
  .legal-page-content ul li { font-size: 14px; padding: 6px 0 6px 20px; }
  .legal-intro { font-size: 14px !important; padding: 16px 18px; }
  .legal-contact-list a { padding: 12px 16px; font-size: 14px; }

  /* Upload mobile */
  .upload-area { padding: 14px; }
  .upload-icon { font-size: 22px; }
  .upload-thumb { width: 58px; height: 58px; }

  /* Gallery & Technicians mobile */
  .gallery-catalog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-catalog-body { padding: 10px; }
  .gallery-catalog-body h3 { font-size: 13px; }
  .gallery-catalog-body p { font-size: 11px; }
  .gallery-catalog-thumb { width: 44px; height: 44px; min-width: 44px; }
  .gallery-badge { font-size: 10px; padding: 3px 8px; }
  .technicians-grid { grid-template-columns: 1fr; gap: 16px; }
  .tech-card-avatar { max-height: 160px; font-size: 48px; }
  .tech-card-body { padding: 16px; }
  .tech-card-body h3 { font-size: 16px; }
  .tech-services-tags { gap: 4px; }
  .tech-tag { font-size: 10px; padding: 3px 8px; }

  /* FAQ mobile */
  .faq-question { padding: 14px 16px; font-size: 14px; }
  .faq-toggle { width: 28px; height: 28px; font-size: 18px; }
  .faq-answer { padding: 0 16px 14px; }
  .faq-answer p { font-size: 13px; }

  /* Blog mobile */
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .blog-placeholder { font-size: 40px; }
  .blog-card-body { padding: 12px; }
  .blog-meta { font-size: 11px; gap: 10px; }
  .blog-card-body h2 { font-size: 13px; line-height: 1.4; }
  .blog-excerpt { font-size: 12px; margin-bottom: 8px; }
  .blog-read-more { font-size: 12px; }
  .blog-cat-badge { font-size: 10px; padding: 3px 8px; }

  /* Single post mobile */
  .single-post-header h1 { font-size: 22px; }
  .single-content { font-size: 15px; }
  .single-content h2 { font-size: 20px; }
  .single-content h3 { font-size: 17px; }
  .single-cta-box { padding: 20px; }
  .single-cta-box h3 { font-size: 17px; }
  .related-posts { margin-top: 40px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 24px; line-height: 1.35; margin-bottom: 10px; }
  .hero-desc { font-size: 13px; line-height: 1.6; }
  .hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-buttons { gap: 6px; margin-top: 20px; }
  .hero-buttons .btn, .btn-hero-primary, .btn-hero-secondary, .btn-hero-wa { padding: 12px 4px; font-size: 11px; border-radius: 10px; }
  .hero-dots { bottom: 82px; gap: 5px; padding: 5px 12px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }
  .stats-section { padding: 24px 0; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 12px 8px; }
  .stat-icon { font-size: 20px; }
  .stat-number { font-size: 20px; }
  .stat-label { font-size: 10px; }
  .services-grid { gap: 10px; }
  .service-card { padding: 14px 10px; }
  .service-card h3 { font-size: 12px; }
  .sub-services-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .steps-grid { gap: 8px; }
  .step-card { padding: 16px 8px; }
  .step-card h3 { font-size: 12px; }
  .step-card p { font-size: 10px; }
  .trust-grid { gap: 10px; }
  .trust-card { padding: 16px 10px; }
}

/* ========== LANGUAGE SWITCHER PILL ========== */
.lang-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 3px;
    margin-right: auto;
    margin-left: 16px;
    gap: 0;
    border: 1.5px solid #e2e8f0;
}

.lang-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
    min-width: 44px;
}

.lang-pill-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(15,82,152,0.06);
}

.lang-pill-btn.active {
    background: var(--primary);
    color: #ffffff;
}

/* ========== LTR OVERRIDES (English) ========== */

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

html[dir="ltr"] .header-inner {
    flex-direction: row;
}

html[dir="ltr"] .nav-menu {
    flex-direction: row;
}

html[dir="ltr"] .logo {
    flex-direction: row;
}

html[dir="ltr"] .logo-img {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="ltr"] .lang-pill {
    margin-right: 16px;
    margin-left: auto;
}

html[dir="ltr"] .hero-slide-counter {
    right: auto;
    left: 32px;
}

html[dir="ltr"] .hero-dots {
    flex-direction: row;
}

html[dir="ltr"] .section-badge {
    margin-right: 0;
    margin-left: auto;
}

html[dir="ltr"] .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
}

html[dir="ltr"] .footer-logo {
    flex-direction: row;
}

html[dir="ltr"] .footer-logo img {
    margin-left: 0;
    margin-right: 0;
}

html[dir="ltr"] .footer-contact-list li {
    flex-direction: row;
}

html[dir="ltr"] .footer-contact-icon {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="ltr"] .footer-social {
    flex-direction: row;
}

html[dir="ltr"] .footer-bottom {
    flex-direction: row;
}

html[dir="ltr"] .footer-bottom-links {
    flex-direction: row;
}

html[dir="ltr"] .modal-actions:not(.modal-actions-3col) {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
  html[dir="ltr"] .modal-actions:not(.modal-actions-3col) {
    flex-direction: row;
  }
}

html[dir="ltr"] .form-group input[type="tel"],
html[dir="ltr"] .form-group input[dir="ltr"] {
    text-align: left;
}

html[dir="ltr"] .step-indicator {
    flex-direction: row;
}

html[dir="ltr"] .contact-info {
    flex-direction: row;
}

html[dir="ltr"] .service-card .service-icon {
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .hero-content .hero-buttons {
    flex-direction: row;
}

html[dir="ltr"] .faq-toggle {
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .cta-box-inner {
    flex-direction: row;
}

html[dir="ltr"] .trust-icon {
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .blog-card-body .blog-meta {
    flex-direction: row;
}

html[dir="ltr"] .blog-card .blog-cat-badge {
    margin-left: 0;
    margin-right: auto;
}

/* LTR: Floating actions positions */
html[dir="ltr"] .floating-actions {
    right: auto;
    left: 20px;
}

html[dir="ltr"] .fab-label {
    right: auto;
    left: calc(100% + 10px);
}

html[dir="ltr"] .fab-label::after {
    right: auto;
    left: -6px;
    border-right: 6px solid var(--primary);
    border-left: none;
}

html[dir="ltr"] .fab-label::before {
    right: auto;
    left: -5px;
    border-right: 5px solid transparent;
    border-left: none;
}

/* LTR: Mobile bottom bar */
html[dir="ltr"] .mbb-cta {
    margin-left: 0;
    margin-right: 0;
}

html[dir="ltr"] .mobile-bottom-bar {
    flex-direction: row;
}

/* LTR: Mobile menu */
@media (max-width: 768px) {
    html[dir="ltr"] .nav-menu {
        right: auto;
        left: 0;
        text-align: left;
    }
    
    html[dir="ltr"] .nav-menu.active {
        right: auto;
        left: 0;
    }
    
    html[dir="ltr"] .lang-pill {
        margin-right: 8px;
        margin-left: auto;
    }
    
    html[dir="ltr"] .mobile-toggle {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Mobile footer: two columns for links + services */
    html[dir="ltr"] .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    html[dir="ltr"] .footer-brand {
        grid-column: 1 / -1;
        order: -1;
    }
    
    html[dir="ltr"] .footer-contact-list {
        flex-direction: row;
    }

    html[dir="ltr"] .hero-slide-counter {
        right: auto;
        left: 16px;
    }
}

/* LTR: Inter font weight fixes */
html[dir="ltr"] .section-title,
html[dir="ltr"] .hero h1,
html[dir="ltr"] .hero-highlight,
html[dir="ltr"] .trust-card h3,
html[dir="ltr"] .step-card h3,
html[dir="ltr"] .service-card h3,
html[dir="ltr"] .faq-question {
    font-weight: 700;
}

/* ==================== PAYMENT METHODS SECTION ==================== */

.payment-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
}

.payment-wallets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.payment-wallet-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wallet-color, var(--primary));
    transition: height 0.3s ease;
}

.payment-wallet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--wallet-color, var(--primary));
}

.payment-wallet-card:hover::before {
    height: 6px;
}

.pwc-icon-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1.5px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-wallet-card:hover .pwc-icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    border-color: var(--wallet-color, var(--primary));
}

.pwc-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
}

.pwc-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.pwc-number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.pwc-number {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.5px;
    font-family: 'Inter', monospace;
}

.pwc-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwc-copy-btn:hover {
    color: var(--wallet-color, var(--primary));
    background: rgba(0,0,0,0.05);
}

.pwc-copy-btn.copied {
    color: #16a34a;
}

.pwc-account-name {
    font-size: 13px;
    color: #64748b;
}

.pwc-account-name strong {
    color: #334155;
}

.payment-note {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    max-width: 650px;
    margin: 0 auto;
    padding: 16px 24px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

/* Payment section responsive — always 3 columns */
@media (max-width: 768px) {
    .payment-wallets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .payment-wallet-card {
        padding: 20px 14px;
    }
    .pwc-icon-wrap {
        width: 70px;
        height: 70px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    .pwc-icon {
        width: 54px;
        height: 54px;
    }
    .pwc-name {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .pwc-number-wrap {
        padding: 8px 10px;
    }
    .pwc-number {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .payment-wallets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .payment-wallet-card {
        padding: 14px 8px;
        border-radius: 14px;
    }
    .pwc-icon-wrap {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        margin-bottom: 8px;
    }
    .pwc-icon {
        width: 40px;
        height: 40px;
    }
    .pwc-name {
        font-size: 12px;
        margin-bottom: 6px;
    }
    .pwc-number-wrap {
        padding: 6px 6px;
        gap: 4px;
    }
    .pwc-number {
        font-size: 11px;
        letter-spacing: 0;
    }
    .pwc-copy-btn svg { width: 12px; height: 12px; }
    .pwc-account-name {
        font-size: 10px;
    }
}

/* ==================== PAYMENT IN BOOKING MODAL ==================== */

.payment-modal-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.payment-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f8fafc;
    text-align: center;
    position: relative;
}

.payment-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-item:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.payment-option-item:has(input:checked) {
    border-color: var(--wallet-color, var(--primary));
    background: linear-gradient(135deg, rgba(15,82,152,0.04), rgba(240,135,38,0.04));
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.payment-option-cash:has(input:checked) {
    border-color: #16a34a;
    background: rgba(22,163,74,0.04);
}

.payment-option-icon {
    font-size: 24px;
    line-height: 1;
}

.payment-option-wallet-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.payment-option-label {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
}

@media (max-width: 480px) {
    .payment-modal-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .payment-option-item {
        padding: 10px 6px;
        border-radius: 10px;
    }
    .payment-option-icon {
        font-size: 20px;
    }
    .payment-option-wallet-icon {
        width: 30px;
        height: 30px;
    }
    .payment-option-label {
        font-size: 10px;
    }
}

/* LTR Payment adjustments */
html[dir="ltr"] .pwc-copy-btn {
    margin-left: 4px;
}

/* LTR Page-level adjustments */
html[dir="ltr"] .page-breadcrumb a,
html[dir="ltr"] .breadcrumb-sep {
    margin-right: 0;
    margin-left: 6px;
}
html[dir="ltr"] .breadcrumb-sep::before {
    content: '/';
}
html[dir="ltr"] .blog-read-more,
html[dir="ltr"] .gallery-catalog-expand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
html[dir="ltr"] .join-field label {
    display: block;
    text-align: left;
}
html[dir="ltr"] .join-form-row {
    flex-direction: row;
}
html[dir="ltr"] .gallery-catalog-thumbs {
    direction: ltr;
}
html[dir="ltr"] .single-cat-badge {
    display: inline-block;
}
html[dir="ltr"] .single-tags {
    text-align: left;
}
html[dir="ltr"] .tech-card-body h3 {
    text-align: left;
}
html[dir="ltr"] .benefit-card {
    text-align: center;
}
html[dir="ltr"] .benefit-card h3,
html[dir="ltr"] .benefit-card p {
    text-align: left;
}
html[dir="ltr"] .join-form-header {
    text-align: center;
}
html[dir="ltr"] .join-form-header h2,
html[dir="ltr"] .join-form-header p {
    text-align: center;
}

/* ==================== INSTITUTIONS PAGE ==================== */

.inst-filters-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.inst-filter-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}
.inst-filter-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}
html[dir="ltr"] .inst-filter-search-icon {
    right: auto;
    left: 16px;
}
.inst-filter-search input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 14px);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
html[dir="ltr"] .inst-filter-search input {
    padding: 14px 16px 14px 48px;
}
.inst-filter-search input:focus {
    outline: none;
    border-color: var(--primary, #0f5298);
    box-shadow: 0 0 0 4px rgba(15, 82, 152, 0.3);
}
.inst-filter-selects {
    display: flex;
    gap: 12px;
}
.inst-filter-selects select {
    padding: 14px 20px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 14px);
    font-family: inherit;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 160px;
    transition: border-color 0.2s;
}
.inst-filter-selects select:focus {
    outline: none;
    border-color: var(--primary, #0f5298);
    box-shadow: 0 0 0 3px rgba(15, 82, 152, 0.3);
}

/* Stats Bar */
.inst-stats-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    font-size: 15px;
    color: #0369a1;
    font-weight: 600;
    border: 1px solid #bae6fd;
}
.inst-stats-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary, #0f5298);
    color: white;
    font-size: 16px;
    font-weight: 800;
}

/* Institutions Grid */
.inst-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .inst-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .inst-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .inst-filters-bar { flex-direction: column; }
    .inst-filter-selects { width: 100%; }
    .inst-filter-selects select { flex: 1; min-width: 0; }
    .inst-card-name { font-size: 13px; }
    .inst-card-info-item { font-size: 11px; padding: 3px 6px; }
    .inst-card-desc { font-size: 12px; -webkit-line-clamp: 2; margin-bottom: 10px; }
    .inst-card-btn { font-size: 12px; padding: 10px 12px; }
    .inst-card-logo { height: 90px; }
    .inst-card-body { padding: 12px; }
    .inst-card-header { margin-bottom: 8px; }
    .inst-card-type { font-size: 9px; padding: 3px 8px; }
}

/* Institution Card */
.inst-card {
    background: white;
    border-radius: 18px;
    border: 1px solid var(--border, #e5e7eb);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.inst-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.inst-card-logo {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.inst-card-logo-icon {
    font-size: 52px;
    opacity: 0.6;
}
.inst-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.inst-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.inst-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    flex: 1;
}
.inst-card-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.inst-card-type--institution {
    background: #dbeafe;
    color: #1d4ed8;
}
.inst-card-type--company {
    background: #d1fae5;
    color: #047857;
}
.inst-card-type--office {
    background: #fef3c7;
    color: #b45309;
}
.inst-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.inst-card-info-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
    padding: 4px 10px;
    background: #f9fafb;
    border-radius: 8px;
}
.inst-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inst-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary, #0f5298);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: auto;
}
.inst-card-btn:hover {
    background: var(--primary-dark, #0a3d6e);
    transform: translateY(-1px);
}
.inst-card-btn svg {
    flex-shrink: 0;
}

/* No Results */
.inst-no-results {
    text-align: center;
    padding: 60px 20px;
}

/* Hidden by filter */
.inst-card.inst-hidden {
    display: none;
}

/* ==================== PROFILE MODAL ==================== */

.inst-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}
.inst-modal-overlay.inst-modal-active {
    opacity: 1;
}

.inst-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 100%;
    height: 100vh;
    background: #f8fafc;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.inst-modal.inst-modal-active {
    transform: translateX(0);
}
html[dir="ltr"] .inst-modal {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}
html[dir="ltr"] .inst-modal.inst-modal-active {
    transform: translateX(0);
}

.inst-modal-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary, #0f5298), #0a3d6e);
    color: white;
    padding: 30px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}
.inst-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
html[dir="ltr"] .inst-modal-close {
    right: auto;
    left: 16px;
}
.inst-modal-close:hover {
    background: rgba(255,255,255,0.3);
}
.inst-modal-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    font-size: 48px;
}
.inst-modal-title-area h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.inst-modal-title-area .inst-card-type {
    font-size: 12px;
}

.inst-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.inst-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}
.inst-modal-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary, #0f5298);
    border-radius: 50%;
    animation: inst-spin 0.8s linear infinite;
}
@keyframes inst-spin {
    to { transform: rotate(360deg); }
}

/* Profile Content Styles */
.inst-profile-section {
    margin-bottom: 24px;
}
.inst-profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}
.inst-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) {
    .inst-profile-grid { grid-template-columns: 1fr; }
}
.inst-profile-item {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.inst-profile-item-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}
.inst-profile-item-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    direction: ltr;
    text-align: right;
}
html[dir="ltr"] .inst-profile-item-value {
    text-align: left;
}
.inst-profile-desc {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
}

/* Contact Card */
.inst-contact-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 12px;
}
.inst-contact-card-header {
    background: #f0f9ff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}
.inst-contact-card-body {
    padding: 14px 16px;
}
.inst-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}
.inst-contact-row:last-child {
    border-bottom: none;
}
.inst-contact-row-label {
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}
.inst-contact-row-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    direction: ltr;
}
html[dir="ltr"] .inst-contact-row-value {
    text-align: left;
}
.inst-contact-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.inst-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
    color: white;
    font-family: inherit;
}
.inst-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.inst-contact-btn--call {
    background: #22c55e;
}
.inst-contact-btn--whatsapp {
    background: #25d366;
}

/* Files */
.inst-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: var(--primary, #0f5298);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.inst-file-link:hover {
    border-color: var(--primary, #0f5298);
    background: #f0f9ff;
}

/* CTA Button at bottom */
.inst-join-cta {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 14px;
    border: 1px solid #bae6fd;
    margin-top: 8px;
}
.inst-join-cta p {
    font-size: 14px;
    color: #0369a1;
    margin-bottom: 12px;
}
.inst-join-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary, #0f5298);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.inst-join-cta a:hover {
    background: var(--primary-dark, #0a3d6e);
}

/* Responsive modal */
@media (max-width: 640px) {
    .inst-modal {
        width: 100%;
    }
    .inst-modal-header {
        padding: 24px 20px 20px;
    }
    .inst-modal-body {
        padding: 16px;
    }
    .inst-modal-logo {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }
    .inst-modal-title-area h2 {
        font-size: 17px;
    }
}

/* RTL for LTR */
html[dir="ltr"] .inst-card-header {
    flex-direction: row-reverse;
}
html[dir="ltr"] .inst-card-name {
    text-align: left;
}

/* Specialty "Other" text input */
#inst-specialty-other {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
#inst-specialty-other:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 82, 152, 0.3);
}
.lang-en #inst-specialty-other {
    text-align: left;
    direction: ltr;
}

/* ========== AKHTIAR NEWS TICKER (TV-STYLE) ========== */
.akhtiar-ticker {
    width: 100%;
    background: linear-gradient(135deg, #0f5298 0%, #0a3d72 50%, #082d54 100%);
    border-bottom: 2px solid #dc2626;
    box-shadow: 0 4px 20px rgba(15,82,152,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 999;
}

.akhtiar-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.akhtiar-ticker-inner {
    display: flex;
    align-items: center;
    height: 44px;
    max-width: 100%;
}

/* Red label pill — TV style */
.akhtiar-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 100%;
    background: #dc2626;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.akhtiar-ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12px;
    background: #dc2626;
}

html[dir="rtl"] .akhtiar-ticker-label::after {
    left: -12px;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
html[dir="ltr"] .akhtiar-ticker-label::after {
    right: -12px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Pulsing white dot */
.akhtiar-ticker-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    animation: atk-pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
@keyframes atk-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.6); }
}

/* Scrolling viewport */
.akhtiar-ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

/* Gradient fade edges */
.akhtiar-ticker-viewport::before,
.akhtiar-ticker-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}
html[dir="rtl"] .akhtiar-ticker-viewport::before {
    right: 0;
    background: linear-gradient(to left, rgba(15,82,152,0.95), transparent);
}
html[dir="rtl"] .akhtiar-ticker-viewport::after {
    left: 0;
    background: linear-gradient(to right, rgba(15,82,152,0.95), transparent);
}
html[dir="ltr"] .akhtiar-ticker-viewport::before {
    left: 0;
    background: linear-gradient(to right, rgba(15,82,152,0.95), transparent);
}
html[dir="ltr"] .akhtiar-ticker-viewport::after {
    right: 0;
    background: linear-gradient(to left, rgba(15,82,152,0.95), transparent);
}

/* The scrolling track */
.akhtiar-ticker-track {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    will-change: transform;
}

html[dir="rtl"] .akhtiar-ticker-track {
    animation: atk-scroll-rtl 40s linear infinite;
}
html[dir="ltr"] .akhtiar-ticker-track {
    animation: atk-scroll-ltr 40s linear infinite;
}

@keyframes atk-scroll-rtl {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
@keyframes atk-scroll-ltr {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.akhtiar-ticker:hover .akhtiar-ticker-track {
    animation-play-state: paused;
}

/* Individual ticker item */
.akhtiar-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    font-weight: 600;
    line-height: 44px;
    padding: 0 16px;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}
.akhtiar-ticker-item:hover {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251,191,36,0.3);
    text-decoration: none;
}

.akhtiar-ticker-sep {
    color: rgba(255,255,255,0.2);
    font-size: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .akhtiar-ticker-inner { height: 38px; }
    .akhtiar-ticker-label { padding: 0 14px; font-size: 11px; }
    .akhtiar-ticker-item { font-size: 12.5px; padding: 0 10px; }
}
@media (max-width: 420px) {
    .akhtiar-ticker-label span:last-child { display: none; }
    .akhtiar-ticker-label { padding: 0 10px; min-width: 34px; justify-content: center; }

    /* Extra small screens — compact logo */
    .logo { padding: 5px; border-radius: 10px; }
    .logo-img { height: 40px; border-radius: 6px; }
    .lang-pill { margin: 0 !important; }
    .lang-pill-btn { padding: 3px 10px; font-size: 11px; min-width: 34px; }

    /* Tighten mobile drawer padding on very small phones */
    .mobile-drawer { padding: 10px 12px 16px; }
    .mobile-drawer a { padding: 12px 14px; font-size: 15px; }
}

/* ==================================================================
   ACCESSIBILITY & PERFORMANCE ENHANCEMENTS (v2.4.0)
   ================================================================== */

/* --- Skip to Content Link (WCAG 2.1 AA) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  right: 0;
  z-index: 100000;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 0 0 0 12px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* --- Global Focus-Visible Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Buttons keep their shape, add ring */
.btn:focus-visible,
.header-cta:focus-visible,
.hero-dot:focus-visible,
.faq-question:focus-visible,
.hero-buttons a:focus-visible,
.nav-menu a:focus-visible,
.lang-pill-btn:focus-visible,
.contact-item:focus-visible,
.pwc-copy-btn:focus-visible,
.gallery-lb-prev:focus-visible,
.gallery-lb-next:focus-visible,
.modal-close:focus-visible,
.inst-modal-close:focus-visible,
.inst-card-btn:focus-visible,
.join-tab-btn:focus-visible,
.join-cv-remove:focus-visible,
.mobile-toggle:focus-visible,
.cta-booking-btn:focus-visible,
.nav-join-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Ensure focus ring is visible on dark backgrounds */
.hero-dot.active:focus-visible,
.hero-dots button:focus-visible {
  outline-color: #fbbf24;
}

/* --- Fix Low-Contrast Hint Text (WCAG AA 4.5:1) --- */
.inst-profile-item-label {
  color: #6b7280;
}

/* --- Image decoding optimization --- */
img {
  max-width: 100%;
  height: auto;
}

/* ===========================================================
   ACCESSIBILITY ENHANCEMENTS
   =========================================================== */

/* Screen Reader Only utility class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to Content - visible on focus for keyboard users */
.skip-to-content {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  z-index: 10000;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0 0 0 8px;
  transition: top 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Enhanced Focus Indicators - WCAG AA compliant */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* Focus indicators are defined in the critical CSS inlined in <head> */

/* FAQ toggle visual only - text hidden from screen readers */
.faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* FAQ toggle visual only - text hidden from screen readers */

/* English body class support */
body.en {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  text-align: left;
}
body.en .site-header {
  left: 0;
  right: 0;
}
body.en .logo {
  flex-direction: row-reverse;
}

/* Contact info links - accessible touch target */
.contact-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Footer links - ensure adequate touch targets */
.footer-bottom-links a {
  padding: 4px 0;
}

/* Payment copy button - accessible sizing */
.pwc-copy-btn {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile toggle - accessible sizing */
.mobile-toggle {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================================================================
   FLOATING PWA INSTALL BANNER (v2.6.0)
   - Mobile only (hidden on desktop)
   - Sits above Mobile Bottom Bar, lifts Bottom Bar when shown
   - Smooth cubic-bezier slide-up animation
   - iOS Safe Area support
   ================================================================== */

.pwa-float-banner {
  display: none; /* hidden by default; shown only when beforeinstallprompt fires */
}

@media (max-width: 768px) {
  /* ===== Banner container — pure overlay layer (does NOT touch the Bottom Bar) =====
     v2.6.2: Changed from "lift Bottom Bar" to "overlay above Bottom Bar".
     The banner sits in its own fixed layer with high z-index.
     The Mobile Bottom Bar keeps its position unchanged at all times. */
  .pwa-float-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    /* Sit just above the Mobile Bottom Bar (~64px) + iOS safe-area */
    bottom: calc(72px + env(safe-area-inset-bottom));
    /* Higher than Mobile Bottom Bar (9999) so the banner wins stacking context */
    z-index: 10001;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 82, 152, 0.08);
    padding: 12px 14px;
    /* Hidden state (below the viewport) */
    transform: translateY(150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                visibility 0s linear 0.45s;
    will-change: transform, opacity;
  }

  /* ===== Visible state ===== */
  .pwa-float-banner.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                visibility 0s linear 0s;
  }

  /* ===== Inner layout: icon | text | install button ===== */
  .pwa-float-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Leave space for the absolute close button on the side */
    padding-inline-end: 28px;
  }
  html[dir="rtl"] .pwa-float-inner { padding-inline-end: 28px; padding-inline-start: 0; }
  html[dir="ltr"] .pwa-float-inner { padding-inline-end: 28px; padding-inline-start: 0; }

  /* ===== App icon (rounded square) ===== */
  .pwa-float-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
    /* Subtle border for visibility on white background */
    border: 1px solid rgba(15, 82, 152, 0.1);
  }

  /* ===== Text block (title + description) ===== */
  .pwa-float-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
  }
  .pwa-float-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f5298; /* primary */
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pwa-float-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ===== Install button ===== */
  .pwa-float-install {
    flex-shrink: 0;
    background: #0f5298;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 82, 152, 0.25);
    min-height: 40px;
  }
  .pwa-float-install:hover {
    background: #0a3d72;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 82, 152, 0.35);
  }
  .pwa-float-install:active {
    transform: translateY(0);
  }

  /* ===== Close button (×) ===== */
  .pwa-float-close {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #9ca3af;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .pwa-float-close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #374151;
  }

  /* ===== Very small screens (≤ 420px): tighten everything ===== */
  @media (max-width: 420px) {
    .pwa-float-banner {
      left: 8px;
      right: 8px;
      padding: 10px 12px;
    }
    .pwa-float-icon { width: 42px; height: 42px; }
    .pwa-float-title { font-size: 13px; }
    .pwa-float-desc { font-size: 11px; }
    .pwa-float-install { padding: 8px 14px; font-size: 13px; }
  }
}

/* ===== Desktop: ensure banner is hidden (defensive) ===== */
@media (min-width: 769px) {
  .pwa-float-banner { display: none !important; }
}
