body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Cairo", sans-serif;
}

/*-------------------------------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);
}

/* 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 {
  background-color: #121212;
  color: white;
}

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

#smNavbar {
  background-color: #f8f9fa;
}

#smSearchBarContainer {
  padding: 10px;
  background-color: #f8f9fa;
}

#smimg {
  position: relative;
  right: 12px;
}

.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: #30b4f1;
  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);
}

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

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

#smMenuIcon {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666666;
  margin-right: 15px;
}

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

#smNavbar {
  background-color: #f8f9fa;
}

#smSearchIcon,
#smMenuIcon {
  font-size: 1.5rem;
  cursor: pointer;

  color: #666666;
}

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

.sm-menu a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #333;
  padding: 10px 0;
  border-bottom: 1px solid #30b4f1;
}

.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 !!!!!!!!*/

main {
  flex: 1;
  margin: 0;
}

.contact-section {
  background-image: url("/assist/contact.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  margin: 0;
}

.contact-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contact-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-text h1 {
  font-size: 2.5rem;
  color: #5dbcd2;
}

.contact-text p {
  font-size: 1.2rem;
  color: #e0e0e0;
}

.contact-container {
  padding: 30px;
  padding-bottom: 150px;
  background-color: #214d6d;
  color: white;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  /* Ensures padding is included in the width */
}

.contact-info {
  margin-bottom: 1rem;
  text-align: center;
}

.contact-info h2 {
  font-size: 1.8rem;
  color: #5dbcd2;
  margin-bottom: 0.5rem;
}

.contact-info p {
  font-size: 1rem;
  color: #ddd;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  /* Ensures padding is included in the width */
}

.contact-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ddd;
  font-size: 1rem;
  margin-left: 10px;
  text-align: left;
  width: 100%;
  word-wrap: break-word;
  /* Ensures links break to the next line if too long */
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #ffffff;
}

.contact-link:hover {
  color: #5dbcd2;
}

.my-3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.form-section h3 {
  color: #265a7f;
}

.dark-mode .form-section h3 {
  color: #5dbcd2;
}

.form-control {
  padding: 15px;
  background-color: #f1f1f1;
  border: none;
}

.form-control::placeholder {
  color: #000000;
}

.submit-btn {
  background-color: #265a7f;
  color: white;
  border: none;
  border-radius: 20px;
  width: 100px;
}

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

.map-container img {
  width: 100%;
  /* Full width of the container */
  border-radius: 10px;
  /* Optional: rounded corners */
  cursor: pointer;
  /* Shows a pointer cursor on hover */
  height: 300px;
}

@media (max-width: 586px) {
  .contact-container {
    padding: 20px;
    padding-bottom: 100px;
  }

  .contact-link {
    margin-left: 0;
    font-size: 0.9rem;
    /* Adjust the font size for smaller screens */
  }

  .contact-icon {
    font-size: 1.2rem;
    /* Adjust the icon size for smaller screens */
  }
}

/*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;
  }
}
