/*************************/
/* HACEN SAMRA Font */
/*************************/
@font-face {
  font-family: 'HACEN SAMRA';
  src: url('../fonts/HACEN SAMRA LT.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*************************/
/* Tajawal Font Family */
/*************************/
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal/Tajawal-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal/Tajawal-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/*************************/
/* Montserrat Font */
/*************************/
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-bold-webfont.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* تعريف إضافي لـ montserratlight إذا كان لديك ملف منفصل */
@font-face {
  font-family: 'montserratlight';
  src: url('../fonts/montserrat-light-webfont.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/*************************/
/* تطبيق الخطوط */
/*************************/
body {
  font-family: 'Tajawal', 'Montserrat', sans-serif;
}

/* العناوين الرئيسية والقوائم تستخدم فونت حسن سمره */
h1, h2, h3, h4, h5, h6,
.navbar-nav .nav-link,
.navbar-nav .nav-item,
.page-title,
.vm-title,
.section-title,
.small-title,
.display-5,
.display-6 {
  font-family: 'HACEN SAMRA', 'Tajawal', sans-serif;
  font-weight: 700;
}

/* العناوين الداخلية (مثل عناوين الكروت والأسئلة) تستخدم فونت Tajawal */
.card-title,
.accordion-button,
.news-card .card-title a {
  font-family: 'Tajawal', sans-serif;
}

/* أنماط صفحة المؤسسات */
.organization-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.organization-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border-color: #007bff;
}

.organization-card .card-img-top {
  transition: all 0.3s ease;
}

.organization-card:hover .card-img-top {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
}

.organization-card .btn {
  transition: all 0.3s ease;
}

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

/* أنماط كروت الرؤية والرسالة والأهداف */
.vision-card,
.mission-card,
.goals-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.vision-card:hover,
.mission-card:hover,
.goals-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #dee2e6;
  transition: all 0.3s ease;
}

.vision-card:hover .icon-circle {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #007bff;
  transform: scale(1.1);
}

.mission-card:hover .icon-circle {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  border-color: #28a745;
  transform: scale(1.1);
}

.goals-card:hover .icon-circle {
  background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
  border-color: #ffc107;
  transform: scale(1.1);
}

.icon-circle i {
  font-size: 32px;
  transition: all 0.3s ease;
}

.vision-card:hover .icon-circle i {
  color: #007bff !important;
}

.mission-card:hover .icon-circle i {
  color: #28a745 !important;
}

.goals-card:hover .icon-circle i {
  color: #ffc107 !important;
}

/* أنماط قسم الإحصائيات */
.statistics-section {
  position: relative;
  overflow: hidden;
}

.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.stat-card {
  padding: 2rem 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.stat-icon i {
  font-size: 36px;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon i {
  transform: scale(1.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ضمان أن العناوين في قسم الإحصائيات تكون بيضاء */
.statistics-section h3,
.statistics-section p {
  color: #ffffff !important;
}

/* استثناء: اسم المركز في صفحة المراكز المعتمدة يستخدم فونت عادي */
.card-header h5 {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 600;
}



/* النصوص العادية تستخدم فونت Tajawal */
p, a, li, span, div {
  font-family: 'Tajawal', sans-serif;
  font-weight: 400; /* يستخدم Tajawal-Regular */
}

.tajawal-example {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}

.tajawal-example .bold {
  font-weight: 700;
}

.tajawal-example .light {
  font-weight: 300;
}

.montserrat-example {
  font-family: 'Montserrat', sans-serif;
  direction: ltr;
}

/*************************/
/* باقي الأنماط */
/*************************/
.navbar-nav .nav-link:hover {
  color: #0095d9 !important;
}

/* توحيد لون وروزن روابط المنيو مثل صفحة عنّا */
.navbar-nav .nav-link {
  color: #ffffff !important; /* نفس لون العنوان في عنا */
  font-weight: 600; /* اتخن شوية */
}

/* تغليب نفس اللون لو في text-primary/active */
.navbar-nav .nav-link.text-primary,
.navbar-nav .nav-link.fw-bold.text-primary,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus {
  color: #ffffff !important;
}

/* لون كحلي عام قابل لإعادة الاستخدام للأيقونات والنصوص */
.text-navy {
  color: #1e3a8a !important;
}

/* توحيد لون العناوين الرئيسية للصفحات كحلي غامق */
.display-5, .display-6,
h2.display-5, h2.display-6,
.text-center h2, .text-center h1 {
  color: #1e3a8a !important; /* كحلي غامق */
  font-weight: 700; /* غامق */
}

/* استثناء العناوين في الكروت والتنبيهات */
.card-title, .alert-heading {
  color: inherit !important;
}

/* عناوين الصفحات العامة */
.page-title {
  color: #1e3a8a !important; /* كحلي غامق */
  font-weight: 700; /* غامق */
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px; /* نفس سمك الخط المطلوب */
  background-color: #0095d9; /* لون الخط السفلي */
  border-radius: 2px;
}

/* تعطيل الخط السفلي لعناوين محددة */
.page-title.no-underline::after {
  display: none;
}

/* تمركز عنوان الصفحة فقط عندما نحتاجه بدون التأثير على بقية المحتوى */
.page-title.no-underline.text-center {
  display: block; /* بدلاً من inline-block */
}

/* زر كحلي للنماذج */
.btn-navy {
  background-color: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #fff !important;
}

.btn-navy:hover {
  background-color: #0095d9 !important;
  border-color: #0095d9 !important;
  color: #fff !important;
}

/* ===== صفحة عنّا ===== */
.about-us-section {
  background-color: #f8f9fa;
}

.about-us-section h6 {
  color: #1e3a8a; /* كحلي */
  font-weight: 700; /* اتخن شوية */
  text-align: center; /* في النص */
  margin-bottom: 30px;
}

.about-us-section .card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.about-us-section .card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.about-us-section .card-title {
  color: #1e3a8a; /* كحلي */
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-size: 1.25rem; /* أصغر شوية */
  display: inline-block; /* علشان عرض العنوان يبقى قد النص بس */
}

.about-us-section .card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0; /* يفضل يمين مع الاتجاه RTL */
  width: 100%; /* خلي الخط قد العنوان في الطول */
  height: 2px; /* أصغر شوية */
  background-color: #0095d9; /* اللون المطلوب */
  border-radius: 2px;
}

.about-us-section .lead,
.about-us-section ul li {
  color: #000; /* نص أسود */
  line-height: 1.6;
  font-weight: 500; /* تخن أقل شوية */
}

.about-us-section .lead {
  font-size: 1rem; /* كانت أكبر في lead، صغرناها */
}

.about-us-section ul li {
  font-size: 0.95rem; /* أصغر سنة للقوائم */
}

.about-us-section ul li i {
  color: #007bff;
}

/* نقاط سهم > لقوائم الأهداف/الإجراءات */
.arrow-list li {
  position: relative;
  padding-right: 18px; /* فراغ قبل السهم في RTL */
  line-height: 1.8;
}

.arrow-list li::before {
  content: '>';
  position: absolute;
  right: 0;
  top: 0;
  color: #1e3a8a; /* كحلي */
  font-weight: 800; /* اتخن */
}

/* ضبط الصور داخل أنصاف الكروت */
.about-us-section .ratio img {
  object-fit: cover;
}

/* ===== صفحة الهوم ===== */
/* رؤية/رسالة نفس تنسيق صفحة عنّا */
.vm-title {
  color: #1e3a8a; /* كحلي */
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-size: 1.25rem; /* أصغر شوية */
}

.vm-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px; /* أصغر شوية */
  background-color: #0095d9; /* اللون المطلوب */
  border-radius: 2px;
}

.vision-mission .lead {
  color: #000; /* أسود */
  font-weight: 500; /* تخن أقل شوية */
  line-height: 1.6;
  font-size: 1rem; /* أصغر شوية */
}

/* ===== صفحة الأسئلة الشائعة ===== */
.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

.accordion-button::after {
  margin-right: auto;
  margin-left: 0;
}

.accordion-body {
  background-color: #fff;
}

/* عند الوقوف على السؤال يصبح لونه كحلي */
.accordion-button:hover {
  color: #1e3a8a;
}



/* تنسيق محتوى الإجابة */
.answer-content {
  line-height: 1.8;
  text-align: justify;
  max-width: 100%;
  word-wrap: break-word;
}

.answer-content p {
  margin-bottom: 0;
}

.answer-content ul {
  margin-bottom: 0;
}

.answer-content li {
  margin-bottom: 1rem;
}

.answer-content .d-flex {
  align-items: flex-start;
}

.answer-content .flex-grow-1 {
  line-height: 1.8;
  text-align: justify;
  max-width: 100%;
  word-wrap: break-word;
}

.answer-content .flex-shrink-0 {
  flex-shrink: 0;
}

/* ===== صفحة المراكز المعتمدة ===== */
/* ألوان التابات في صفحة المراكز المعتمدة */
.nav-tabs {
  border-bottom: 1px solid rgba(30, 58, 138, 0.15);
}

.nav-tabs .nav-link {
  color: #1e3a8a; /* كحلي */
  font-weight: 600;
  border: 1px solid transparent;
}

.nav-tabs .nav-link:hover {
  color: #0095d9; /* نفس لون الخط تحت العنوان */
  border-color: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #fff;
  background-color: #1e3a8a; /* كحلي */
  border-color: #1e3a8a #1e3a8a #1e3a8a;
}

/* كروت الجامعات */
.organization-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.organization-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.organization-card .card-img-top {
  border-bottom: 1px solid #e9ecef;
}

.organization-card .card-title {
  font-size: 1.1rem;
  line-height: 1.3;
}

.organization-card .badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

/* تحسين المسافات في كروت المراكز */
.organization-card .card-img-top {
  padding-bottom: 1rem !important;
  margin-bottom: 0.5rem;
}

.organization-card .card-body {
  padding-top: 1.5rem !important;
}

.organization-card .card-title {
  margin-bottom: 1.5rem !important;
}

.organization-card .card-text {
  margin-bottom: 1.5rem !important;
}

.organization-card .card-text:last-of-type {
  margin-bottom: 2rem !important;
}




/* تفاصيل المراكز */
#centers-org .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

#centers-org .border {
  border-color: #e9ecef !important;
  transition: all 0.3s ease;
}

#centers-org .border:hover {
  border-color: #1e3a8a !important;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

/* صفحة المراكز */
.center-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.center-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.center-card .card-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

.center-card .card-body li {
  border-bottom: 1px solid #f8f9fa;
  padding-bottom: 0.5rem;
}

.center-card .card-body li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.center-card .card-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid #dee2e6;
}

/* ===== صفحة الأخبار ===== */
.news-card {
  transition: transform 0.3s ease;
}

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

.news-card .card-title a {
  color: #2c3e50;
  text-decoration: none;
}

.news-card .card-title a:hover {
  color: #007bff;
}

/* ===== صفحة الاتصال ===== */
.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* تصغير حجم بعض العناوين الرئيسية */
.small-title {
  font-size: 1.5rem !important;
}

.stats-section {
  background-image: url('2.jpg');
  background-color: rgba(0, 0, 0, 0);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  position: relative;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
}

.stat-title {
  font-size: 20px;
  font-weight: 500;
  text-decoration: underline;
  margin-bottom: 10px;
  color: #fff;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

.section-subtitle {
  font-size: 16px;
  color: #ddd;
}

.news-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: none;
  transition: transform 0.3s;
}

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

.news-card .card-img-top {
  width: 100%;
  height: 230px;
  object-fit: cover;
  margin: auto;
}

/* ===== صندوق التاريخ ===== */
.date-box {
  position: absolute;
  bottom: -25px; /* نصه تحت الصورة */
  left: 10px;
  background-color: #1e3a8a; /* اللون الجديد */
  color: #fff;
  padding: 5px;
  border-radius: 6px;
  text-align: center;
  width: 60px; /* أكبر شوية */
  height: 60px; /* أكبر شوية */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.date-box h5 {
  font-size: 18px; /* أكبر */
  font-weight: bold;
  margin: 0;
}

.date-box small {
  font-size: 12px; /* أكبر */
  text-transform: uppercase;
}

   /* منطقة الفوتر */
   .footer-widget-area {
    background-color: #1a365d;
    padding: 50px 0 30px;
}


/* عناصر الفوتر */
.single-footer-widget {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.single-footer-widget h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.single-footer-widget h3:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #0095d9;
}

.single-footer-widget p,
.single-footer-widget span,
.single-footer-widget a {
    color: #e2e8f0;
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
}

.single-footer-widget a:hover {
    color: #0095d9;
    transform: translateX(-5px);
}

.single-footer-widget i {
    margin-left: 8px;
    color: #0095d9;
    width: 20px;
    text-align: center;
}

/* قائمة الروابط */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-list li a {
    color: #e2e8f0;
}

.footer-list li a:hover {
    color: #0095d9;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;  /* Smaller square */
  height: 32px; /* Smaller square */
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #1a365d; /* Black icons */
  font-size: 20px; /* Larger icons */
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.social-icons a:hover {
  background-color: #1a365d; /* Black background on hover */
  color: #ffffff; /* White icons on hover */
  transform: translateY(-2px);
  border-color: #1a365d;
}

/* Remove individual hover colors since you want black/white scheme */
.social-icons a:hover i {
  color: #ffffff !important;
}
.social-icons i {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  margin: 5px;
}
/* خريطة جوجل */
iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 5px;
}

/* فوتر القاع */
.footer-area {
    background-color: #0f2a4a;
    padding: 20px 0;
    font-size: 14px;
}

.footer-area span {
    color: #a0aec0;
}

.column-right {
    text-align: left;
}

/* التجاوب */
@media (max-width: 992px) {
    .col-lg-3, .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .col-md-6, .col-md-7, .col-md-5, .col-lg-3, .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .column-right {
        text-align: right;
        margin-top: 10px;
    }
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.rounded-lg {
    border-radius: 12px;
}
.list-group-numbered {
    list-style-type: none;
    counter-reset: item;
}

    .list-group-numbered > li {
        counter-increment: item;
    }

        .list-group-numbered > li::before {
            content: counter(item) ".";
            margin-right: 0.5rem;
            font-weight: bold;
        }

/* ===== CSS للصفحة الرئيسية ===== */

/* منع انعكاس الصور */
img, svg, * img, * svg {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    scale: 1 !important;
    -webkit-scale: 1 !important;
    -moz-scale: 1 !important;
    -ms-scale: 1 !important;
    -o-scale: 1 !important;
    direction: ltr !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
}

/* تنسيق قسم الإحصائيات */
.statistics-section {
    position: relative;
    overflow: hidden;
}

.stat-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-number::before {
    content: '+';
    color: #fbbf24;
    font-weight: 800;
    margin-right: 5px;
    font-size: 2rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* تنسيق كروت الأخبار */
.news-card {
    transition: transform 0.3s ease;
}

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

.news-card .card-title a {
    color: #2c3e50;
    text-decoration: none;
}

.news-card .card-title a:hover {
    color: #007bff;
}

/* تنسيق الأسئلة الشائعة */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #007bff;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* تنسيق الأسئلة متعددة الأسطر */
.accordion-button {
    text-align: right;
    direction: rtl;
    line-height: 1.5;
    white-space: normal;
    height: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    text-align: right;
    direction: rtl;
}

/* تنسيق النص متعدد الأسطر */
.accordion-button .faq-question-text {
    text-align: right;
    direction: rtl;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* تنسيق الأيقونة */
.accordion-button .fa-question-circle {
    margin-left: 0.5rem;
    margin-right: 0;
    flex-shrink: 0;
}

/* تنسيق كروت الرؤية والرسالة */
.vision-card, .mission-card, .goals-card {
    transition: all 0.3s ease;
}

/* تنسيق كروت المؤسسات */
.organization-card {
    transition: all 0.3s ease;
}

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

/* تنسيق البادج وزر عرض المراكز */
.organization-card .badge {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.organization-card .btn {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* تنسيق كارد المؤسسة */
.organization-card .card-body {
    display: flex;
    flex-direction: column;
}

.organization-card .card-body .badge {
    margin-bottom: 0.75rem;
}

/* تنسيق صف البادج والزر */
.organization-card .badge-btn-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.organization-card .badge-btn-row .badge {
    margin-bottom: 0;
    flex: 1;
}

.organization-card .badge-btn-row .btn {
    flex: 1;
}

/* لون بادج عدد المراكز */
.bg-custom-blue {
    background-color: #0095d9 !important;
    color: white !important;
}

.vision-card:hover, .mission-card:hover, .goals-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.icon-circle i {
    font-size: 2rem;
}

/* تنسيق السلايدر */
.slider-image {
    transition: all 0.3s ease;
}

.slider-image:hover {
    transform: scale(1.02);
}

/* تنسيق الأزرار */
.btn-navy {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
}

.btn-navy:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
}

/* تنسيق العنوان الصغير */
.small-title {
    font-size: 2rem;
    color: #2c3e50;
}

/* تنسيق الخلفية الفاتحة */
.bg-light {
    background-color: #f8f9fa !important;
}

/* تنسيق النماذج */
.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: #1e3a8a;
}

.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

/* تنسيق رسائل الخطأ */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* تأثيرات hover على صور الرؤية والرسالة والأهداف */
.vision-card .image-circle img {
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.vision-card:hover .image-circle img {
    filter: grayscale(0%) sepia(100%) hue-rotate(120deg) saturate(150%);
    transform: scale(1.1);
}

.mission-card .image-circle img {
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.mission-card:hover .image-circle img {
    filter: grayscale(0%) sepia(100%) hue-rotate(30deg) saturate(150%);
    transform: scale(1.1);
}

.goals-card .image-circle img {
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.goals-card:hover .image-circle img {
    filter: grayscale(0%) sepia(100%) hue-rotate(270deg) saturate(150%);
    transform: scale(1.1);
}

/* تأثيرات hover على البطاقات */
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3) !important;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(253, 126, 20, 0.3) !important;
}

.goals-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.3) !important;
}

/* CSS لصفحة الهوم */
.main-slider {
    width: 100% !important;
    height: 400px;
    /* object-fit: contain; */
}

.main-slider img {
    width: auto;
    height: 400px;
    /* object-fit: contain; */
}

/* تحسين مظهر السلايدر */
.carousel {
    /* border-radius: 12px; */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 400px;
    margin: 0;
    padding: 0;
}

.carousel-item {
    height: 400px;
    width: 100%;
}

.carousel-item img {
    width: auto;
    height: 400px;
    /* object-fit: contain; */
    object-position: center;
}

/* إزالة المسافات من السلايدر */
#mainSlider {
    margin: 0 !important;
    padding: 0 !important;
}

#mainSlider .carousel-inner {
    margin: 0 !important;
    padding: 0 !important;
}

#mainSlider .carousel-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* إزالة المسافات من جميع العناصر المحيطة */
.carousel {
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-inner {
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* تحسين السلايدر على الشاشات الصغيرة */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
    
    .carousel-item {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-item {
        height: 250px;
    }
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 20px;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.vision-home-image {
    max-height: 300px;
    object-fit: contain;
}

.vision-image, .mission-image, .goals-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.mission-card {
    animation-delay: 0.2s;
}

.goals-card {
    animation-delay: 0.4s;
}

.statistics-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.statistics-section h2 {
    color: #ffffff !important;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* تحسين العناوين */
.display-5 {
    font-size: 2.5rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.display-6 {
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.small-title {
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

.card-title {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

.stat-number {
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.stat-label {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* ألوان العناوين في قسم الرؤية والرسالة والأهداف */
.vision-card .card-title {
    color: #6c757d !important;
}

.mission-card .card-title {
    color: #6c757d !important;
}

.goals-card .card-title {
    color: #6c757d !important;
}

/* عنوان "عن الوحدة" */
.small-title {
    color: #1e3a8a !important;
}

/* جعل جميع عناصر h5 باللون الأبيض */
h5, .h5 {
    color: #ffffff !important;
}

/* ألوان العناوين في صفحة about */
.about-us-section h6 {
    color: #1e3a8a !important;
}

/* تأكيد تطبيق اللون الكحلي على جميع العناوين */
.vision-card h3,
.mission-card h3,
.goals-card h3,
.about-us-section h4,
.about-us-section h6 {
    color: #1e3a8a !important;
}

/* .news-card .text-muted {
    color: #ffffff !important;
}

.news-card small.text-muted {
    color: #ffffff !important;
} */

