body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Cairo", sans-serif;
  background-image: url("/assist/background.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  object-fit: cover;
  background-size: 100% auto;
}

/*-------------------------------HEADER----------------------------------------*/
.img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  cursor: pointer;
}

.icon {
  font-size: 1rem;
  cursor: pointer;
  margin-left: 15px;
}

/* General link styles */
.navbar-links {
  list-style: none;
  /* Remove default list styling */
  padding: 0;
  margin: 0;
  display: flex;
  gap: 70px;
  /* Space between links */
}

.navbar-links a {
  text-decoration: none;
  color: black;
  /* Default color for links */
  font-weight: 500;
  position: relative;
  /* Necessary for positioning ::after */
  padding: 5px 0;
  /* Space around the text (optional) */
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  /* Thickness of the underline */
  background-color: black;
  /* Same color as text */
  transition: width 0.3s ease;
}

.navbar-links a.active::after {
  width: 100%;
  /* Match the width of the link text */
}

.navbar-links a:hover::after {
  width: 100%;
  /* Match the text width on hover */
}

.navbar-links a:hover {
  color: darkblue;
  /* Change link color on hover */
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

.navbar-links a.active {
  color: darkblue;
  /* Different color for the active link */
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

.dark-mode {
  background-color: #121212;
  color: white;
}

.dark-mode a {
  color: white;
}

.dark-mode a:hover {
  color: lightblue;
}

/* Adjust underline color in dark mode */
.dark-mode .navbar-links a::after {
  background-color: white;
}

.dark-mode .navbar-links a {
  color: white;
}

.dark-mode .navbar-links a.active {
  text-shadow: none;
}

.dark-mode .navbar-links a.active::after {
  background-color: white;
}

.navbar-dark-mode {
  background-color: #333 !important;
  color: white !important;
  direction: ltr;
}

.dark-mode .navbar-links .active::after {
  background-color: white;
}

.dark-mode .navbar-links a {
  color: white !important;
}

#smNavbar {
  background-color: #f8f9fa;
  z-index: 999;
  /* Navbar should be below the menu */
}

/* Search bar container */
#smSearchBarContainer {
  padding: 10px;
  background-color: #f8f9fa;
}

/* Image styles */
#smimg {
  position: relative;
  left: 10px;
  object-fit: contain;
  cursor: pointer;
}

/* Menu icon styles */
#smMenuIcon {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666666;
  margin-right: 15px;
}

#smSearchIcon {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666666;
  position: relative;
  left: 90px;
}

#smMenuIcon:hover,
#smSearchIcon:hover {
  color: rgb(50, 50, 225);
}

.no-scroll {
  overflow: hidden;
  height: 100%;
}

.sm-menu {
  position: fixed;
  top: 54px;
  left: -270px;
  width: 250px;
  height: 100%;
  background-color: #f8f9fa;
  box-shadow: 3px 6px 5px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: right;
  transition: left 0.3s ease;
  z-index: 1000;
}

.sm-menu.show {
  left: 0;
}

.sm-menu a {
  padding: 8px 16px;
  text-decoration: none;
  font-size: 1.2rem;
  color: #666;
  display: block;
  transition: color 0.3s ease;
  border-bottom: 1px solid #ddd;
}

.sm-menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sm-menu a:hover {
  color: darkblue;
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

.sm-menu a.active {
  color: darkblue;
  text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

/* Dark mode styles */
.dark-mode #smNavbar {
  background-color: #333;
  color: white;
}

.dark-mode .sm-menu {
  background-color: #333;
}

.dark-mode .sm-menu a {
  color: white;
}

/* HEADER END !!!!!!!!!*/

/*------------------------------------------ MAIN ------------------------------------------*/

.section_1 {
  padding: 20px 0;
}

.cover-title {
  color: #214d6d;
}

.btn-title {
  background-color: #145d92;
  color: white;
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 1rem;
  box-shadow: 1px 3px 2px rgba(0, 0, 0, 0.555);
  top: 100;
}

.btn-title:hover {
  background-color: #30b4f1;
  color: white;
}

.union-news-title {
  font-size: 1.5rem;
  color: #214d6d;
  margin: 20px 0;
  text-align: center;
  position: relative;
  right: auto;
  top: -35px;
}

.section_2 {
  margin-top: 120px;
}

.cl4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.large-image,
.small-image {
  width: 100%;
  object-fit: cover;
  box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
  border-radius: 33px;
}

.large-image {
  height: 500px;
}

.small-image {
  height: 250px;
}

.image-wrapper {
  position: relative;
  margin-bottom: 5px;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px 20px;
  background-color: rgba(57, 142, 228, 0.8);
  color: white;
  text-align: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.8s ease;
  border-bottom-left-radius: 33px;
  border-bottom-right-radius: 33px;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.overlay p {
  font-size: 1rem;
  margin: 0;
  text-align: center;
}

.overlay-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ffffff;
  font-size: 1.8rem;
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.3s;
}

.overlay-icon:hover {
  color: rgba(0, 0, 0, 0.8);
}

.text-more {
  color: #2c6f9f;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: right;
}

.btn-more {
  background-color: #30b4f1;
  color: white;
  border-radius: 30px;
  padding: 10px 60px;
  font-size: 1.25rem;
}

.btn-more:hover {
  background-color: #2c6f9f;
  color: white;
}

.section_3 {
  margin-top: 180px;
}

.container .row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-container {
  max-width: 450px;
  height: 450px;
  margin: 0 auto;
  padding: 30px 0px 0px 0px;
  background-color: #eaf1fc;
  border-radius: 8px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}

.calendar-header {
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #141414;
}

.calendar-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #181818;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}

.calendar div {
  font-weight: bold;
  font-size: 16px;
  /* Slightly larger font */
  color: #2d2d2d;
  padding: 10px;
  /* Added padding */
  border-radius: 4px;
  /* Added rounded corners */
}

.calendar .day-name {
  font-weight: bold;
  color: #151515;
}

.calendar .current-day {
  font-weight: bold;
  color: #004085;
  /* Dark blue text color */
  text-shadow: 0 0 5px rgba(0, 123, 255, 0.7);
  /* Blue shadow for text */
}

.timeline {
  padding: 20px;
  position: relative;
}

.event {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  justify-content: space-between;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}

.event:hover {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  justify-content: space-between;
  box-shadow: 2px 2px 4px rgba(41, 140, 227, 0.692);
}

.event-content {
  background-color: #e7f3ff;
  padding: 15px;
  width: 100%;
  direction: rtl;
  transition: background-color 0.9s;
}

.event-content:hover {
  background-color: #145d92;
  color: white;
}

.section_4 {
  margin-top: 150px;
}
.upcoming-activities-title {
  color: #121212; /* لون أزرق سماوي */
  margin-bottom: 30px; /* إضافة مسافة بين العنوان الرئيسي والبوكسات */
  text-align: center; /* تعديل محاذاة النص إذا لزم الأمر */
}

.event h4 {
  color: #65b9e0; /* تغيير لون العناوين داخل البوكسات */
  transition: color 0.5s;
}



.custom-card {
  background-color: #e3f2fd;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  align-items: center;
}

.img1-res,
.img2-res,
.img3-res,
.img4-res {
  height: 250px;
  width: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-right: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-card-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.custom-card-body h5 {
  font-weight: bold;
  color: #2c6f9f;
}

.custom-card-body p {
  color: #555;
  margin: 10px 0;
}

.custom-card-body .btn-res {
  background-color: #47b3f2c0;
  color: white;
  border-radius: 25px;
  padding: 2px 30px;
  font-size: 1rem;
  margin-top: 10px;
  align-self: flex-end;
}

.custom-card-body .btn-res:hover {
  background-color: #145d92;
  color: white;
  border-radius: 25px;
  padding: 2px 30px;
  font-size: 1rem;
  margin-top: 10px;
  align-self: flex-end;
}

.section_5 {
  margin-top: 140px;
}

.section-title {
  font-size: 1.5rem;
  color: #214d6d;
  margin-bottom: 20px;
  text-align: center;
}

.logo-co {
  margin-top: 60px;
  border-radius: 50%;
  max-width: 140px;
  margin-bottom: 10px;
  transition: transform 1s ease;
  box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.1);
}

.logo-co:hover {
  margin-top: 60px;
  border-radius: 50%;
  max-width: 140px;
  margin-bottom: 10px;
  transition: transform 1s ease;
  box-shadow: 0px 8px 8px rgba(42, 153, 244, 0.741);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(109, 109, 109);
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.arrow:hover {
  opacity: 1;
}

.logo-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  width: 100%;
}

@keyframes slide-out-left {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slide-out-right {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slide-in-left {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-out-left {
  animation: slide-out-left 0.6s forwards;
}

.slide-out-right {
  animation: slide-out-right 0.6s forwards;
}

.slide-in-left {
  animation: slide-in-left 0.6s forwards;
}

.slide-in-right {
  animation: slide-in-right 0.6s forwards;
}

.section_6 {
  margin-top: 140px;
}

.certificate-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.certificate-box {
  margin-top: 70px;
}

.certificate {
  transition: transform 0.6s ease;
  opacity: 1;
  margin: 8px;
  box-shadow: 3px 4px 2px rgba(0, 0, 0, 0.564);
  max-width: 100%;
  max-height: 250px;
  height: auto;
}

.arrow1 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(109, 109, 109);
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.left-arrow1 {
  left: -10px;
}

.right-arrow1 {
  right: -10px;
}

.arrow1:hover {
  opacity: 1;
}

.slide-in-right {
  transform: translateX(100%);
  animation: slideInRight 0.6s forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.6s forwards;
}

.slide-in-left {
  transform: translateX(-100%);
  animation: slideInLeft 0.6s forwards;
}

.slide-out-right {
  animation: slideOutRight 0.6s forwards;
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 576px) {
  .section_1 .col-md-5 {
    text-align: center;
  }

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

  .btn-title {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .section_2 {
    margin-top: 80px;
  }

  .large-image {
    height: 200px;
  }

  .small-image {
    height: 150px;
  }

  .col-md-4.text-center {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    width: 100%;
  }

  .image-wrapper {
    position: relative;
    width: 100%;
  }

  .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 25%;
    padding: 30px 20px;
    background-color: rgba(57, 142, 228, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.8s ease;
    border-bottom-left-radius: 33px;
    border-bottom-right-radius: 33px;
  }

  .image-wrapper:hover .overlay {
    opacity: 1;
  }

  .overlay p {
    font-size: 0.85rem;
    margin: 0;
  }

  .text-more {
    position: relative;
    bottom: 30px;
    left: 45px;
    font-size: 1.2rem;
    text-align: center;
    margin: 15px 0;
  }

  .btn-more {
    position: relative;
    top: 160px;
    right: 140px;
    padding: 8px 40px;
    display: flex;
    margin: 0 auto;
    background-color: #30b4f1;
    color: white;
    border-radius: 30px;
    font-size: 1.1rem;
    }

  .header {
    font-size: 1.2rem;
  }

  .section_3 {
    margin-top: 100px;
  }

  .calendar-container {
    max-width: 300px;
    height: auto;
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .calendar-header h2 {
    font-size: 1.2rem;
  }

  .calendar div {
    font-size: 14px;
    padding: 8px;
  }

  .calendar {
    gap: 5px;
  }

  .img-card {
    flex-direction: column;
    align-items: center;
  }

  .img1-res,
  .img2-res,
  .img3-res,
  .img4-res {
    width: 100%;
    border-radius: 15px 15px 0 0;
    margin-right: 0;
  }

  .custom-card {
    border-radius: 0 0 15px 15px;
  }

  #currentLogo {
    max-width: 130px;
    margin-bottom: 100px;
  }

  .current-logo-title {
    margin-top: 60px;
  }

  .certificate {
    height: 200px;
    margin-top: 20px;
  }
}

/*---------------------------------------- MAIN END ----------------------------------------*/

/*----------------------------------------------- FOOTER ----------------------------------------------*/

.footer {
  background-color: #214d6d;
}

.footer-link {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.footer-text {
  font-size: 1rem;
  font-weight: bold;
  color: #1fa2ff;
}

.footer-icon {
  color: white;
  font-size: 1.2rem;
}

.footer-icon:hover {
  color: #ddd;
}

.footer .img {
  position: relative;
  left: 30px;
}

@media (max-width: 586px) {
  .footer {
    font-size: smaller;
  }

  .footer .col-md-6 {
    margin-top: 15px;
  }

  .footer .img {
    position: relative;
    left: 140px;
  }

  .footer-icon {
    margin-top: 5px;
  }
}
