﻿@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;900&display=swap");

:root {
  /* Basic colors for the College of Medicine */
  --primary-color: #1960a2; /* Dark blue - Primary color */
  --secondary-color: #de6626; /* Orange - Secondary color */
  --accent-color: #3e5c8e; /* Medium blue - For emphasis */
  --light-color: #ffffff; /* Light color for backgrounds */
  --dark-color: #1a293f; /* Very dark blue - For contrast */
  --highlight-color: #e9c46a; /* Light golden - For highlighting */

  /* Text and additional element colors */
  --text-color: #333333;
  --text-muted: #666666;
  --text-light: #777777;
  --text-lighter: #999999;
  --border-color: #e9ecef;
  --bg-light: #eeeeee;

  /* Color shortcuts used in code */
  --main-color: var(--primary-color);
  --light-bg: var(--light-color);
}

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

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: "Tajawal", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
.category-header {
  background: linear-gradient(
    106deg,
    rgba(59, 127, 193, 1) 0%,
    rgba(41, 124, 192, 1) 16%,
    rgba(20, 121, 190, 1) 36%,
    rgba(25, 105, 173, 1) 55%,
    rgba(25, 80, 144, 1) 76%,
    rgba(39, 56, 121, 1) 96%
  ) !important;
}
.category-header::after {
  background: rgba(64, 64, 64, 0.2) !important;
}
.latest-news-widget {
  background: linear-gradient(
    106deg,
    rgb(59 127 193 / 17%) 0%,
    rgb(61 161 242 / 6%) 16%,
    rgb(45 140 205 / 25%) 36%,
    rgba(25, 105, 173, 0.25) 55%,
    rgb(71 193 192 / 12%) 76%,
    rgb(111 183 226 / 19%) 96%
  ) !important;
}
img {
  max-width: 100%;
  height: auto;
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  width: 100%;
  height: 100vh;
}

/* Main section containing the header and banner with shared background */
.main-wrapper {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: visible;
  background-size: cover;
  background-position: center;
}

/* New header design combining the logo and menu in one section */
.header {
  color: white;
  /* box-shadow: 0 2px 15px rgba(0,0,0,0.15); */
  padding: 0;
  position: relative;
  z-index: 100;
  /* background-color: rgba(42, 60, 92, 0.3); */
  backdrop-filter: blur(5px);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1640px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo img {
  width: 100%;
  height: 65px;
  /* border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255,255,255,0.2); */
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-info {
  text-align: left;
  font-size: 0.9rem;
  margin-left: auto;
  margin-right: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-info i {
  margin-left: 0.5rem;
  color: var(--secondary-color);
}

/* Main menu in the same element */
.nav {
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 1rem;
}

.nav-menu li {
  position: relative;
  z-index: 50;
}

.nav-menu li a {
  color: rgb(5, 19, 123);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  /* background: rgba(42, 60, 92, 0.3); */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-menu li a i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-menu li.has-submenu:hover > a i {
  transform: rotate(180deg);
}

.nav-menu li a:hover {
  background: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-shadow: none;
}

/* Submenus */
.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #367ec1;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-menu li.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li {
  width: 100%;
}

.submenu li a {
  color: #ffffff !important;
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  text-shadow: none;
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  transition:
    font-weight 0.2s ease,
    background 0.3s ease,
    padding 0.3s ease;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  padding-right: 2rem;
  font-weight: bold;
}

.hero {
  color: white;
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 120px;
}

.hero-content {
  position: absolute;
  bottom: 120px;
  padding: 0 2rem;
  text-align: left !important;
  left: 90px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin-right: auto;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  text-decoration: none;
  transition: all 0.3s ease;
}

.scroll-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  animation:
    pulse 2s infinite,
    bounce 3s infinite;
  backdrop-filter: blur(2px);
}

.scroll-down:hover {
  color: white;
}

.scroll-down:hover .scroll-circle {
  background-color: var(--secondary-color);
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.scroll-down .fa-chevron-down {
  animation: arrowDown 1.5s infinite;
  display: inline-block;
}

@keyframes arrowDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 176, 74, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(212, 176, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 176, 74, 0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

.cta-button {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: white;
  color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.president-message {
  padding: 6rem 0;
  margin: 3rem 0;
  position: relative;
  border-radius: 4px;
  /* overflow: hidden;
    background-color: white; */
}

/* Add decorative background to the section */
.president-message::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(205, 166, 73, 0.05);
  border-radius: 50%;
  transform: translate(100px, -150px);
  z-index: 0;
  animation: floatBubble 20s infinite ease-in-out;
}

.president-message::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background-color: rgba(42, 60, 92, 0.05);
  border-radius: 50%;
  transform: translate(-100px, 100px);
  z-index: 0;
  animation: floatBubble2 25s infinite ease-in-out reverse;
}

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

.president-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
  opacity: 0; /* Make element hidden by default */
  transform: translateY(30px); /* Add initial transform */
  transition: all 0.8s ease;
}

.president-header.show {
  opacity: 1;
  transform: translateY(0);
}

.president-header h2 {
  color: var(--main-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.president-header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.president-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  opacity: 0; /* Make element hidden by default */
  transform: translateY(30px); /* Add initial transform */
  transition: all 0.8s ease 0.4s;
}

.president-content.show {
  opacity: 1;
  transform: translateY(0);
}

.president-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.president-image img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--main-color);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}
.president-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  border-color: var(--secondary-color);
}
/* .president-image.show {
  opacity: 1;
  transform: translateX(0);
}

.president-image::before {
  content: "";
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--secondary-color);
  border-radius: 4px;
  z-index: -1;
  transition: all 0.5s ease;
}

.president-image:hover::before {
  top: -20px;
  right: -20px;
  border-width: 5px;
  box-shadow: 0 0 20px rgba(205, 166, 73, 0.2);
}

.president-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.president-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
} */

.president-text {
  position: relative;
  opacity: 0; /* Make element hidden by default */
  transform: translateX(-30px); /* Add initial transform */
  transition: all 0.8s ease 0.8s;
}

.president-text.show {
  opacity: 1;
  transform: translateX(0);
}

.president-text p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  position: relative;
  padding-right: 1.5rem;
  border-right: 2px solid rgba(42, 60, 92, 0.2);
  transition: all 0.3s ease;
  opacity: 0; /* Make text hidden by default */
  transform: translateX(-20px); /* Add initial transform */
}

.president-text p.show-paragraph {
  opacity: 1;
  transform: translateX(0);
  animation: fadeInRight 0.8s ease forwards;
}

.president-text p:hover {
  color: var(--text-color);
  border-right-color: var(--secondary-color);
  padding-right: 2rem;
}

.president-signature {
  font-weight: 600;
  color: var(--main-color);
  margin-top: 1.5rem;
  position: relative;
  padding-top: 1.5rem;
  transition: all 0.4s ease;
  opacity: 0; /* Make signature hidden by default */
  transform: translateY(20px); /* Add initial transform */
}

.president-signature.show-signature {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease forwards;
}

.president-signature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 2px;
  background: var(--bg-light);
  transition: all 0.5s ease;
}

.president-text:hover .president-signature {
  opacity: 1;
  color: var(--secondary-color);
}

.president-text:hover .president-signature::before {
  width: 150px;
  background: var(--secondary-color);
}

.president-signature img {
  display: block;
  max-width: 200px;
  margin-bottom: 0.8rem;
}

.stats {
  color: var(--main-color);
  padding: 0 0;
  margin: 0;
  position: relative;
  z-index: 5;
  background-color: var(--light-bg);
  /* box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; */
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(42, 60, 92, 0.03);
  border-radius: 50%;
  transform: translate(-100px, -100px);
  z-index: 0;
}

.stats::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background-color: rgba(205, 166, 73, 0.03);
  border-radius: 50%;
  transform: translate(100px, 100px);
  z-index: 0;
}

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

@media screen and (max-width: 1100px) {
  .stats-container,
  .departments-container {
    padding: 0 3.5rem;
  }
}

@media screen and (max-width: 768px) {
  .stats-container,
  .departments-container {
    padding: 0 1rem;
  }
}

.stats-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.stats h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.stats h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.stats-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 4px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  cursor: pointer; /* Makes the card visually clickable */
}

.stat-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Transparent link that covers the entire card to make it clickable */
.news-card .card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  background: transparent;
  text-indent: -9999px; /* Hide text if any for accessibility purposes */
  overflow: hidden;
}

/* Show focus outline when navigating with keyboard */
.news-card .card-overlay-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to bottom,
    rgba(205, 166, 73, 0.05),
    rgba(42, 60, 92, 0.03)
  );
  transition: height 0.5s ease;
  z-index: -1;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(55, 76, 117, 0.1);
  border-color: rgba(205, 166, 73, 0.3);
}

.stat-card:hover::before {
  height: 100%;
}

.stat-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-card:hover .stat-icon {
  background: var(--secondary-color);
  transform: scale(1.1) rotate(360deg);
}

.stat-icon i {
  font-size: 2.5rem;
  color: var(--main-color);
  transition: all 0.5s ease;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--main-color);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.stat-card:hover .stat-number {
  transform: scale(1.05);
  color: var(--main-color);
}

.stat-number::after {
  content: "+";
  position: absolute;
  top: 0;
  right: -15px;
  font-size: 1.5rem;
  opacity: 0.7;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.5rem;
}

.stat-label::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.5s ease;
}

.stat-card:hover .stat-label::after {
  width: 50px;
}

/* Research & Innovation Section - Slider Style */
.research-innovation {
  padding: 6rem 0;
  margin: 3rem 0;
  position: relative;

  overflow: hidden;
}

.research-innovation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 350px;
  background-color: rgba(205, 166, 73, 0.04);
  border-radius: 50%;
  transform: translate(-100px, -100px);
  z-index: 0;
  animation: floatBubble 18s infinite ease-in-out;
}

.research-innovation::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(42, 60, 92, 0.04);
  border-radius: 50%;
  transform: translate(100px, 100px);
  z-index: 0;
  animation: floatBubble2 22s infinite ease-in-out reverse;
}

.research-container-fluid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.research-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.research-innovation h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.research-innovation h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.research-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Slider Wrapper */
.research-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

/* Slider Container */
.research-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Slider Track */
.research-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
  padding: 0 2rem;
}

/* Research Card - Slider Style */
.research-card {
  min-width: 600px;
  max-width: 600px;
  flex-shrink: 0;
  background: linear-gradient(
    106deg,
    rgba(59, 127, 193, 1) 0%,
    rgba(41, 124, 192, 1) 16%,
    rgba(20, 121, 190, 1) 36%,
    rgba(25, 105, 173, 1) 55%,
    rgba(25, 80, 144, 1) 76%,
    rgba(39, 56, 121, 1) 96%
  );
  padding: 2rem 1.5rem;
  border-radius: 2px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.research-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    106deg,
    rgba(25, 96, 162, 0.9) 0%,
    rgba(2, 19, 81, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.research-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.research-card:hover::before {
  opacity: 1;
}

/* Icon in card */
.research-icon {
  position: relative;
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  z-index: 1;
}

.research-card:hover .research-icon {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 0 30px rgba(1, 9, 80, 0.4);
}

.research-icon i {
  font-size: 2.8rem;
  color: white;
  transition: all 0.4s ease;
  z-index: 1;
}

.research-card:hover .research-icon i {
  color: #ffffff;
  transform: scale(1.15);
}

/* Title in card */
.research-card h3 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.8rem;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.research-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: rgb(255, 255, 255);
  transition: all 0.4s ease;
}

.research-card:hover h3::after {
  width: 100px;
  background: rgba(255, 255, 255, 0.9);
}

/* Description in card */
.research-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 1rem;
  max-height: 5.4em; /* 3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.research-card:hover p {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Slider Navigation Buttons - Hidden */
.research-slider-btn {
  display: none;
}

/* Slider Dots */
.research-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.research-slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(25, 96, 162, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.research-slider-dots .dot:hover {
  background: rgba(25, 96, 162, 0.6);
  transform: scale(1.2);
}

.research-slider-dots .dot.active {
  background: var(--main-color);
  width: 35px;
  border-radius: 6px;
  border-color: var(--secondary-color);
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translate(-100px, -100px);
  }
  50% {
    transform: translate(-80px, -120px);
  }
}

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

/* Clinical Affairs / Teaching Hospitals Section */
.clinical-affairs {
  padding: 6rem 0;
  margin: 3rem 0;
  position: relative;
}

.clinical-affairs::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background-color: rgba(25, 96, 162, 0.04);
  border-radius: 50%;
  transform: translate(100px, -100px);
  z-index: 0;
  animation: floatBubble 20s infinite ease-in-out;
}

.clinical-affairs::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(222, 102, 38, 0.04);
  border-radius: 50%;
  transform: translate(-100px, 100px);
  z-index: 0;
  animation: floatBubble2 25s infinite ease-in-out reverse;
}

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

.clinical-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.clinical-affairs h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.clinical-affairs h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.clinical-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.clinical-grid {
  display: grid;
  /* Desktop: always 4 columns when space allows */
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  min-height: 550px;
}

/* Clinical Card - Small Portrait Style */
.clinical-card {
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinical-card:hover {
  z-index: 10;
}

.clinical-image {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: top center;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.clinical-card:hover .clinical-image {
  height: 430px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Overlay on image */
.clinical-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(25, 96, 162, 0.35) 0%,
    rgba(25, 96, 162, 0.35) 50%,
    rgba(25, 80, 144, 0.35) 100%
  );
  transition: all 0.6s ease;
}

.clinical-card:hover .clinical-overlay {
  background: linear-gradient(
    to bottom,
    rgba(25, 96, 162, 0.6) 0%,
    rgba(25, 96, 162, 0.75) 50%,
    rgba(25, 80, 144, 0.85) 100%
  );
}

/* Title - Always visible */
.clinical-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.3rem;
  font-weight: 400;
  text-align: center;
  padding: 0 1.5rem;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  width: 90%;
}

.clinical-card:hover .clinical-title {
  top: 30%;
  font-size: 1.5rem;
}

/* Hover text - Hidden by default, appears on hover */
.clinical-hover-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(39, 56, 121, 0.95) 0%,
    rgba(25, 80, 144, 0.85) 30%,
    rgba(25, 105, 173, 0.65) 60%,
    rgba(59, 127, 193, 0.35) 85%,
    rgba(59, 127, 193, 0) 100%
  );
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.clinical-card:hover .clinical-hover-text {
  opacity: 1;
  transform: translateY(0);
}

.clinical-hover-text p {
  color: white;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Animation for cards on scroll */
.clinical-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.clinical-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Student Activities */
/* Student Activities Custom Styles */
.student-activities {
  padding: 6rem 0;
  background: #ffffff;
  position: relative;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.activity-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border-bottom: 3px solid transparent;
}

.activity-card:hover {
  transform: translateY(-10px);
}

.activity-image {
  position: relative;
  height: 220px;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activity-card:hover .activity-image img {
  transform: scale(1.1);
}

.activity-icon-box {
  position: absolute;
  bottom: -25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 4px solid #fff;
  z-index: 2;
  transition: all 0.3s ease;
}

.activity-card:hover .activity-icon-box {
  background: var(--secondary-color);
  transform: rotate(360deg);
}

.activity-info {
  padding: 1.5rem 1.5rem 1.5rem;
  text-align: left;
}

.activity-info h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.activity-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 4.8em; /* 3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.activity-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  background-color: transparent;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.activity-readmore i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.activity-readmore:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.activity-readmore:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

/* dean */
/* --- Dean's Message Section Styles --- */
.dean-message-section {
  padding: 6rem 0;
  overflow: hidden; /* لمنع الأيقونة المتحركة من الخروج عن الحدود */
}

.dean-message-card {
  background: #ffffff;
  border-radius: 2px;
  padding: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  direction: rtl;
}

/* الأيقونة المرنة */
.quote-icon-container {
  position: absolute;
  top: -25px;
  right: 50px;
  z-index: 10;
}

.sums-quote-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  will-change: transform;
  animation: floatQuote 4s ease-in-out infinite;
}

@keyframes floatQuote {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-5deg);
  }
}

/* تنسيق المحتوى */
.dean-content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  direction: ltr;
}

/* الملف الشخصي */
.dean-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #eee;
  padding-right: 2rem;
}

.dean-photo-frame {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1e7abf;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.dean-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
}

.dean-titles h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.dean-titles p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* نص الكلمة */
.dean-text {
  padding-left: 1rem;
  text-align: left; /* الكلمة محاذاتها لليسار بالإنكليزي */
}

.message-paragraph {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.dean-clamp {
  max-height: 10.8em; /* 6 lines × 1.8 line-height */
  overflow: hidden;
  position: relative;
}
.dean-clamp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
}

.dean-readmore-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.5rem 1.6rem;
  border-radius: 2px;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.dean-readmore-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Dean message collapse/expand */
.dean-msg-collapsed {
  max-height: 9rem; /* ~5 lines */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}
.dean-msg-collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dean-msg-expanded {
  max-height: 2000px;
  overflow: visible;
  transition: max-height 0.6s ease;
}
.dean-msg-expanded::after {
  opacity: 0;
  pointer-events: none;
}

/* --- استجابة الشاشات الصغيرة --- */
@media screen and (max-width: 992px) {
  .dean-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dean-profile {
    border-right: none;
    padding-right: 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
  }

  .quote-icon-container {
    right: 20px;
    top: -20px;
  }
}

/* Campus & Facilities */
/* --- Campus & Facilities Custom Styles --- */
.campus-facilities {
  padding: 6rem 0;
  position: relative;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.facility-card {
  background: #ffffff;
  border-radius: 4px; /* متناسق مع كروت الموقع الأصلية */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid rgba(25, 96, 162, 0.05);
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(25, 96, 162, 0.12);
}

.facility-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.facility-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.facility-card:hover .facility-img-wrapper img {
  transform: scale(1.1);
}

.facility-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-color); /* اللون البرتقالي */
  color: #fff;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 2px;
  z-index: 2;
}

.facility-body {
  padding: 2rem 1.5rem;
  text-align: left;
}

.facility-body h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.facility-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 4.8em; /* 3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 1.5rem;
}

.facility-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.facility-features li {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.facility-features li i {
  color: var(--secondary-color);
}

/* التوافق مع الشاشات الصغيرة */
@media screen and (max-width: 768px) {
  .facilities-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}
.departments {
  padding: 6rem 0;
  margin: 2rem 0;
  position: relative;
  /* overflow: hidden; */
}

.departments::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(42, 60, 92, 0.03);
  border-radius: 50%;
  transform: translate(100px, -100px);
  z-index: 0;
  animation: floatBubble 15s infinite ease-in-out;
}

.departments::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 350px;
  height: 350px;
  background-color: rgba(205, 166, 73, 0.03);
  border-radius: 50%;
  transform: translate(-100px, 100px);
  z-index: 0;
  animation: floatBubble 20s infinite ease-in-out reverse;
}

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

.departments-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.departments h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.departments h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.departments-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.department-card {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  cursor: pointer; /* Makes the card visually clickable */
}

.department-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Transparent link that covers the entire card to make it clickable */
.news-card .card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  background: transparent;
  text-indent: -9999px; /* Hide text if any for accessibility purposes */
  overflow: hidden;
}

/* Show focus outline when navigating with keyboard */
.news-card .card-overlay-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.department-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to bottom,
    rgba(42, 60, 92, 0.04),
    rgba(205, 166, 73, 0.04)
  );
  transition: height 0.5s ease;
  z-index: -1;
}

.department-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(205, 166, 73, 0.3);
}

.department-card:hover::before {
  height: 100%;
}

.dept-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.department-card:hover .dept-icon {
  background: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(205, 166, 73, 0.25);
  transform: scale(1.1) rotate(360deg);
}

.dept-icon i {
  font-size: 1.5rem;
  color: var(--main-color);
  transition: all 0.5s ease;
}

.department-card:hover .dept-icon i {
  color: white;
  transform: scale(1.1) rotate(360deg);
}

.department-card h3 {
  font-size: 1.3rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.5rem;
}

.department-card h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.5s ease;
}

.department-card:hover h3::after {
  width: 50px;
}

.department-card p {
  color: #666;
  line-height: 1.6;
  max-height: 4.8em; /* 3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
}

.news {
  padding: 6rem 0;
  margin: 3rem 0;
  position: relative;
  background-color: var(--light-bg);
  /* overflow: hidden; */
}

/* Add background decorations */
.news::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(42, 60, 92, 0.04);
  border-radius: 50%;
  transform: translate(100px, -150px);
  z-index: 0;
  animation: floatBubble2 18s infinite ease-in-out;
}

.news::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background-color: rgba(205, 166, 73, 0.04);
  border-radius: 50%;
  transform: translate(-100px, 100px);
  z-index: 0;
  animation: floatBubble 22s infinite ease-in-out reverse;
}

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

.news-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.news h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.news h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.news-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  cursor: pointer; /* Makes the card visually clickable */
}

.news-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Transparent link that covers the entire card to make it clickable */
.news-card .card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  background: transparent;
  text-indent: -9999px; /* Hide text if any for accessibility purposes */
  overflow: hidden;
}

/* Show focus outline when navigating with keyboard */
.news-card .card-overlay-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.news-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(205, 166, 73, 0.2);
}

.news-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.news-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary-color);
  color: var(--main-color);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.news-card:hover .news-category {
  background-color: var(--main-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.news-content::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  transition: width 0.5s ease;
}

.news-card:hover .news-content::before {
  width: 100%;
}

.news-date {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-date i {
  margin-left: 0.5rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.news-card:hover .news-date i {
  transform: translateX(-3px);
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 0.8rem;
}

.news-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.5s ease;
}

.news-card:hover .news-title {
  color: var(--secondary-color);
}

.news-card:hover .news-title::after {
  width: 50px;
}

.news-excerpt {
  color: #666;
  line-height: 1.7;
  max-height: 5.1em; /* 3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  transition: all 0.3s ease;
}

.news-card:hover .news-excerpt {
  color: #444;
}

.read-more {
  align-self: flex-start;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1.5rem;
}

.read-more::after {
  content: "←";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.read-more:hover::after {
  transform: translateY(-50%) translateX(-5px);
}

.view-more-container {
  text-align: center;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.view-more-container.show {
  opacity: 1;
  transform: translateY(0);
}

.view-more-btn {
  background: var(--main-color);
  color: white;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.view-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  /* background: var(--secondary-color); */
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 4px;
}

.view-more-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.view-more-btn:hover::before {
  width: 100%;
}

.footer {
  background: var(--main-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

/* Add decorative background to footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(205, 166, 73, 0.03);
  border-radius: 50%;
  transform: translate(100px, -150px);
  z-index: 0;
  animation: floatBubble 20s infinite ease-in-out;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  transform: translate(-100px, 100px);
  z-index: 0;
  animation: floatBubble2 25s infinite ease-in-out reverse;
}

.footer-section {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.footer-section.show {
  opacity: 1;
  transform: translateY(0);
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.4s ease;
}

.footer-section:hover h3::after {
  width: 100%;
}

.footer-section p,
.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.footer-section a {
  display: block;
  padding: 0.4rem 0;
  position: relative;
}

.footer-section a::before {
  /* لا نعرض أيقونة أو سهم عند الهوفر، فقط تغيير لون النص */
  content: "";
}

.footer-section a:hover {
  color: var(--light-color);
  transform: translateX(-5px);
}

.footer-section a:hover::before {
  opacity: 1;
  right: -15px;
}

.footer-section p:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #ffffff;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.8s;
}

.footer-bottom.show {
  opacity: 1;
  transform: translateY(0);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.6s;
}

.social-links.show {
  opacity: 1;
  transform: translateY(0);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-links a i {
  font-size: 1.1rem;
  line-height: 1;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.4s ease;
  z-index: -1;
}

.social-links a:hover::before {
  transform: scale(1);
}

.social-links a:hover {
  color: #ffffff;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* navbar base (merges behavior with current .header) */
.header,
.navbar {
  will-change: transform, background-color, box-shadow, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 360ms ease,
    box-shadow 360ms ease,
    padding 260ms ease,
    opacity 300ms ease;
}

/* main-wrapper: Home page with banner image */
.main-wrapper[data-page="home"] {
  background-image: url("med-1.jpg");
  background-size: cover;
  background-position: center;
}

/* main-wrapper: Inner pages without image */
.main-wrapper[data-page="inner"] {
  display: contents;
  height: 0;
  min-height: 0;
  background: transparent !important;
  background-image: none !important;
  padding: 0;
}

/* hero: Hide on inner pages */
.main-wrapper[data-page="inner"] .hero {
  display: none !important;
  visibility: hidden;
}

/* initial transparent navbar (similar to navbar-transparent from example) */
.navbar-transparent,
.header.navbar-transparent {
  background: transparent;
  position: relative;
  color: inherit;
  box-shadow: none;
}

/* Inner pages: Colored header instead of transparent */
.header[data-page="inner"] {
  background: linear-gradient(
    106deg,
    rgba(59, 127, 193, 1) 0%,
    rgba(41, 124, 192, 1) 16%,
    rgba(20, 121, 190, 1) 36%,
    rgba(25, 105, 173, 1) 55%,
    rgba(25, 80, 144, 1) 76%,
    rgba(39, 56, 121, 1) 96%
  ) !important;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header[data-page="inner"] .logo-text h1,
.header[data-page="inner"] .logo-text p,
.header[data-page="inner"] .nav-menu li a,
.header[data-page="inner"] .contact-info {
  color: #ffffff !important;
}

.header[data-page="inner"] .hamburger-menu span {
  background-color: #ffffff !important;
}

/* nav links default (compatible with current nav-menu structure) */
.nav-menu li a {
  color: rgb(255, 255, 255);
  transition:
    color 1ms ease,
    background 10ms ease,
    transform 240ms ease;
}

/* when scrolled: fixed top, dark background, white links */
.navbar.navbar-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(
    106deg,
    rgba(59, 127, 193, 1) 0%,
    rgba(41, 124, 192, 1) 16%,
    rgba(20, 121, 190, 1) 36%,
    rgba(25, 105, 173, 1) 55%,
    rgba(25, 80, 144, 1) 76%,
    rgba(39, 56, 121, 1) 96%
  );
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  opacity: 1;
}

/* header internals become white for readability */
.navbar.navbar-scrolled .logo-text h1,
.navbar.navbar-scrolled .logo-text p,
.navbar.navbar-scrolled .nav-menu li a,
.navbar.navbar-scrolled .nav-menu li a i,
.navbar.navbar-scrolled .contact-info,
.header.navbar-scrolled .hamburger-menu span {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* nav-link styles on dark bg */
.navbar.navbar-scrolled .nav-menu li a {
  background: transparent;
  color: #ffffff !important;
  box-shadow: none;
}

/* hover / active states readable on dark bg */
.navbar.navbar-scrolled .nav-menu li a:hover,
.navbar.navbar-scrolled .nav-menu li a.active {
  color: rgb(196, 196, 196) !important;
  background: rgba(255, 255, 255, 0.03);
}

/* hamburger lines white when scrolled */
.navbar.navbar-scrolled .hamburger-menu span {
  background-color: #ffffff !important;
}

/* slight padding shrink when scrolled (smoother feel) */
.navbar.navbar-scrolled .header-top {
  padding: 0.6rem 1rem;
}

/* ensure mobile overlay contrast when scrolled */
.navbar.navbar-scrolled .menu-overlay,
.navbar.navbar-scrolled .nav-container {
  color: #ffffff;
}

/* ...existing code... */
@media screen and (max-width: 992px) {
  .header-top {
    padding: 1rem;
  }

  .logo img {
    width: 55px;
    height: 55px;
  }

  .logo-text h1 {
    font-size: 1.3rem;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .nav-menu li a {
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-color);
    flex-direction: column;
    transition: all 0.4s ease-in-out;
    z-index: 100;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .nav-container.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin-top: 4rem;
    gap: 0;
    padding: 1rem;
  }

  .nav-menu li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    text-align: right;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
  }

  /* Close menu button - will be created dynamically only on mobile */
  .nav-close {
    display: none; /* Hidden by default */
  }

  @media screen and (max-width: 768px) {
    .nav-close {
      position: absolute;
      top: 1rem;
      left: 1rem;
      width: 30px;
      height: 30px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      transition: all 0.3s ease;
      z-index: 101;
    }

    .nav-close:hover {
      background: var(--secondary-color);
      color: var(--primary-color);
    }
  }

  .nav-close:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
  }

  /* Darken background when menu is open */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Additional responsive adjustments for the main section */
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 576px) {
  .header-top {
    padding: 0.7rem;
  }

  .logo img {
    width: 45px;
    height: 45px;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Additional improvements for the Dean's message section on mobile devices */
@media screen and (max-width: 576px) {
  .president-message {
    padding: 3rem 1rem;
  }

  .president-header h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .president-content {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .president-image {
    max-width: 280px;
  }

  .president-text p {
    font-size: 1rem;
    line-height: 1.8;
    padding-right: 1rem;
    text-align: justify;
  }

  .president-signature {
    font-size: 0.95rem;
  }
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  transform: translateY(20px);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.scroll-top-circle:hover {
  background-color: var(--secondary-color);
  color: var(--main-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.scroll-to-top .fa-chevron-up {
  animation: arrowUp 1.5s infinite;
}

@keyframes arrowUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Additional responsive styles for all page sections */

/* Responsive formatting for Dean's message section */
@media screen and (max-width: 992px) {
  .president-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .president-image img {
    max-width: 220px;
    margin: 0 auto;
  }

  .president-text {
    text-align: right;
    margin-top: 2rem;
  }

  .president-signature {
    margin-top: 2rem;
    text-align: center;
  }
}

/* Responsive formatting for Research & Innovation Slider */
@media screen and (max-width: 992px) {
  .research-card {
    min-width: 500px;
    max-width: 500px;
    padding: 1.5rem 2rem;
  }
}

@media screen and (max-width: 768px) {
  .research-card {
    min-width: 400px;
    max-width: 400px;
    padding: 2rem 1.5rem;
  }

  .research-icon {
    width: 80px;
    height: 80px;
  }

  .research-icon i {
    font-size: 1.5rem;
  }

  .research-card h3 {
    font-size: 1.2rem;
  }

  .research-card p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .research-innovation {
    padding: 4rem 0;
  }

  .research-innovation h2 {
    font-size: 1.8rem;
  }

  .research-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .research-card {
    min-width: 320px;
    max-width: 320px;
    padding: 2rem 1.5rem;
  }

  .research-track {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .research-icon {
    width: 70px;
    height: 70px;
  }

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

  .research-card h3 {
    font-size: 1.1rem;
  }

  .research-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .research-slider-dots .dot {
    width: 10px;
    height: 10px;
  }

  .research-slider-dots .dot.active {
    width: 28px;
  }
}

/* Responsive formatting for departments section */
@media screen and (max-width: 992px) {
  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

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

  .department-card {
    padding: 1.5rem 1rem;
  }

  .departments-header h2,
  .stats-header h2,
  .news-header h2 {
    font-size: 1.7rem;
  }

  .departments-description,
  .stats-description,
  .news-description {
    font-size: 0.95rem;
  }
}

/* Responsive formatting for statistics section */
@media screen and (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-card {
    padding: 2rem 1rem;
  }
}

@media screen and (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* Responsive formatting for news section */
@media screen and (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-card {
    margin-bottom: 0;
  }
}

/* Responsive formatting for footer */
@media screen and (max-width: 992px) {
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .footer-section {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .footer {
    padding: 2rem 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .social-links {
    margin-top: 1rem;
  }
}

/* Responsive formatting for scroll to top button */
@media screen and (max-width: 576px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* Responsive Clinical Affairs Section */
@media screen and (max-width: 1200px) {
  .clinical-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .clinical-affairs {
    padding: 4rem 0;
  }

  .clinical-affairs h2 {
    font-size: 2rem;
  }

  .clinical-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .clinical-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .clinical-image {
    height: 280px;
  }

  .clinical-card:hover .clinical-image {
    height: 400px;
  }

  .clinical-title {
    font-size: 1.1rem;
  }

  .clinical-card:hover .clinical-title {
    font-size: 1.3rem;
  }

  .clinical-hover-text {
    padding: 1.5rem 1rem;
  }

  .clinical-hover-text p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 576px) {
  .clinical-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .clinical-affairs h2 {
    font-size: 1.8rem;
  }

  .clinical-image {
    height: 320px;
  }

  .clinical-card:hover .clinical-image {
    height: 450px;
  }

  .clinical-title {
    font-size: 1.2rem;
  }

  .clinical-card:hover .clinical-title {
    font-size: 1.4rem;
  }
}

/* ═══════════════════════════════════════════════════
   NEWS SECTION – CARD SLIDER
   ═══════════════════════════════════════════════════ */

.ne-section {
  position: relative;
  padding: 6rem 0;

  overflow: hidden;
}

.ne-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ne-shape-1 {
  width: 350px;
  height: 350px;
  top: -110px;
  right: -100px;
  background: rgba(25, 96, 162, 0.04);
  animation: floatBubble 18s infinite ease-in-out;
}

.ne-shape-2 {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: -90px;
  background: rgba(222, 102, 38, 0.05);
  animation: floatBubble2 20s infinite ease-in-out reverse;
}

.ne-shape-3 {
  width: 140px;
  height: 140px;
  top: 22%;
  left: 8%;
  background: rgba(25, 96, 162, 0.03);
}

.ne-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 5rem;
}

.ne-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.ne-header h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.ne-header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.ne-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.ne-slider-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ne-slider {
  overflow: hidden;
  width: 100%;
}

.ne-track {
  display: flex;
  gap: 1.75rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.ne-nav {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(25, 96, 162, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--main-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ne-nav:hover {
  background: var(--main-color);
  color: white;
  border-color: var(--main-color);
  transform: translateY(-3px);
}

.ne-nav:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.ne-card {
  position: relative;
  min-width: 400px;
  max-width: 400px;
  background: white;
  border-radius: 0;
  overflow: hidden;
  /* box-shadow: 0 10px 30px rgba(25, 96, 162, 0.08); */
  border: 1px solid rgba(25, 96, 162, 0.06);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    opacity 0.6s ease;
}

.ne-card.show {
  opacity: 1;
  transform: translateY(0);
}

.ne-card:hover {
  transform: translateY(-8px);
  /* box-shadow: 0 18px 40px rgba(25, 96, 162, 0.15); */
}

.ne-card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

.ne-card-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.ne-card-image {
  position: relative;
  height: 275px;
  overflow: hidden;
}

.ne-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.14), transparent 60%);
}

.ne-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.ne-card:hover .ne-card-image img {
  transform: scale(1.07);
}

.ne-card-body {
  position: relative;
  z-index: 2;
  background: white;
  padding: 1.15rem 1.6rem 1.55rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ne-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.ne-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ne-card-meta i {
  color: var(--secondary-color);
  font-size: 0.85rem;
}

.ne-card-title {
  color: var(--main-color);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.ne-card:hover .ne-card-title {
  color: var(--secondary-color);
}

.ne-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.15rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.ne-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  color: var(--main-color);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.ne-card:hover .ne-card-readmore {
  color: var(--secondary-color);
  gap: 0.7rem;
}

.ne-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.ne-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(25, 96, 162, 0.18);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ne-dots .dot.active {
  background: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(222, 102, 38, 0.12);
  transform: scale(1.05);
}

/* Desktop layout: keep navs out of flow so slider gets full width
   and reduce track gap so three 400px cards fit side-by-side. */
@media screen and (min-width: 1100px) {
  .ne-slider-shell {
    position: relative;
    display: block;
    align-items: stretch;
    gap: 0;
  }

  .ne-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    z-index: 5;
    /* keep visual style but remove from flex flow */
    display: inline-flex;
    flex-shrink: 0;
  }

  .ne-nav.ne-nav-next {
    right: 12px;
    left: auto;
  }

  /* allow the slider to use the full available width */
  .ne-slider {
    width: 100%;
  }

  /* reduce gap so three 400px cards + gaps will fit comfortably */
  .ne-track {
    gap: 1rem;
  }
}

@media screen and (max-width: 1100px) {
  .ne-container {
    padding: 0 3.5rem;
  }

  .ne-card {
    min-width: calc((100% - 1.75rem) / 2);
    max-width: calc((100% - 1.75rem) / 2);
  }
}

@media screen and (max-width: 768px) {
  .ne-section {
    padding: 4rem 0;
  }

  .ne-container {
    padding: 0 1rem;
  }

  .ne-header h2 {
    font-size: 2rem;
  }

  .ne-description {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .ne-slider-shell {
    gap: 0.6rem;
  }

  .ne-nav {
    width: 46px;
    height: 46px;
  }

  .ne-card {
    min-width: 100%;
    max-width: 100%;
  }

  .ne-card-image {
    height: 240px;
  }
}

@media screen and (max-width: 576px) {
  .ne-header h2 {
    font-size: 1.8rem;
  }

  .ne-slider-shell {
    grid-template-columns: 1fr;
  }

  .ne-nav {
    position: absolute;
    top: 110px;
    z-index: 10;
  }

  .ne-nav-prev {
    left: 10px;
  }

  .ne-nav-next {
    right: 10px;
  }

  .ne-card-body {
    padding: 1.2rem 1.15rem 1.15rem;
  }

  .ne-card-meta {
    gap: 0.7rem;
    font-size: 0.82rem;
  }
}
/* --- Academic Staff Custom Styles --- */
.staff-section {
  padding: 6rem 0;
  background-color: var(--light-bg);
  overflow: hidden; /* ضروري للسلايدر */
}

.staff-swiper {
  padding: 2rem 0 4rem; /* مساحة علوية وسفلية */
  width: 100%;
}

.staff-card-circular {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  padding: 0.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

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

.staff-image-circular {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid #1770b4;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.staff-card-circular:hover .staff-image-circular {
  transform: scale(1.05);
}

.staff-image-circular img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* لضمان عدم تشوه الصورة */
  transition: transform 0.5s ease;
}

.staff-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(35 123 192), rgb(24 81 145));
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.staff-card-circular:hover .staff-overlay {
  opacity: 1;
}

.staff-overlay a {
  color: #fff;
  font-size: 3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.staff-overlay a:hover {
  transform: scale(1.1);
}

.staff-info-circular h3 {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.staff-info-circular p {
  color: var(--secondary-color); /* استخدام اللون البرتقالي للتخصص */
  font-size: 0.9rem;
  font-weight: 500;
}

/* تخصيص أزرار التنقل (اختياري) */
.staff-swiper-next,
.staff-swiper-prev {
  color: var(--primary-color) !important;
  transform: scale(0.7); /* تصغير الحجم قليلاً */
}

.staff-swiper-next {
  right: -10px;
}
.staff-swiper-prev {
  left: -10px;
}

/* --- استجابة الشاشات الصغيرة --- */
@media screen and (max-width: 1200px) {
  /* عند عرض 4 عناصر، قد تحتاج لتصغير الحجم قليلاً على الشاشات المتوسطة */
  .staff-image-circular {
    width: 130px;
    height: 130px;
  }
}
/* استجابة الشاشات الصغيرة */
@media screen and (max-width: 768px) {
  .staff-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

/* ═══════════════════════════════════════════════════
   EVENTS SECTION – ANIMATED SINGLE CARD SLIDER
   ═══════════════════════════════════════════════════ */
.ev-section-m1 {
  padding: 6rem 0;
}

.ev-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ev-controls {
  display: flex;
  gap: 12px;
}

.ev-btn-prev,
.ev-btn-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #de6626;
  background: #fff;
  color: var(--secondary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-btn-prev:hover,
.ev-btn-next:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Card Styling */
.ev-card-split {
  display: flex;
  background: #ffffff;
  border: 1px solid rgba(79, 141, 229, 0.3);
  border-radius: 2px;
  overflow: hidden;
  min-height: 450px;
  max-height: 450px;
  margin-bottom: 20px;
}

.ev-card-img {
  flex: 1;
  position: relative;
  min-width: 40%;
}

.ev-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-date-tag {
  position: absolute;
  top: 25px;
  left: 25px;
  background: var(--secondary-color);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 5px 15px rgba(222, 102, 38, 0.3);
}

.ev-date-tag .day {
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
}
.ev-date-tag .month {
  font-size: 0.85rem;
  font-weight: 600;
}

.ev-card-content {
  flex: 1.2;
  padding: 3.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ev-cat-label {
  color: var(--primary-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.ev-card-content h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.ev-card-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-height: 5.1em; /* 3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 2rem;
}

.ev-info-list {
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.ev-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.95rem;
}

.ev-info-item i {
  color: var(--primary-color);
  width: 20px;
}

.ev-reg-btn {
  align-self: flex-start;
  padding: 8px 29px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-reg-btn:hover {
  background: #de6626;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(25, 96, 162, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .ev-card-split {
    flex-direction: column;
  }
  .ev-card-img {
    height: 300px;
  }
  .ev-card-content {
    padding: 2.5rem;
  }
  .ev-card-content h3 {
    font-size: 1.5rem;
  }
}
/* Nav Buttons */
.ev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -26px;
  z-index: 12;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.ev-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary-color), #c45520);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.35s ease;
  z-index: -1;
}

.ev-nav:hover {
  border-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(222, 102, 38, 0.4);
}

.ev-nav:hover::before {
  transform: scale(1);
}

.ev-nav.ev-nav-next {
  left: auto;
  right: -26px;
}

.ev-nav:disabled {
  opacity: 0.3;
  cursor: default;
  transform: translateY(-50%) scale(1);
}

/* Card */
.ev-card {
  position: relative;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  background: #0d1f3c;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.ev-card.show {
  opacity: 1;
  transform: translateX(0);
}

/* Active card glow border */
.ev-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(222, 102, 38, 0.5);
  z-index: 15;
  pointer-events: none;
  animation: evCardGlow 2.5s ease-in-out infinite;
}

.ev-card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

.ev-card-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

/* Image side — 55% width on desktop */
.ev-card-image {
  position: relative;
  width: 55%;
  flex-shrink: 0;
  overflow: hidden;
}

.ev-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13, 31, 60, 0.55) 0%, transparent 50%),
    linear-gradient(to top, rgba(13, 31, 60, 0.45) 0%, transparent 40%);
  z-index: 1;
}

.ev-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ken Burns effect always running */
  animation: evKenBurns 12s ease-in-out infinite alternate;
}

/* Progress bar at bottom of image */
.ev-card-image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--secondary-color), #f9a86b);
  z-index: 5;
  transform-origin: left;
  animation: evProgress 4.5s linear infinite;
}

/* Badge */
.ev-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  background: var(--secondary-color);
  color: #ffffff;
  padding: 0.4rem 1rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 2px;
  overflow: hidden;
}

/* Shimmer sweep on badge */
.ev-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  animation: evBadgeShimmer 2.2s ease-in-out infinite;
}

/* Content side */
.ev-card-body {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 2.8rem 3rem 2.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, #0f2244 0%, #152d55 100%);
}

.ev-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease 0.1s,
    transform 0.5s ease 0.1s;
}

.ev-card.show .ev-card-meta {
  opacity: 1;
  transform: translateY(0);
}

.ev-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ev-card-meta i {
  color: var(--secondary-color);
}

.ev-card-title {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-bottom: 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease 0.25s,
    transform 0.5s ease 0.25s;
}

.ev-card.show .ev-card-title {
  opacity: 1;
  transform: translateY(0);
}

.ev-card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--secondary-color));
  transition: width 0.8s ease 0.6s;
}

.ev-card.show .ev-card-title::after {
  width: 60%;
}

.ev-card-excerpt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease 0.4s,
    transform 0.5s ease 0.4s;
}

.ev-card.show .ev-card-excerpt {
  opacity: 1;
  transform: translateY(0);
}

.ev-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid rgba(222, 102, 38, 0.5);
  border-radius: 2px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease 0.55s,
    transform 0.5s ease 0.55s,
    background 0.3s ease,
    color 0.3s ease,
    gap 0.3s ease;
}

.ev-card.show .ev-card-readmore {
  opacity: 1;
  transform: translateY(0);
}

.ev-card-readmore:hover {
  background: var(--secondary-color);
  color: #ffffff;
  gap: 0.85rem;
}

/* Dots */
.ev-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ev-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s ease;
}

.ev-dots .dot:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
}

.ev-dots .dot.active {
  width: 30px;
  border-radius: 10px;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(222, 102, 38, 0.5);
}

/* ── Keyframes ─────────────────────────────────────── */

@keyframes evStarsShift {
  from {
    background-position:
      0 0,
      15px 15px;
  }
  to {
    background-position:
      60px 60px,
      75px 75px;
  }
}

@keyframes evLightSweep {
  0% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(250%);
  }
  100% {
    transform: translateX(250%);
  }
}

@keyframes evKenBurns {
  0% {
    transform: scale(1) translateX(0) translateY(0);
  }
  100% {
    transform: scale(1.08) translateX(-2%) translateY(-1%);
  }
}

@keyframes evProgress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes evBadgeShimmer {
  0% {
    left: -75%;
  }
  60% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

@keyframes evCardGlow {
  0%,
  100% {
    border-color: rgba(222, 102, 38, 0.4);
  }
  50% {
    border-color: rgba(222, 102, 38, 0.85);
  }
}

/* ── Responsive ────────────────────────────────────── */

@media screen and (max-width: 1100px) {
  .ev-container {
    padding: 0 3.5rem;
  }

  .ev-nav {
    left: -18px;
  }

  .ev-nav.ev-nav-next {
    right: -18px;
    left: auto;
  }
}

@media screen and (max-width: 900px) {
  .ev-card {
    flex-direction: column;
  }

  .ev-card-image {
    width: 100%;
    height: 300px;
  }

  .ev-card-image::after {
    background: linear-gradient(
      to top,
      rgba(13, 31, 60, 0.55) 0%,
      transparent 50%
    );
  }

  .ev-card-body {
    padding: 2rem 1.8rem;
  }

  .ev-card-title {
    font-size: 1.15rem;
  }

  .ev-nav {
    top: 200px;
    left: 10px;
  }

  .ev-nav.ev-nav-next {
    right: 10px;
    left: auto;
  }
}

@media screen and (max-width: 768px) {
  .ev-section {
    padding: 5rem 0;
  }

  .ev-container {
    padding: 0 1.5rem;
  }

  .ev-header h2 {
    font-size: 2.1rem;
  }

  .ev-card-image {
    height: 260px;
  }

  .ev-card-title {
    font-size: 1.2rem;
  }

  .ev-card-excerpt {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 576px) {
  .ev-header h2 {
    font-size: 1.8rem;
  }

  .ev-container {
    padding: 0 1rem;
  }

  .ev-card-image {
    height: 220px;
  }

  .ev-card-body {
    padding: 1.5rem 1.2rem;
  }

  .ev-card-meta {
    font-size: 0.82rem;
    gap: 0.8rem;
  }

  .ev-card-title {
    font-size: 1.08rem;
  }

  .ev-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .ev-nav {
    top: 160px;
    left: 8px;
  }

  .ev-nav.ev-nav-next {
    right: 8px;
    left: auto;
  }
}
