/********** Template CSS **********/
:root {
  --primary: #0045a0;
  --light: #f0fbfc;
  --dark: #181d38;
  --font-family-cairo: "Cairo", sans-serif;
  --font-family-heebo: "Heebo", sans-serif;
  --font-family-nunito: "Nunito", sans-serif;
}

body.body-ar {
  direction: rtl;
  font-family: var(--font-family-cairo);
}

body.body-en {
  direction: ltr;
  font-family: var(--font-family-heebo);
}

/* Headings Fonts */
.body-ar h1, .body-ar h2, .body-ar h3, .body-ar h4, .body-ar h5, .body-ar h6,
.body-ar .h1, .body-ar .h2, .body-ar .h3, .body-ar .h4, .body-ar .h5, .body-ar .h6 {
  font-family: var(--font-family-cairo);
}

.body-en h1, .body-en h2, .body-en h3, .body-en h4, .body-en h5, .body-en h6,
.body-en .h1, .body-en .h2, .body-en .h3, .body-en .h4, .body-en .h5, .body-en .h6 {
  font-family: var(--font-family-heebo);
}

.h-ar {
  font-family: var(--font-family-cairo);
}

.h-en {
  font-family: var(--font-family-heebo);
}

.font-ar {
  font-family: var(--font-family-cairo);
}

.font-en {
  font-family: var(--font-family-heebo);
}

.fw-medium {
  font-weight: 600 !important;
}

.fw-semi-bold {
  font-weight: 700 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
}

.body-ar .btn {
  font-weight: 400;
}

.body-en .btn {
  font-family: var(--font-family-nunito);
  font-weight: 600;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 0px;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-right: 8px;
}

.body-ar .navbar .dropdown-toggle::after {
  margin-right: 8px;
  margin-left: 0;
}

.body-en .navbar .dropdown-toggle::after {
  margin-left: 8px;
  margin-right: 0;
}

.navbar-light .navbar-nav .nav-link {
  padding: 25px 0;
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
}

.body-ar .navbar-light .navbar-nav .nav-link {
  margin-left: 30px;
}

.body-en .navbar-light .navbar-nav .nav-link {
  margin-right: 30px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

.body-ar .navbar .nav-item .dropdown-menu {
    text-align: right
}

.body-en .navbar .nav-item .dropdown-menu {
    text-align: left
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
  }
  .body-ar .navbar-light .navbar-nav .nav-link {
    margin-left: 0;
  }
  .body-en .navbar-light .navbar-nav .nav-link {
    margin-right: 0;
  }
  .navbar-light .navbar-nav {
    border-top: 1px solid #eeeeee;
  }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
  height: 75px;
}

.body-ar .navbar-brand {
  margin-right: 1rem;
  margin-left: 0;
}

.body-en .navbar-brand {
  margin-left: 1rem;
  margin-right: 0;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
}

.navbar-light.sticky-top {
  top: -100px;
  transition: 0.5s;
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }


        .navbar .dropdown-menu.fade-down {
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header carousel ***/
.header-carousel .owl-carousel-item {
  position: relative;
  height: 650px;
  background-color: var(--dark); /* Fallback color if image is missing */
  overflow: hidden;
}

.header-carousel .owl-carousel-item .slider-responsive-img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px) {
  .header-carousel .owl-carousel-item {
    height: 550px;
  }
}

@media (max-width: 767.98px) {
  .header-carousel .owl-carousel-item {
    height: 480px;
  }
}

@media (max-width: 575.98px) {
  .header-carousel .owl-carousel-item {
    height: 400px;
  }
}

/* Text Truncation and Clamping to prevent overlapping, shrinking, and breaking */
.header-carousel-first-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.header-carousel-second-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.2 !important;
}

.header-carousel-third-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.5 !important;
}

@media (max-width: 767.98px) {
  .header-carousel-second-text {
    -webkit-line-clamp: 2;
    font-size: 2.2rem !important;
  }
  .header-carousel-third-text {
    -webkit-line-clamp: 2;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 575.98px) {
  .header-carousel-second-text {
    -webkit-line-clamp: 2;
    font-size: 1.7rem !important;
  }
  .header-carousel-third-text {
    -webkit-line-clamp: 2;
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}
.body-ar .header-carousel .owl-nav {
  left: 8%;
}
.body-en .header-carousel .owl-nav {
  right: 8%;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  margin: 7px 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.page-header {
  background: linear-gradient(rgba(24, 29, 56, 0.7), rgba(24, 29, 56, 0.7)),
    url(../img/carousel-1.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-header-inner {
  background: rgba(15, 23, 43, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/* Arabic */
.breadcrumb-item-ar + .breadcrumb-item-ar::before {
    color: var(--light);
}

/*** Section Title ***/
.section-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.section-title::before {
  position: absolute;
  content: "";
  width: calc(100% + 80px);
  height: 2px;
  top: 4px;
  left: -40px;
  background: var(--primary);
  z-index: -1;
}

.section-title::after {
  position: absolute;
  content: "";
  width: calc(100% + 120px);
  height: 2px;
  bottom: 5px;
  left: -60px;
  background: var(--primary);
  z-index: -1;
}

.section-title.text-start::before {
  width: calc(100% + 40px);
}

/* Arabic */
.body-ar .section-title.text-start::before {
  right: 0;
  left: auto;
}
/* English */
.body-en .section-title.text-start::before {
  left: 0;
  right: auto;
}

.section-title.text-start::after {
  width: calc(100% + 60px);
}
/* Arabic */
.body-ar .section-title.text-start::after {
  right: 0;
  left: auto;
}
/* English */
.body-en .section-title.text-start::after {
  left: 0;
  right: auto;
}

/*** Service ***/
.service-item {
  background: var(--light);
  transition: 0.5s;
}

.service-item:hover {
  margin-top: -10px;
  background: var(--primary);
}

.service-item * {
  transition: 0.5s;
}

.service-item:hover * {
  color: var(--light) !important;
}

/*** Categories & Courses ***/
.category img,
.course-item img {
  transition: 0.5s;
}

.category a:hover img,
.course-item:hover img {
  transform: scale(1.1);
}

/*** Team ***/
.team-item {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 410px; /* Fixed card height for total consistency */
  transition: all 0.3s ease;
}

.team-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-img-container {
  width: 100%;
  height: 280px; /* Fixed height for image area */
  background-color: #f1f3f9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a5b1c2' width='80' height='80'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  overflow: hidden;
  position: relative;
}

.team-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-item:hover .team-img-container img {
  transform: scale(1.1);
}

.team-info-container {
  height: 130px; /* Fixed height for text and social links */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 15px 10px !important;
  flex-grow: 1;
}

.team-info-container h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.team-designation {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 8px;
  display: block;
}

.team-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 32px;
}

.team-social-row .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  font-size: 0.85rem;
  background: var(--primary);
  color: #ffffff;
  transition: all 0.3s ease;
}

.team-social-row .btn:hover {
  background: var(--dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: #ffffff !important;
}

.testimonial-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  border: 1px solid #cccccc;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/*** Testimonial Items (Student) ***/
.testimonial-item {
  padding-bottom: 10px;
}

.testimonial-text {
  border-radius: 12px;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.testimonial-about {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.testimonial-about .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0, 69, 160, 0.2);
}

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

.testimonial-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #0066cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
}

.testimonial-position {
  font-size: 0.85rem;
  color: #888;
}

/*** Notable Testimonials Section ***/
.notable-testimonials-section {
  background: linear-gradient(135deg, #0a1628 0%, #162544 50%, #1a3560 100%);
  position: relative;
  overflow: hidden;
}

.notable-testimonials-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 69, 160, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.notable-testimonials-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.notable-testimonials-section .section-title {
  background: transparent !important;
  color: rgba(255,255,255,0.8) !important;
}

.notable-testimonials-section .section-title::before,
.notable-testimonials-section .section-title::after {
  background: rgba(255,255,255,0.3);
}

.notable-testimonials-section h1 {
  color: #ffffff;
}

.notable-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 25px;
  position: relative;
  transition: all 0.4s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notable-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.notable-card-quote {
  position: absolute;
  top: 20px;
  font-size: 2.5rem;
  color: rgba(0, 69, 160, 0.4);
  line-height: 1;
}

.body-ar .notable-card-quote {
  left: 20px;
}

.body-en .notable-card-quote {
  right: 20px;
}

.notable-card-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 15px;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notable-card-about {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notable-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  color: #ffffff;
}

.notable-badge i {
  font-size: 0.65rem;
}

.notable-badge-faculty {
  background: rgba(0, 69, 160, 0.5);
  border: 1px solid rgba(0, 69, 160, 0.3);
}

.notable-badge-dept {
  background: rgba(23, 162, 184, 0.4);
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.notable-badge-prog {
  background: rgba(40, 167, 69, 0.4);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.notable-card-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notable-author-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.notable-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notable-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 69, 160, 0.6), rgba(0, 102, 204, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
}

.notable-author-info h6 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.notable-author-info small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* Notable Testimonial Carousel */
.notable-testimonial-carousel .owl-dots {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notable-testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: 0.5s;
}

.notable-testimonial-carousel .owl-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  width: 30px;
  border-radius: 6px;
}

@media (max-width: 767.98px) {
  .notable-card {
    padding: 22px 18px;
    min-height: 240px;
  }
  .notable-card-quote {
    font-size: 1.8rem;
  }
  .notable-card-text {
    font-size: 0.88rem;
  }
  .testimonial-text {
    min-height: 140px;
  }
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-weight: normal;
  border: 1px solid #ffffff;
  border-radius: 35px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  /* text-align: left; for English and text-align: right; for Arabic */
  /* text-align: left; */
  text-align: right;
  color: #ffffff;
  font-size: 15px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}
.body-ar .footer .btn.btn-link {
  text-align: right;
}
.body-en .footer .btn.btn-link {
  text-align: left;
}

.footer .btn.btn-link::before {
  position: relative;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.body-ar .footer .btn.btn-link::before {
  content: "\f104";
  margin-left: 10px;
  margin-right: 0;
}
.body-en .footer .btn.btn-link::before {
  content: "\f105";
  margin-right: 10px;
  margin-left: 0;
}

.footer .btn.btn-link:hover {
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .footer-menu a {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.body-ar .footer .footer-menu a {
  margin-left: 15px;
  padding-left: 15px;
  margin-right: 0;
  padding-right: 0;
}
.body-en .footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  margin-left: 0;
  padding-left: 0;
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/*********************************
14. Events
*********************************/

.event_items {
  margin-top: 68px;
}
.event_item {
  margin-bottom: 56px;
}
.event_item:last-child {
  margin-bottom: 0px;
}
.event_date {
  width: 131px;
  height: 131px;
  border: solid 2px var(--primary);
  margin-bottom: 18px;
}
.event_day {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1px;
  line-height: 1;
}
.event_month {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.event_name a {
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.event_name a:hover {
  color: var(--primary);
}
.event_location {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-top: 2px;
}
.event_content p {
  font-weight: 500;
  color: #a5a5a5;
  margin-top: 21px;
  margin-bottom: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.event_image {
  overflow: hidden;
  border-radius: 6px;
}
.event_image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media only screen and (max-width: 991px) {
  .event_date {
    margin-top: 30px;
  }
}
@media only screen and (max-width: 575px) {
  .event_date {
    width: 100px;
    height: 100px;
  }
}

/*********************************
News/Activities
*********************************/

.news-container,
.news-container-fluid,
.news-container-sm,
.news-container-md,
.news-container-lg,
.news-container-xl {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .news-container,
  .news-container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .news-container,
  .news-container-sm,
  .news-container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .news-container,
  .news-container-sm,
  .news-container-md,
  .news-container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .news-container,
  .news-container-sm,
  .news-container-md,
  .news-container-lg,
  .news-container-xl {
    max-width: 1140px;
  }
}

.news-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.news.col-lg-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .news.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.news.owl-carousel .owl-nav {
  position: absolute;
  width: 100%;
  height: 30px;
  top: calc(50% - 15px);
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.news.owl-carousel .owl-nav .owl-prev,
.news.owl-carousel .owl-nav .owl-next {
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dee2e6;
  background: transparent;
  border: 1px solid #dee2e6;
  font-size: 16px;
  transition: 0.3s;
}

.news.owl-carousel .owl-nav .owl-prev:hover,
.news.owl-carousel .owl-nav .owl-next:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.news.owl-carousel-1 .owl-nav {
  width: auto;
  left: -5px;
  justify-content: flex-start;
}

.owl-carousel-1 .owl-nav .owl-prev,
.owl-carousel-1 .owl-nav .owl-next,
.owl-carousel-3 .owl-nav .owl-prev,
.owl-carousel-3 .owl-nav .owl-next {
  margin: 0 7px;
}

.owl-carousel-3 .owl-nav {
  width: auto;
  top: -56px;
  right: 15px;
  left: auto;
  justify-content: flex-end;
}

.news-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 30px;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
/* Arabic */
.news-overlay-ar.news-overlay {
  direction: rtl;
}
/* English */
.news-overlay-en.news-overlay {
  direction: ltr;
}
.news.team-carousel .owl-dots,
.news.testimonial-carousel .owl-dots {
  margin-top: 30px;
  text-align: center;
}

.news.team-carousel .owl-dot,
.news.testimonial-carousel .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 10px;
  background: #dddddd;
}

.news.team-carousel .owl-dot.active,
.news.testimonial-carousel .owl-dot.active {
  background: #ed1c24;
}

.news.team-item .team-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  background: rgba(253, 172, 83, 0.7);
  border: 15px solid #ffffff;
  transition: 0.5s;
}

.news.team-item:hover .team-overlay {
  opacity: 1;
}

.news-bg-light {
  background-color: #f0f5fc85 !important;
}

a.news-bg-light:hover,
a.news-bg-light:focus,
button.news-bg-light:hover,
button.news-bg-light:focus {
  background-color: #e6e6e6 !important;
}

.news-h1,
.news-h2,
.news-h3,
.news-h4,
.news-h5,
.news-h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: #343a40;
}

.news.owl-carousel .owl-item img {
  display: block;
  width: 100%;
}

.owl-carousel .owl-stage-outer {
  direction: ltr;
}

.logo {
  width: 100%;
}

.dir-rtl {
  direction: rtl !important;
  text-align: right !important;
}

.dir-ltr {
  direction: ltr !important;
  text-align: left !important;
}

.pre-format {
    text-wrap: pretty;
    font-family: var(--font-family-cairo);
    overflow: visible;
}

/* Uniform boxes for News and Activities items */
.news-item-wrapper {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 10px;
  border: 1px solid #eee;
  cursor: pointer;
  color: inherit;
}

.news-item-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

/* Single News/Activity detail page */
.single-news-image-holder {
  width: 100%;
  border-radius: 6px 6px 0 0;
}

.single-news-image-holder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Attachment gallery */
.attachment-image-holder {
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

.attachment-image-holder:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.attachment-image-holder img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

/* CSS Masonry Gallery */
.masonry-gallery {
  column-count: 3;
  column-gap: 16px;
  width: 100%;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 16px;
  break-inside: avoid;
}

@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-gallery {
    column-count: 1;
  }
}

.news-item-image-holder {
  width: 100%;
  height: 240px; /* Fixed height for all images */
  position: relative;
  background-color: #f0f2f5; /* Light neutral background for missing images */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

/* Placeholder image styling - applied via onerror */
.news-item-image-holder img[src*="placeholder"] {
  object-fit: contain;
  padding: 30px;
  background: #f0f2f5;
}

.news-item-wrapper:hover .news-item-image-holder img {
  transform: scale(1.08);
}

/* Video play icon overlay for video items */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
  transition: background 0.3s ease;
}

.video-play-overlay i {
  font-size: 50px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.news-item-wrapper:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.news-item-wrapper:hover .video-play-overlay i {
  color: #ffffff;
  transform: scale(1.15);
}

.news-item-content-holder {
  padding: 20px;
  height: 140px; /* Fixed height for all text containers */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f8f9fa;
  border-top: 3px solid var(--primary);
}

.news-item-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #181d38 !important;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Truncate after 2 lines */
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  height: 45px; /* Fixed height for text line-clamp to keep spacing uniform */
}

.news-item-meta {
  font-size: 13px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-item-meta a {
  color: var(--primary);
  font-weight: bold;
}

/* Uniform service/features items */
.service-item-wrapper {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 280px; /* Fixed height for all features */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 30px 20px;
  border: 1px solid #eee;
  border-top: 4px solid var(--primary);
  overflow: hidden;
  text-align: center;
  margin-bottom: 20px;
}

.service-item-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background-color: var(--primary);
  border-top-color: var(--dark);
}

.service-item-wrapper:hover .service-item-icon,
.service-item-wrapper:hover .service-item-title,
.service-item-wrapper:hover .service-item-desc {
  color: #ffffff !important;
}

.service-item-icon {
  color: var(--primary);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-item-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #181d38;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Clamp to 1 line */
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  height: 26px; /* Fixed height */
  transition: color 0.3s ease;
}

.service-item-desc {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Clamp to 3 lines */
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  height: 68px; /* Fixed height to match 3 lines */
  transition: color 0.3s ease;
}

/* Faculties & Team Carousels */
.faculties-carousel,
.team-carousel {
  position: relative;
}

.faculties-carousel .owl-nav,
.team-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.faculties-carousel .owl-nav .owl-prev,
.faculties-carousel .owl-nav .owl-next,
.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
  pointer-events: auto;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary) !important;
  color: #ffffff !important;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faculties-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-prev {
  margin-left: -22px;
}

.faculties-carousel .owl-nav .owl-next,
.team-carousel .owl-nav .owl-next {
  margin-right: -22px;
}

.faculties-carousel .owl-nav .owl-prev:hover,
.faculties-carousel .owl-nav .owl-next:hover,
.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
  background: var(--dark) !important;
  transform: scale(1.1);
}

/* Faculty Premium Card Styling */
.faculty-card-item {
  padding: 10px;
}

.faculty-premium-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(24, 29, 56, 0.05);
  border: 1px solid rgba(24, 29, 56, 0.06);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.faculty-premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(6, 161, 176, 0.15);
  border-color: rgba(6, 161, 176, 0.2);
}

.faculty-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.faculty-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faculty-premium-card:hover .faculty-img-wrapper img {
  transform: scale(1.12);
}

/* Beautiful dark blue gradient cover over image on hover */
.faculty-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(24, 29, 56, 0.85) 0%, rgba(24, 29, 56, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.faculty-premium-card:hover .faculty-img-wrapper::after {
  opacity: 1;
}

/* Slide up buttons on hover */
.faculty-btn-container {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 15px;
  transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 5;
}

.faculty-premium-card:hover .faculty-btn-container {
  bottom: 20px;
}

.faculty-btn {
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faculty-btn.btn-admission {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 69, 160, 0.3);
}

.faculty-btn.btn-admission:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 29, 56, 0.3);
  color: #ffffff;
}

.faculty-btn.btn-more {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.faculty-btn.btn-more:hover {
  background: #ffffff;
  color: var(--dark);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Card Body text styling */
.faculty-card-body {
  padding: 24px 20px 16px 20px;
  text-align: center;
  flex-grow: 1;
}

.faculty-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 52px;
  line-height: 1.35;
}

.faculty-card-title.faculty-card-title-long {
  font-size: 1.02rem;
}

.faculty-premium-card:hover .faculty-card-title {
  color: var(--primary);
}

.faculty-card-desc {
  font-size: 0.92rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 68px;
}

/* Premium Badge Stats footer */
.faculty-card-stats {
  display: flex;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 10px;
  justify-content: space-around;
  transition: background 0.3s ease;
}

.faculty-premium-card:hover .faculty-card-stats {
  background: rgba(6, 161, 176, 0.03);
}

.faculty-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
}

.faculty-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

[dir="rtl"] .faculty-stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.faculty-stat-icon {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}

.faculty-premium-card:hover .faculty-stat-icon {
  transform: translateY(-3px) scale(1.1);
}

.faculty-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.faculty-stat-label {
  font-size: 0.72rem;
  color: #8c90a6;
  margin-top: 2px;
  font-weight: 500;
}

@media (max-width: 767px) {
  .faculties-carousel .owl-nav .owl-prev,
  .team-carousel .owl-nav .owl-prev {
    margin-left: 5px;
  }
  .faculties-carousel .owl-nav .owl-next,
  .team-carousel .owl-nav .owl-next {
    margin-right: 5px;
  }
}

/* Arabic/RTL overrides for all owl carousels */
.body-ar .owl-carousel .owl-stage-outer {
  direction: rtl;
}

.body-ar .faculties-carousel .owl-nav .owl-prev,
.body-ar .team-carousel .owl-nav .owl-prev {
  margin-right: -22px;
  margin-left: 0;
}
.body-ar .faculties-carousel .owl-nav .owl-next,
.body-ar .team-carousel .owl-nav .owl-next {
  margin-left: -22px;
  margin-right: 0;
}

@media (max-width: 767px) {
  .body-ar .faculties-carousel .owl-nav .owl-prev,
  .body-ar .team-carousel .owl-nav .owl-prev {
    margin-right: 5px;
    margin-left: 0;
  }
  .body-ar .faculties-carousel .owl-nav .owl-next,
  .body-ar .team-carousel .owl-nav .owl-next {
    margin-left: 5px;
    margin-right: 0;
  }
}

/*** Video Container - YouTube (Responsive padding-bottom trick) ***/
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 6px 6px 0 0;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube Shorts - vertical 9:16 */
.video-container.video-container-vertical {
  padding-bottom: 177.77%; /* 9:16 aspect ratio */
  max-width: 380px;
  margin: 0 auto;
  border-radius: 8px;
}

/*** Facebook Video Container (uses FB SDK for auto-sizing) ***/
.fb-video-container {
  width: 100%;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

/* Force FB SDK elements to be responsive and fill container width */
.fb-video-container .fb-video,
.fb-video-container .fb-video > span,
.fb-video-container .fb-video > span > iframe,
.fb-video-container .fb_iframe_widget,
.fb-video-container .fb_iframe_widget > span,
.fb-video-container .fb_iframe_widget > span > iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/*** Native Video (HTML5 <video> tag) ***/
.video-container.video-container-native {
  padding-bottom: 0;
  height: auto;
}

.video-container.video-container-native video {
  position: relative;
  max-height: none;
  object-fit: contain;
}

/*** X (Twitter) Icon ***/
.x-icon {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-btn-x {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.footer .btn.btn-social .x-icon {
  font-size: 0.95rem;
  color: var(--light);
}

/*** View Counter ***/
.view-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6c757d;
}

.view-counter i {
  color: var(--primary);
  font-size: 15px;
}

/*** Uniform Social Sharing Buttons ***/
.share-btn-social {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-size: 15px !important;
  line-height: 1 !important;
  transition: all 0.3s ease !important;
  border: 1px solid !important;
  background: transparent !important;
  cursor: pointer;
  text-decoration: none !important;
}

.share-btn-social i,
.share-btn-social span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: 15px !important;
}

.share-btn-social.btn-facebook {
  color: #3b5998 !important;
  border-color: #3b5998 !important;
}
.share-btn-social.btn-facebook:hover {
  background-color: #3b5998 !important;
  color: #ffffff !important;
}

.share-btn-social.btn-x {
  color: #111111 !important;
  border-color: #111111 !important;
}
.share-btn-social.btn-x:hover {
  background-color: #111111 !important;
  color: #ffffff !important;
}

.share-btn-social.btn-email {
  color: #6c757d !important;
  border-color: #6c757d !important;
}
.share-btn-social.btn-email:hover {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

.share-btn-social.btn-copy {
  color: #495057 !important;
  border-color: #495057 !important;
}
.share-btn-social.btn-copy:hover {
  background-color: #495057 !important;
  color: #ffffff !important;
}

/***********************************************
  Responsive Font Sizes - All Breakpoints
***********************************************/

/* ===== Tablet (max-width: 991.98px) ===== */
@media (max-width: 991.98px) {
  /* Main Slider */
  .header-carousel .owl-carousel-item h1.display-3 {
    font-size: 2.5rem !important;
  }
  .header-carousel .owl-carousel-item h5 {
    font-size: 0.95rem !important;
  }
  .header-carousel .owl-carousel-item p.fs-5 {
    font-size: 1rem !important;
  }
  .header-carousel .owl-carousel-item .btn {
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
  }

  /* Page Headers (About, AllNews, Events, Contact, etc.) */
  .page-header h1.display-3,
  .page-header-inner h1.display-3 {
    font-size: 2.5rem !important;
  }

  /* Section Titles (h1 under sections) */
  .container-xxl h1,
  .container h1.mb-5 {
    font-size: 1.75rem !important;
  }

  /* About University h1 */
  .container-xxl .col-lg-6 > h1 {
    font-size: 1.6rem !important;
  }

  /* News section h3 */
  .news-bg-light h3 {
    font-size: 1.3rem !important;
  }
}

/* ===== Mobile Landscape / Large Phone (max-width: 767.98px) ===== */
@media (max-width: 767.98px) {
  /* Main Slider */
  .header-carousel .owl-carousel-item h1.display-3 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  .header-carousel .owl-carousel-item h5 {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }
  .header-carousel .owl-carousel-item p.fs-5 {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
  }
  .header-carousel .owl-carousel-item .btn {
    padding: 8px 18px !important;
    font-size: 0.82rem !important;
  }

  /* Page Headers */
  .page-header h1.display-3,
  .page-header-inner h1.display-3 {
    font-size: 1.8rem !important;
  }

  /* Section Titles */
  .container-xxl h1,
  .container h1.mb-5 {
    font-size: 1.5rem !important;
  }

  /* Section subtitle (h6.section-title) */
  h6.section-title {
    font-size: 0.85rem !important;
  }

  /* About University h1 */
  .container-xxl .col-lg-6 > h1 {
    font-size: 1.4rem !important;
  }

  /* News section h3 */
  .news-bg-light h3 {
    font-size: 1.15rem !important;
  }

  /* Events */
  .event_day {
    font-size: 36px !important;
  }
  .event_name a {
    font-size: 18px !important;
  }

  /* Faculty card title */
  .faculty-card-title {
    font-size: 1.05rem !important;
  }

  /* Team info */
  .team-info-container h5 {
    font-size: 1rem !important;
  }

  /* Notable testimonials section heading */
  .notable-testimonials-section h1 {
    font-size: 1.5rem !important;
  }
}

/* ===== Small Phone (max-width: 575.98px) ===== */
@media (max-width: 575.98px) {
  /* Main Slider */
  .header-carousel .owl-carousel-item h1.display-3 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }
  .header-carousel .owl-carousel-item h5 {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
  }
  .header-carousel .owl-carousel-item p.fs-5 {
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .header-carousel .owl-carousel-item .btn {
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
  }

  /* Page Headers */
  .page-header h1.display-3,
  .page-header-inner h1.display-3 {
    font-size: 1.4rem !important;
  }

  /* Section Titles */
  .container-xxl h1,
  .container h1.mb-5 {
    font-size: 1.3rem !important;
  }

  /* Section subtitle */
  h6.section-title {
    font-size: 0.78rem !important;
  }

  /* About University h1 */
  .container-xxl .col-lg-6 > h1 {
    font-size: 1.2rem !important;
  }

  /* About University paragraph */
  .container-xxl .col-lg-6 > p.text-justify {
    font-size: 0.9rem !important;
  }

  /* News section h3 */
  .news-bg-light h3 {
    font-size: 1.05rem !important;
  }

  /* Events */
  .event_day {
    font-size: 30px !important;
  }
  .event_month {
    font-size: 13px !important;
  }
  .event_name a {
    font-size: 16px !important;
  }
  .event_content p {
    font-size: 13px !important;
  }

  /* Service/Features items */
  .service-item-title {
    font-size: 15px !important;
  }
  .service-item-desc {
    font-size: 13px !important;
  }

  /* Faculty card */
  .faculty-card-title {
    font-size: 0.95rem !important;
  }
  .faculty-card-desc {
    font-size: 0.82rem !important;
  }
  .faculty-stat-value {
    font-size: 0.9rem !important;
  }
  .faculty-stat-label {
    font-size: 0.65rem !important;
  }

  /* Team */
  .team-info-container h5 {
    font-size: 0.95rem !important;
  }
  .team-designation {
    font-size: 0.78rem !important;
  }

  /* Testimonials */
  .testimonial-text p {
    font-size: 0.85rem !important;
  }

  /* Notable testimonials */
  .notable-testimonials-section h1 {
    font-size: 1.3rem !important;
  }
  .notable-card-text {
    font-size: 0.85rem !important;
  }
  .notable-author-info h6 {
    font-size: 0.85rem !important;
  }

  /* Footer */
  .footer .btn.btn-link {
    font-size: 13px !important;
  }
  .footer .copyright {
    font-size: 13px !important;
  }

  /* Contact page display-3 */
  h1.display-3 {
    font-size: 1.4rem !important;
  }
}

/* ==========================================
   Premium Custom Footer Styles
============================================= */
.custom-footer {
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
  color: #94a3b8;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--primary);
}

.custom-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 69, 160, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.custom-footer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.custom-footer .footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.custom-footer .footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.body-ar .custom-footer .footer-title::after {
  right: 0;
  left: auto;
}

.custom-footer .footer-desc {
  line-height: 1.8;
  font-size: 0.9rem;
}

.custom-footer .footer-links li {
  margin-bottom: 12px;
}

.custom-footer .footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.custom-footer .footer-link:hover {
  color: #ffffff;
}

.body-en .custom-footer .footer-link:hover {
  transform: translateX(6px);
}

.body-ar .custom-footer .footer-link:hover {
  transform: translateX(-6px);
}

.custom-footer .footer-link::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 8px;
  font-size: 0.8rem;
  color: var(--primary);
  transition: all 0.3s ease;
  display: inline-block;
}

.body-ar .custom-footer .footer-link::before {
  content: '\f104';
  margin-right: 0;
  margin-left: 8px;
}

.custom-footer .footer-link:hover::before {
  color: #ffffff;
}

/* Contact Info */
.custom-footer .contact-info-list {
  font-size: 0.9rem;
}

.custom-footer .contact-info-item {
  color: #94a3b8;
  transition: all 0.3s ease;
}

.custom-footer .contact-info-item:hover {
  color: #ffffff;
}

.custom-footer .contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.custom-footer .contact-info-item:hover .contact-icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 69, 160, 0.4);
}

.custom-footer .contact-text {
  flex: 1;
  line-height: 1.5;
}

/* Social Media Badges */
.custom-footer .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.custom-footer .social-icon:hover {
  transform: translateY(-5px);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-footer .social-icon .x-icon-footer {
  font-weight: 800;
  font-size: 0.95rem;
}

/* Brand specific hovers */
.custom-footer .facebook-btn:hover {
  background: #1877F2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.custom-footer .twitter-btn:hover {
  background: #0f1419;
  box-shadow: 0 5px 15px rgba(15, 20, 25, 0.4);
}

.custom-footer .instagram-btn:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.custom-footer .youtube-btn:hover {
  background: #FF0000;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Newsletter Form */
.custom-footer .newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.body-ar .custom-footer .newsletter-form .form-control {
  border-radius: 0 8px 8px 0;
}

.body-en .custom-footer .newsletter-form .form-control {
  border-radius: 8px 0 0 8px;
}

.custom-footer .newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 69, 160, 0.25);
}

.custom-footer .newsletter-form .btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.body-ar .custom-footer .newsletter-form .btn-primary {
  border-radius: 8px 0 0 8px;
}

.body-en .custom-footer .newsletter-form .btn-primary {
  border-radius: 0 8px 8px 0;
}

.custom-footer .newsletter-form .btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 0 15px rgba(0, 69, 160, 0.4);
}

/* Copyright Bar */
.custom-footer .copyright-bar {
  background: #070a12;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.custom-footer .copyright-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.custom-footer .copyright-link:hover {
  color: #ffffff;
}

.custom-footer .copyright-credits a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.custom-footer .copyright-credits a:hover {
  color: #ffffff;
}