

/* Professional Color Palette - Mental Health Services */
:root {
    /* Primary Brand Colors */
    --primary-blue: #4D9794 ;        /* Deep professional blue */
    --primary-teal: #4A90A4;        /* Calming teal */
    --primary-sage: #7FB069;        /* Soothing sage green */
    --primary-warm: #6C757D;        /* Warm earth tone */
    --primary-neutral: #E8E8E8;     /* Soft neutral */
    
    /* Secondary Colors */
    --secondary-blue:  #357A8A;      /* Darker blue for depth */
    --secondary-teal: #357A8A;      /* Deeper teal */
    --secondary-sage:#6C757D;      /* Richer sage */
    --secondary-warm:#6C757D;      /* Deeper warm tone */
    --secondary-light: #F5F5F5;     /* Light background */
    
    /* Accent Colors */
    --accent-success: #5CB85C;      /* Success green */
    --accent-warning:  #6C757D;      /* Warning amber */
    --accent-danger :#6C757D;       /* Error red */
    --accent-info:#6C757D;         /* Info blue */
    
    /* Text Colors */
    --text-primary: #4D9794;        /* Primary text */
    --text-secondary: #6C757D;      /* Secondary text */
    --text-muted: #868E96;          /* Muted text */
    --text-light: #ADB5BD;          /* Light text */
    
    /* Background Colors */
    --bg-primary: #f0f6fa;          /* Primary background */
    --bg-secondary: #f0f6fa;        /* Secondary background */
    --bg-tertiary:#6C757D;         /* Tertiary background */
    --bg-dark: #6C757D;             /* Dark background */
    
    /* Border Colors */
    --border-light: #DEE2E6;        /* Light border */
    --border-medium: #CED4DA;       /* Medium border */
    --border-dark: #6C757D;         /* Dark border */
    
    /* Shadow Colors */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

[dir="rtl"] .container {
    direction: rtl;
    text-align: right;
}

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

[dir="rtl"] .language-switcher {
    order: -1;
}

[dir="rtl"] .hero-content {
    grid-template-columns: 1fr 1fr;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-end;
}
/* ==== Dropdown Modern Professional 2025 ==== */
.nav-dropdown {
  position: relative;
}

/* الزر */
.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* السهم */
.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* القائمة */
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  min-width: 230px;
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;   /* 🎯 استخدم gap بدل margin-bottom */
  z-index: 999;
  animation: dropdownFade 0.25s ease;
}


/* الروابط */
.dropdown-menu .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  background: transparent;
}

/* hover */
.dropdown-menu .nav-link:hover {
  background: linear-gradient(90deg, #4D9794, #0d3b66);
  color: #fff;
  transform: translateX(6px);
}

/* خط فاصل بين العناصر */
.dropdown-menu .nav-link + .nav-link {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 0.7rem; /* حافظ بس على padding */
}

/* Animation */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== Modern Navigation ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0.8rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0;
  height: 70px;
  padding: 0 1.5rem;
}

.nav-logo img {
  display: block;
  margin: 0;
  padding: 0;
}

/* ====== Menu ====== */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.6px;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

/* --- Hamburger button perfectly aligned --- */
.hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 10px;  /* ✅ صار ملتصق بالحافة */
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 1001; /* فوق الكل */
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* ✅ يظهر بس على الموبايل */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .language-switcher {
    gap: 4px;
    font-size: 0.9rem;
  }

  .nav-actions {
    right: 60px; /* يخلي المسافة بين اللغة والهامبرغر ممتازة */
  }
}

/* ✅ يمنع أي قص أو خروج */
.navbar {
  overflow: visible;
  position: relative;
  z-index: 1000;
}



/* ====== Actions (Lang + Login) ====== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
}

[dir="rtl"] .nav-actions {
  right: auto;
  left: 40px;
}

/* Animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
}
/* 🌍 Modern Compact Language Switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1.2px solid #d9d9d9;
  border-radius: 30px;
  padding: 4px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.language-switcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Buttons inside */
.lang-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  margin: 0;
}

.lang-btn.active {
  color: #4D9794; /* highlight color */
}

.lang-btn:hover {
  color: #4D9794;
}

/* Separator “–” */
.lang-separator {
  color: #b5b5b5;
  font-weight: 400;
  user-select: none;
  pointer-events: none;
}


/* ===== Overlay Sidebar Modern 2025 ===== */
.overlay {
  position: fixed;
  top: 0;
  right: -320px; /* يبدأ برّا الشاشة */
  width: 280px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 80px 20px 20px;
}

.overlay.active {
  right: 0; /* يفتح بنعومة */
}

/* Nav links */
.overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-nav ul li {
  margin: 1rem 0;
}

.overlay-nav ul li a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  color: #222;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.overlay-nav ul li a:hover {
  background: rgba(77, 151, 148, 0.1);
  color: #4D9794;
  transform: translateX(5px);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4D9794;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(77,151,148,0.15);
  color: #4D9794;
  transform: rotate(90deg);
}



/* Mobile Navigation */
@media (max-width: 1023px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .language-switcher {
        display: flex;
        order: -1;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}
/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  width: 100%;
  height: 500px; /* smaller to make all visible */
  margin-top: 95px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* ====== BENTO GRID ====== */
.bento-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 0; /* ✅ no space between photos */
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.bento-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.bento-item:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* ====== Different Sizes ====== */
.large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.tall {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.small {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.wide {
  grid-column: 2 / 5;
  grid-row: 3 / 4;
}

.medium {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.square {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

/* ====== Overlay for Text ====== */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2), rgba(0,0,0,0));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px;
  z-index: 2;
}

.hero-text {
  max-width: 80%;
  color: #fff; 
  text-shadow: none;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff; /* أبيض */
}

.hero-text p {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  color: #fff; /* أبيض */
}


/* ================= 📱 PERFECT MOBILE VERSION ================= */
@media (max-width: 992px) {
  .hero {
    height: 420px;
    margin-top: 85px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 350px;
    position: relative;
    overflow: hidden;
  }

  /* 🔹 اجعل الصور مرتبة كخلفية ناعمة */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 0;
  }

  .bento-item {
    height: 90px;
    object-fit: cover;
    filter: brightness(0.8);
    opacity: 0.9;
  }

  /* 🔹 تدرّج جميل فوق الصور */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
    z-index: 1;
  }

  /* 🔹 النص فوق الصور */
  .hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    z-index: 2;
    background: transparent;
  }

  .hero-text {
    color: #fff;
    max-width: 90%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .hero-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }

  .bento-item {
    height: 70px;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.85rem;
  }
}
/* === Fix navbar spacing with hero === */
body {
  margin: 0;
  padding: 0;
}

/* يزيل أي فراغ بين النافبار والهيدر */
.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* يتأكد أن النافبار يكون ملاصق للهيدر بدون أي مسافة */
.navbar {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* تصحيح الترتيب بالموبايل */
@media (max-width: 992px) {
  .nav-container {
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo img {
    width: 160px;
    height: auto;
  }

  .hamburger {
    right: 15px;
  }

  .language-switcher {
    position: relative;
    left: 10px;
  }
}
/* === PRO Mobile Header & Hero Fix === */
@media (max-width: 992px) {
  /* --- Header Container --- */
  .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eee;
    height: 70px !important;
  }

  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1rem !important;
    position: relative;
    height: 70px !important;
  }

  /* --- Remove login on mobile --- */
  .nav-actions a[href*="login"],
  .nav-actions .login,
  .nav-actions button {
    display: none !important;
  }

  /* --- Logo first --- */
  .nav-logo {
    order: 1 !important;
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .nav-logo img {
    width: 160px !important;
    height: auto;
    display: block;
  }

  /* --- Language switcher second --- */
  .language-switcher {
    order: 2 !important;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid #e3e3e3;
    border-radius: 30px;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  /* --- Hamburger third --- */
  .hamburger {
    order: 3 !important;
    position: relative;
    right: 0;
    margin-left: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* --- Hero section refinement --- */
  .hero {
    position: relative;
    height: 360px !important;
    margin-top: 80px !important;
    overflow: hidden;
    border-radius: 0;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
  }

  .bento-item {
    object-fit: cover;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  .bento-item:hover {
    transform: scale(1.02);
  }

  /* Subtle gradient for overlay harmony */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.1));
    z-index: 1;
  }

  /* Hero text styling */
  .hero-overlay {
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
  }

  .hero-text {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* --- Ultra small screens (iPhone SE, older Android) --- */
@media (max-width: 480px) {
  .nav-logo img {
    width: 135px !important;
  }

  .hero {
    height: 300px !important;
  }

  .bento-item {
    height: 100px !important;
  }
}
@media (max-width: 992px) {
  .login-btn {
    display: none !important;
  }
}
/* 🌍 MOBILE: show one hero photo instead of grid */
@media (max-width: 768px) {
  /* نخفي الشبكة الأصلية */
  .bento-grid {
    display: none !important;
  }

  /* نضيف خلفية صورة واحدة للهيرو */
  .hero {
 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 420px;
    position: relative;
    margin-top: 75px;
  }

  /* نترك التدرّج والنص مثل ما هو */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
    z-index: 1;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    z-index: 2;
  }

  .hero-text {
    color: #fff;
    max-width: 90%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .hero-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}



.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* RTL Section Headers */
[dir="rtl"] .section-header {
    text-align: center;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    color: white;
    font-size: 1.5rem;
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* About Page Styles */
.about-hero {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.mission-section {
    padding: 80px 0;
    background: white;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.mission-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.mission-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.mission-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mission-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

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

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.member-title {
    color: var(--primary-teal);
    font-weight: 500;
    margin-bottom: 15px;
}

.member-info p {
    color: #666;
    line-height: 1.5;
}

/* Insights Page Styles */
.insights-hero {
    position: relative;
    margin-top: 70px;
    padding: 120px 0;
    background: var(--primary-blue);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

.insights-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    max-width: 800px;
}

.guidance-insights {
    padding: 80px 0;
    background: white;
}

.view-all-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.guidance-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guidance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

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

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.card-content h3 a:hover {
    color: var(--primary-blue);
}

.featured-insights {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.card-tag {
    background: #4D9794;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

.download-btn {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--primary-blue);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.featured-assets {
    padding: 80px 0;
    background: white;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.asset-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.asset-card:hover {
    transform: translateY(-5px);
}

.asset-video {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.asset-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-left: 4px;
}

.asset-content {
    padding: 20px;
}

.asset-tag {
    background: var(--primary-teal);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 10px;
}

.asset-date {
    color: #888;
    font-size: 0.9rem;
}

.asset-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);

}

/* Hub Page Styles */
.hub-hero {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
}

.hub-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var (    --text-primary);
    margin-bottom: 20px;
}

.hub-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.hub-services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(    --text-primary);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.service-link {
    color: var(--text--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var();
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--text--primary);
    color: white;
}

.resource-categories {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-item .category-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.category-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text--primary);
    margin-bottom: 5px;
}

.category-item p {
    color: #888;
    font-size: 0.9rem;
}

.recent-resources {
    padding: 80px 0;
    background: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-neutral);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    color: var(--text--primary);
    font-size: 1.5rem;
}

.resource-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.resource-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.resource-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.resource-type {
    background: var(--primary-sage);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.resource-date {
    color: #888;
    font-size: 0.8rem;
}

.view-btn {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-btn:hover {
    text-decoration: underline;
}

.professional-development {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.development-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .development-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.development-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.development-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.development-text li {
    padding: 10px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.development-text li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: bold;
}

.development-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.development-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ===== Ultra Modern Contact Page ===== */

/* ---------- Hero Section ---------- */
.contact-hero {
  margin-top: 70px;
  padding: 140px 20px 40px;
  background: linear-gradient(135deg, #4D9794, #4D9794);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.contact-hero p {
  font-size: 1.4rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
/* ===== Fix for Subject Select Field ===== */
.form-group select {
  padding-left: 10px !important;   /* تأكد أن أول الحروف ظاهرة */
  text-indent: 0 !important;       /* ألغِ أي إزاحة للنص */
  appearance: none;
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px;
  border: 1.5px solid #4D9794;
  border-radius: 6px;
  height: 50px;
  color: #000;                     /* نص أسود واضح */
  font-size: 15px;
  line-height: 1.2;
}

/* إذا كنت تستخدم نظام labels المتحركة (floating labels): */
.form-group select:focus + label,
.form-group select:not([value=""]):valid + label {
  top: -8px;
  font-size: 12px;
  color: #4D9794;
}

/* ---------- Form Section ---------- */
.contact-form-section {
  background: #f8f9fa;
  padding: 100px 20px;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Contact Form ---------- */
.contact-form {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-form h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #16a085;
  margin-bottom: 40px;
}

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

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 18px 18px 18px 18px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  background: #fefefe;
  transition: all 0.3s ease;
  outline: none;
}

.form-group label {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #fff;
  padding: 0 6px;
  color: #aaa;
  font-size: 0.95rem;
  transition: 0.3s ease all;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  color:#4D9794;
}

/* Focus Shadow */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #4D9794;
  box-shadow: 0 0 15px rgba(22,160,133,0.2);
}

/* ---------- Modern Send Button ---------- */
.contact-form button {
  display: inline-block;
  padding: 16px 55px;
  background: linear-gradient(135deg, #16a085, #1abc9c);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
  margin-top: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

/* ---------- Contact Info Section ---------- */
.contact-info {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-info h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color:#4D9794;
  margin-bottom: 35px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.6rem;
  color:#4D9794;;
  min-width: 30px;
  text-align: center;
  margin-top: 2px;
}

.info-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.info-item p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Social Links ---------- */
.social-contact {
  margin-top: 35px;
}

.social-contact h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.social-contact a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.5rem;
  color:#4D9794;;
  transition: all 0.35s ease;
  text-decoration: none;
}

.social-contact a:hover {
  transform: translateY(-4px) scale(1.2);
  color: #4D9794;;
}

/* 1) Reset Chrome autofill paint (kills the blue/green background) */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group select:-webkit-autofill {
  -webkit-text-fill-color: #1b2a3a;
  caret-color: #1b2a3a;
  box-shadow: 0 0 0px 1000px #fff inset !important;   /* force white (or your card bg) */
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  transition: background-color 9999s ease-out 0s;     /* prevent repaint flicker */
}

/* 2) Make the focus look like ONE ring (no double outline) */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0;
  border-color: #4D9794;                       /* your brand */
  box-shadow: 0 0 0 4px rgba(77,151,148,.18);  /* one clean focus ring */
}

/* If the ring feels too thick on mobile, reduce to 3px: */
/* .form-group :is(input,textarea,select):focus { box-shadow: 0 0 0 3px rgba(77,151,148,.18); } */

/* 3) Floating label reliability (inputs should have placeholder=" ") */
.form-group input,
.form-group textarea {
  /* ensures :placeholder-shown works consistently */
  placeholder-shown: auto;
}

/* Optional: ensure consistent input height/padding */
.form-group input,
.form-group select,
.form-group textarea {
  line-height: 1.3;
  border-width: 2px;
  border-radius: 12px;
}


.form-group { border: 0; padding: 0; background: transparent; }

/* 🌿 Compact Footer - Elegant & Balanced Size */
.footer {
  background: #4D9794;
  color: #ffffff;
  padding: 25px 0 15px; /* ← تم تقليل الارتفاع العام */
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;      /* ← نص أصغر قليلًا */
  line-height: 1.6;
  margin: 0;
}

.footer .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ترتيب المحتوى */
.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px; /* ← تقليل المسافة بين الأعمدة */
    padding: 0 1git0px;  
}

/* كل قسم */
.footer-section {
  min-width: 150px;
  max-width: 260px;
}

/* العناوين */
.footer-section h3,
.footer-section h4 {
  font-size: 15px;
  margin-bottom: 15px;
  color: #ffffff;
}

/* النصوص والروابط */
.footer-section p,
.footer-section a {
  font-size: 12.5px;
  color: #e0e0e0;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

/* روابط التواصل */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff1a;
  border-radius: 50%;
  font-size: 14px;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: white;
  color: #4D9794;
}

/* ===== Footer Bottom (smaller height & clean) ===== */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 0 12px;  /* ← صغير جدًا */
  font-size: 12.5px;
  color: #e8e8e8;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom span {
  display: block;
  color: #ffffff;
  margin-top: 3px;
  font-weight: 500;
}

/* ==== FOOTER STYLES (FIXED ON DESKTOP / FLEXIBLE ON MOBILE) ==== */
.footer {
  background:#4D9794;
  color:#fff;
  padding:50px 0;
  font-family:'Segoe UI',sans-serif;
  font-size:14px;
  line-height:1.5;
  overflow:hidden;
  margin:0;
}

/* ====== Container ====== */
.footer .container {
  max-width:100%;
  margin:0;
  padding:0;
}

/* ====== Desktop & Laptop Layout (fixed) ====== */
@media (min-width:768px) {
  .footer-content {
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:100px;                /* نفس المسافة بين الأعمدة */
    flex-wrap:nowrap;         /* ❌ يمنع النزول تحت بعض */
    padding:0 60px;
  }

  .footer-section {
    flex:1;
 
  }
}

/* ===== Titles & Text ===== */
.footer-section h3,
.footer-section h4 {
  font-size:18px;
  margin-bottom:25px;
  color:#f0f0f0;
}

.footer-section p {
  font-size:14px;
  margin-bottom:20px;
  color:#d1d1d1;
  line-height:1.7;
}

/* ===== Links ===== */
.footer-section ul {
  list-style:none;
  padding:0;
  margin:0;
}
.footer-section ul li {margin-bottom:12px;}
.footer-section ul li a {
  color:#d1d1d1;
  text-decoration:none;
  transition:color .3s;
}
.footer-section ul li a:hover {color:#fff;}

/* ===== Social Links ===== */
.social-links {
  display:flex;
  gap:18px;
  margin-top:20px;
}
.social-links a {
  display:flex;
  justify-content:center;
  align-items:center;
  background:#ffffff1a;
  width:34px;
  height:34px;
  border-radius:50%;
  color:#fff;
  font-size:16px;
  transition:background .3s,transform .3s;
}
.social-links a:hover {
  background:#fff;
  color:#4D9794;
  transform:scale(1.1);
}

/* ===== Subscribe Section ===== */
.subscribe-section {
  margin-top:15px;
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.subscribe-box h2 {
  font-size:10px;
  margin-bottom:10px;
  color:#fff;
  font-weight:50;
}
.subscribe-box p {
  font-size:13px;
  margin-bottom:5px;
  line-height:1.5;
  color:#d1d1d1;
}
.subscribe-form {
  display:flex;
  gap: 10px;
  align-items:center;
}
.subscribe-form input[type="email"] {
  padding:10px 14px;
  border-radius:6px;
  border:1px solid #ddd;
  flex:1;
  font-size:13px;
  background:#fff;
  color:#333;
}
.subscribe-form input::placeholder {color:#999;}
.subscribe-form button {
  padding:10px 16px;
  border-radius:6px;
  border:none;
  background:#fff;
  color:#4D9794;
  font-weight:100;
  font-size:8px;
  cursor:pointer;
  transition:background .3s,color .3s,transform .2s;
}
.subscribe-form button:hover {
  background:#3d7e7b;
  color:#fff;
  transform:translateY(-1px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 20px 0 25px;
  font-size: 13px;
  color: #f0f0f0;
  line-height: 1.6;
}

/* ====== Mobile Layout ====== */
@media (max-width:767px) {
  .footer {
    padding:40px 15px;
    text-align:center;
  }

  .footer-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:35px;
    padding:0;
  }

  .footer-section {
    width:100%;
    max-width:340px;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size:17px;
    margin-bottom:14px;
  }

  .footer-section p {
    font-size:13px;
    line-height:1.6;
    color:#e2e2e2;
  }

  .footer-section ul li {margin-bottom:10px;}
  .footer-section ul li a {font-size:13px;color:#d8d8d8;}

  .social-links {
    justify-content:center;
    margin-top:15px;
    gap:15px;
  }

  .social-links a {
    width:36px;
    height:36px;
    font-size:15px;
  }

  .subscribe-section {
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
  }

  .subscribe-box p {
    font-size:13px;
    max-width:260px;
  }

  .subscribe-form {
    width:100%;
    max-width:320px;
    flex-direction:column;
    gap:8px;
  }

  .subscribe-form input[type="email"],
  .subscribe-form button {
    width:100%;
  }

  


footer p {
  text-align: center;
  color: #dcdcdc;
  font-size: 11px;
  line-height: 1.6;
}

footer p span {
  display: block; /* يجعلها على سطر جديد أيضًا */
  color:wi;
  font-weight: 600;
}


}

/* ================= RTL Support ================= */
[dir="rtl"] .footer-content {
  text-align: right;
}

[dir="rtl"] .social-links {
  justify-content: flex-end;
}


/* RTL Footer adjustments */
[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .social-links {
    justify-content: flex-end;
}

/* Animation Classes */
.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .guidance-grid,
    .featured-grid,
    .events-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
  
    
    .project-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .values-grid,
    .services-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
}

/* RTL Media Queries */
@media (max-width: 768px) {
    [dir="rtl"] .hero-buttons {
        justify-content: center;
    }
    
    [dir="rtl"] .footer-content {
        text-align: center;
    }
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus {
    outline: 2px solid #4D9794;
    outline-offset: 2px;
}

.collaboration-question h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.collaboration-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.collaboration-buttons .btn {
    min-width: 140px;
}
/* Reverse order on mobile */
@media (max-width: 768px) {
    .calendar-lab-grid {
        grid-template-columns: 1fr;
    }

    /* Reverse order so lab appears first */
    .calendar-widget {
        order: 2;
    }

    .lab-half {
        order: 1;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .overlay,
    .newsletter-signup,
    .social-links {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero,
    .section-header {
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 2px;
    }
    
    .card-tag,
    .asset-tag,
    .event-type,
    .project-type {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}



  /* --- Calendar Section --- */
.calendar-section {
  padding: 50px 20px;
  background: #f9fafb;
}

.calendar-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Calendar header (days of week) */
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #4D9794;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 12px 0;
  font-size: 0.95rem;
}

/* Calendar grid */
.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 130px;   /* 👈 كل خانة نفس الحجم */
  background: #e5e7eb;
  gap: 1px;
}

/* Each day */
.calendar-day {
  background: #fff;
  border-radius: 6px;
  position: relative;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e293b;
  transition: all 0.2s ease;
  overflow: hidden;
}

.calendar-day:hover {
  background: #f1f5f9;
  transform: scale(1.02);
  cursor: pointer;
}

/* Day number */
.calendar-day .day-number {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  z-index: 2;
}

/* Events inside a day */
.calendar-day .event {
  margin-top: auto;
  background: #4D9794;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

/* If event has image */
.calendar-day.event-day img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.85;
  z-index: 0;
}



/* --- Responsive --- */
@media (max-width: 768px) {
  .calendar-body {
    grid-auto-rows: 80px; /* أصغر للموبايل */
  }

  .calendar-day {
    font-size: 0.7rem;
    padding: 3px;
  }

  .calendar-day .day-number {
    font-size: 0.7rem;
    padding: 2px 4px;
  }

  .event-details {
    flex-direction: column;
    gap: 5px;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }
}

/* Section headers */
.section-header h2 {
  font-size: 3rem;                
  font-weight: 900;
    margin-top: 120px;
  color: #0F172A;
  margin-bottom: 40px;           /* مسافة معقولة تحت العنوان */
  letter-spacing: 1.5px;
  position: relative;
  display: inline-block;         /* يخلي الخط تحته بنفس عرض النص */
  text-align: center;            /* يوسطن النص */
}

/* Decorative line */
.section-header h2::after {
  content: '';
  display: block;
  width: 100px;                   /* طول الخط */
  height: 10px;                   /* سماكة الخط */
  margin: 12px auto 0;           /* يجي قريب من النص ويتوسّط */
  border-radius: 3px;
  background: linear-gradient(90deg, #4D9794, #0F172A);
}

.section-header p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
  letter-spacing: 0.3px;
  font-weight: 400;
  text-align: center;
}


body {font-family: Arial,sans-serif; background:#f8f9fa; margin:0; color:#1f2937;}
.events-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 30px 0;
}

h1,h2,h3 {color:#0F172A;}
h1{text-align:center; margin-bottom:100px;}
.grid-events {display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:20px;}
.card {background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.1); cursor:pointer; transition:transform 0.2s;}
.card:hover {transform:translateY(-5px);}
.card img {width:100%; height:180px; object-fit:cover;}
.card-body {padding:15px;}
.card-title {font-size:1.2rem; font-weight:bold; margin-bottom:5px;}
.card-date {font-size:0.9rem; color:#64748b; margin-bottom:10px;}
.view-btn {display:inline-block; background:#4d9794; color:#fff; padding:8px 14px; border-radius:6px; text-decoration:none; transition:background 0.2s;}
.view-btn:hover {background:#2c6b6b;}

.list-events {margin-top:40px;}
.list-item {display:flex; background:#fff; border-radius:12px; margin-bottom:15px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.05); cursor:pointer;}
.list-item img {width:150px; object-fit:cover;}
.list-item-body {padding:15px; flex:1;}
.list-item-body h3 {margin:0 0 5px 0;}
.list-item-body p {margin:0 0 10px 0; font-size:0.9rem; color:#64748b;}

/* ==== Modal Overlay ==== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  padding: 30px 15px;
  overflow-y: auto;
}

/* ==== Modal Content Box ==== */
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;        /* أصغر حجم */
  margin: auto;
  display: flex;
  flex-direction: column;  /* صورة فوق - نص تحت */
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
}

/* ==== Close Button ==== */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: #475569;
  cursor: pointer;
  z-index: 10;
}
.modal-close:hover { color: #0f172a; }



/* ==== Body ==== */
.modal-body {
  padding: 20px 24px;
}

.modal-body h2 {
  margin: 0 0 12px 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-body .event-meta {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.5;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
}

/* ==== Sections ==== */
.modal-body section {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.modal-body h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
}

.modal-body p,
.modal-body ul {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
}

.modal-body ul {
  padding-left: 18px;
  margin: 0;
}
.modal-body li { margin-bottom: 6px; }

/* ==== Buttons ==== */
.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.view-btn {
  background: #4d9794;
  color: #fff;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.view-btn:hover { background: #2c6b6b; }

.back-btn {
  background: #fff;
  color: #475569;
  border: 2px solid #475569;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.back-btn:hover { background: #475569; color: #fff; }

/* ==== Animation ==== */
@keyframes fadeIn {
  from {opacity:0; transform: translateY(-10px);}
  to {opacity:1; transform: translateY(0);}
}

/* ==== Mobile ==== */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin: 20px auto;
  }
  .modal-content img {
    max-height: 180px; /* أصغر أكثر للموبايل */
  }
}
/* =========================================================
📱 FINAL FIX - Mobile Navbar Alignment
========================================================= */
@media (max-width: 992px) {

  /* Hide login button on mobile */
  .login-btn {
    display: none !important;
  }

  /* Navbar Container */
  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 74px !important;
    padding: 0 16px !important;
    position: relative;
  }

  /* Logo */
  .nav-logo img {
    width: 155px !important;
    height: auto !important;
    display: block;
    object-fit: contain;
  }

  /* Language Switcher */
  .language-switcher {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    line-height: 44px !important;
    background: #fff;
    border: 1.4px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 0 12px !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 8px;
    position: relative;
    top: 2px; /* adjust vertical alignment */
  }

  /* Hamburger */
  .hamburger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px;
    background: #ffffff;
    border: 1.4px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-left: 4px;
    position: relative;
    top: 2px; /* perfectly aligned with lang */
  }

  .hamburger span {
    width: 22px;
    height: 2.4px;
    background: #333;
    border-radius: 2px;
  }

  /* Perfect line-up */
  .language-switcher,
  .hamburger {
    align-self: center !important;
  }

  /* Ultra small screens (iPhone SE) */
  @media (max-width: 480px) {
    .nav-logo img {
      width: 138px !important;
    }
    .language-switcher {
      height: 40px !important;
      line-height: 40px !important;
      font-size: 0.85rem !important;
      padding: 0 10px !important;
      top: 1px !important;
    }
    .hamburger {
      width: 40px !important;
      height: 40px !important;
      top: 1px !important;
    }
  }
}
