html {
  scroll-behavior: smooth;
}

/* Modern CSS Variables for Consistent Theming */
:root {
  --primary-color: #293462;
  --secondary-color: #d4b609;
  --overlay-color: #293462c0;
  --text-color: #2b2d42;
  --text-light: #6c757d;
  --background-light: #ffffff;
  --card-background: #ffffff;
  --card-hover: #ffffffcb;
  --border-color: #1a6a9e;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --header-total-height: 130px;
}

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

body {
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

a {
  text-decoration: none !important;
  color: var(--primary-color);
}

h1 {
  font-size: 1.3rem;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1.1rem;
}

h1,
h2,
h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c29a3c;
}

p {
  margin-bottom: 15px;
}

/* Navbar Styles */
#header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.top-bar {
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.top-bar.hide {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.top-bar a {
  color: grey;
}

.top-bar a:hover {
  color: var(--secondary-color);
}

.navbar {
  padding: 0.5rem 0;
  background-color: var(--primary-color);
  transition: var(--background-color) 0.3s ease, padding 0.3s ease;
}

.navbar-brand img {
  max-height: 50px;
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  font-weight: 400;
  padding: 1.5rem 1rem;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--secondary-color) !important;
  /* Yellow text */
  background-color: var(--primary-color) !important;
  /* Blue background */
  border-radius: 4px;
  /* Optional: adds rounded corners */
  transition: all 0.3s ease;
  /* Smooth transition */
}

/* Dropdown Menu Styles */
.dropdown-menu {
  border-radius: 6px;
  margin-top: 0.2rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu-rtl {
  text-align: right;
  right: 0;
  left: auto;
}

.dropdown-menu-ltr {
  text-align: left;
  left: 0;
  right: auto;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  /* Prevent text wrapping */
  display: block;
  width: 100%;
  text-align: inherit;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--secondary-color) !important;
  background-color: var(--primary-color) !important;
}

/* Right Side Items */
.portal-btn {
  background-color: var(--secondary-color);
  color: var(--primary-color) !important;
  font-size: medium;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(247, 190, 22, 0.3);
}

.portal-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(247, 190, 22, 0.5);
}

.lang-switcher,
.lang-switcher-mobile {
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-switcher-mobile {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.search-toggle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form-container {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1020;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

#mainNavbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
  width: 100%;
}

#mainNavbar.navbar-sticky {
  padding: 0.3rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

#mainNavbar.navbar-sticky .nav-link {
  color: var(--text-light) !important;
  padding: 1rem 0.8rem;
}

#mainNavbar.navbar-sticky .nav-link::after {
  background-color: var(--primary-color);
}

#mainNavbar.navbar-sticky .nav-link:hover,
#mainNavbar.navbar-sticky .nav-link:focus,
#mainNavbar.navbar-sticky .nav-link.active {
  color: var(--secondary-color) !important;
}

#mainNavbar.navbar-sticky .navbar-brand img {
  max-height: 45px;
}

#mainNavbar.navbar-sticky .portal-btn {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* RTL Specific Adjustments */
[dir="rtl"] .dropdown-menu-rtl {
  text-align: right;
  right: auto;
  left: 0;
}

[dir="rtl"] .me-1 {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .me-3 {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .ms-2 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .text-end {
  text-align: left !important;
}

/* LTR Specific Adjustments */
[dir="ltr"] .dropdown-menu-ltr {
  text-align: left;
  left: 0;
  right: auto;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
    z-index: 1050;
  }

  .nav-item {
    margin-bottom: 0.5rem;
  }

  .dropdown-menu {
    box-shadow: none;
    border-left: 3px solid var(--secondary-color);
    margin: 0.5rem 0;
    width: 100%;
  }

  .portal-btn,
  .lang-switcher {
    margin-top: 1rem;
    display: block;
    width: 100%;
    text-align: center;
  }

  .navbar-nav {
    margin-bottom: 1rem;
  }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
  .navbar-brand img {
    max-height: 40px;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    z-index: 1050;
    padding: 1rem;
    margin-top: 56px;
    /* Height of navbar */
    overflow-y: auto;
  }

  .navbar-toggler {
    position: relative;
    z-index: 1055;
    color: var(--primary-color);
    background-color: var(--primary-color);
  }

  .lang-switcher-mobile {
    position: relative;
    z-index: 1050;
  }
}

@media (max-width: 991.98px) {
  #mainNavbar.navbar-sticky {
    padding: 0.5rem 0;
  }

  #mainNavbar.navbar-sticky .navbar-toggler {
    color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-color);
  }

  #mainNavbar.navbar-sticky .navbar-collapse {
    background-color: var(--primary-color);
    margin-top: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  #mainNavbar.navbar-sticky .nav-link {
    color: var(--background-light) !important;
  }
}

@media (max-width: 575.98px) {
  #mainNavbar.navbar-sticky .navbar-brand img {
    max-height: 35px;
  }
}

/* Add this to your CSS */
[dir="rtl"] .navbar-nav.me-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Also fix the dropdown menu alignment in RTL */
[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
  text-align: right;
}

/* Ensure nav items are properly aligned in RTL */
[dir="rtl"] .navbar-nav {
  padding-right: 0;
}

/* Fix for dropdown menu staying open during hover transition */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Smooth transition for dropdown */
.dropdown-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Ensure proper positioning */
.navbar .dropdown-menu {
  margin-top: 0;
  /* Remove any gap between nav item and dropdown */
}

/* Add a slight delay before closing to allow users to move to the menu */
.dropdown:not(:hover) .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Hero Styles */
.hero-section {
  min-height: calc(
    100vh - var(--header-total-height)
  ); /* full viewport minus header */
  display: flex;
  align-items: center; /* vertical center content */
  position: relative;
  overflow: hidden;
}

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

.hero-container .col-lg-6 {
  display: flex;
  align-items: center;
}

/* ===== CAROUSEL MODERN STYLES ===== */
#heroCarousel,
#newsCarousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

#heroCarousel {
  height: 100%;
}
#heroCarousel .carousel-inner {
  height: 100%;
}

.hero-bg-elements div {
  position: absolute;
  animation: float 10s ease-in-out infinite;
}

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

.carousel-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.carousel-image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 8s ease;
}

.carousel-item.active .carousel-image-wrapper img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Carousel Indicators Container */
.carousel-indicators-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
}

/* Modern Indicators */
.carousel-indicators {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  margin: 0;
}

.carousel-indicators button {
  width: 40px;
  height: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  padding: 0;
  text-indent: -9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.carousel-indicators button.active {
  background: transparent;
}

.carousel-indicators button.active .indicator-progress {
  width: 100%;
}

.indicator-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--secondary-color);
  transition: width 6s linear;
}

.carousel-indicators button:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Modern Caption */
.carousel-caption--modern {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  padding: 40px;
  text-align: start;
  z-index: 1;
  color: var(--background-light);
}

[dir="rtl"] .carousel-caption--modern {
  text-align: right;
}

.caption-content {
  max-width: 600px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s ease 0.3s;
}

.carousel-item.active .caption-content {
  transform: translateY(0);
  opacity: 1;
}

.caption-title {
  font-weight: 700;
  color: var(--background-light);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  text-align: start;
}

.caption-line {
  width: 80px;
  height: 3px;
  background: var(--background-light);
  margin: 15px 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.6s;
}

.carousel-item.active .caption-line {
  transform: scaleX(1);
}

/* Modern Controls */
.carousel-control-prev--modern,
.carousel-control-next--modern {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
}

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

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

#heroCarousel:hover .carousel-control-prev--modern,
#heroCarousel:hover .carousel-control-next--modern,
#newsCarousel:hover .carousel-control-prev--modern,
#newsCarousel:hover .carousel-control-next--modern {
  opacity: 1;
}

.control-arrow {
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--background-light);
  border-right: 3px solid var(--background-light);
  transform: rotate(-135deg);
  transition: all 0.3s ease;
}

.carousel-control-next--modern .control-arrow {
  transform: rotate(45deg);
}

.carousel-control-prev--modern:hover .control-arrow,
.carousel-control-next--modern:hover .control-arrow {
  border-color: var(--primary-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
  .carousel-image-wrapper {
    height: 400px;
  }
}

@media (max-width: 575.98px) {
  .carousel-image-wrapper {
    height: 250px;
  }

  .carousel-caption--modern {
    padding: 20px;
    bottom: 10px;
  }

  .carousel-control-prev--modern,
  .carousel-control-next--modern {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev--modern {
    left: 10px;
  }

  .carousel-control-next--modern {
    right: 10px;
  }
}

/* University Info Column */
.university-info-column {
  background: linear-gradient(
    135deg,
    var(--background-light) 0%,
    var(--background-light) 100%
  );
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.university-info-column::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(41, 52, 98, 0.05);
  border-radius: 50%;
}

.university-info-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-container {
  margin-bottom: 30px;
  padding: 15px;
  background: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.university-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.university-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  line-height: 1.3;
}

.contact-image-container {
  margin: 20px 0;
  position: relative;
}

.image-hover-effect {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.image-hover-effect:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-image {
  width: 100%;
  height: auto;
  max-width: 250px;
  display: block;
}

.contact-info {
  margin-top: 20px;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-icons {
  color: #3a86ff;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .caption-title {
    font-size: 2rem;
  }

  .university-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
  }

  .min-vh-50 {
    min-height: 50vh;
  }

  .university-info-column {
    padding: 30px 20px;
  }

  .university-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .contact-text {
    font-size: 1rem;
  }

  .btn-enquiry {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-caption--modern {
    padding: 20px;
  }

  .caption-title {
    font-size: 1.5rem;
  }

  .carousel-indicators--modern {
    bottom: 15px;
  }

  .carousel-control-prev--modern,
  .carousel-control-next--modern {
    width: 50px;
    height: 50px;
    opacity: 1;
  }

  .university-info-column::before {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .caption-title {
    font-size: 1.2rem;
  }

  .carousel-indicators--modern button {
    width: 30px;
    height: 3px;
  }

  .university-logo {
    width: 150px;
  }

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

  .contact-text {
    font-size: 0.9rem;
  }
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-caption {
  animation: fadeInUp 0.8s ease forwards;
}

/* Staff Card Styles */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.staff-card {
  border: 1px solid var(--card-background);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--background-light);
  margin: 0 0.5rem;
  /* Horizontal spacing */
}

.staff-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.staff-image-wrapper {
  width: 100%;
  height: 200px;
  /* Fixed height for image container */
  overflow: hidden;
  position: relative;
}

.staff-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Change to 'contain' for better mobile display */
  transition: transform 0.3s ease;
}

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

.staff-content {
  padding: 1rem;
}

.staff-name {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.staff-name a {
  color: var(--text-color);
  text-decoration: none;
}

.staff-name a:hover {
  color: var(--secondary-color);
}

.staff-position {
  font-size: 0.775rem;
}

/* Updated styles for staff links */
.staff-links {
  margin-top: 0.5rem;
}

.staff-link {
  color: var(--primary-color);
  /* Change link color to a more noticeable blue */
  margin: 0 0.5rem;
  font-size: 1.5rem;
  /* Increase font size for better visibility */
  transition: color 0.2s ease;
}

.staff-link:hover {
  color: var(--secondary-color);
  /* Darker shade on hover for better differentiation */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .staff-image-wrapper {
    height: auto;
    /* Allow height to adjust based on content */
  }

  .staff-image {
    object-fit: contain;
    /* Prevent cropping */
  }

  .staff-name {
    font-size: 1.2rem;
    /* Increase font size for better readability */
  }

  .staff-position {
    font-size: 1rem;
    /* Increase font size for better readability */
  }

  .staff-link {
    font-size: 1.5rem;
    /* Ensure link text is large enough on mobile */
  }
}

@media (max-width: 575.98px) {
  .staff-image-wrapper {
    height: auto;
    /* Allow height to adjust based on content */
  }

  .staff-image {
    object-fit: contain;
    /* Prevent cropping */
  }

  .staff-name {
    font-size: 1.1rem;
    /* Further increase font size for smaller screens */
  }

  .staff-position {
    font-size: 0.9rem;
    /* Further increase font size for smaller screens */
  }

  .staff-link {
    font-size: 1.5rem;
    /* Ensure link text is large enough on mobile */
  }
}

.faculty-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1800px;
  margin: 15px auto;
  background: var(--background-light);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--primary-color);
  overflow: hidden;
  margin: 2rem;
  justify-content: center;
}

/* Sidebar */
.sidebar {
  flex: 0 0 280px;
  background: linear-gradient(to bottom, var(--primary-color), #051247c2);
  padding: 25px 15px;
  color: var(--background-light);
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.sidebar-header {
  padding: 10px 15px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
}

.sidebar-header h2 {
  font-weight: 600;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  color: var(--background-light);
}

.sidebar-header h2 i {
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  color: var(--background-light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  color: var(--background-light);
  text-decoration: none;
}

.sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  color: var(--background-light);
}

.sidebar-nav-item i {
  margin-right: 12px;
  font-size: 1.25rem;
  width: 24px;
  text-align: start;
}

/* Content */
.faculty-content {
  flex: 1;
  padding: 30px;
  background: var(--background-light);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.faculty-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.faculty-content h3 {
  font-size: 1.1rem;
}

.welcome-text {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 5px;
}

.date-display {
  color: var(--text-light);
  font-size: 0.9rem;
}

.faculty-content p {
  margin-bottom: 20px;
  color: var(--text-color);
  line-height: 2rem;
  font-size: 0.9rem;
}

/* RTL Support */
[dir="rtl"] .sidebar-nav-item i {
  margin-left: 0;
  margin-right: 12px;
}

.sidebar-toggle {
  border-radius: 50%;
  padding: 10px 12px;
  box-shadow: 0 2px 6px var(--primary-color);
}

.sidebar-toggle i {
  font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    /* hidden by default */
    height: 100%;
    width: 250px;
    transition: left 0.3s ease, right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    /* allow vertical scroll */
    -webkit-overflow-scrolling: touch;
    /* smooth on iOS */
    padding-bottom: 50px;
    /* give space so last item isn't cut */
  }

  /* RTL support */
  [dir="rtl"] .sidebar {
    left: auto;
    right: -280px;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* semi-transparent black */
    z-index: 900;
    display: none;
    /* hidden by default */
  }

  .sidebar.active + .sidebar-overlay {
    display: block;
    /* show when sidebar is active */
  }

  .sidebar.active {
    left: 0;
    /* slides in */
  }

  /* RTL support for active state */
  [dir="rtl"] .sidebar.active {
    left: auto;
    right: 0;
  }

  .faculty-content {
    padding: 20px;
  }
}

.profile-container {
  padding: 2rem;
  gap: 2.5rem;
}

.profile-image {
  text-align: center;
}

.profile-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info {
  flex: 1;
}

.profile-name {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.profile-position {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.info-section {
  margin-bottom: 1.8rem;
}

.info-section h5 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--background-light);
}

/* Home Styles */
.university-homepage {
  font-family: "Cairo", sans-serif;
}

.home-section-header {
  margin-bottom: 2rem;
}

.home-section-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.home-section-title a {
  color: inherit;
  transition: color 0.3s ease;
}

.home-section-title a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.home-section-divider {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.home-section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Friend Sites Section */
.friend-sites-section {
  background-color: var(--background-light);
}

.friend-sites-carousel .owl-stage {
  display: flex;
  align-items: center;
}

.friend-site-item {
  background: var(--background-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.friend-site-logo {
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.friend-site-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.friend-site-name {
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-top: auto;
}

.friend-site-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* News & Announcements Section */

.news-date {
  position: absolute;
  top: 15px;
  right: auto;
  left: auto;
  background: #070e36;
  color: rgb(226, 240, 33);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}

[dir="ltr"] .news-date {
  right: auto;
  right: 15px;
  /* Flip to left in LTR */
}

.day {
  font-size: 1.2rem;
  font-weight: 700;
}

.month {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.news-content {
  padding: 1rem;
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.news-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.news-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

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

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Announcements Sidebar */
.announcements-sidebar {
  background: var(--background-light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.announcement-item {
  display: flex;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.announcement-item:hover {
  background: rgba(247, 190, 22, 0.05);
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-date {
  min-width: 50px;
  text-align: center;
  margin-right: 1rem;
}

.announcement-date .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.announcement-date .month {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.announcement-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.announcement-title a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.announcement-title a:hover {
  color: var(--secondary-color);
}

/* Faculties Section */
.faculties-showcase {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.faculty-card {
  position: relative;
  background: var(--background-light);
  border-radius: 0.75rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.faculty-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  height: 18rem;
  background: var(--background-light);
  flex-shrink: 0;
}

.faculty-logo-container img {
  max-width: 100%;
  max-height: 140px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.faculty-card:hover .faculty-info {
  bottom: 0;
  /* slides up into view */
}

.faculty-info {
  position: absolute;
  bottom: -100%;
  width: 100%;
  background: var(--primary-color);
  color: var(--background-light);
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transition: bottom 0.4s ease;
}

.faculty-title {
  color: var(--background-light);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.faculty-description {
  color: var(--background-color);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
  text-align: start;
	overflow-x: auto; /* contain overflow inside */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.faculty-description table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.faculty-description td,
.faculty-description th {
  white-space: nowrap; /* prevent ugly stretching */
  text-align: center;
  vertical-align: middle;
}

/* RTL support for Arabic */
[dir="rtl"] .read-more i {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .read-more:hover i {
  transform: translateX(-4px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .faculty-logo-container {
    height: 180px;
  }

  .faculty-logo-container img {
    max-height: 120px;
  }
}

@media (max-width: 992px) {
  .faculties-section-title {
    font-size: 2.2rem;
  }

  .faculty-logo-container {
    height: 160px;
    padding: 1.5rem 1rem;
  }

  .faculty-logo-container img {
    max-height: 110px;
  }
}

@media (max-width: 768px) {
  .faculties-showcase {
    padding: 3rem 0;
  }

  .faculties-section-title {
    font-size: 1.9rem;
    margin-bottom: 2.5rem;
  }

  .faculty-info {
    padding: 1.25rem;
  }

  .faculty-logo-container {
    height: 150px;
  }

  .faculty-logo-container img {
    max-height: 100px;
  }
	.faculty-description table {
    font-size: 0.85rem;
    table-layout: fixed;
  }
  .faculty-description td,
  .faculty-description th {
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 576px) {
  .faculty-logo-container {
    height: 200px;
    padding: 1.25rem 1rem;
  }

  .faculty-logo-container img {
    max-height: 150px;
  }

  .faculty-title {
    font-size: 1.15rem;
  }
}

/* Faculty Intro */
.faculty-intro-container {
  margin: 0 auto;
  padding: auto;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.faculty-intro-language-switcher {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.faculty-intro-language-lang-btn {
  background-color: var(--background-light);
  color: var(--border-color);
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faculty-intro-language-lang-btn.active {
  background-color: #c29a3c;
  color: var(--background-light);
}

.faculty-intro-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.main-faculty-intro-content {
  flex: 2;
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faculty-intro-sidebar {
  flex: 1;
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faculty-intro-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.faculty-intro-feature-card {
  background: linear-gradient(
    135deg,
    var(--background-light),
    var(--card-background)
  );
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
  border-left: 4px solid var(--border-color);
}

.faculty-intro-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faculty-intro-feature-icon {
  font-size: 2.5rem;
  color: var(--border-color);
  margin-bottom: 15px;
}

.faculty-intro-info-box {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border-right: 4px solid var(--border-color);
}

.faculty-intro-duration-box {
  background: linear-gradient(135deg, var(--border-color), #0c4c78);
  color: var(--background-light);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.faculty-intro-duration-box p {
  color: var(--background-light);
}

.faculty-intro-duration-number {
  font-size: 3rem;
  font-weight: bold;
  margin: 10px 0;
  color: #c29a3c;
}

.faculty-intro-goals p {
  text-align: start;
}

@media (max-width: 768px) {
  .faculty-intro-content {
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
  }
}

.hidden {
  display: none;
}

/* Honorary Students Section */
.board-carousel .owl-stage {
  display: flex;
  align-items: stretch;
  /* Make all items stretch to same height */
}

.student-card {
  background: var(--background-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin: 0.5rem;
  height: 100%;
  min-height: 300px;
  /* Set a minimum height for all cards */
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Take full available height */
  min-height: 300px;
  text-align: start;
}

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

.student-image {
  height: 160px;
  /* Fixed height for image */
  min-height: 150px;
  /* Prevent shrinking */
  overflow: hidden;
  flex-shrink: 0;
  /* Prevent image from shrinking */
}

.student-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-details {
  padding: 0.8rem;
  flex: 1;
  /* Take remaining space */
  display: flex;
  flex-direction: column;
  text-align: start;
  /* Ensure content is left-aligned */
}

.student-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #082769;
  margin-bottom: 1rem;
  overflow: hidden;
  text-align: start;
  /* Explicit left alignment */
}

.student-info {
  flex: 1;
  /* Take remaining space in details section */
  display: flex;
  flex-direction: column;
  justify-content: flex-center;
  text-align: start;
}

.student-info p {
  color: rgb(14, 48, 83);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: start;
}

.student-info i {
  margin-right: 8px;
  color: var(--secondary-color);
}

/* Gallery & Social Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 0;
  padding-bottom: 100%;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 52, 98, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay span {
  font-size: 0.8rem;
  text-align: center;
  padding: 0 0.5rem;
}

.video-item .gallery-overlay i {
  font-size: 3rem;
}

/* Buttons */

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-size: 0.9rem;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: rgb(235, 200, 5);
  transform: translateY(-2px);
}

/* Facebook Container */
.fb-page-container {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* RTL Adjustments */
[dir="rtl"] .read-more i,
[dir="rtl"] .explore-btn i {
  margin-left: 0;
  margin-right: 5px;
  transform: rotate(180deg);
}

[dir="rtl"] .read-more:hover i,
[dir="rtl"] .explore-btn:hover i {
  transform: rotate(180deg) translateX(5px);
}

[dir="rtl"] .announcement-date {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .student-info i {
  margin-right: 0;
  margin-left: 8px;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 991.98px) {
  .student-image {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.3rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* News Specific Styles */
.news-hero-wrapper {
  background-color: var(--background-light);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.news-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.news-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-align: center;
}

.news-breadcrumb-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-breadcrumb-item {
  margin: 0 0.5rem;
  color: var(--text-color);
}

.news-breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.news-breadcrumb-item a:hover {
  color: var(--secondary-color);
}

.news-breadcrumb-active {
  color: #155f12;
  font-weight: 500;
}

.news-grid-section {
  padding: 2rem 0;
}

.news-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Featured News Section */
.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

[dir="rtl"] .section-title::after {
  left: auto;
  right: 0;
}

.featured-news-section {
  margin-bottom: 4rem;
}

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

.featured-news-card {
  background: var(--background-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.featured-news-media {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
}

.featured-news-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.featured-news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.featured-news-card:hover .featured-news-overlay {
  opacity: 1;
}

.featured-news-icon {
  width: 48px;
  height: 48px;
  fill: var(--background-light);
}

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

.featured-news-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-color);
}

.category {
  color: var(--background-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.news-category {
  background-color: var(--primary-color);
}

.announcement-category {
  background-color: #50db34;
}

.featured-news-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.3;
}

.featured-news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.featured-news-title a:hover {
  color: var(--primary-color);
}

.featured-news-excerpt {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Recent News Section */
.recent-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.recent-news-card {
  background: var(--background-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.recent-news-media {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
}

.recent-news-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.recent-news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.recent-news-card:hover .recent-news-overlay {
  opacity: 1;
}

.recent-news-icon {
  width: 48px;
  height: 48px;
  fill: var(--background-light);
}

.recent-news-content {
  padding: 1.5rem;
}

.recent-news-meta {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-color);
}

.recent-news-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.recent-news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.recent-news-title a:hover {
  color: var(--primary-color);
}

.recent-news-excerpt {
  color: var(--text-color);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.news-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-color);
  font-size: 1.25rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .featured-news-grid {
    grid-template-columns: 1fr;
  }

  .featured-news-card {
    flex-direction: row;
  }

  .featured-news-media {
    flex: 0 0 50%;
    padding-bottom: 30%;
  }

  .featured-news-content {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .news-hero-title {
    font-size: 2rem;
  }

  .featured-news-card {
    flex-direction: column;
  }

  .featured-news-media {
    padding-bottom: 56.25%;
  }

  .recent-news-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .news-hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .recent-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Research Grid ===== */
.research-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.research-section-header {
  margin-bottom: 40px;
}

.research-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.research-section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 2px;
  background: var(--secondary-color);
  width: 100px;
  margin: 0 auto;
}

.divider-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  background: var(--background-light);
  padding: 0 15px;
  position: relative;
  top: -2px;
}

.research-search {
  position: relative;
  max-width: 500px;
  margin: 0 auto 30px;
}

#research-search {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--background-light);
  border-radius: 30px;
  font-size: 16px;
  transition: all 0.3s;
}

#research-search:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
  outline: none;
}

.research-grid {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  flex-direction: column;
  margin-bottom: 30px;
}

.research-card {
  background: var(--background-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.research-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 15px;
}

.research-card-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.research-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  flex: 1;
}

.research-card-title:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.research-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.research-meta {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 15px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: var(--text-light);
}

#research-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

#research-pagination .page-btn {
  padding: 8px 15px;
  border: 1px solid var(--background-light);
  background: var(--background-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

#research-pagination .page-btn:hover {
  background: var(--background-light);
}

#research-pagination .page-btn.active {
  background: var(--primary-color);
  color: var(--background-light);
  border-color: var(--primary-color);
}

.search-info {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
  font-style: italic;
}

.ellipsis {
  padding: 8px 5px;
}

@media (max-width: 768px) {
  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-section-title {
    font-size: 2rem;
  }
}

/* Gallery Specific Styles - Won't conflict with other styles */
.image-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.image-gallery-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  /* Ensures square containers */
  background: var(--background-light);
}

.image-gallery-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures images fill container while maintaining aspect ratio */
  transition: transform 0.3s ease;
}

.image-gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 52, 98, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-gallery-thumbnail:hover .image-gallery-hover-overlay {
  opacity: 1;
}

.image-gallery-thumbnail:hover .image-gallery-thumbnail-img {
  transform: scale(1.05);
}

.image-gallery-zoom-btn {
  color: var(--background-light);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.image-gallery-zoom-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.image-gallery-divider {
  margin: 2rem 0;
  border-color: rgba(0, 0, 0, 0.1);
}

.image-gallery-share-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.image-gallery-share-label {
  font-weight: 600;
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .image-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .image-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .image-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Main Gallery Container */
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Album Grid Layout */
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.gallery-album-card {
  background: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Album Title */
.gallery-album-title {
  padding: 15px;
  text-align: center;
  background: var(--background-light);
}

.gallery-album-title p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thumbnail Container */
.gallery-album-thumbnail {
  position: relative;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  overflow: hidden;
}

.gallery-album-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hover Overlay */
.gallery-album-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 52, 98, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-album-overlay a:hover {
  color: var(--secondary-color);
}

.gallery-album-card:hover .gallery-album-overlay {
  opacity: 1;
}

.gallery-view-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--background-light);
  transition: all 0.3s ease;
}

.gallery-view-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.gallery-view-text {
  font-size: 1.5rem;
  font-weight: 500;
}

.gallery-album-card:hover .gallery-view-icon {
  transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .gallery-album-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .gallery-album-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-album-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .gallery-album-title p {
    font-size: 1rem;
  }

  .gallery-view-icon {
    font-size: 1.5rem;
  }

  .gallery-view-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .gallery-album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .gallery-album-grid {
    grid-template-columns: 1fr;
  }
}

/* Statistics Section Styles */
.statistics-section {
  padding: 80px 0;
  background: var(--background-light);
  /* Adjust as needed */
}

.stat-card {
  background: var(--background-light);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.stat-icon {
  font-size: 48px;
  color: #4e73df;
  /* Adjust color to match your theme */
  margin-bottom: 15px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.stat-label p {
  font-size: 16px;
  color: var(--text-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Styles */
.aust-footer {
  background: var(--text-color);
  color: var(--background-light);
  position: relative;
  padding-top: 60px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.aust-footer h3 {
  color: var(--background-light);
  margin: 15px 0 10px;
}

.aust-footer-main {
  padding: 40px 0;
}

.aust-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.aust-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.aust-footer-widget {
  margin-bottom: 30px;
}

.aust-footer-logo img {
  max-width: 200px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.aust-footer-description p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.aust-footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.aust-sitemap-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.aust-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.aust-sitemap-list a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.aust-sitemap-list a:hover {
  color: var(--secondary-color);
}

.aust-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aust-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.aust-contact-item i {
  margin-inline-end: 10px;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 3px;
}

.aust-phone-number {
  direction: ltr;
  display: inline-block;
}

.aust-social-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  gap: 15px;
}

.aust-social-list a {
  color: #ecf0f1;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.aust-social-list a:hover {
  color: var(--primary-color);
}

.aust-footer-copyright {
  background: #1a252f;
  padding: 20px 0;
  text-align: center;
}

.aust-footer-copyright p {
  margin: 0;
  color: #d2dedf;
  font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--background-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Scroll to Top Button */
.aust-scroll-top {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--background-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.aust-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.aust-scroll-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  font-size: 2.5rem;
}

/* RTL Specific Styles */
[dir="rtl"] .aust-footer-title:after {
  left: auto;
  right: 0;
}

[dir="rtl"] .aust-contact-item i {
  margin-inline-end: 0;
  margin-inline-start: 10px;
}

/* Tour */
.virtual-tour-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tour-image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.tour-image-gallery-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  /* aspect-ratio: 1; */
}

.tour-image-gallery-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tour-image-gallery-thumbnail:hover .tour-image-gallery-thumbnail-img {
  transform: scale(1.05);
}

.tour-image-gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-image-gallery-thumbnail:hover .tour-image-gallery-hover-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  color: var(--background-light);
  font-size: 2rem;
  padding: 10px;
}

.tour-description,
.arabic-description {
  background: var(--background-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Tour Cards */
.tour-card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}

.main-tour-description h3 {
  margin: 0;
}

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

.card-img-container {
  height: 250px;
  overflow: hidden;
}

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

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

.no-image-placeholder {
  height: 100%;
  width: 100%;
  background-color: var(--card-background);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-card:hover .card-overlay {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .tour-hero-title {
    font-size: 2rem;
  }

  .section-header h1 {
    font-size: 2rem;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

.tour-gallery {
  padding: 4rem 1rem;
  background: var(--background-color);
}

.tour-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tour-header h2 {
  font-weight: 700;
  color: var(--primary-color);
}

.tour-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.tour-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--background-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.tour-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.4s ease;
}

.tour-card:hover img {
  scale: 1.1;
}

.tour-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #adb5bd;
  font-size: 3rem;
}

.tour-badge-1,
.tour-badge-2,
.tour-badge-3,
.tour-badge-4,
.tour-badge-5 {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--background-light);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.tour-badge-1 {
  background: #084298a8;
}

.tour-badge-2 {
  background: rgba(43, 98, 41, 0.85);
}

.tour-badge-3 {
  background: rgba(41, 82, 98, 0.85);
}

.tour-badge-4 {
  background: rgba(21, 213, 219, 0.85);
  color: var(--text-color);
}

.tour-badge-5 {
  background: rgba(82, 41, 98, 0.85);
}

.tour-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.tour-overlay h3 {
  color: var(--background-light);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.tour-footer {
  margin-top: 3rem;
  text-align: center;
}

.tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), #8f94fb);
  color: var(--background-light);
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.tour-footer :hover {
  color: var(--secondary-color);
}

.tour-btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-btn-icon i {
  font-size: 1.4rem;
  z-index: 2;
}

.pulse {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: pulseAnim 1.5s infinite;
}

.pulse.delay {
  animation-delay: 0.5s;
}

@keyframes pulseAnim {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* RTL tweaks */
.tour-btn.rtl {
  flex-direction: row-reverse;
}

/* Entrance animations */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="zoom-in"] {
  transform: scale(0.8);
}

[data-animate="zoom-in"].visible {
  transform: scale(1);
}

/* Card hover: more alive */
.tour-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--background-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(2deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tour-card:hover img {
  scale: 1.15;
  filter: brightness(1.1);
}

/* Overlay reveal animation */
.tour-overlay {
  position: absolute;
  bottom: -100%;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transition: bottom 0.4s ease;
}

.tour-card:hover .tour-overlay {
  bottom: 0;
}

/* Badge bounce */
.tour-badge span {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Play button pulse (already alive) */
.pulse {
  animation: pulseAnim 1.5s infinite;
}

.border-primary {
  border-left: 4px solid #084298 !important;
}

.border-warning {
  border-left: 4px solid #ffc107 !important;
}

.border-danger {
  border-left: 4px solid #842029 !important;
}

.border-success {
  border-left: 4px solid #198754 !important;
}

.border-info {
  border-left: 4px solid #055160 !important;
}

.border-dark {
  border-left: 4px solid #131718 !important;
}

.border-purple {
  border-left: 4px solid #6f42c1 !important;
}

.bg-purple {
  background-color: #6f42c1 !important;
}

.text-purple {
  color: #6f42c1 !important;
}

.border-primary-right {
  border-right: 4px solid #084298 !important;
}

.border-warning-right {
  border-right: 4px solid #ffc107 !important;
}

.border-danger-right {
  border-right: 4px solid #842029 !important;
}

.border-success-right {
  border-right: 4px solid #198754 !important;
}

.border-info-right {
  border-right: 4px solid #055160 !important;
}

/* for site map */
/* Section Styling */
.general-grid-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Grid Container */
.general-grid-container {
  margin-top: 30px;
}

/* Modern CSS Grid */
.general-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* general Card Styling */
.general-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.general-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: var(--card-hover);
}

/* Card Media Area */
.general-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.general-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.general-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Overlay Effect */
.general-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.general-card:hover .general-card-overlay {
  opacity: 1;
}

.general-card-icon {
  width: 48px;
  height: 48px;
  fill: var(--background-light);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Card Content */
.general-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.general-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.general-card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.general-card-title a:hover {
  color: var(--primary-color);
}

.general-card-excerpt {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Read More Link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-top: auto;
}

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

/* Empty State */
.general-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.general-empty p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .general-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .general-card-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .general-grid {
    grid-template-columns: 1fr;
  }

  .general-grid-section {
    padding: 0 10px;
  }
}

/* Animation for loading */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.general-card {
  animation: fadeIn 0.5s ease forwards;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* News Ticker Styles */
.news-ticker-section {
  background-color: var(--primary-color);
  border-top: 2px solid #ff0000;
  border-bottom: 2px solid #ff0000;
  font-family: "Courier New", monospace;
  position: fixed;
  bottom: 0;
  left: 5%;
  width: 90%;
  z-index: 1000;
  padding: 12px 0;
}

.ticker-label {
  height: 100%;
  white-space: nowrap;
}

.ticker-container {
  position: relative;
  height: 30px;
}

.ticker-content {
  position: absolute;
  white-space: nowrap;
  /* Use a CSS variable for the final translateX value */
  --ticker-end: -100%;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  margin-right: 20px;
}

.ticker-separator {
  margin: 0 15px;
  color: #ccc;
}

/* Keyframes using the CSS variable */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(var(--ticker-end));
  }
}

/* RTL support */
[dir="rtl"] .ticker-content {
  --ticker-end: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ticker-label span {
    display: none;
  }

  .ticker-container {
    height: 25px;
    font-size: 0.9rem;
  }
}

/* RTL Overrides */

html[dir="rtl"] body {
  direction: rtl;
  font-size: 0.9rem;
}

html[dir="ltr"] body {
  direction: ltr;
  font-size: 1rem;
}

/* RTL specific adjustments */
html[dir="rtl"] .read-more i,
html[dir="rtl"] .explore-btn i {
  margin-left: 0;
  margin-right: 5px;
  transform: rotate(180deg);
}

html[dir="rtl"] .read-more:hover i,
html[dir="rtl"] .explore-btn:hover i {
  transform: rotate(180deg) translateX(5px);
}

html[dir="rtl"] .announcement-date {
  margin-right: 0;
  margin-left: 1rem;
}

html[dir="rtl"] .student-card {
  text-align: start;
}

/* Details Pages Styles */
.show-main-image {
  max-height: 450px;
  object-fit: cover;
  width: 100%;
}

/* Gallery cards with smooth hover and fade-in */
.show-gallery-card {
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.show-gallery-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.show-gallery-img {
  max-height: 180px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}

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

.show-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-gallery-card:hover .show-overlay {
  opacity: 1;
  transform: scale(1.05);
}

.show-overlay i {
  transition: transform 0.3s ease;
}

.show-overlay a:hover i {
  transform: scale(1.2);
}

/* Smooth fade-in for lazyloaded images */
img.lazyload {
  opacity: 0;
  transition: opacity 0.6s ease;
}

img.lazyloaded {
  opacity: 1;
}

/* Card text images */
.card-text img {
  max-width: 100%;
  border-radius: 0.25rem;
}

/* CV Styles */
.cv-header {
  background: linear-gradient(135deg, #cbd2daff 0%, #4a6580 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 5px solid #c19b64;
}

.cv-section-title {
  color: #2c3e50;
  border-bottom: 2px solid #c19b64;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cv-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

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

.cv-card-header {
  background-color: #4a6580;
  color: white;
  font-weight: 600;
  border-radius: 8px 8px 0 0 !important;
}

.cv-list-group {
  position: relative;
  padding-left: 1.5rem;
}

.cv-list-group-item {
  border: none !important;
  padding: 0.75rem 1rem;
  position: relative;
  list-style: none;
}

.cv-list-group::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e6ef;
}

.cv-degree-icon {
  color: #c19b64;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.cv-list-group-item:hover .cv-degree-icon {
  transform: scale(1.2);
  color: #4a6580;
}

.cv-publication-item {
  border-left: 3px solid #4a6580;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.cv-bg-light-custom {
  background-color: #f1f6fb;
}

/* Study Plan Styles */
.requirements-card {
  border-radius: 0.75rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
  border: none;
  overflow: hidden;
}

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

.requirements-card .card-header {
  background-color: var(--primary-color);
  color: var(--background-light);
  font-weight: 600;
  padding: 1rem 1.5rem;
}

.requirements-card .card-body {
  padding: 1.5rem;
}

.table-responsive {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

table {
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--primary-color);
  color: var(--background-light);
  vertical-align: middle;
  text-align: center;
  font-weight: 600;
  padding: 1rem 0.75rem;
}

.table-hover tbody tr:hover {
  background-color: rgba(51, 102, 255, 0.05);
}

.table caption {
  caption-side: top;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem;
  background-color: rgba(51, 102, 255, 0.1);
}

.year-section {
  background-color: var(--background-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.year-title {
  color: var(--secondary-color);
  border-right: 4px solid var(--secondary-color);
  padding-right: 1rem;
  margin-bottom: 1.5rem;
}

.semester-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #dee2e6;
}

.stats-box {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--background-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stats-label {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.footer {
  background-color: #343a40;
  color: var(--background-light);
  padding: 2rem 0;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .header {
    padding: 1.5rem 0;
    border-radius: 0;
  }

  .header h1 {
    font-size: 1.75rem;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .stats-number {
    font-size: 2rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .table thead th {
    padding: 0.5rem;
  }

  .table td,
  .table th {
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .stats-box {
    padding: 1rem;
  }

  .stats-number {
    font-size: 1.75rem;
  }

  .year-title {
    font-size: 1.25rem;
  }
}
