/* تنسيقات CSS الكاملة - مصححة ومنظمة */

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

body {
  font-family: 'Poppins', sans-serif;
  background:#111;
  color:#fff;
  overflow-x:hidden;
}

/* العناوين الكبيرة (زي النص اللي في الـ Hero) */
.holistic-text,
.logo,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Logo */
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 1px;
}

/* أزرار وروابط مهمة */
.read-more-btn,
.appointment-btn,
.login-btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.8px;
}

/* النافبار والقوائم */
nav a,
.dropdown-content a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* ==================== PAGE SYSTEM ==================== */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    min-height: 100vh;
}

.page.active {
    display: block;
    opacity: 1;
}

.page-header {
    text-align: center;
    padding: 120px 20px 50px;
    background: linear-gradient(135deg, #f8f5f3 0%, #fdfbf9 100%);
}

.page-header h1 {
    font-size: 3.5rem;
    color: #5a4241;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.page-header p {
    font-size: 1.2rem;
    color: #8c7473;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Home Page - الحفاظ على التنسيق الأصلي */
#homePage {
    background: transparent;
}

/* About Page */
#aboutPage {
    background: #fdfbf9;
}

/* Services Page */
#servicesPage {
    background: #f8f9fa;
}

.services-overview {
    padding: 80px 5%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(140, 116, 115, 0.1);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(140, 116, 115, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: #8c7473;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8rem;
    color: #5a4241;
    margin-bottom: 15px;
}

.service-card p {
    color: #8c7473;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: #8c7473;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.service-link:hover {
    color: #5a4241;
    transform: translateX(5px);
}

/* Mental Health Page */
#mentalHealthPage {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0f7fa 100%);
    padding: 40px 5%;
}

.mental-health-content {
    max-width: 1200px;
    margin: 0 auto;
}

.mh-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin: 30px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
}

.mh-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #8c7473;
    font-size: 1.6rem;
}

/* Mood Options */
.mood-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.mood-options button {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mood-options button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.mood-options button.selected {
    background: #8c7473;
    color: white;
    border-color: #8c7473;
}

/* Test List */
.test-list {
    list-style: none;
    padding: 0;
}

.test-list li {
    padding: 15px;
    background: white;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #8c7473;
}

.test-list a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.test-list a:hover {
    color: #8c7473;
}

/* Video List */
.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.video-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Download Button */
.download-btn {
    padding: 12px 24px;
    background: #8c7473;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #5a4241;
    transform: translateY(-2px);
}

/* Tool Buttons */
.tool-buttons {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.breathing-btn, .meditation-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.breathing-btn {
    background: #8c7473;
    color: white;
}

.meditation-btn {
    background: #a1887f;
    color: white;
}

.breathing-btn:hover, .meditation-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Goal Box */
.goal-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.goal-box input {
    width: 70%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.add-goal {
    padding: 10px 20px;
    background: #8c7473;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.goal-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.goal-list li {
    padding: 10px;
    background: #f9f9f9;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goal-list li.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.complete-goal, .delete-goal {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.complete-goal {
    background: #8c7473;
    color: white;
}

.delete-goal {
    background: #a1887f;
    color: white;
}

/* Emergency Section */
.emergency {
    background: #fff3f3;
    border: 2px solid #ffcccc;
}

.help-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.red {
    background: #e74c3c;
    color: white;
}

.green {
    background: #8c7473;
    color: white;
}

.help-btn:hover {
    transform: scale(1.05);
}

/* History Box */
.history-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c7473;
}

/* Physical Health Page */
#physicalHealthPage {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 40px 5%;
}

.physical-health-content {
    max-width: 1200px;
    margin: 0 auto;
}

.physical-services {
    margin-bottom: 60px;
}

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

.service-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Sign Language Page */
#signLanguagePage {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 40px 5%;
}

.sign-language-content {
    max-width: 1200px;
    margin: 0 auto;
}

.accessibility-features {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.accessibility-features ul {
    list-style: none;
    padding: 0;
}

.accessibility-features li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #8c7473;
    position: relative;
    padding-left: 25px;
}

.accessibility-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8c7473;
    font-weight: bold;
}

/* Contact Page */
#contactPage {
    background: #fdfbf9;
    padding: 40px 5%;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(140, 116, 115, 0.1);
}

.contact-form h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #5a4241;
    margin-bottom: 30px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8c7473;
}

.contact-form button {
    padding: 15px 30px;
    background: #8c7473;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #5a4241;
    transform: translateY(-2px);
}

/* Blog Page */
#blogPage {
    background: #f8f9fa;
    padding: 40px 5%;
}

/* Dashboard Page */
#dashboardPageContent {
    background: linear-gradient(135deg, #f8f5f2 0%, #eeebe6 100%);
}

/* ==================== LOADING SCREEN ==================== */
#loading-screen {
  position:fixed; 
  top:0; left:0; 
  width:100%; 
  height:100%;
  background:#fff; 
  display:flex;
  align-items:center; 
  justify-content:center;
  z-index:9999;
  transition:opacity .8s ease;
}

#loading-screen video { 
  width:250px;
  max-width: 100%;
  border-radius: 30px;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

#main-content { 
  display:none; 
  opacity: 0;
  transition: opacity 0.5s ease;
}

#main-content.visible {
  display: block;
  opacity: 1;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
  position:fixed; 
  top:0;
  left:0;
  width:100%; 
  height:80px;
  background:rgba(37, 27, 26, 0.95);
  backdrop-filter:blur(10px);
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  padding:0 40px;
  z-index:1000; 
  box-shadow:0 4px 15px rgba(90, 66, 65, 0.95);
}

.logo { 
  font-size:28px; 
  font-weight:300;
  color:#fafafa; 
  letter-spacing:1px; 
}

nav {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: capitalize;
}

/* تأثير اللون + الحركة */
nav a:hover {
  color: #d4b8a3;
}

/* الخط السفلي المتحرك */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -10px;
  left: 50%;
  background: linear-gradient(90deg, transparent, #d4b8a3, transparent);
  border-radius: 2px;
  transition: all 0.5s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(212, 184, 163, 0.6);
}

nav a:hover::after {
  width: 100%;
}

/* اللينك النشط (Active) */
nav a.active {
  color: #d4b8a3;
  font-weight: 700;
}

nav a.active::after {
  width: 100%;
  background: #d4b8a3;
  box-shadow: 0 0 20px rgba(212, 184, 163, 0.8);
}

nav a.active:hover::after {
  background: #fff;
  height: 4px;
  box-shadow: 0 0 25px rgba(255,255,255,0.7);
}

nav a.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding-left: 120px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
  z-index: 0;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(90, 66, 65, 0.25); 
  z-index: 1; 
}

.hero-content {
  position: relative;
  z-index: 2; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 450px;
}

.holistic-text {
  font-family: 'Stardom', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: #fff;
  line-height: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: 1s ease;
}

.holistic-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.read-more-btn {
  position: relative;
  background:#8c7473;
  color: #fff;
  padding: 16px 54px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(194, 176, 176, 0.925);
  z-index: 1;
}

.read-more-btn .btn-text {
  position: relative;
  z-index: 3;
  transition: color 0.3s ease;
}

.read-more-btn::before,
.read-more-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: #5a4241;
  transition: all 0.6s ease-in-out;
  z-index: 1;
}

.read-more-btn::before {
  top: 0;
  left: 0;
  border-radius: 0 0 100% 0;
}

.read-more-btn::after {
  bottom: 0;
  right: 0;
  border-radius: 100% 0 0 0;
}

.read-more-btn:hover {
  color: #fff;
  background: #5a4241;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(90, 66, 65, 0.5);
}

.read-more-btn:hover::before {
  width: 100%;
  height: 100%;
  border-radius: 0;
  transition-delay: 0s;
}

.read-more-btn:hover::after {
  width: 100%;
  height: 100%;
  border-radius: 0;
  transition-delay: 0.15s;
}

.read-more-btn:hover .btn-text {
  color: #fff;
  position: relative;
  z-index: 5;
}

/* ==================== MOBILE MENU ==================== */
.menu-icon {
  display: none;
  font-size: 30px;
  color: #8c7473;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  header {
    padding: 0 25px;
  }

  .menu-icon {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(17, 17, 17, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    gap: 25px;
    transition: right 0.5s ease;
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 20px;
    color: #fff;
  }

  nav a:hover {
    color: #8c7473;
  }

  .dropdown-content {
    position: static;
    display: none;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    font-size: 18px;
    color: #ccc;
  }

  .dropdown-content a:hover {
    color: #8c7473;
  }
}

/* ==================== DROPDOWN ==================== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(90, 66, 65, 0.97);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  min-width: 180px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown-content a {
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background: #8c7473;
  color: #111;
}

.dropdown.active .dropdown-content {
  display: flex;
}

/* ==================== APPOINTMENT BUTTON ==================== */
.appointment-btn {
  background: #8c7473;
  color: #111;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(140, 116, 115, 0.4);
}

.appointment-btn:hover {
  background: #fff;
  color: #8c7473;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(140, 116, 115, 0.6);
}

@media (max-width: 992px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
  }

  .dropdown-content a {
    color: #ccc;
    font-size: 18px;
  }

  .dropdown-content a:hover {
    color: #8c7473;
    background: none;
  }
}

/* ==================== SEARCH ==================== */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.search-icon {
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.search-icon:hover {
  color: #8c7473;
  transform: scale(1.15);
}

.search-box {
  position: absolute;
  top: 130%;
  right: 0;
  background: rgba(90, 66, 65, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px;
  display: none;
  flex-direction: column;
  width: 260px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  z-index: 2000;
}

.search-box.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.search-box input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  transition: background 0.3s ease;
}

.search-box input::placeholder {
  color: #ccc;
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.25);
}

.search-results {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.search-results a {
  display: block;
  padding: 8px 10px;
  margin: 4px 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.search-results a:hover {
  background: #8c7473;
  color: #111;
  transform: translateX(5px);
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

@media (max-width: 992px) {
  .search-box {
    position: fixed;
    top: 90px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/* ==================== PHYSIOTHERAPY MIND-BODY SECTION ==================== */
.physio-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5%;
  background: linear-gradient(135deg, #f0eeee 0%, #f8f7f7 100%);
  position: relative;
  overflow: hidden;
}

.physio-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/images/img15.jpg') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.physio-content { 
  flex: 1; 
  min-width: 320px; 
}

.badge {
  display: inline-block;
  background: rgba(140, 116, 115, 0.2);
  color: #8c7473;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.physio-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.8rem;
  color: #5a4241;
  line-height: 1.1;
  margin-bottom: 24px;
}

.highlight {
  color: #8c7473;
  font-style: italic;
}

.physio-text {
  color: #8c7473;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 50px;
  max-width: 560px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 50px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all 0.4s ease;
}

.feature-item:hover {
  transform: translateX(-8px);
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(140, 116, 115, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-wrapper::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.3), transparent 70%);
  transition: all 0.7s;
}

.feature-item:hover .icon-wrapper {
  background: #8c7473;
  transform: scale(1.12);
  box-shadow: 0 15px 35px rgba(140, 116, 115, 0.4);
}

.feature-item:hover .icon-wrapper::before {
  top: 150%;
  left: 150%;
}

.icon-wrapper i {
  font-size: 24px;
  color: #8c7473;
  transition: all 0.4s;
}

.feature-item:hover .icon-wrapper i {
  color: #fff;
}

.feature-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #8c7473;
  margin-bottom: 8px;
}

.feature-text p {
  color: #8c7473;
  line-height: 1.7;
  font-size: 1rem;
}

/* ==================== CTA BUTTON ==================== */
.cta-button, .cta-button *, .cta-button::before, .cta-button::after {
  all: unset !important;
  display: inline-block !important;
}

.cta-button {
  position: relative !important;
  background: #8c7473 !important;
  color: #fff !important;
  padding: 16px 54px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif !important;
  text-decoration: none !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(194,176,176,.9) !important;
  transition: all .4s ease !important;
  cursor: pointer !important;
}

.cta-button .btn-text {
  position: relative !important;
  z-index: 3 !important;
  transition: color .3s ease !important;
}

.cta-button::before,
.cta-button::after {
  content: "" !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  background: #5a4241 !important;
  transition: all .6s ease-in-out !important;
  z-index: 1 !important;
}

.cta-button::before { top: 0 !important; left: 0 !important; border-radius: 0 0 100% 0 !important; }
.cta-button::after  { bottom: 0 !important; right: 0 !important; border-radius: 100% 0 0 0 !important; }

.cta-button:hover {
  background: #5a4241 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 30px rgba(90,66,65,.7) !important;
}

.cta-button:hover::before,
.cta-button:hover::after {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.cta-button:hover::after { transition-delay: .15s !important; }

/* ==================== PHYSIO IMAGE ==================== */
.physio-image {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
  height: 920px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: 60% 60% 20px 20px / 70% 70% 10px 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  display: block;
  will-change: transform;
  transform-origin: 50% 50%;
  transform: translateX(40px) rotateY(12deg) scale(0.985);
  transition: transform 820ms cubic-bezier(.22,1,.36,1), box-shadow 600ms ease;
}

.physio-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateY(0%) !important;
  transition: none !important;
  border-radius: 0;
}

.physio-image:hover img {
  transform: translateY(0%) scale(1) !important;
}

.physio-image::after {
  display: none !important;
}

.physio-image::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -80%;
  width: 45%;
  height: 160%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.65) 50%,
    rgba(255,255,255,0) 100%);
  transform: rotate(-22deg);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  animation: physio-shine 3s linear infinite;
  z-index: 4;
}

@keyframes physio-shine {
  0%   { left: -80%; opacity: 0; }
  8%   { opacity: 0.8; }
  50%  { left: 120%; opacity: 0.9; }
  100% { left: 120%; opacity: 0; }
}

.physio-image.in-view {
  transform: translateX(0) rotateY(0) scale(1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.18);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .container {
    gap: 60px;
  }
  
  .physio-content h1 {
    font-size: 4rem;
  }
  
  .physio-image {
    height: 800px;
    max-width: 600px;
  }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }
  
  .physio-content h1 {
    font-size: 3.5rem;
  }
  
  .physio-text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .feature-item {
    justify-content: center;
    text-align: left;
  }
  
  .physio-image {
    max-width: 100%;
    height: 550px;
    border-radius: 50% 50% 14px 14px / 58% 58% 8px 8px;
    margin-left: 0;
    transform: none;
  }
  
  .physio-image.in-view {
    transform: none;
  }
  
  .physio-image::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .physio-section {
    padding: 80px 5%;
  }
  
  .physio-content h1 {
    font-size: 3rem;
  }
  
  .physio-text {
    font-size: 1.05rem;
  }
  
  .features {
    gap: 24px;
  }
  
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .physio-image {
    height: 480px;
  }
}

@media (max-width: 576px) {
  .physio-section {
    padding: 60px 5%;
  }
  
  .physio-content h1 {
    font-size: 2.5rem;
  }
  
  .badge {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .physio-text {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  
  .features {
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .icon-wrapper {
    width: 56px;
    height: 56px;
  }
  
  .icon-wrapper i {
    font-size: 20px;
  }
  
  .feature-text h3 {
    font-size: 1.3rem;
  }
  
  .feature-text p {
    font-size: 0.9rem;
  }
  
  .physio-btn {
    padding: 14px 40px;
    font-size: 0.9rem;
  }
  
  .physio-image {
    height: 400px;
    border-radius: 40% 40% 10px 10px / 50% 50% 5px 5px;
  }
  
  .physio-image::before {
    display: none;
  }
}

@media (max-width: 400px) {
  .physio-content h1 {
    font-size: 2.2rem;
  }
  
  .physio-image {
    height: 350px;
  }
  
  .feature-item {
    gap: 12px;
  }
  
  .icon-wrapper {
    width: 50px;
    height: 50px;
  }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 95vh;
  background-color: #fdfbf9;
  padding: 3rem 2rem;
  gap: 3rem;
  margin: 0;
  position: relative;
  overflow: hidden;
  flex-direction: row; 
}

.content-container {
  flex: 1;
  max-width: 650px;
  position: relative;
}

.image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 500px;
  max-width: 500px;
  order: 1; 
}

.image-container img {
  width: 90%;
  height: 90%;
  border-radius: 16px;
  object-fit: cover;
  margin: 0;
  transition: transform 0.8s ease-out;
}

.image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  border-radius: 16px;
  pointer-events: none;
  animation: shine 3.5s linear infinite;
  opacity: 0.8;
  z-index: 2;
}

@keyframes shine {
  0% {
    left: -75%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    left: 125%;
    opacity: 0.8;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

.subtitle {
  display: flex;
  align-items: center;
  color: #8c7473;
  text-transform: uppercase;
  font-size: 0.75rem; 
  font-weight: 600;
  letter-spacing: 1.4px;
  margin-top: -25px;
  margin-bottom: 1.5rem;
}

.subtitle i {
  color: #8c7473;
  font-size: 1rem;
  margin-right: 8px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.subtitle:hover i {
  color: #9a7b74;
  transform: translateX(3px);
}

.content-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.8rem;
  color: #5a4241;
  line-height: 1.1;
  margin-bottom: 24px;
}

.description {
  color: #8c7473;
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.features-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2.5rem;
}

.features-list li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #8c7473;
  margin-bottom: 10px;
}

.icon-circle {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  background: #8c7473;
  flex-shrink: 0;
}

.icon-circle i {
  color: #ffffff;
  font-size: 0.85rem;
}

.stats-box {
    background-color: #8c7473; 
    color: white;
    padding: 35px 45px;
    border-radius: 6px;
    text-align: center;
    position: absolute;
    top: 74% ;           
    right: 100px ;
    transform: translateY(-50%);
    width: 240px;
    height: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10; /* عشان يفضل فوق الصورة */
}

.stat-number {
    font-size: 2.7rem;
    font-weight: 500;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

@media (min-width: 993px) {
  .about-section { 
    flex-direction: row !important; 
  }
  .content-container { 
    order: 1 !important;
    flex: 1;
    max-width: 650px;
  }
  .image-container { 
    order: 2 !important;
    flex: 1;
    max-width: 500px;
    min-height: 500px;
  }
}

@media (max-width: 992px) {
  .about-section { 
    flex-direction: column !important;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  .content-container {
    order: 1 !important;
    max-width: 100%;
    margin-top: 0;
  }
  .image-container { 
    order: 2 !important;
    width: 80%;
    height: 400px;
    min-height: 400px;
    max-width: 400px;
    margin-bottom: 2rem;
  }

  .content-container h1 {
    font-size: 2.3rem;
    line-height: 1.3;
  }

  .description {
    font-size: 1rem;
  }

  .stats-box {
    position: static;
    transform: none;
    margin: 1.5rem auto;
    width: 200px;
    height: auto;
  }

  .cta-button {
    padding: 15px 45px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 2rem 1rem;
  }
  
  .image-container {
    height: 350px;
    min-height: 350px;
    max-width: 350px;
  }
  
  .image-container img {
    width: 95%;
    height: 95%;
  }
  
  .content-container h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .about-section {
    padding: 1.5rem 1rem;
  }

  .image-container {
    height: 300px;
    min-height: 300px;
    max-width: 300px;
    border-radius: 12px;
    width: 95%;
  }

  .image-container img {
    width: 100%;
    height: 100%;
  }

  .content-container h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.7rem;
  }

  .features-list li {
    font-size: 0.9rem;
    justify-content: center;
    text-align: left;
  }

  .icon-circle {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }

  .stat-number {
    font-size: 2.2rem;
  }
  
  .stats-box {
    width: 180px;
    padding: 25px 35px;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 1rem 0.5rem;
  }
  
  .image-container {
    height: 250px;
    min-height: 250px;
    max-width: 280px;
    border-radius: 8px;
  }
  
  .content-container h1 {
    font-size: 1.6rem;
  }
  
  .cta-button {
    padding: 12px 35px;
    font-size: 0.9rem;
  }
}
/*=========================Sign language=====================*/
/* ========================= Sign Language Section ========================= */
.sign-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5%;
  background: linear-gradient(135deg, #f0eeee 0%, #f8f7f7 100%);
  position: relative;
  overflow: hidden;
}

.sign-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25b1c6bac?w=1600') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.sign-content { 
  flex: 1; 
  min-width: 320px; 
}

.badge {
  display: inline-block;
  background: rgba(140, 116, 115, 0.2);
  color: #8c7473;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.sign-content h1 {
   font-family: 'Playfair Display', serif;
  font-size: 4.8rem;
  color: #5a4241;
  line-height: 1.1;
  margin-bottom: 24px;
}

.highlight {
  color: #8c7473;
  font-style: italic;
}

.sign-text {
  color: #8c7473;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 50px;
  max-width: 560px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 50px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all 0.4s ease;
}

.feature-item:hover {
  transform: translateX(-8px);
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(140, 116, 115, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-wrapper::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.3), transparent 70%);
  transition: all 0.7s;
}

.feature-item:hover .icon-wrapper {
  background: #8c7473;
  transform: scale(1.12);
  box-shadow: 0 15px 35px rgba(140, 116, 115, 0.4);
}

.feature-item:hover .icon-wrapper::before {
  top: 150%;
  left: 150%;
}

.icon-wrapper img {
  width: 34px;
  filter: brightness(0) saturate(100%) hue-rotate(20deg) opacity(0.8);
  transition: all 0.4s;
}

.feature-item:hover .icon-wrapper img {
  filter: brightness(0) invert(1);
}

.feature-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #8c7473;
  margin-bottom: 8px;
}

.feature-text p {
  color: #8c7473;
  line-height: 1.7;
  font-size: 1rem;
}
/* تنسيق قسم Sign Language */
.sign-content-wrapper {
    display: flex;
    align-items: center;
    margin: 30px 0;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sign-text-with-image {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.sign-image-left {
    flex-shrink: 0;
}

.sign-image-left .side-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sign-text-content {
    flex: 1;
}

.sign-text-content .sign-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.sign-image-main {
    margin-top: 40px;
    text-align: center;
}

.sign-image-main img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Responsive design */
@media (max-width: 768px) {
    .sign-text-with-image {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .sign-image-left .side-image {
        width: 100px;
        height: 100px;
    }
    
    .sign-content-wrapper {
        padding: 20px;
    }
}
/* ==================== SIGN BTN (النص هيظهر فوق الـ wave دايمًا) ==================== */
.sign-btn {
  position: relative;
  background: #8c7473;
  color: #fff;
  padding: 16px 54px;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(194, 176, 176, 0.9);
  transition: all 0.4s ease;
  cursor: pointer;
  display: inline-block;
  border: none;
}

.sign-btn .btn-text {
  position: relative;
  z-index: 10;  /* زيادة كبيرة عشان يفضل فوق الـ wave مهما حصل */
  display: block;
  transition: color 0.3s ease;
}

.sign-btn:hover .btn-text {
  color: #fff;  /* يضمن إن اللون يفضل أبيض وواضح */
}

.sign-btn::before,
.sign-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: #5a4241;
  transition: all 0.6s ease-in-out;
  z-index: 2;  /* أقل بكتير من النص */
}

.sign-btn::before {
  top: 0;
  left: 0;
  border-radius: 0 0 100% 0;
}

.sign-btn::after {
  bottom: 0;
  right: 0;
  border-radius: 100% 0 0 0;
}

.sign-btn:hover {
  background: #5a4241;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(90, 66, 65, 0.7);
}

.sign-btn:hover::before,
.sign-btn:hover::after {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.sign-btn:hover::after {
  transition-delay: 0.15s;
}
/* ==================== SIGN IMAGE ==================== */
.sign-image {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
  height: 920px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: 60% 60% 20px 20px / 70% 70% 10px 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  display: block;
  will-change: transform;
  transform-origin: 50% 50%;
  transform: translateX(40px) rotateY(12deg) scale(0.985);
  transition: transform 820ms cubic-bezier(.22,1,.36,1), box-shadow 600ms ease;
}

.sign-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sign-image::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -80%;
  width: 45%;
  height: 160%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.65) 50%,
    rgba(255,255,255,0) 100%);
  transform: rotate(-22deg);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  animation: sign-shine 3s linear infinite;
  z-index: 4;
}

@keyframes sign-shine {
  0%   { left: -80%; opacity: 0; }
  8%   { opacity: 0.8; }
  50%  { left: 120%; opacity: 0.9; }
  100% { left: 120%; opacity: 0; }
}

.sign-image.in-view {
  transform: translateX(0) rotateY(0) scale(1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.18);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .container { gap: 60px; }
  .sign-content h1 { font-size: 4rem; }
  .sign-image { height: 800px; max-width: 600px; }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }
  .sign-content h1 { font-size: 3.5rem; }
  .sign-text { margin: 0 auto; }
  .feature-item { justify-content: center; text-align: left; }
  .sign-image {
    max-width: 100%;
    height: 550px;
    border-radius: 50% 50% 14px 14px / 58% 58% 8px 8px;
    margin-left: 0;
    transform: none;
  }
  .sign-image.in-view { transform: none; }
  .sign-image::before { display: none; }
}

@media (max-width: 768px) {
  .sign-section { padding: 80px 5%; }
  .sign-content h1 { font-size: 3rem; }
  .sign-text { font-size: 1.05rem; }
  .features { gap: 24px; }
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .sign-image { height: 480px; }
}

@media (max-width: 576px) {
  .sign-section { padding: 60px 5%; }
  .sign-content h1 { font-size: 2.5rem; }
  .badge { padding: 8px 20px; font-size: 13px; }
  .sign-text { font-size: 1rem; margin-bottom: 40px; }
  .features { gap: 20px; margin-bottom: 40px; }
  .icon-wrapper { width: 56px; height: 56px; }
  .icon-wrapper img { width: 30px; }
  .feature-text h3 { font-size: 1.3rem; }
  .sign-image { height: 400px; border-radius: 40% 40% 10px 10px / 50% 50% 5px 5px; }
}

@media (max-width: 400px) {
  .sign-content h1 { font-size: 2.2rem; }
  .sign-image { height: 350px; }
  .icon-wrapper { width: 50px; height: 50px; }
}


/* ==================== STATS SECTION ==================== */
.stats-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 100px 5%;
  background: linear-gradient(135deg, #f8f7f7 0%, #f0eeee 100%);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 40px;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25b1c6bac?w=1600') center/cover no-repeat;
  opacity: 0.03;
  z-index: 0;
}

.stat-box {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(140, 116, 115, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  min-width: 200px;
  flex: 1;
  max-width: 250px;
}

.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(140, 116, 115, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #8c7473, #796665, #5a4241);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-box:hover::before {
  opacity: 1;
}

.counter {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 600;
  color: #8c7473;
  margin-bottom: 15px;
  line-height: 1;
  transition: all 0.4s ease;
}

.stat-box:hover .counter {
  color: #fff;
  transform: scale(1.05);
}

.stat-box p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #8c7473;
  font-weight: 500;
  margin: 0;
  transition: all 0.4s ease;
}

.stat-box:hover p {
  color: #fff;
}

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

.counter.animated {
  animation: countUp 0.8s ease-out;
}

@media (max-width: 1200px) {
  .stats-section {
    padding: 80px 5%;
    gap: 30px;
  }
  
  .stat-box {
    padding: 30px 25px;
    min-width: 180px;
  }
  
  .counter {
    font-size: 3.5rem;
  }
  
  .stat-box p {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .stats-section {
    padding: 60px 5%;
    gap: 25px;
  }
  
  .stat-box {
    flex: 0 0 calc(50% - 25px);
    max-width: calc(50% - 25px);
    padding: 25px 20px;
  }
  
  .counter {
    font-size: 3rem;
  }
  
  .stat-box p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 50px 5%;
    gap: 20px;
  }
  
  .stat-box {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    padding: 20px 15px;
  }
  
  .counter {
    font-size: 2.5rem;
  }
  
  .stat-box p {
    font-size: 0.9rem;
  }
  
  .stat-box:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 576px) {
  .stats-section {
    padding: 40px 5%;
    gap: 15px;
    flex-direction: column;
  }
  
  .stat-box {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 25px 20px;
    min-width: auto;
  }
  
  .counter {
    font-size: 2.2rem;
  }
  
  .stat-box p {
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .stats-section {
    padding: 30px 5%;
  }
  
  .stat-box {
    padding: 20px 15px;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .stat-box p {
    font-size: 0.8rem;
  }
}

/* ==================== VIDEO SECTION ==================== */
.video-section { 
  width: 100%; 
  padding: 0 5%;
   margin: 0;
  padding: 100px 5%;
  background: #ffffff !important;
    position: relative;
    z-index: 10;
}

.video-poster {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(254, 254, 254, 0.15);
  transition: transform 0.5s ease;
}

.video-poster::before {
  content: '';
  display: none;
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(140, 116, 115, 0.35) 48%,
    rgba(140, 116, 115, 0.5) 50%,
    rgba(140, 116, 115, 0.35) 52%,
    transparent 80%
    
  );
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 1.2s cubic-bezier(0.22, 0, 0.2, 1);
  z-index: 2;
}

.video-poster:hover::before,
.video-poster:active::before {
  opacity: 1;
  transform: translateX(100%) translateY(100%) rotate(30deg);
}

.video-poster:hover {
  transform: scale(1.025);
}

.play-btn {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #8c7473;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 12px 35px rgba(140,116,115,0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  overflow: hidden;
}

.play-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: -1;
}

.play-btn:hover::after {
  transform: scale(2);
  opacity: 1;
}

.play-btn:hover {
  background: #5a4241;
  transform: scale(1.15);
  box-shadow: 0 20px 50px rgba(90,66,65,0.6);
}

.play-btn:active {
  transform: scale(0.95) rotate(10deg);
}

@media (max-width: 768px) {
  .video-poster {
    height: 56vh;
    min-height: 340px;
    border-radius: 16px;
  }
  
  .play-btn {
    width: 76px;
    height: 76px;
    font-size: 32px;
  }
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

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

.video-wrap {
  position: relative;
  width: min(1100px, 96%);
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgb(250, 247, 247);
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 85vh;
}

.close-video {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s;
}

.close-video:hover { 
  background: #8c7473; 
}

/* ==================== BLOG MODAL ==================== */
/* ==================== BLOG COMPONENTS ==================== */

/* ---------- Blog Modal Container ---------- */
.blog-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

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

/* ---------- Blog Modal Content ---------- */
.blog-modal-content {
  position: relative;
  width: min(900px, 96%);
  max-height: 95vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.5s ease;
}

.blog-modal-card {
  display: flex;
  flex-direction: column;
}

.blog-modal-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.blog-modal-body {
  padding: 50px;
  color: #333;
}

.blog-modal-body h2 {
  font-size: 32px;
  color: #5a4241;
  margin-bottom: 25px;
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

.blog-modal-body p {
  font-size: 17px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
}

/* ---------- Modal Close Buttons ---------- */
.blog-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-modal-close:hover {
  background: #e74c3c;
  transform: rotate(90deg) scale(1.1);
}

/* ---------- Blog Cards Carousel (الكروسل الأفقي في الصفحة الرئيسية) ---------- */
.blog-animation-section {
  padding: 80px 5%;
  background: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.blog-animation-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-animation-header h1 {
  color: #5a4241;
  font-size: 3rem;
  margin-bottom: 20px;
}

.blog-animation-header p {
  color: #8c7473;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.blog-cards-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.blog-cards-track {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  animation: scrollBlogCards 40s linear infinite;
}

.blog-card-animated {
  flex: 0 0 auto;
  width: 350px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-animated * {
  cursor: pointer;
}

.blog-card-animated .blog-card-content {
  transition: transform 0.3s ease;
}

.blog-card-animated:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.blog-card-animated:hover .blog-card-content {
  transform: translateY(-5px);
}

.blog-card-animated .blog-read-more {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-animated:hover .blog-card-image {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 25px;
}

.blog-card-tag {
  display: inline-block;
  background: #8c7473;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.blog-card-title {
  color: #5a4241;
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card-desc {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* زر Read More في الكروسل الأفقي (محسّن) */
.blog-read-more {
  color: #fff;
  background-color: #8c7473;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px 20px;
  margin-top: 15px;
  border-radius: 25px;
  border: 2px solid #8c7473;
  width: fit-content;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-read-more:hover {
  background-color: #5a4241;
  border-color: #5a4241;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  gap: 12px;
}

.blog-read-more i {
  transition: transform 0.3s ease;
}

.blog-read-more:hover i {
  transform: translateX(6px);
}

@keyframes scrollBlogCards {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-350px * 6 - 30px * 5)); }
}

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

/* Fade edges */
.blog-cards-container::before,
.blog-cards-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.blog-cards-container::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.blog-cards-container::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

/* زر View All Articles (مركّز ومحسّن) */
.blog-view-all {
  text-align: center;
  margin: 60px auto 0;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.blog-view-all .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #8c7473 0%, #5a4241 100%);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(92, 66, 65, 0.3);
}

.blog-view-all .cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(92, 66, 65, 0.45);
  gap: 18px;
}

.blog-view-all .cta-button i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.blog-view-all .cta-button:hover i {
  transform: translateX(6px);
}

/* ---------- Blog Page Grid (صفحة البلوق الكاملة) ---------- */
.blog-section {
  background: #f8f9fa;
  padding: 80px 20px;
}

.blog-container {
  max-width: 1400px;
  margin: auto;
}

.sidebar {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
  padding: 0;
}

.post {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.post:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

.post img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post:hover img {
  transform: scale(1.08);
}

.post-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #5a4241;
  line-height: 1.4;
  font-family: 'Playfair Display', serif;
}

.post p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* زر Read More في صفحة البلوق (محسّن) */
.read-more-btn {
  color: #fff;
  background-color: #8c7473;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 25px;
  transition: all 0.3s ease;
  margin-top: 15px;
  border: 2px solid #8c7473;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.read-more-btn:hover {
  background-color: #5a4241;
  border-color: #5a4241;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  gap: 12px;
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(6px);
}

/* ==================== THEME MODES ==================== */
/* ---------- Dark Mode ---------- */
body.dark-mode .blog-modal-content,
body.dark-mode .blog-card-animated,
body.dark-mode .post {
  background: #222;
}

body.dark-mode .blog-modal-body h2,
body.dark-mode .blog-card-title,
body.dark-mode .post h3 {
  color: #e0d5d3;
}

body.dark-mode .blog-modal-body p,
body.dark-mode .blog-card-desc,
body.dark-mode .post p {
  color: #b0a0a0;
}

body.dark-mode .blog-read-more,
body.dark-mode .read-more-btn {
  color: #d0c0b0;
}

body.dark-mode .blog-read-more:hover,
body.dark-mode .read-more-btn:hover {
  color: #fff;
  border-color: #d0c0b0;
}

/* ---------- High Contrast Mode ---------- */
body.high-contrast .blog-modal-content,
body.high-contrast .blog-card-animated,
body.high-contrast .post {
  background: #000 !important;
  border: 3px solid #fff;
  color: #fff;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
  }
  
  .blog-card-animated {
    width: 300px;
  }
  
  @keyframes scrollBlogCards {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 6 - 30px * 5)); }
  }
}

@media (max-width: 768px) {
  .blog-modal-content {
    width: 95%;
  }
  
  .blog-modal-image {
    height: 250px;
  }
  
  .blog-modal-body {
    padding: 30px;
  }
  
  .blog-modal-body h2 {
    font-size: 26px;
  }
  
  .blog-animation-header h1 {
    font-size: 2.5rem;
  }
  
  .blog-card-animated {
    width: 280px;
  }
  
  @keyframes scrollBlogCards {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 6 - 30px * 5)); }
  }
}

@media (max-width: 480px) {
  .blog-modal-body {
    padding: 20px;
  }
  
  .blog-modal-body h2 {
    font-size: 22px;
  }
  
  .blog-view-all .cta-button {
    padding: 14px 36px;
    font-size: 16px;
  }
}

/* ==================== باقي الأقسام (بدون تغيير أو حذف) ==================== */
.core-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5%;
  background: linear-gradient(135deg, #f0eeee 0%, #f8f7f7 100%);
  position: relative;
  overflow: hidden;
}

.core-content {
  flex: 1;
  min-width: 320px;
}

.core-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.8rem;
  color: #5a4241;
  line-height: 1.1;
  margin-bottom: 24px;
}

.core-text {
  color: #8c7473;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 50px;
  max-width: 560px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 50px;
}

.accordion-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(140,116,115,0.1);
  transition: all 0.4s ease;
}

.accordion-header {
  padding: 28px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(140,116,115,0.04);
  transition: all 0.4s ease;
}

.accordion-header:hover {
  background: rgba(140,116,115,0.1);
}

.accordion-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #8c7473;
}

.chevron {
  font-size: 1.2rem;
  transition: transform 0.4s ease;
  color: #8c7473 !important;
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1), padding 0.5s ease;
}

.accordion-item.active .accordion-content {
  max-height: 400px;
  padding: 0 32px 32px;
}

.accordion-content p {
  color: #8c7473;
  line-height: 1.8;
  font-size: 1.05rem;
}

.core-image {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
  height: 920px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: 60% 60% 20px 20px / 70% 70% 10px 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  will-change: transform;
  transform-origin: 50% 50%;
  transform: translateX(40px) rotateY(12deg) scale(0.985);
  transition: transform 820ms cubic-bezier(.22,1,.36,1), box-shadow 600ms ease;
}

.core-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.core-image::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -80%;
  width: 45%;
  height: 160%;
  background: linear-gradient(120deg,rgba(90,66,65,.7) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(-22deg);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  animation: core-shine 3s linear infinite;
  z-index: 4;
}

@keyframes core-shine {
  0%   { left: -80%; opacity: 0; }
  8%   { opacity: 0.8; }
  50%  { left: 120%; opacity: 0.9; }
  100% { left: 120%; opacity: 0; }
}

.core-image.in-view {
  transform: translateX(0) rotateY(0deg) scale(1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.18);
}

@media (max-width: 1200px) {
  .core-content h1 { 
    font-size: 4rem; 
  }
  .core-image { 
    height: 800px; 
    max-width: 600px; 
  }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }
  .core-content h1 { 
    font-size: 3.5rem; 
  }
  .core-text { 
    margin: 0 auto; 
  }
  .core-image {
    max-width: 100%;
    height: 550px;
    border-radius: 50% 50% 14px 14px / 58% 58% 8px 8px;
    margin: 0 auto;
    transform: none;
  }
  .core-image.in-view { 
    transform: none; 
  }
  .core-image::before { 
    display: none; 
  }
}

@media (max-width: 768px) {
  .core-section { 
    padding: 80px 5%; 
  }
  .core-content h1 { 
    font-size: 3rem; 
  }
  .core-image { 
    height: 480px; 
  }
}

@media (max-width: 576px) {
  .core-section { 
    padding: 60px 5%; 
  }
  .core-content h1 { 
    font-size: 2.5rem; 
  }
  .core-image { 
    height: 400px; 
    border-radius: 40% 40% 10px 10px / 50% 50% 5px 5px; 
  }
}

@media (max-width: 400px) {
  .core-content h1 { 
    font-size: 2.2rem; 
  }
  .core-image { 
    height: 350px; 
  }
}

/* ==================== TEAM SECTION ==================== */
.team-section {
  padding: 140px 5% 160px;
  background: linear-gradient(135deg, #f8f5f3 0%, #fdfbf9 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-header {
  margin-bottom: 100px;
}

.team-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #5a4241;
  line-height: 1.1;
  margin: 0 auto 32px;
  max-width: 900px;
}

.team-desc {
  color: #8c7473;
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 860px;
  margin: 0 auto;
}

.team-section .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.team-card {
  width: 360px;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(140,116,115,0.22);
  transition: all 0.5s ease;
}

.team-card:hover {
  transform: translateY(-20px);
  box-shadow: 0 40px 90px rgba(140,116,115,0.3);
}

.team-image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-bottom: 6px solid #8c7473;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s ease;
}

.team-card:hover img {
  transform: scale(1.08);
}

.team-info {
  padding: 34px 28px 40px;
}

.team-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: #8c7473;
  margin-bottom: 10px;
}

.role {
  color: #a1887f;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.location {
  color: #8c7473;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 0 10px;
}

@media (max-width: 1100px) {
  .team-header h1 { 
    font-size: 4.2rem; 
  }
  .team-cards { 
    gap: 40px; 
  }
  .team-card { 
    width: 340px; 
  }
}

@media (max-width: 992px) {
  .team-cards { 
    flex-direction: column; 
    align-items: center; 
  }
  .team-card { 
    width: 380px; 
  }
  .team-image { 
    height: 460px; 
  }
}

@media (max-width: 576px) {
  .team-header h1 { 
    font-size: 3.4rem; 
  }
  .team-desc { 
    font-size: 1.15rem; 
  }
  .team-card { 
    width: 340px; 
  }
  .team-image { 
    height: 420px; 
  }
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-beige {
  padding: 140px 20px;
  background: #faf7f2;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-family: 'Tajawal', 'Geeza Pro', sans-serif;
}

.testimonials-beige::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><path fill='none' stroke='%23d4c2b0' stroke-width='2' opacity='0.3' d='M60 15 Q 90 40, 80 75 Q 70 110, 40 95 Q 10 80, 25 50 Q 40 20, 60 15'/><circle cx='25' cy='30' r='12' fill='none' stroke='%23e2d4c3' stroke-width='2' opacity='0.25'/><circle cx='95' cy='80' r='15' fill='none' stroke='%23d4c2b0' stroke-width='2' opacity='0.2'/></svg>") 
    repeat;
  background-size: 180px 180px;
  opacity: 0.4;
  animation: floatShapes 50s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatShapes {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.big-quote {
  font-size: 180px;
  color: #d4c2b0;
  font-family: Georgia, serif;
  line-height: 0.8;
  opacity: 0.5;
  margin-bottom: -50px;
}

.quote-text {
  font-size: 20px;
  line-height: 1.8;
  color: #8c7473;
  max-width: 800px;
  margin: 0 auto 50px;
}

.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.author img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.name {
  font-size: 19px;
  color: #5a4241;
  margin: 0;
  font-weight: 600;
}

.role {
  font-size: 15px;
  color: #a1887f;
  margin: 4px 0 0;
}

.testimonial-item {
  display: none;
  opacity: 0;
  transition: all 1s ease;
}

.testimonial-item.active {
  display: block;
  opacity: 1;
}

.testimonial-dots {
  margin-top: 25px;
}

.testimonial-dots .dot {
  height: 10px;
  width: 10px;
  background-color: #ddd;
  opacity: 0.5;
  display: inline-block;
  margin: 0 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
  background-color: #a1887f;
  opacity: 1;
  transform: scale(1.3);
}

/* ==================== MODAL & LOGIN ==================== */
.modal { 
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal.active { 
  display: flex; 
}

.modal-content { 
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 95%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: modalDrop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalDrop { 
  from { transform: translateY(-100px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.close { 
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 42px;
  cursor: pointer;
  color: #aaa;
  transition: 0.3s;
}

.close:hover { 
  color: #e74c3c; 
  transform: rotate(90deg); 
}

.tab-buttons { 
  display: flex; 
  margin-bottom: 30px; 
  border-bottom: 3px solid #f0f0f0; 
}

.tab-btn { 
  flex: 1; 
  padding: 16px; 
  background: none; 
  border: none; 
  font-size: 18px; 
  font-weight: 600;
  cursor: pointer;
  color: #777;
  transition: 0.3s;
}

.tab-btn.active { 
  color: #a1887f; 
  border-bottom: 4px solid #a1887f; 
}

.auth-form { 
  display: none; 
}

.auth-form.active { 
  display: block; 
  animation: fadeIn 0.4s; 
}

@keyframes fadeIn { 
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-form h2 { 
  text-align: center; 
  margin-bottom: 20px; 
  color: #5a4241; 
}

.auth-form input { 
  width: 100%; 
  padding: 15px; 
  margin: 12px 0; 
  border: 2px solid #eee; 
  border-radius: 12px; 
  font-size: 16px;
  transition: 0.3s;
}

.auth-form input:focus { 
  outline: none; 
  border-color: #a1887f; 
  box-shadow: 0 0 0 4px rgba(161,136,127,0.15);
}

.auth-form button { 
  width: 100%; 
  padding: 16px; 
  background: #a1887f; 
  color: white; 
  border: none; 
  border-radius: 12px; 
  font-size: 18px; 
  font-weight: bold; 
  cursor: pointer; 
  margin-top: 20px;
  transition: 0.3s;
}

.auth-form button:hover { 
  background: #8c7473; 
  transform: translateY(-2px); 
}

.checkbox { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 14.5px; 
  margin: 18px 0; 
}

.error { 
  color: #e74c3c; 
  font-size: 13.5px; 
  min-height: 22px; 
  display: block; 
  margin-top: 6px; 
}

.switch-text span { 
  color: #a1887f; 
  cursor: pointer; 
  font-weight: bold; 
  text-decoration: underline; 
}

.login-btn { 
  display: inline-block;
  background: #a1887f; 
  color: white; 
  padding: 12px 28px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
}

.login-btn:hover { 
  background: #8c7473; 
  transform: translateY(-2px);
}

/* ==================== DASHBOARD ==================== */
.dashboard-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f5f2 0%, #eeebe6 100%);
  padding: 100px 20px;
  text-align: center;
  font-family: sans-serif ;
  color: #5a4241;
}

.profile-avatar {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #a1887f;
  box-shadow: 0 15px 40px rgba(161,136,127,0.3);
  cursor: pointer;
  transition: all 0.4s ease;
}

.profile-avatar:hover { 
  transform: scale(1.05); 
  box-shadow: 0 20px 50px rgba(161,136,127,0.4); 
}

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

.edit-icon {
  position: absolute; 
  bottom: 12px; 
  right: 12px;
  width: 38px; 
  height: 38px; 
  background: #a1887f; 
  color: #fff;
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer; 
  transition: 0.3s; 
  font-size: 16px;
}

.edit-icon:hover { 
  background: #8c7473; 
  transform: scale(1.15); 
}

.delete-icon {
  position: absolute; 
  top: 8px; 
  right: 8px; 
  width: 32px; 
  height: 32px;
  background: #e74c3c; 
  color: #fff; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  opacity: 0; 
  transition: all 0.4s ease; 
  cursor: pointer; 
  font-size: 14px;
}

.profile-avatar:hover .delete-icon { 
  opacity: 1; 
  transform: scale(1.1); 
}

.delete-icon:hover { 
  background: #c0392b; 
}

#userNameDisplay { 
  font-size: 36px; 
  font-weight: 700; 
  color: #5a4241; 
  margin: 12px 0 6px; 
}

.user-status { 
  font-size: 18px; 
  color: #a1887f; 
  font-weight: 600; 
}

.dashboard-cards {
  display: flex; 
  flex-wrap: wrap; 
  gap: 25px; 
  justify-content: center; 
  margin-top: 50px;
}

.dash-card {
  flex: 1 1 250px; 
  max-width: 270px;
  background: #fff; 
  padding: 25px; 
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.09);
  text-align: center; 
  transition: all 0.4s ease;
}

.dash-card:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 28px 65px rgba(0,0,0,0.18); 
}

.dash-card h3 { 
  font-size: 19px; 
  margin-bottom: 18px; 
  font-weight: 600; 
}

.big-number { 
  font-size: 64px; 
  font-weight: 800; 
  margin: 16px 0; 
  line-height: 1; 
}

.progress-bar { 
  height: 13px; 
  background: #f0f0f0; 
  border-radius: 10px; 
  overflow: hidden; 
  margin: 15px 0; 
}

.progress-bar > div { 
  height: 100%; 
  width: 75%; 
  background: linear-gradient(90deg, #8c7473, #a1887f); 
  border-radius: 10px; 
  transition: width 2s ease; 
}

.circle-progress { 
  width: 150px; 
  height: 150px;
  margin: 10px auto 0 auto;  
  position: relative; 
}

.circle-progress svg { 
  width: 100%; 
  height: 100%; 
  transform: rotate(-90deg); 
}

.circle-progress circle { 
  fill: none; 
  stroke-width: 11; 
  stroke-linecap: round; 
}

.circle-progress circle:first-child { 
  stroke-width: 5;  
  stroke: #eee; 
}

.circle-progress circle:last-child {  
  stroke-width: 5; 
  stroke-dasharray: 75 100; 
  transition: stroke-dasharray 2.5s ease-in-out; 
}

.circle-progress span { 
  position: absolute; 
  inset: 0; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  font-weight: 800; 
  font-size: 42px; 
  color: #5a4241; 
}

.circle-progress span small { 
  font-size: 14px; 
  color: #8c7473; 
  margin-top: 4px; 
  font-weight: 500; 
}

.logout-btn {
  margin-top: 40px; 
  padding: 18px 70px;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white; 
  border: none; 
  border-radius: 60px;
  font-size: 20px; 
  font-weight: bold; 
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(231,76,60,0.5); 
  transition: all 0.4s ease;
}

.logout-btn:hover { 
  transform: translateY(-7px) scale(1.04); 
  box-shadow: 0 22px 55px rgba(231,76,60,0.6); 
}

@media (max-width: 768px) {
  .profile-avatar { 
    width: 130px; 
    height: 130px; 
  }
  .edit-icon { 
    width: 36px; 
    height: 36px; 
    font-size: 15px; 
  }
  #userNameDisplay { 
    font-size: 30px; 
  }
  .dash-card { 
    flex: 1 1 100%; 
    max-width: 100%; 
    padding: 20px; 
    margin-bottom: 20px; 
  }
  .big-number { 
    font-size: 56px; 
  }
  .logout-btn { 
    padding: 16px 50px; 
    font-size: 18px; 
  }
}

/* ==================== FLOATING SETTINGS ==================== */
.floating-settings {
  position: fixed;
  left: -28px;
  bottom: 90px;
  z-index: 9999;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-settings:hover,
.floating-settings.active {
  left: 15px;
}

.settings-trigger {
  width: 62px;
  height: 62px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 2.5px solid rgba(161, 136, 127, 0.35);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  transition: all 0.5s ease;
  position: relative;
}

.settings-trigger:hover {
  background: rgba(161, 136, 127, 0.22);
  border-color: rgba(161, 136, 127, 0.65);
  transform: scale(1.12);
}

.floating-settings.active .settings-trigger {
  animation: settings-pulse 2s infinite;
}

@keyframes settings-pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(161,136,127,0.3); }
  50% { box-shadow: 0 12px 50px rgba(161,136,127,0.5); }
}

.settings-circle {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2.5px solid #a1887f;
  color: #a1887f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.floating-settings.active .settings-circle {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.floating-settings .settings-circle:nth-child(2) { 
  top: -78px;  
  left: 5px;   
  transition-delay: 0.15s; 
}

.floating-settings .settings-circle:nth-child(3) { 
  top: -38px;  
  right: -58px; 
  transition-delay: 0.25s; 
}

.floating-settings .settings-circle:nth-child(4) { 
  bottom: -28px; 
  right: -65px; 
  transition-delay: 0.35s; 
}

.floating-settings .settings-circle:nth-child(5) { 
  bottom: -62px; 
  left: -38px; 
  transition-delay: 0.45s; 
}

.floating-settings .settings-circle:nth-child(6) { 
  bottom: -92px; 
  left: 5px;   
  transition-delay: 0.55s; 
}

.settings-circle:hover {
  background: #a1887f;
  color: white;
  transform: scale(1.25);
  box-shadow: 0 15px 40px rgba(161,136,127,0.4);
}

.settings-circle.active {
  background: #a1887f;
  color: white;
  border-color: #fff;
}

/* ==================== THEME MODES ==================== */
body.dark-mode {
  background: #0a0a0a;
  color: #e0e0e0;
}

body.dark-mode .dash-card,
body.dark-mode .modal-content,
body.dark-mode header,
body.dark-mode section {
  background: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #333 !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7) !important;
}

body.dark-mode .settings-trigger {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(161,136,127,0.4) !important;
}

body.dark-mode .settings-circle {
  background: rgba(40,40,40,0.95) !important;
  color: #a1887f !important;
  border-color: #a1887f !important;
}

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast *,
body.high-contrast .dash-card,
body.high-contrast .modal-content,
body.high-contrast header {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast .settings-trigger,
body.high-contrast .settings-circle {
  background: rgba(255,255,255,0.1) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* ==================== باقي الأكواد الإضافية (بدون حذف) ==================== */
#admin-dashboard {
  display: none !important;
}

/* باقي الأنماط الإضافية التي كانت موجودة */
.single-post {
  display: none;
  padding: 80px 0;
  min-height: 100vh;
  background: #fff;
}

.single-post.active {
  display: block;
}

.single-post img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 40px;
  max-height: 550px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.back-btn {
  background: #1e3a5f;
  color: white;
  font-weight: bold;
  margin-bottom: 30px;
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #e8b923;
  color: #1e3a5f;
  transform: translateX(-5px);
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 40px 15px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .post {
    min-height: auto;
  }
  
  .post img {
    height: 240px;
  }
  
  .post-content {
    padding: 25px;
  }
  
  .post h3 {
    font-size: 1.4rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .blog-section {
    padding: 30px 10px;
  }
  
  .grid {
    gap: 20px;
  }
  
  .post img {
    height: 200px;
  }
  
  .post-content {
    padding: 20px;
  }
  
  .post h3 {
    font-size: 1.3rem;
  }
  
  .post p {
    font-size: 1rem;
  }
}
/* ==================== MENTAL HEALTH AI CHAT ==================== */
.chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 12px;
  padding: 15px;
  background-color: #ffffff;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.chat-messages {
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 5px;
  scroll-behavior: smooth;
}

.chat-message {
  padding: 10px 16px;
  border-radius: 20px;
  max-width: 75%;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.3s forwards;
}

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

.chat-message.user {
  background: #e8f4e8;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chat-message.bot {
  background: #f0e6e0;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chat-input-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.chat-box input {
  padding: 12px 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  flex: 1;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.chat-box input:focus {
  border-color: #8c7473;
}

.chat-box button {
  padding: 12px 18px;
  border: none;
  background-color: #8c7473;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.chat-box button:hover {
  background-color: #5a4241;
  transform: scale(1.05);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .hero {
    padding-left: 80px;
  }
  
  .hero-content {
    max-width: 400px;
  }
  
  .holistic-text {
    font-size: 35px;
    line-height: 45px;
  }
}

@media (max-width: 992px) {
  .hero {
    padding-left: 40px;
    justify-content: center;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
    max-width: 500px;
  }
  
  .holistic-text {
    font-size: 32px;
    line-height: 42px;
  }
  
  .blog-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    order: 2;
    margin-top: 40px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 70px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .hero {
    padding-left: 20px;
    padding-right: 20px;
    height: 80vh;
  }
  
  .holistic-text {
    font-size: 28px;
    line-height: 38px;
  }
  
  .read-more-btn {
    padding: 14px 40px;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .contact-form h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 70vh;
  }
  
  .holistic-text {
    font-size: 24px;
    line-height: 34px;
  }
  
  .read-more-btn {
    padding: 12px 35px;
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 14px 40px !important;
  }
  
  .page-header {
    padding: 80px 20px 40px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .service-card h3 {
    font-size: 1.5rem;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* ==================== PRINT STYLES ==================== */
@media print {
  .floating-settings,
  .menu-icon,
  .search-container,
  .play-btn,
  .modal,
  .login-btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero {
    height: auto;
    padding: 50px 20px;
  }
  
  .hero-bg {
    display: none;
  }
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification.success {
    background: rgba(140, 116, 115, 0.95);
    color: white;
}

.notification.error {
    background: rgba(231, 76, 60, 0.95);
    color: white;
}

.notification.warning {
    background: rgba(161, 136, 127, 0.95);
    color: white;
}

.notification.info {
    background: rgba(90, 66, 65, 0.95);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 18px;
    font-weight: bold;
}

.notification-message {
    flex: 1;
    font-size: 14px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Mobile notifications */
@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
        top: 10px;
    }
}
/* ===================== SERVICES BLOCKS ===================== */
.service-block {
  display: block;
  padding: 120px 0;
  background: #f9f6f1;
}

/* ================= CONTAINER ================= */

.service-container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* ================= IMAGE FIX + SHINE ================= */

/* الكونتينر هو اللي بياخد الظل */
.service-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);

  /* ❗ مهم جدًا */
  padding: 0;
  margin: 0;
  line-height: 0;
}

/* الصورة نفسها */
.service-image img {
  display: block;          /* يشيل الفراغ */
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 14px;
}

/* ================= AUTO SHINE EFFECT ================= */

.service-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;

  animation: shine 3.5s ease-in-out infinite;
}

/* ================= CONTENT ================= */

.service-content {
  position: relative;
  z-index: 3;
}

.service-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 10px;
  color: #5a4241;
}

.service-subtitle {
  font-size: 16px;
  color: #8c7473;
  margin-bottom: 35px;
  max-width: 520px;
}

/* ================= GRID ================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ================= CARDS ================= */

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #5a4241;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
  cursor: default;
}

.service-card i {
  font-size: 22px;
  color: #8c7473;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  background: #f3ece6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .service-container {
    grid-template-columns: 1fr;
  }

  .service-image img {
    height: 420px;
  }

  .service-content h2 {
    font-size: 36px;
  }

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

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

  .service-content h2 {
    font-size: 30px;
  }
}


/* ===================== END SERVICES ===================== *//* ==================== SERVICE BLOCKS ==================== */
.service-block {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.service-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.service-image {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    min-width: 300px;
}

.service-content h2 {
    font-size: 3rem;
    color: #5a4241;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.service-subtitle {
    font-size: 1.2rem;
    color: #8c7473;
    line-height: 1.6;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #8c7473;
}

.service-card i {
    font-size: 2rem;
    color: #8c7473;
    margin-bottom: 10px;
    display: block;
}

/* Additional Features Sections */
.additional-features,
.tools-section,
.programs-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.additional-features h3,
.tools-section h3,
.programs-section h3 {
    font-size: 2rem;
    color: #5a4241;
    margin-bottom: 30px;
    text-align: center;
}

.features-grid,
.tools-grid,
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card,
.tool-card,
.program-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover,
.tool-card:hover,
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-card i,
.tool-card i,
.program-card i {
    font-size: 2.5rem;
    color: #8c7473;
    margin-bottom: 15px;
}

.feature-card h4,
.tool-card h4,
.program-card h4 {
    font-size: 1.3rem;
    color: #5a4241;
    margin-bottom: 10px;
}

.feature-card p,
.tool-card p,
.program-card p {
    color: #8c7473;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-container {
        flex-direction: column;
        text-align: center;
    }
    
    .service-image,
    .service-content {
        width: 100%;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-block {
        padding: 60px 5%;
    }
    
    .service-content h2 {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .tools-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .service-content h2 {
        font-size: 2rem;
    }
    
    .service-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 15px;
    }
}
 /* Additional CSS for the Services Section in Home Page */
        .services-home-section {
            padding: 80px 20px;
            background: #f8f9fa;
        }
        
      .services-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .services-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid-home {
        grid-template-columns: 1fr;
    }
}
        
        .service-card-home {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            text-align: center;
        }
        
        .service-card-home:hover {
            transform: translateY(-10px);
        }
        
        .service-icon-home {
            font-size: 48px;
            color: #8c7473;
            margin-bottom: 20px;
        }
        
        .service-card-home h3 {
            color: #5a4241;
            margin-bottom: 15px;
            font-size: 22px;
        }
        
        .service-card-home p {
            color:#8c7473;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        
        .service-link-home {
            color: #8c7473;
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .service-link-home:hover {
            color:#5a4241;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .section-header h1 {
            color: #5a4241;
            margin: 20px 0;
            font-size: 36px;
        }
        
        .section-desc {
            color: #8c7473;
            font-size: 18px;
            max-width: 700px;
            margin: 0 auto;
        }/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    
    nav.active {
        display: flex;
    }
    
    .menu-icon {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .mh-services-grid,
    .ph-services-grid,
    .sl-services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid-home,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-cards {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-section {
        flex-direction: column;
    }
    
    .physio-section .container {
        flex-direction: column;
    }
    
    .core-section .container {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .mh-services-grid,
    .ph-services-grid,
    .sl-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid-home,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ==================== ADMIN DASHBOARD STYLES ==================== */

    /* تنسيقات الصفحة الأساسية */
    .service-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 40px;
    }
    
    .service-card {
        background: white;
        border-radius: 12px;
        padding: 25px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 2px solid transparent;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border-color: #8c7473;
    }
    
    .service-card i {
        font-size: 32px;
        color: #8c7473;
        margin-bottom: 15px;
        display: block;
    }
    
    .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            color: #8c7473;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
               z-index: 1001; 
            transition: all 0.3s;
        }

        .close-btn:hover {
            background: #f0f0f0;
            color: #5a4241;
        }
    /* تنسيقات Modal */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        z-index: 1000;
        animation: fadeIn 0.3s;
    }
    
    .modal-content {
        background: white;
        margin: 5% auto;
        padding: 30px;
        border-radius: 15px;
        width: 90%;
        max-width: 800px;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 1000;

        position: relative;
        animation: slideUp 0.3s;
    }
    
    
    /* تنسيقات المحتوى داخل Modal */
    #modalBody {
        margin-top: 20px;
    }
    
    .modal-section {
        display: none;
    }
    
    .modal-section.active {
        display: block;
        animation: fadeIn 0.5s;
    }
    
    /* تنسيقات المكونات داخل الخدمات */
    .flip-card {
        background-color: transparent;
        width: 200px;
        height: 100px;
        perspective: 1000px;
        margin: 10px;
        display: inline-block;
    }
    
    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.6s;
        transform-style: preserve-3d;
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
        border-radius: 8px;
    }
    
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
    
    .flip-card-front, .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .flip-card-front {
        background-color: #f0f8ff;
        color: #5a4241;
    }
    
    .flip-card-back {
        background-color: #8c7473;
        color: white;
        transform: rotateY(180deg);
        padding: 10px;
    }
    
    .mood-btn {
        font-size: 40px;
        background: #f9f9f9;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin: 10px;
        cursor: pointer;
        transition: transform 0.3s, background 0.3s;
        border: 2px solid #ddd;
    }
    
    .mood-btn:hover {
        transform: scale(1.1);
        background: #e8f5e8;
    }
    
    .video-card {
        width: 180px;
        height: 180px;
        background: #f0f8ff;
        margin: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 12px;
        font-weight: bold;
        transition: all 0.3s;
        border: 2px solid #ddd;
    }
    
    .video-card:hover {
        transform: scale(1.05);
        border-color: #8c7473;
    }
    
    .video-card.locked {
        opacity: 0.6;
        cursor: not-allowed;
        position: relative;
    }
    
    .video-card.locked::after {
        content: '🔒';
        font-size: 30px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .emergency-card {
        background: #ffebee;
        border: 2px solid #d32f2f;
        border-radius: 12px;
        padding: 25px;
        margin: 20px 0;
    }
    
    .test-question {
        margin: 20px 0;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 8px;
        animation: fadeIn 0.5s;
    }
    
    /* أنيميشن */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes slideUp {
        from { transform: translateY(50px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    /* تنسيقات أخرى */
    .chat-messages {
        height: 300px;
        overflow-y: auto;
        border: 1px solid #ddd;
        padding: 15px;
        margin: 15px 0;
        border-radius: 8px;
        background: #fafafa;
    }
    
    .todo-list {
        list-style: none;
        padding: 0;
    }
    
    .todo-list li {
        padding: 10px;
        margin: 5px 0;
        background: #e8f5e8;
        border-radius: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .timer-display {
        font-size: 48px;
        font-weight: bold;
        color: #8c7473;
        margin: 20px 0;
    }
    /*===========Physical Health Services Styles===========*/
     .service-detail-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
    }
    
    .modal-content {
        background: white;
        border-radius: 16px;
        max-width: 1000px;
        margin: 40px auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: modalFadeIn 0.3s ease-out;
    }
    
    @keyframes modalFadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .modal-header {
        background: linear-gradient(135deg, #8c7473, #5a4241);
        color: white;
        padding: 20px 30px;
        border-radius: 16px 16px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .modal-header h2 {
        margin: 0;
        color: white;
    }
    
    .close-modal {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }
    
    .close-modal:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .modal-body {
        padding: 30px;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* ستايلات التفاعل من الشفرة الثانية */
    .detail-section {
        margin-bottom: 40px;
    }
    
    .detail-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }
    
    .detail-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        border: 2px solid transparent;
    }
    
    .detail-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border-color: #8c7473;
    }
    
    .detail-card.active {
        border-color: #8c7473;
    }
    
    .card-header {
        background: #8c7473;
        color: white;
        padding: 20px;
        text-align: center;
        font-size: 1.2em;
        font-weight: bold;
    }
    
    .card-content {
        padding: 20px;
        display: none;
    }
    
    .detail-card.active .card-content {
        display: block;
    }
    
    .detail-card img, .detail-card gif {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-top: 10px;
        max-height: 200px;
        object-fit: cover;
    }
    
    .warning {
        text-align: center;
        color: #e74c3c;
        font-weight: bold;
        font-size: 1.1em;
        margin-bottom: 20px;
        padding: 15px;
        background: #ffeaea;
        border-radius: 8px;
        border-left: 4px solid #e74c3c;
    }
    
    .progress-bar {
        height: 10px;
        background: #ecf0f1;
        border-radius: 5px;
        overflow: hidden;
        margin: 20px 0;
    }
    
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #8c7473, #a1887f);
        width: 0%;
        transition: width 0.5s ease;
    }
    
    .checkbox-list {
        list-style: none;
        padding: 0;
    }
    
    .checkbox-list li {
        margin: 15px 0;
        font-size: 1.1em;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        display: flex;
        align-items: center;
    }
    
    .checkbox-list input[type="checkbox"] {
        margin-right: 15px;
        width: 20px;
        height: 20px;
    }
    
    .posture-grid {
        display: flex;
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
        margin: 20px 0;
    }
    
    .posture-card {
        text-align: center;
        max-width: 300px;
    }
    
    .posture-card img {
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: opacity 0.3s;
    }
    
    .posture-card:hover .wrong {
        opacity: 1;
    }
    
    .posture-card:hover .correct {
        opacity: 0;
    }
    
    .wrong { opacity: 0; position: absolute; }
    .correct { opacity: 1; }
    
    .posture-wrapper {
        position: relative;
        display: inline-block;
    }
    
    .timer-display {
        font-size: 2em;
        text-align: center;
        margin: 20px 0;
        color: #8c7473;
        padding: 10px;
        background: #f0f7ff;
        border-radius: 10px;
        border: 2px solid #8c7473;
    }
    
    .detail-button {
        display: block;
        margin: 20px auto;
        padding: 12px 24px;
        background: linear-gradient(135deg, #8c7473, #5a4241);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1.1em;
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .detail-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(140, 116, 115, 0.4);
    }
    
    .reps {
        text-align: center;
        font-size: 2em;
        color: #8c7473;
        font-weight: bold;
    }
    
    .completion {
        text-align: center;
        font-size: 1.5em;
        color: #8c7473;
        display: none;
        margin: 20px 0;
        padding: 20px;
        background: #e8f6ef;
        border-radius: 10px;
        border: 2px solid #8c7473;
    }
    
    .big-card {
        padding: 30px;
        text-align: center;
        font-size: 1.3em;
        background: #f8f9fa;
        border-radius: 12px;
        margin: 10px 0;
    }
    
    input[type="range"] {
        width: 100%;
        margin: 10px 0;
    }
    
    .assessment-result {
        margin-top: 20px;
        padding: 15px;
        background: #e8f4fc;
        border-radius: 8px;
        border-left: 4px solid #8c7473;
        display: none;
    }

/* ==================== SIGN LANGUAGE & ACCESSIBILITY PAGE ==================== */
#signLanguageAccessPage {
    background: linear-gradient(135deg, #fff 0%, #ffffff 100%);
    min-height: 100vh;
}

#signLanguageAccessPage .page-header {
    background: linear-gradient(135deg, #8c7473 0%, #6d4f3e 100%);
    color: #fff;
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#signLanguageAccessPage .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('assets/images/signlanguage.jpeg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

#signLanguageAccessPage .page-header h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

#signLanguageAccessPage .page-header h1 i {
    color: #d4a574;
}

#signLanguageAccessPage .page-header p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 20px auto 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Service Block - نفس الستايل الموجود في الصفحات الأخرى لكن بتعديل لوني خفيف */
#signLanguageAccessPage .service-block {
    padding: 100px 5%;
    background: transparent;
}

#signLanguageAccessPage .service-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#signLanguageAccessPage .service-image {
    flex: 1;
    min-width: 320px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(90, 66, 65, 0.18);
    position: relative;
}

#signLanguageAccessPage .service-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#signLanguageAccessPage .service-image:hover img {
    transform: scale(1.08);
}

/* Shine Effect على الصورة */
#signLanguageAccessPage .service-image::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: shine 4s linear infinite;
    z-index: 2;
}

@keyframes shine {
    0% { left: -80%; }
    100% { left: 120%; }
}

#signLanguageAccessPage .service-content {
    flex: 1;
    min-width: 320px;
}

#signLanguageAccessPage .service-content h2 {
    font-size: 3.2rem;
    color: #5a4241;
    margin-bottom: 20px;
    line-height: 1.2;
}

#signLanguageAccessPage .service-subtitle {
    font-size: 1.25rem;
    color: #8c7473;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 600px;
}

#signLanguageAccessPage .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

#signLanguageAccessPage .service-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(90, 66, 65, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

#signLanguageAccessPage .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 55px rgba(90, 66, 65, 0.18);
    border-color: #8c7473;
    background: #fdf8f5;
}

#signLanguageAccessPage .service-card i {
    font-size: 2.8rem;
    color: #8c7473;
    margin-bottom: 18px;
    transition: color 0.4s ease;
}

#signLanguageAccessPage .service-card:hover i {
    color: #5a4241;
}

#signLanguageAccessPage .service-card:hover {
    color: #5a4241;
}

/* CTA Button */
#signLanguageAccessPage .cta-button {
    margin-top: 40px;
    display: inline-block;
}

/* Modal للتفاصيل (نفس الستايل الموجود) */
#signLanguageAccessPage .service-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

#signLanguageAccessPage .service-detail-modal.active {
    display: flex;
}

#signLanguageAccessPage .service-detail-modal .modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

#signLanguageAccessPage .service-detail-modal .modal-header {
    background: linear-gradient(135deg, #8c7473, #6d4f3e);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
}

#signLanguageAccessPage .service-detail-modal .modal-body {
    padding: 40px;
    color: #444;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 992px) {
    #signLanguageAccessPage .service-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    #signLanguageAccessPage .service-image img {
        height: 460px;
    }

    #signLanguageAccessPage .service-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #signLanguageAccessPage .page-header h1 {
        font-size: 3rem;
    }

    #signLanguageAccessPage .service-content h2 {
        font-size: 2.4rem;
    }

    #signLanguageAccessPage .service-grid {
        grid-template-columns: 1fr;
    }

    #signLanguageAccessPage .service-image img {
        height: 380px;
    }
}

@media (max-width: 576px) {
    #signLanguageAccessPage .page-header {
        padding: 100px 20px 60px;
    }

    #signLanguageAccessPage .page-header h1 {
        font-size: 2.5rem;
    }

    #signLanguageAccessPage .service-content h2 {
        font-size: 2.1rem;
    }
}

/* ==================== PHYSICAL HEALTH & REHABILITATION PAGE ==================== */
#physicalHealthRehabPage {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
}

#physicalHealthRehabPage .page-header {
    background: linear-gradient(135deg, #8c7473 0%, #6d4f3e 100%);
    color: #fff;
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#physicalHealthRehabPage .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('assets/images/image65.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

#physicalHealthRehabPage .page-header h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

#physicalHealthRehabPage .page-header h1 i {
    color: #d4a574;
}

#physicalHealthRehabPage .page-header p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 20px auto 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Service Block */
#physicalHealthRehabPage .service-block {
    padding: 100px 5%;
    background: transparent;
}

#physicalHealthRehabPage .service-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#physicalHealthRehabPage .service-image {
    flex: 1;
    min-width: 320px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(90, 66, 65, 0.18);
    position: relative;
}

#physicalHealthRehabPage .service-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#physicalHealthRehabPage .service-image:hover img {
    transform: scale(1.08);
}

/* Shine Effect */
#physicalHealthRehabPage .service-image::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: shine 4s linear infinite;
    z-index: 2;
}

@keyframes shine {
    0% { left: -80%; }
    100% { left: 120%; }
}

#physicalHealthRehabPage .service-content {
    flex: 1;
    min-width: 320px;
}

#physicalHealthRehabPage .service-content h2 {
    font-size: 3.2rem;
    color: #5a4241;
    margin-bottom: 20px;
    line-height: 1.2;
}

#physicalHealthRehabPage .service-subtitle {
    font-size: 1.25rem;
    color: #8c7473;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 600px;
}

#physicalHealthRehabPage .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

#physicalHealthRehabPage .service-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(90, 66, 65, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

#physicalHealthRehabPage .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 55px rgba(90, 66, 65, 0.18);
    border-color: #8c7473;
    background: #f8fdf8;
}

#physicalHealthRehabPage .service-card i {
    font-size: 2.8rem;
    color: #8c7473;
    margin-bottom: 18px;
    transition: color 0.4s ease;
}

#physicalHealthRehabPage .service-card:hover i {
    color: #5a4241;
}

/* CTA Button */
#physicalHealthRehabPage .cta-button {
    margin-top: 40px;
    display: inline-block;
}

/* Modal للتفاصيل (نفس الستايل) */
#physicalHealthRehabPage .service-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

#physicalHealthRehabPage .service-detail-modal.active {
    display: flex;
}

#physicalHealthRehabPage .service-detail-modal .modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

#physicalHealthRehabPage .service-detail-modal .modal-header {
    background: linear-gradient(135deg, #8c7473, #6d4f3e);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
}

#physicalHealthRehabPage .service-detail-modal .modal-body {
    padding: 40px;
    color: #444;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 992px) {
    #physicalHealthRehabPage .service-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    #physicalHealthRehabPage .service-image img {
        height: 460px;
    }

    #physicalHealthRehabPage .service-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #physicalHealthRehabPage .page-header h1 {
        font-size: 3rem;
    }

    #physicalHealthRehabPage .service-content h2 {
        font-size: 2.4rem;
    }

    #physicalHealthRehabPage .service-grid {
        grid-template-columns: 1fr;
    }

    #physicalHealthRehabPage .service-image img {
        height: 380px;
    }
}

@media (max-width: 576px) {
    #physicalHealthRehabPage .page-header {
        padding: 100px 20px 60px;
    }

    #physicalHealthRehabPage .page-header h1 {
        font-size: 2.5rem;
    }

    #physicalHealthRehabPage .service-content h2 {
        font-size: 2.1rem;
    }
}
/* ==================== MENTAL HEALTH CARE PAGE ==================== */
#mentalHealthCarePage {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
}

#mentalHealthCarePage .page-header {
    background: linear-gradient(135deg, #8c7473 0%, #6d4f3e 100%);
    color: #fff;
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#mentalHealthCarePage .page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('assets/images/img15.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

#mentalHealthCarePage .page-header h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

#mentalHealthCarePage .page-header h1 i {
    color: #d4a574;
}

#mentalHealthCarePage .page-header p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 20px auto 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Service Block */
#mentalHealthCarePage .service-block {
    padding: 100px 5%;
    background: transparent;
}

#mentalHealthCarePage .service-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#mentalHealthCarePage .service-image {
    flex: 1;
    min-width: 320px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(90, 66, 65, 0.18);
    position: relative;
}

#mentalHealthCarePage .service-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#mentalHealthCarePage .service-image:hover img {
    transform: scale(1.08);
}

/* Shine Effect */
#mentalHealthCarePage .service-image::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: shine 4s linear infinite;
    z-index: 2;
}

@keyframes shine {
    0% { left: -80%; }
    100% { left: 120%; }
}

#mentalHealthCarePage .service-content {
    flex: 1;
    min-width: 320px;
}

#mentalHealthCarePage .service-content h2 {
    font-size: 3.2rem;
    color: #5a4241;
    margin-bottom: 20px;
    line-height: 1.2;
}

#mentalHealthCarePage .service-subtitle {
    font-size: 1.25rem;
    color: #8c7473;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 600px;
}

#mentalHealthCarePage .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

#mentalHealthCarePage .service-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(90, 66, 65, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

#mentalHealthCarePage .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 55px rgba(90, 66, 65, 0.18);
    border-color: #8c7473;
    background: #f0f4ff;
}

#mentalHealthCarePage .service-card i {
    font-size: 2.8rem;
    color: #8c7473;
    margin-bottom: 18px;
    transition: color 0.4s ease;
}

#mentalHealthCarePage .service-card:hover i {
    color: #5a4241;
}

/* CTA Button */
#mentalHealthCarePage .cta-button {
    margin-top: 40px;
    display: inline-block;
}

/* Modal للتفاصيل */
#mentalHealthCarePage .service-detail-modal,
#mentalHealthCarePage #serviceModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

#mentalHealthCarePage .service-detail-modal.active,
#mentalHealthCarePage #serviceModal.active {
    display: flex;
}

#mentalHealthCarePage .service-detail-modal .modal-content,
#mentalHealthCarePage #serviceModal .modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

#mentalHealthCarePage .service-detail-modal .modal-header,
#mentalHealthCarePage #serviceModal .modal-header {
    background: linear-gradient(135deg, #8c7473, #6d4f3e);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
}

#mentalHealthCarePage .service-detail-modal .modal-body,
#mentalHealthCarePage #modalBody {
    padding: 40px;
    color: #444;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 992px) {
    #mentalHealthCarePage .service-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    #mentalHealthCarePage .service-image img {
        height: 460px;
    }

    #mentalHealthCarePage .service-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #mentalHealthCarePage .page-header h1 {
        font-size: 3rem;
    }

    #mentalHealthCarePage .service-content h2 {
        font-size: 2.4rem;
    }

    #mentalHealthCarePage .service-grid {
        grid-template-columns: 1fr;
    }

    #mentalHealthCarePage .service-image img {
        height: 380px;
    }
}

@media (max-width: 576px) {
    #mentalHealthCarePage .page-header {
        padding: 100px 20px 60px;
    }

    #mentalHealthCarePage .page-header h1 {
        font-size: 2.5rem;
    }

    #mentalHealthCarePage .service-content h2 {
        font-size: 2.1rem;
    }
}
/* ==================== SERVICE GRID - 3 CARDS SIDE BY SIDE ==================== */
/* الكروت تبقى 3 جنب بعض على الديسكتوب واللابتوب الكبير */
#mentalHealthCarePage .service-grid,
#physicalHealthRehabPage .service-grid,
#signLanguageAccessPage .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* مسافة مريحة بين الكروت */
}

/* على شاشات التابلت (من 768px لـ 1024px) نخليها 3 برضو لو المساحة تكفي */
@media (min-width: 769px) and (max-width: 1200px) {
    #mentalHealthCarePage .service-grid,
    #physicalHealthRehabPage .service-grid,
    #signLanguageAccessPage .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* على شاشات التابلت الصغيرة والموبايل الكبير (أقل من 768px) نخليها 2 */
@media (max-width: 768px) {
    #mentalHealthCarePage .service-grid,
    #physicalHealthRehabPage .service-grid,
    #signLanguageAccessPage .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* على الموبايل الصغير (أقل من 560px) نخليها عمود واحد عشان الراحة */
@media (max-width: 560px) {
    #mentalHealthCarePage .service-grid,
    #physicalHealthRehabPage .service-grid,
    #signLanguageAccessPage .service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* نزود حجم الكارت شوية عشان يبقى مريح على الموبايل */
    #mentalHealthCarePage .service-card,
    #physicalHealthRehabPage .service-card,
    #signLanguageAccessPage .service-card {
        padding: 32px 24px;
    }

    #mentalHealthCarePage .service-card i,
    #physicalHealthRehabPage .service-card i,
    #signLanguageAccessPage .service-card i {
        font-size: 2.5rem;
    }
}
.sign-language-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    margin: 8vh auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
}

.service-detail-content h3 {
    color: #5a4241;
    margin-bottom: 15px;
}

video {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
}

.action-btn {
    background: #5a4241;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
}

.action-btn.secondary {
    background: transparent;
    border: 2px solid #5a4241;
    color: #5a4241;
}

.team-info {
    background: #f9f7f5;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #5a4241;
}

.team-info h3 {
    margin: 0;
}

.team-info .role {
    font-weight: bold;
    margin: 8px 0;
}

.team-info .location {
    font-size: 14px;
    color: #555;
}

.cta-button {
    display: inline-block;
    margin-top: 15px;
    background: #5a4241;
    color: white;
    padding: 12px 22px;
    border-radius: 25px;
    text-decoration: none;
}
