:root {
    --bs-primary:   #1e2d61;  /* اللون الأساسي - أزرق كحلي غامق (الإطار والنص) */
    --bs-secondary: #3c4e91;  /* اللون الثانوي - بيج رملي فاتح (الأكاليل والآثار) */
    --bs-success:   #3a913f;  /* لون النجاح - أخضر (رمز الكمبيوتر) */
    --bs-danger:    #c32026;  /* لون الخطر - أحمر (الهلال الأحمر) */
    --bs-warning:   #f3c859;  /* لون التحذير - أصفر ترابي فاتح (رمز المصباح) */
    --bs-info:      #3c4e91;  /* لون المعلومات - أزرق بنفسجي (رمز الاتصال) */
    --bs-light:     #f2f3e2;  /* اللون الفاتح - الخلفية الداخلية */
    --bs-dark:      #101a3a;  /* اللون الداكن - أزرق كحلي داكن جداً */
    --bs-body-color: #212529;
}

a {
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.pattern-dots-md {
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 20px 20px; /* distance between dots */
    color: rgba(255, 255, 255, 0.2); /* color of dots */
    z-index: 0;
}


.login a {
    color: var(--body-color) !important;
    text-decoration: none;
}
.login a:hover {
    color: var(--bs-primary) !important;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--bs-primary) !important;
}

.navbar-nav .nav-link {
    color: #000000 !important;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
    color: var(--bs-primary) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 var(--bs-navbar-toggler-focus-width) rgba(211, 140, 34, 0.5);
}

.bg-primary {background-color: var(--bs-primary) !important;}
.text-primary {color: var(--bs-primary) !important;}
.bg-secondary {background-color: var(--bs-secondary) !important;}
.text-secondary {color: var(--bs-secondary) !important;}
.bg-light {background-color: var(--bs-light) !important;}
.text-light {color: var(--bs-light) !important;}

.pagination .page-link {color: var(--bs-secondary) !important;}
.pagination .page-link:focus {
    border-color: var(--border-color);
    box-shadow: 0 0 0 0.25rem rgba(42, 54, 96, 0.4);
}

.news .news-image-side {
    width: 150px !important;
    height: 150px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    border-left: 1px solid #eee;
}

.latest_news .news-image-side {
    width: 130px !important;
    height: 130px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    border-left: 1px solid #eee;
}
  
@media (min-width: 768px) {
    .latest_news .news-image-side {
      width: 150px !important;
      height: 150px !important;
    }
    .news .news-image-side {
        width: 140px !important;
        height: 140px !important;
      }
}
  
.news-card {
    background-color: #fff;
    transition: transform 0.2s ease;
}
  
.latest_news a, .news a {
    text-decoration: none;
}
.latest_news a .news-title, .show-all, .news a .news-title {
    color: var(--bs-body-color) !important;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.latest_news a:hover .news-title, .show-all:hover, .news a:hover .news-title {
    color: var(--bs-primary) !important;
}

.btn-secondary {
    background-color: #2a3660;
    border-color: #2a3660;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #1f294a;
    border-color: #1f294a;
}
.btn-secondary:active,
.btn:first-child:active,
.btn-secondary:focus {
    background-color: #151d33;
    border-color: #151d33;
    box-shadow: 0 0 0 0.25rem rgba(42, 54, 96, 0.4);
}

.btn-primary {
    background-color: #151d33;
    border-color: #151d33;
    color: white;
}

.btn-primary:hover {
    background-color: #3c4e91;
    border-color: #3c4e91;
}

.btn-primary:active,
.btn-primary:first-child:active,
.btn-primary:focus {
    background-color: #3c4e91;
    border-color: #3c4e91;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(157, 100, 22, 0.4) !important;
}


.text-justify {
    text-align: justify;
}


.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* يغطي الشاشة بالكامل */
    overflow: hidden;
}

/* الفيديو في الخلفية */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* طبقة الشفافية */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: rgba(0, 0, 0, 0.6); /* أسود شبه شفاف */

    z-index: 1;
}

/* المحتوى فوق الفيديو */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero h1, 
.hero p {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


footer a {
    color: var(--bs-body-color) !important;
}
footer a:hover {
    color: var(--bs-primary) !important;
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
}



.dropdown-menu[data-bs-popper] {
    top: 100%;
    right: auto;
    left: 0;
    margin-top: var(--bs-dropdown-spacer);
}

.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-primary) !important;
    text-decoration: none;
    background-color: inherit !important;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: inherit !important;
}
.slide-in-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.slide-in-scroll.show {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Button */
.btn-custom {
    background-color: #1e2d61;
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-custom:hover {
    background-color: #162256;
    color: #fff;
}

/* Report Section */
.report-title {
    font-family: 'Tajawal', sans-serif;
    color: #1e2d61;
    font-size: 1.5rem;
}

.student-info p {
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 0.3rem;
}

.section-title {
    font-family: 'Tajawal', sans-serif;
    color: #1e2d61;
    font-weight: 600;
}

.table th, .table td {
    vertical-align: middle;
    font-family: 'Tajawal', sans-serif;
}

/* RTL Alignment Fix */
.text-end {
    text-align: right !important;
}

.latest-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .latest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  .hover-zoom {
    transition: transform 0.4s ease;
  }
  .latest-card:hover .hover-zoom {
    transform: scale(1.05);
  }

  .news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  .hover-zoom {
    transition: transform 0.4s ease;
  }
  .news-card:hover .hover-zoom {
    transform: scale(1.05);
  }

  .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn {
    border-radius: 0.375rem;
}

.card {
    border-radius: 0.5rem;
}

/* Enable nested dropdowns */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
}
