:root {
  --main-color: #4C3D8F;
  --Second-Color: #7864CE;
  --Colors-Grey-60: rgba(153, 153, 153, 1);
  --Colors-Grey-40: #666666;
  --Card-Background: #f6f8fa;
  --DeepBlack: #050505;
  --FontBold: 'Tajawal-BoldBold';
  --FontMedium: 'Tajawal-Medium';
  --FontRegular: 'Tajawal-Regular';
  --EmMessiriBold: 'ElMessiriBold';
  --AmiriBold: 'AmiriBold';

  --main: #4C3D8F;
  --dark: #1e1e2f;
  --text-dark: #f1f1f1;
  --bg-gradient-start: #eef2f7;
  --bg-gradient-mid: #e8ecf3;
  --bg-gradient-end: #fdfdfd;
}

/* Fonts */
@font-face {
  font-family: Tajawal-BoldBold;
  src: url('../fonts/tajawal/Tajawal-Bold.ttf');
}

@font-face {
  font-family: Tajawal-Medium;
  src: url('../fonts/tajawal/Tajawal-Medium.ttf');
}

@font-face {
  font-family: Tajawal-Regular;
  src: url('../fonts/tajawal/Tajawal-Regular.ttf');
}

@font-face {
  font-family: ElMessiriBold;
  src: url('../fonts/elmessiri/ttf/ElMessiri-Bold.ttf');
}

@font-face {
  font-family: AmiriBold;
  src: url('../fonts/Amiri-Bold.ttf');
}

body {
  width: 100%;
  margin: 0;
  direction: rtl;
  font-family: var(--FontRegular), 'Cairo', sans-serif;
  background: linear-gradient(to bottom right, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
  background-attachment: fixed;
  transition: background 0.3s;
  color: #333;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: var(--main);
  /*background-color: white;*/
  /*color: var(--main);*/
  /*color: red;*/
}
 .navbar-expand-lg .navbar-nav .nav-link {
    /*color: var(--main-color);*/
 }
.navbar-brand, .lang-btn {
  color: #fff !important;
}
.lang-btn {
  cursor: pointer;
  padding: 0 10px;
}
.lang-btn.active {
  font-weight: bold;
  text-decoration: underline;
}




/* Hero section */
.hero {
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  background: var(--main);
}

.hero span {
    display: block;
    font-size: 40px;
    padding: 0px;
    margin-top: -35px;
}

.hero img{
    width: 300px;
    height: 120px;
    padding: 0px auto;
}


.responsive-image-container {
    max-width: 1200px; /* أقصى عرض للصورة */
    margin: 30px auto; /* توسيط الحاوية */
    padding: 0 15px; /* مساحة جانبية للشاشات الصغيرة */
    text-align: center; /* توسيط الصورة داخل الحاوية */
}

/* تنسيق الصورة */
.responsive-image {
    width: 100%; /* تجعل الصورة ممتدة حسب الحاوية */
    height: auto; /* يحافظ على نسبة الطول إلى العرض */
    border-radius: 15px; /* زوايا دائرية */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* ظل خفيف */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير عند مرور الماوس */
.responsive-image:hover {
    transform: scale(1.05); /* تكبير بسيط */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .responsive-image-container {
        max-width: 95%; /* تقريب العرض الكامل للشاشات الصغيرة */
    }
}

/* Loader */
#loader {
  background: #fff;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--main);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cards */
/*.school-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .2s;
}
.school-card:hover {
  transform: scale(1.03);
}
.school-number {
  font-size: 2rem;
  color: var(--main);
  font-weight: bold;
  margin-top: 8px;
}*/


/* Start Advertiesements Area  */
#advertisements .carousel-item {
    position: relative;
    width: 100%;
    height: 85vh; 
    overflow: hidden;
    text-align: right;
}

#advertisements .carousel-item img,
#advertisements .carousel-item video {
    height: 100%;
    object-fit: cover;
}

#advertisements .carousel-caption span {
    font-size: 44px;
}





.intoduction-text h1 {
    font-size: 34px;
    margin: 0 0 12px;
}

@media(max-width:575px) {
    .intoduction-text h1{
        font-size: 26px;
    }
}


/* End Advertisement Area  */



/* القسم الرئيسي */
section[aria-label="SchoolsList"],
section[aria-label="{{ __('system.SchoolsList') }}"] {
  max-width: 1140px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}

/* العنوان */
section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #4C3D8F;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  user-select: none;
}

/* شبكة البطاقات */
#schoolList {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

/* كل بطاقة مدرسة */
#schoolList .col {
  flex: 1 1 calc(33.333% - 25px);
  max-width: 350px;
  outline-offset: 4px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 15px;
  box-shadow: 0 6px 15px rgb(76 61 143 / 0.12);
  background: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
}

#schoolList .col:hover,
#schoolList .col:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgb(76 61 143 / 0.25);
  outline: none;
}

/* اسم المدرسة */
.school-card {
  background: linear-gradient(135deg, #ffffff, #f9f9ff);
  border: 1px solid #e0e0f0;
  border-radius: 1.5rem;
  padding: 25px 20px;
  box-shadow: 0 6px 18px rgba(111, 91, 220, 0.1);
  transition: all 0.3s ease-in-out;
  height: 100%;
  text-decoration: none !important;
}

.school-card:hover,
.school-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(111, 91, 220, 0.2);
  background: linear-gradient(135deg, #f3f0ff, #ffffff);
}

.school-logo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #6f5bdc;
  padding: 5px;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.school-card:hover .school-logo img {
  transform: scale(1.05);
}

.school-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #3a2e6e;
  transition: color 0.3s ease;
}

.school-card:hover .school-name {
  color: #6f5bdc;
}

.school-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5f5f5f;
  font-family: 'Cairo', sans-serif;
  background-color: #f0f0fa;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.school-card:hover .school-number {
  background-color: #e4e1fa;
  color: #3a2e6e;
}

/* رسالة لا توجد نتائج */
#noResultsMsg {
  font-size: 1.3rem;
  color: #999;
  text-align: center;
  margin-top: 50px;
  user-select: none;
}

/* استجابة لأحجام الشاشات */





/* #######################################3 */

.vision-mission-values {
  background: #f9f9fb;
  padding-top: 60px;
  padding-bottom: 60px;
}

.vmv-card {
  background: linear-gradient(135deg, #4C3D8F, #6e60b4);
  color: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vmv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.vmv-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #fff;
}

.vmv-card .title {
  font-family: var(--FontBold, 'Tajawal-BoldBold');
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.vmv-card .text {
  font-family: var(--FontRegular, 'Tajawal-Regular');
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}




/* Stats */
/*.stats .counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main);
}*/
.stats-section {
  background: #f3f4f7;
  padding: 30px 0;
  border-radius: 16px;
}

.stats-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
  overflow-x: auto;
  /*min-width: 180px;*/
}

.stat-block {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-width: 240px;
  transition: transform 0.3s ease-in-out;
  flex-shrink: 0;
  text-align: center;
}

.stat-block:hover {
  transform: translateY(-6px);
}

.stat-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.counter {
  font-size: 2.2rem;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 1rem;
  color: #555;
  font-family: var(--FontMedium, 'Tajawal-Medium');
}


/* Feature Cards */

.features {
    margin-bottom: 300px;
    /*display: none;*/
}

.feature-card {
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  transition: transform .2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-1  { background: #8e44ad; }
.feature-2  { background: #3498db; }
.feature-3  { background: #27ae60; }
.feature-4  { background: #e67e22; }
.feature-5  { background: #16a085; }
.feature-6  { background: #2c3e50; }
.feature-7  { background: #d35400; }
.feature-8  { background: #2980b9; }
.feature-9  { background: #c0392b; }
.feature-10 { background: #1abc9c; }
.feature-11 { background: #f39c12; }
.feature-12 { background: #7f8c8d; }
.feature-13 { background: #e91e63; }
.feature-14 { background: #00bcd4; }
.feature-15 { background: #009688; }
.feature-16 { background: #3f51b5; }
.feature-17 { background: #9c27b0; }
.feature-18 { background: #4caf50; }
.feature-19 { background: #ff9800; }
.feature-20 { background: #607d8b; }
.feature-21 { background: #795548; }
.feature-22 { background: #673ab7; }
.feature-23 { background: #03a9f4; }
.feature-24 { background: #8bc34a; }
.feature-25 { background: #f44336; }
.feature-26 { background: #2196f3; }
.feature-27 { background: #9e9e9e; }
.feature-28 { background: #00bfa5; }
.feature-29 { background: #ff5722; }

.feature-icon {
  font-size: 2rem;
  margin-left: 10px;
  opacity: .9;
}
.feature-title {
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 1rem;
  opacity: .95;
}

/* Read More Button */
.read-more-btn {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 8px 15px;
  border-radius: 30px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: .3s;
}
.read-more-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.collapse-content {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  display: none;
  font-size: .95rem;
  line-height: 1.4;
}

/* Device Buttons */
.device-btns {
  position: fixed;
  top: 70px;
  left: 10px;
  z-index: 1000;
}
.device-btns button {
  margin: 4px;
  padding: 6px 10px;
  font-size: .9rem;
  border: none;
  border-radius: 4px;
  background: var(--main);
  color: #fff;
  cursor: pointer;
  opacity: .8;
  transition: .3s;
}
.device-btns button:hover {
  opacity: 1;
}

/* Layout RTL/LTR */
.rtl .container {
  direction: rtl;
}
.ltr .container {
  direction: ltr;
}

/* Responsive Columns */
.features-row > .col {
  flex: 0 0 100%;
  max-width: 100%;
}


.whats-app {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    /*background-color: #25d366;*/
    color: #25d366;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    /*box-shadow: 2px 2px 3px #999;*/
    z-index: 100;
}



/* Start Footer Style  */

.footer {
    width: 100%;
    background-color: #4C3D8F;
    color: #f0f0f0;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    box-shadow: 0 -3px 10px rgb(0 0 0 / 0.2);
    z-index: 9999;
    margin-top: 30px;
    /*display: flex;*/
    /*bottom: 0px;*/
}

/* End Footer Style  */

/* Start Dark Mode  */

.dark-mode {
  background-color: #121212 !important;
  color: #f1f1f1 !important;
}

/* لتغيير خلفية الحاويات */
.dark-mode .container,
.dark-mode section,
.dark-mode .school-card,
.dark-mode .feature-card,
.dark-mode .vmv-card,
.dark-mode .stats-section,
.dark-mode .footer
 {
  background-color: #1e1e1e !important;
  color: #f1f1f1 !important;
}

/* تغيير خلفية بطاقات المدارس */
.dark-mode .school-card {
  background-color: #222 !important;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

/* تغيير الأيقونات والنصوص */
.dark-mode .stat-icon,
.dark-mode .feature-icon,
.dark-mode .title,
.dark-mode .stat-label,
.dark-mode .counter,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h5,
.dark-mode .footer,
.dark-mode p {
  color: #f1f1f1 !important;
}



/* #########################################  */

.testimonials {
    background: linear-gradient(135deg, #f9f9fb, #ffffff);
    padding-top: 2rem;
    padding-bottom: 2rem;
    /*min-height: 450px; */
    /*height: auto;      */
    height: 550px;
}


.testimonial-card {
  transition: transform 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card img {
    width: 150;
    height: 150;
}





/* #############################################  */

/* خلفية النافبار */
.dark-mode .navbar {
  background-color: #1f1f1f !important;
}

/* تغيير لون الموجات إلى رمادي غامق أو شفاف */
.dark-mode .wave svg path {
  fill: #1e1e1e;
}

/* تعديل زر الوضع الليلي */
.dark-mode .btn-outline-light {
  border-color: #888;
  color: #fff;
}

/* End Dark Mode  */

/** {
  outline: 1px solid rgba(255, 0, 0, 0.2);
}
*/





