body {
  overflow-x: hidden;
  font-family: "Bitter", arial, "Helvetica Neue", helvetica, "Sen", sans-serif;
  font-size: 100%;
}

h1 {
  margin: 30px 0;
  letter-spacing: -0.5px;
  font-family: "Sen", sans-serif;
  font-size: 2.375rem;
  font-weight: 900;
  line-height: 104%;
}

h2 {
  margin: 24px 0;
  letter-spacing: -0.5px;
  font-family: "Sen", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 105%;
}

h3 {
  margin: 26px 0;
  letter-spacing: -0.3px;
  font-family: "Sen", sans-serif;
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 124%;
}

h4 {
  margin: 26px 0;
  letter-spacing: -0.3px;
  font-family: "Sen", sans-serif;
  font-size: 1.3125rem;
  font-weight: 900;
  line-height: 128%;
}

h5 {
  margin: 13px 0;
  font-family: "Sen", sans-serif;
  font-size: 0.9375rem;
  font-weight: 900;
  line-height: 121%;
}

h6 {
  margin: 10px 0;
  letter-spacing: -0.3px;
  letter-spacing: 4%;
  font-family: "Sen", sans-serif;
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 135%;
}

p {
  margin: 0 0 2rem;
  padding: 0;
  font-size: 16px;
}
/* Top Alert Bar */
.top-alert {
  background-color: #ffe75a;
  padding: 12px 0;
  position: relative;
  z-index: 1000;
  transition: all 0.3s ease;
}

.top-alert.closed {
  display: none;
}

.alert-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.news-section {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
}

.news-title {
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-excerpt {
  color: #333;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.read-more {
  color: #2c5282;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding-left: 15px;
}

.read-more i {
  font-size: 0.8em;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

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

.close-alert {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 0 10px;
  transition: opacity 0.2s ease;
}

.close-alert:hover {
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .alert-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .news-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding-right: 30px;
  }

  .news-excerpt {
    white-space: normal;
    max-width: 100%;
    line-height: 1.4;
  }

  .close-alert {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .news-section {
    font-size: 0.85rem;
  }

  .close-alert {
    font-size: 1.3rem;
  }
}

/* === BASE NAVIGATION === */
.desktop-nav {
  height: 80px;
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 0;
  box-sizing: border-box;
  margin: 10px 0;
  flex-wrap: nowrap !important; /* <-- Added */
}

.desktop-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  font-weight: bold;
  /*color: #000;*/
}

.desktop-nav .nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* === FONT SIZE FOR MAIN AND DROPDOWN === */
.desktop-nav .nav-link,
.desktop-nav .dropdown-item {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  color: #000;
  transition: font-weight 0.3s ease; /* Smooth transition for bold effect */
}

/* === MAIN NAV HOVER EFFECT === */
.desktop-nav .nav-link:hover {
  color: #336699;
}

/* === DROPDOWN ITEM SPACING AND STYLE === */
.desktop-nav .dropdown-item {
  font-size: 1rem;
  padding: 5px 1.5rem;
  margin: 10px 0;
  color: #000;
  text-decoration: none;
}

.desktop-nav .dropdown-item:hover {
  font-weight: bold;
  /*background-color: #f8f9fa;*/
  color: #336699;
}

/* === DROPDOWN STRUCTURE === */
.desktop-nav .nav-item.dropdown {
  position: relative;
}

.desktop-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 1000;
  border: none;
  overflow: visible;
  min-width: 180px;
}

/* Show dropdown on hover (desktop only) */
@media (min-width: 992px) {
  .desktop-nav .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* === DROPDOWN POINTER ARROW === */
.desktop-nav .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  z-index: 1001;
}

/* Optional shadow for arrow */
.desktop-nav .dropdown-menu::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* === CHEVRON ICON ANIMATION === */
.chevron-icon {
  transition: transform 0.3s ease;
}

.chevron-up {
  transform: rotate(180deg);
}

/* === CONTACT BUTTON === */
.contact-btn {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  background-color: #fd7e14;
  color: #fff;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: #e96a07;
  color: #fff;
}

.contact-btn a {
  color: #fff;
  text-decoration: none;
}

.contact-btn a:hover {
  color: #fff;
}

/* === SEARCH ICON STYLE (optional if needed) === */
.search-icon {
  font-size: 1.2rem;
  color: #000;
}

.search-icon:hover {
  color: #336699;
}

/* === ADDED FIXES FOR ALIGNMENT ISSUES === */

/* Prevent inner layout from wrapping */
.desktop-nav > .d-flex {
  flex-wrap: nowrap;
}
.contact-btn {
  background-color: #16a1c3;
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: #00bfee;
  color: white;
}

#searchBox {
  box-shadow: 0 4px 12px #16a1c3;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1050;
  min-width: 250px;
}

#searchToggle i {
  transition: transform 0.3s ease, color 0.3s ease;
  color: inherit; /* default icon color */
}

#searchToggle:hover i {
  transform: scale(1.2);
  color: red;
}

/* Optional smooth animation */
#searchBox.show {
  opacity: 1;
  transform: translateY(0);
}

#searchBox.hide {
  opacity: 0;
  transform: translateY(-10px);
}
.mobile-contact-icon {
  margin: 0 20px;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  color: #0d6efd; /* original blue */
}

.mobile-contact-icon:hover {
  color: #0a58ca; /* darker blue on hover */
  transform: scale(1.1);
}

/* === Banner Image === */
.carousel-item {
  position: relative;
  height: 65vh; /* Mobile-first height */
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay for better text contrast */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Carousel caption styles */
.carousel-caption {
  z-index: 2;
  color: white;
  padding: 1rem;
  bottom: 15%;
  left: 5%;
  right: 5%;
}

.carousel-caption h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.carousel-caption p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Carousel button styles */
.carousel-caption .btn {
  border: 2px solid white;
  background-color: transparent;
  color: white;
  padding: 0.6rem 1.8rem;
  font-size: 1rem;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.carousel-caption .btn:active {
  transform: scale(0.98);
}

/* Mobile styles */
@media (max-width: 991.98px) {
  .carousel-item {
    height: 55vh;
  }

  .carousel-caption {
    bottom: 10%;
    padding: 0.5rem;
  }

  .carousel-caption h1 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-caption .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Hide controls completely on mobile */
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  /* Make indicators more touch-friendly */
  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 6px;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .carousel-item {
    height: 80vh;
  }

  .carousel-item::before {
    background: rgba(0, 0, 0, 0.3);
  }

  .carousel-caption {
    text-align: left;
    padding: 2rem;
    bottom: 30%;
    left: 10%;
    right: auto;
    max-width: 600px;
  }

  .carousel-caption h1 {
    font-size: 2.5rem;
  }

  .carousel-caption p {
    font-size: 1.25rem;
    -webkit-line-clamp: unset;
    display: block;
  }

  /* Show controls on hover only */
  .carousel-control-prev,
  .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
  }

  #myCarousel:hover .carousel-control-prev,
  #myCarousel:hover .carousel-control-next {
    opacity: 1;
  }
}

/* Button hover states for non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .carousel-caption .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

.footer-nav a {
  color: #036cb6;
  text-decoration: none;
  font-size: 14px;
}
.footer-nav a:hover {
  text-decoration: underline;
}
footer img {
  transition: transform 0.2s ease;
}
footer img:hover {
  transform: scale(1.1);
}
.social-icon {
  display: inline-block;
  background-color: #336699;
  color: #fff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.social-icon:hover {
  background-color: #2b5a85; /* Slightly darker on hover */
  color: #fff;
}

/* Mobile Header Styles */
.mobile-nav {
  position: relative;
  z-index: 1000;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-logo img {
  height: 40px;
  width: auto;
}

.hamburger-button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-contact-btn {
  background: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Enhanced Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
}

.mobile-menu-overlay.active {
  right: 0;
  visibility: visible;
  opacity: 1;
}

.mobile-menu-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 85%;
  max-width: 480px; /*changed from 320px to 480px*/
  height: 100%;
  background: white;
  padding: 1.5rem 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-container {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.close-button {
  font-size: 1.8rem;
  cursor: pointer;
  text-align: right;
  color: #333;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-button:hover {
  color: #019fcb;
  background-color: rgba(1, 159, 203, 0.1);
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-item {
  margin: 0;
  padding: 0;
}

.mobile-menu-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu-item > a:hover,
.mobile-menu-item > a:focus {
  background-color: rgba(1, 159, 203, 0.05);
  color: #019fcb;
}

.mobile-menu-item.has-dropdown.active > a {
  background-color: rgba(1, 159, 203, 0.08);
  color: #019fcb;
  border-bottom-color: #e0e0e0;
}

.dropdown-chevron {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: #666;
}

.has-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
  color: #019fcb;
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(0, 0, 0, 0.03);
}

.mobile-submenu.active {
  max-height: 500px;
}

.mobile-submenu a {
  display: block;
  padding: 0.9rem 1.5rem 0.9rem 2.5rem;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-submenu a:hover,
.mobile-submenu a:focus {
  background-color: rgba(1, 159, 203, 0.1);
  color: #019fcb;
  padding-left: 2.8rem;
}

.mobile-submenu a:last-child {
  border-bottom: none;
}

.mobile-menu-item.search-item > a {
  color: #019fcb;
  background-color: rgba(1, 159, 203, 0.05);
  border-top: 1px solid #e0e0e0;
  margin-top: 1rem;
}

.mobile-menu-item.search-item > a:hover {
  background-color: rgba(1, 159, 203, 0.1);
}

/* Hamburger button improvements */
.hamburger-button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hamburger-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-button.active .hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-button.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-button.active .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile contact icon improvements */
.mobile-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-contact-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile header improvements */
.mobile-header-container {
  padding: 0.75rem 1rem;
  background-color: #019fcb;
}

.mobile-logo img {
  height: 40px;
  width: auto;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mobile-menu-container {
    width: 100%; /*changed from 90% to 100%*/
  }

  .mobile-menu-item > a {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
  }

  .mobile-submenu a {
    padding: 0.8rem 1.25rem 0.8rem 2rem;
  }

  .mobile-submenu a:hover {
    padding-left: 2.2rem;
  }
}

/* Partners Section */
.partners-section {
  padding: 4rem 0;
  /*background: #fff;*/
}

.partners-container {
  position: relative;
  padding: 2rem 0;
}

.partners-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  gap: 3rem;
  -webkit-overflow-scrolling: touch;
}

.partner-item {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
  transition: transform 0.2s ease;
}

.partner-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 1rem;
  /*background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);*/
}

.partner-logo img {
  max-width: 160px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.partner-name {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* Hover Effects */
.partner-item:hover .partner-logo img {
  transform: scale(1.05);
}

.partner-item:hover .partner-name {
  color: #007bff;
}

/* Scrollbar Styling */
.partners-scroll::-webkit-scrollbar {
  height: 6px;
}

.partners-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.partners-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .partner-item {
    width: 180px;
  }

  .partner-logo {
    height: 100px;
    padding: 0.8rem;
  }

  .partner-logo img {
    max-width: 140px;
    max-height: 70px;
  }

  .partner-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .partners-scroll {
    gap: 2rem;
  }

  .partner-item {
    width: 160px;
  }

  .partner-logo {
    height: 90px;
  }

  .partner-logo img {
    max-width: 120px;
  }
}
