/* 
===============================================
  TABLE OF CONTENTS
  1. Global Styles
  2. Top Bar Styles
  3. Logo Section
  4. Navbar Section
  5. Dropdown Menu Styles
  6. Button Styles
  7. Responsive Styles
===============================================
*/

/* === 1. Global Styles === */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

/* === 2. Top Bar Styles === */
.topbg-color {
  background-color: #5297c3;
  color: #fff !important;
  padding: 10px 0;
}

.topbg-color .t-icon {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  margin-right: 20px;
}

.topbg-color .t-icon i {
  margin-right: 5px;
}

/* === 3. Logo Section === */
.logo-aspect-div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px; /* Reduced maximum width */
  height: 60px; /* Smaller height for the logo container */
  background-color: #fff;
}

.logo-aspect-div img {
  max-width: 100%; /* Prevent image from exceeding the container width */
  max-height: 100%; /* Ensure the image height is contained */
  object-fit: contain; /* Fit the image within the container without distortion */
  object-position: center; /* Center the logo within the container */
}

/* === 4. Navbar Section === */
.navbar-wrap {
  background-color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 10px 20px;
}

.nav-item {
  padding: 0 10px;
}

.nav-item a {
  color: #063572 !important;
  font-size: 15px;
  font-weight: 600;
}

li .activeLink, .activeLink {
  color: #1494b9 !important;
  border-bottom: 3px solid #1494b9;
}

/* Toggler Button on Mobile View */
.navbar-toggler {
  border: none;
  outline: none;
}

/* === 5. Dropdown Menu Styles === */
.navbar-expand-lg .navbar-nav .dropdown-menu {
  background-color: #5297c3;
  border: none;
  padding: 0;
}

.dropdown ul {
  padding: 0;
  margin: 0;
}

.dropdown ul li a {
  color: #fff !important;
  font-size: 14px !important;
  text-transform: none;
  font-weight: 400;
  padding: 10px 20px;
  display: block;
}

.dropdown ul li a:hover {
  color: #000 !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* === Dropdown Menu Styling with Effects === */
.navbar-nav .dropdown-menu {
  display: none; /* Hide dropdown by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px); /* Start the dropdown slightly above */
  transition: all 0.3s ease; /* Smooth transition for the appearance */
}

.navbar-nav .dropdown:hover .dropdown-menu {
  display: block; /* Show the dropdown on hover */
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* Slide down effect */
}

/* Add hover effect for dropdown items */
.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #1494b9; /* Change background color on hover */
  color: #fff; /* Text color change on hover */
  transition: background-color 0.3s ease; /* Smooth background color transition */
}

/* === 6. Button Styles === */
.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
  font-size: 14px;
  padding: 8px 16px;
  text-transform: uppercase;
  font-weight: bold;
}

/* === 7. Responsive Styles === */
@media screen and (max-width: 640px) {
    .logo-aspect-div {
    max-width: 140px; /* Further reduce the size on smaller screens */
    height: 50px; /* Adjust height for mobile */
  }

  .logo-aspect-div img {
    max-width: 100%;
    height: auto; /* Ensure proper scaling for mobile */
  }

  .navbar-toggler {
    margin-right: 15px !important;
  }

  .topbg-color .t-icon {
    display: block;
    text-align: center;
    margin-bottom: 10px;
  }

  .topbg-color .t-icon i {
    margin-right: 5px;
  }

  .navbar-collapse {
    text-align: center;
  }

  .dropdown ul li a {
    padding: 10px;
    font-size: 13px;
  }
}
