/* ============================================
   HAYAT NATIONAL HOSPITALS — Premium Design System
   Enhanced with Glassmorphism, Mesh Gradients & Micro-interactions
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #0066CC;
  --primary-light: #00A3E0;
  --primary-dark: #004A99;
  --accent: #C9A84C;
  --accent-light: #E0C878;
  --accent-glow: rgba(201,168,76,0.35);
  --navy: #1A2B4A;
  --navy-light: #2A3F66;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #E8EDF3;
  --medium-gray: #94A3B8;
  --dark-gray: #475569;
  --text: #1E293B;
  --text-light: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --gradient-primary: linear-gradient(135deg, #1A2B4A 0%, #0066CC 100%);
  --gradient-hero: linear-gradient(135deg, rgba(26,43,74,0.95) 0%, rgba(0,102,204,0.88) 100%);
  --gradient-accent: linear-gradient(135deg, #C9A84C 0%, #E0C878 100%);
  --gradient-mesh: radial-gradient(at 20% 80%, rgba(0,163,224,0.25) 0%, transparent 50%),
                   radial-gradient(at 80% 20%, rgba(201,168,76,0.2) 0%, transparent 50%),
                   radial-gradient(at 50% 50%, rgba(0,102,204,0.15) 0%, transparent 60%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(0,102,204,0.15);
  --shadow-accent-glow: 0 0 30px rgba(201,168,76,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1280px;
  --header-height: 80px;
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.2);
  --glass-blur: 20px;
}

[dir="rtl"] { --font-main: var(--font-ar); }
[dir="ltr"] { --font-main: var(--font-en); }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

input, textarea, select {
  font-family: inherit; font-size: inherit;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 12px 16px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%; background: var(--white);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1rem, 2vw, 1.4rem); }

/* --- Utility Classes --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 48px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; position: relative; display: inline-block; }
.section-header h2::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; background: var(--gradient-accent); border-radius: 2px;
}
.section-header p {
  color: var(--text-light); font-size: 1.1rem; max-width: 640px; margin: 20px auto 0;
}

.bg-white { background: var(--white); }
.bg-light { background: var(--off-white); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-primary { background: var(--primary); color: var(--white); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

/* --- Premium Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; transition: all var(--transition);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--gradient-primary); color: var(--white);
  box-shadow: 0 4px 20px rgba(0,102,204,0.3);
}
.btn-primary:hover {
  color: var(--white); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,102,204,0.4);
}

.btn-accent {
  background: var(--gradient-accent); color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-accent:hover {
  color: var(--navy); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

.btn-outline {
  border: 2px solid var(--primary); color: var(--primary); background: transparent;
}
.btn-outline:hover {
  background: var(--primary); color: var(--white); transform: translateY(-3px);
}

.btn-white {
  background: var(--white); color: var(--primary); box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--primary);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* --- Premium Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: all var(--transition); height: var(--header-height);
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 48px; height: 48px; background: var(--gradient-primary);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.logo-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.logo-icon svg { width: 28px; height: 28px; fill: var(--white); position: relative; z-index: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .name-ar { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.logo-text .name-en { font-size: 0.75rem; color: var(--primary); font-weight: 500; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 8px 16px; border-radius: var(--radius-full);
  color: var(--text); font-weight: 500; font-size: 0.95rem; transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary); background: rgba(0,102,204,0.06);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: var(--radius-full);
  border: 1.5px solid var(--light-gray); font-weight: 600; font-size: 0.85rem;
  color: var(--navy); transition: all var(--transition); background: var(--white);
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.mobile-toggle span {
  width: 24px; height: 2.5px; background: var(--navy);
  border-radius: 2px; transition: all var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Premium Hero Section --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--header-height); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0A1628 0%, #0D2B4E 25%, #0066CC 60%, #00A3E0 100%);
  z-index: 1;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-mesh);
  animation: meshMove 15s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 140px;
  background: linear-gradient(to top, var(--white), transparent);
}

@keyframes meshMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.hero-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-particles .particle {
  position: absolute; border-radius: 50%;
  background: rgba(201,168,76,0.12);
  animation: float 20s infinite ease-in-out;
  filter: blur(1px);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-30px) rotate(90deg) scale(1.1); }
  50% { transform: translateY(-15px) rotate(180deg) scale(0.95); }
  75% { transform: translateY(-40px) rotate(270deg) scale(1.05); }
}

/* Premium mesh orbs */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 400px; height: 400px; top: -10%; right: -5%;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
}
.hero-orb-2 {
  width: 300px; height: 300px; bottom: 10%; left: 5%;
  background: radial-gradient(circle, rgba(0,163,224,0.2) 0%, transparent 70%);
  animation-delay: -5s;
}
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content h1 {
  color: var(--white); margin-bottom: 20px;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.hero-content h1 span {
  background: var(--gradient-accent); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content p {
  color: rgba(255,255,255,0.85); font-size: 1.2rem;
  margin-bottom: 36px; max-width: 560px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 420px; margin-top: 48px;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
  transition: all var(--transition);
}
.hero-stat:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  border-color: rgba(201,168,76,0.3);
}
.hero-stat .number {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-accent); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; display: block;
}
.hero-stat .label {
  font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 4px;
}

/* --- Premium Stats Bar --- */
.stats-bar {
  background: var(--white); margin-top: -60px; position: relative; z-index: 10;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.8);
  padding: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; top: 10%; height: 80%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--light-gray), transparent);
}
[dir="rtl"] .stat-item:not(:last-child)::after { left: -16px; }
[dir="ltr"] .stat-item:not(:last-child)::after { right: -16px; }
.stat-item .stat-number {
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; display: block;
}
.stat-item .stat-label { font-size: 0.95rem; color: var(--text-light); margin-top: 4px; }

/* --- Premium Cards --- */
.card {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: all var(--transition); border: 1px solid rgba(0,0,0,0.04);
}
.card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
  border-color: rgba(0,102,204,0.08);
}

/* Department Card */
.dept-card {
  text-align: center; padding: 36px 24px; cursor: pointer;
  position: relative;
}
.dept-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--gradient-accent);
  border-radius: 0 0 4px 4px; transition: width var(--transition);
}
.dept-card:hover::before { width: 60%; }
.dept-card .dept-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(0,102,204,0.06), rgba(0,163,224,0.06));
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-bounce);
}
.dept-card:hover .dept-icon {
  background: var(--gradient-primary); transform: scale(1.12) rotate(-3deg);
}
.dept-card:hover .dept-icon svg { fill: var(--white); }
.dept-card .dept-icon svg {
  width: 32px; height: 32px; fill: var(--primary); transition: fill var(--transition);
}
.dept-card h4 { margin-bottom: 8px; font-size: 1.05rem; }
.dept-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* Doctor Card */
.doctor-card { text-align: center; padding: 28px 20px; }
.doctor-card .doctor-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--white); font-weight: 700;
  border: 4px solid var(--light-gray); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.doctor-card .doctor-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.doctor-card:hover .doctor-photo {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
  transform: scale(1.05);
}
.doctor-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.doctor-card .specialty {
  color: var(--primary); font-size: 0.9rem; font-weight: 500; margin-bottom: 8px;
}
.doctor-card .branch-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(0,102,204,0.06); border-radius: var(--radius-full);
  font-size: 0.8rem; color: var(--primary); margin-bottom: 12px;
}

/* Branch Card */
.branch-card { padding: 32px; position: relative; overflow: hidden; }
.branch-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-accent);
}
.branch-card .branch-icon {
  width: 56px; height: 56px;
  background: var(--gradient-primary); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.branch-card .branch-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.branch-card .branch-icon svg { width: 28px; height: 28px; fill: var(--white); position: relative; z-index: 1; }
.branch-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.branch-card .branch-info {
  display: flex; flex-direction: column; gap: 8px;
  color: var(--text-light); font-size: 0.95rem;
}
.branch-card .branch-info a { color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.branch-card .branch-info a:hover { color: var(--primary); }
.branch-card .branch-info svg { width: 18px; height: 18px; fill: var(--primary); flex-shrink: 0; }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image {
  border-radius: var(--radius-2xl); overflow: hidden; position: relative;
  aspect-ratio: 4/3; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
}
.about-image svg { width: 120px; height: 120px; fill: rgba(255,255,255,0.3); }
.about-content h2 { margin-bottom: 16px; }
.about-content .gold-line {
  width: 60px; height: 4px; background: var(--gradient-accent);
  border-radius: 2px; margin-bottom: 20px;
}
.about-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.about-feature { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-feature .check {
  width: 24px; height: 24px; background: rgba(16,185,129,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-feature .check svg { width: 14px; height: 14px; fill: var(--success); }

/* --- Premium CTA Section --- */
.cta-section {
  background: var(--gradient-primary); padding: 96px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-mesh);
}
.cta-section::after {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p {
  color: rgba(255,255,255,0.8); font-size: 1.1rem;
  margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Premium Footer --- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text .name-ar, .footer-brand .logo-text .name-en { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 0.95rem; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.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;
  transition: all var(--transition); border: 1px solid rgba(255,255,255,0.06);
}
.footer-social a:hover {
  background: var(--primary); transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,102,204,0.3);
}
.footer-social a svg { width: 18px; height: 18px; fill: var(--white); }

.footer h4 {
  color: var(--white); font-size: 1.1rem; margin-bottom: 20px;
  position: relative; padding-bottom: 12px;
}
.footer h4::after {
  content: ''; position: absolute; bottom: 0;
  [dir="rtl"] & { right: 0; } [dir="ltr"] & { left: 0; }
  width: 32px; height: 3px; background: var(--accent); border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6); font-size: 0.95rem;
  transition: all var(--transition); display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--accent); }
[dir="ltr"] .footer-links a:hover { transform: translateX(4px); }
[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--accent); }

/* --- Floating Elements --- */
.whatsapp-btn {
  position: fixed; bottom: 24px;
  [dir="rtl"] & { left: 24px; } [dir="ltr"] & { right: 24px; }
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 999; transition: all var(--transition);
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
.whatsapp-btn svg { width: 28px; height: 28px; fill: var(--white); }

.back-to-top {
  position: fixed; bottom: 90px;
  [dir="rtl"] & { left: 24px; } [dir="ltr"] & { right: 24px; }
  width: 44px; height: 44px; background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; fill: var(--white); }

/* --- Premium Chat Widget --- */
.chat-widget {
  position: fixed; bottom: 24px;
  [dir="rtl"] & { right: 24px; } [dir="ltr"] & { left: 24px; }
  z-index: 1001;
}
.chat-toggle {
  width: 64px; height: 64px; background: var(--gradient-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,102,204,0.4); transition: all var(--transition);
  position: relative;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-toggle .pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--primary); animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}
.chat-toggle svg { width: 30px; height: 30px; fill: var(--white); }

.chat-panel {
  position: absolute; bottom: 80px;
  [dir="rtl"] & { right: 0; } [dir="ltr"] & { left: 0; }
  width: 380px; max-height: 520px;
  background: var(--white); border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95);
  transition: all var(--transition); border: 1px solid rgba(0,0,0,0.06);
}
.chat-panel.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-header {
  background: var(--gradient-primary); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-info .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
}
.chat-header-info .avatar svg { width: 22px; height: 22px; fill: var(--white); }
.chat-header-info h4 { color: var(--white); font-size: 1rem; margin: 0; padding: 0; }
.chat-header-info h4::after { display: none; }
.chat-header-info .status { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.chat-close { color: var(--white); opacity: 0.7; transition: opacity var(--transition); }
.chat-close:hover { opacity: 1; }
.chat-close svg { width: 20px; height: 20px; fill: var(--white); }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 12px; max-height: 340px;
}
.chat-msg {
  max-width: 85%; padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 0.9rem; line-height: 1.6;
}
.chat-msg.bot {
  background: var(--off-white); color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
[dir="rtl"] .chat-msg.bot { border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: 4px; }
.chat-msg.user {
  background: var(--primary); color: var(--white);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
[dir="rtl"] .chat-msg.user { border-bottom-right-radius: var(--radius-md); border-bottom-left-radius: 4px; }

.chat-suggestions { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--light-gray); }
.chat-suggestion {
  padding: 8px 14px; background: var(--off-white); border: 1px solid var(--light-gray);
  border-radius: var(--radius-full); font-size: 0.8rem; color: var(--primary);
  cursor: pointer; transition: all var(--transition);
}
.chat-suggestion:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--light-gray); display: flex; gap: 8px; }
.chat-input-area input {
  flex: 1; border: 1px solid var(--light-gray); border-radius: var(--radius-full);
  padding: 10px 16px; font-size: 0.9rem;
}
.chat-input-area button {
  width: 40px; height: 40px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--transition);
}
.chat-input-area button:hover { background: var(--primary-dark); }
.chat-input-area button svg { width: 18px; height: 18px; fill: var(--white); }

/* --- Department Finder Modal --- */
.finder-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.finder-overlay.active { opacity: 1; visibility: visible; }
.finder-modal {
  background: var(--white); border-radius: var(--radius-2xl);
  max-width: 560px; width: 90%; max-height: 85vh; overflow-y: auto;
  padding: 40px; transform: scale(0.9); transition: transform var(--transition-bounce);
  box-shadow: var(--shadow-xl);
}
.finder-overlay.active .finder-modal { transform: scale(1); }
.finder-modal h3 { text-align: center; margin-bottom: 8px; }
.finder-modal .subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; }
.finder-step { display: none; }
.finder-step.active { display: block; }
.finder-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.finder-option {
  padding: 16px 20px; border: 2px solid var(--light-gray); border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 12px;
}
.finder-option:hover { border-color: var(--primary); background: rgba(0,102,204,0.03); }
.finder-option.selected { border-color: var(--primary); background: rgba(0,102,204,0.06); }
.finder-option .opt-icon {
  width: 40px; height: 40px; background: var(--off-white); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.finder-option .opt-icon svg { width: 20px; height: 20px; fill: var(--primary); }
.finder-result { text-align: center; padding: 24px; }
.finder-result .result-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
  border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
}
.finder-result .result-icon svg { width: 40px; height: 40px; fill: var(--success); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--gradient-primary); padding: 140px 0 60px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient-mesh);
}
.page-hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 16px; font-size: 0.9rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--accent); }

/* --- Blog Cards --- */
.blog-card {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: all var(--transition); border: 1px solid rgba(0,0,0,0.04);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.blog-card .blog-img {
  aspect-ratio: 16/9); background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-card .blog-img svg { width: 48px; height: 48px; fill: rgba(255,255,255,0.4); }
.blog-card .blog-body { padding: 24px; }
.blog-card .blog-date {
  font-size: 0.8rem; color: var(--primary); font-weight: 600;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; transition: color var(--transition); }
.blog-card:hover h3 { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }
.blog-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 12px;
}

/* --- Testimonials --- */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform var(--transition-slow); }
.testimonial-card { min-width: 100%; padding: 40px; text-align: center; }
.testimonial-card .quote-icon { width: 48px; height: 48px; margin: 0 auto 20px; opacity: 0.3; }
.testimonial-card blockquote {
  font-size: 1.2rem; line-height: 1.8; color: var(--text);
  font-style: italic; max-width: 600px; margin: 0 auto 24px;
}
.testimonial-card .author { font-weight: 700; color: var(--navy); }
.testimonial-card .author-role { font-size: 0.9rem; color: var(--text-light); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testimonial-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--light-gray); cursor: pointer; transition: all var(--transition);
}
.testimonial-dots .dot.active {
  background: var(--primary); width: 28px; border-radius: 5px;
}

/* --- Partners --- */
.partners-grid {
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.partner-logo {
  width: 120px; height: 60px; background: var(--off-white); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; padding: 12px;
  opacity: 0.7; transition: all var(--transition);
}
.partner-logo:hover { opacity: 1; transform: scale(1.05); }
.partner-logo span { font-weight: 700; color: var(--navy); font-size: 0.85rem; text-align: center; }

/* --- Value Cards --- */
.value-card {
  text-align: center; padding: 32px 24px;
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.04); transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.value-card .value-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.03));
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
}
.value-card .value-icon svg { width: 28px; height: 28px; fill: var(--accent); }
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Achievement Card --- */
.achievement-card {
  padding: 28px; background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.04); transition: all var(--transition);
}
.achievement-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.achievement-card .ach-date { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.achievement-card h4 { margin-bottom: 8px; font-size: 1.05rem; }
.achievement-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* --- Filter Bar --- */
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px; padding: 16px 20px;
  background: var(--off-white); border-radius: var(--radius-xl);
}
.filter-bar input, .filter-bar select { max-width: 280px; }
.filter-chip {
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--light-gray); background: var(--white);
  font-size: 0.85rem; cursor: pointer; transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* --- Contact Grid --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px;
  background: var(--off-white); border-radius: var(--radius-md); margin-bottom: 16px;
}
.contact-info-card .icon-box {
  width: 48px; height: 48px; background: var(--gradient-primary); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-card .icon-box svg { width: 22px; height: 22px; fill: var(--white); }
.contact-info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- Course Card --- */
.course-card {
  background: var(--white); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition); border: 1px solid rgba(0,0,0,0.04);
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.course-card .course-header { padding: 24px; background: var(--gradient-primary); color: var(--white); }
.course-card .course-body { padding: 24px; }
.course-card .course-meta { display: flex; gap: 16px; margin-top: 16px; font-size: 0.85rem; color: var(--text-light); }
.course-card .course-meta span { display: flex; align-items: center; gap: 6px; }

/* --- Career Card --- */
.career-card {
  padding: 28px; background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.04); transition: all var(--transition);
}
.career-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.career-card .career-branch {
  display: inline-block; padding: 4px 12px;
  background: rgba(0,102,204,0.06); border-radius: var(--radius-full);
  font-size: 0.8rem; color: var(--primary); font-weight: 500; margin-bottom: 12px;
}
.career-card h4 { margin-bottom: 8px; }
.career-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.career-card .career-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.career-card .tag {
  padding: 4px 10px; background: var(--off-white); border-radius: var(--radius-full);
  font-size: 0.75rem; color: var(--dark-gray);
}

/* --- Offer Card --- */
.offer-card {
  background: var(--white); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition); position: relative;
}
.offer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.offer-card .offer-badge {
  position: absolute; top: 16px;
  [dir="rtl"] & { right: 16px; } [dir="ltr"] & { left: 16px; }
  background: var(--gradient-accent); color: var(--navy);
  padding: 6px 16px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.85rem;
}
.offer-card .offer-img {
  aspect-ratio: 16/9; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
}
.offer-card .offer-img svg { width: 48px; height: 48px; fill: rgba(255,255,255,0.4); }
.offer-card .offer-body { padding: 24px; }
.offer-card .offer-branch { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.offer-card h4 { margin-bottom: 8px; }
.offer-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- Form Styles --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 2px solid var(--light-gray); overflow-x: auto; }
.tab-btn {
  padding: 12px 24px; font-weight: 600; color: var(--text-light);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); white-space: nowrap;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; position: fixed; top: var(--header-height);
    left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 24px; box-shadow: var(--shadow-lg); gap: 4px;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px 16px; width: 100%; }
  .mobile-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .chat-panel {
    width: calc(100vw - 48px);
    [dir="rtl"] & { right: -12px; } [dir="ltr"] & { left: -12px; }
  }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item:not(:last-child)::after { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input, .filter-bar select { max-width: 100%; }
}

/* --- Loading / Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, #f0f4f8 50%, var(--light-gray) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--medium-gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-gray); }

/* --- Selection --- */
::selection { background: rgba(0,102,204,0.12); color: var(--navy); }

/* --- Print --- */
@media print {
  .header, .footer, .whatsapp-btn, .back-to-top, .chat-widget { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  body { color: #000; }
}
