body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #f37021;
  color: white;
  padding-top: 0;
  padding-bottom: 10px ;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info-top {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap onto multiple lines if necessary */
  justify-content: center; /* Centers the items horizontally */
  align-items: center; /* Aligns items vertically in the center */
  background-color: white;
  color: #696867;
  padding: 10px;
  width: 100%;
  text-align: center;
}

.contact-info-top p {
  display: flex;
  align-items: center;
  margin: 5px 15px;
}

.contact-info-top p img{
  margin-right: 5px;
  width: 20px; /* Adjust the size as needed */
  height: 20px; /* Adjust the size as needed */
}

.contact-info-top a {
  color: #696867;
  text-decoration: none;
}

.contact-info-top a:hover {
  color: #161af1;
}

header h1 img {
  max-width: 100%;
  height: auto;
}

nav {
  margin-top: 10px;
}

/* Add dropdown menu */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for mobile view */
}

nav ul li {
  position: relative;
  margin: 5px 10px; /* Add some margin for spacing */
}

nav ul li a {
  color: white;
  /* margin: 0 15px; */
  text-decoration: none;
  font-size: x-large;
}

nav ul li a:hover {
  color: #161af1;
}

nav ul li .dropdown-toggle::after {
  content: " \2304"; /* Unicode escape sequence for downward arrowhead */
  font-size: 1em;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease; /* Smooth transition for movement */
}

nav ul li:hover .dropdown-toggle::after {
  transform: translateY(3px); /* Move the arrow down on hover */
}

nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 250px;
  box-shadow: 0px 8px 16px 0px rbga(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px; /* Round corners */
}

nav .dropdown-content a {
  color: #696867;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
}

nav .dropdown-content a:hover {
  color: #161af1; /* Text color change an hover */
  text-decoration: none;
}

nav li:hover .dropdown-content {
  display: block;
}

main {
  background-color: #f0f8ff; /*Light blue color*/
  padding: 0px;
}

h2 {
  text-align: center;
  margin-top: 0px;
  padding-top: 50px;
  font-size: 2em; /* Adjust the value to make the font size larger as desired */
  color: #c74c00;
}

.agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 150px;
}

.agent {
  text-align: center;
  background-color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s; /* Optional: add a hover effect */
}

.agent:hover {
  transform: scale(1.05); /* Optional: add a hover effect */
}

.agent img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 10px;
}

.agent h3 {
  margin: 10px 0 5px;
  font-size: 1.0em;
}

.agent p {
  margin: 5px 0;
  font-size: 0.8em;
  display: flex;
  align-items: flex-start;
}
.highlight-description {
  color: #f37021;
}

.agent p img {
  margin-right: 5px;
  width: 16px; /* Adjust the size as needed */
  height: 16px; /* Adjust the size as needed */
}

.footer-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 100px;
  padding-right: 100px;
  background-color: #0089d0;
}

.contact-info {
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info p {
  color: #ffffff;
}

.contact-info img {
  margin: 10px;
}

.contact-text p {
  text-align: left;
  color: #f5f4f3;
  display: flex;
}

.contact-text a:hover {
  color: #ccc;
}

.contact-text p img {
  margin-right: 5px;
  width: 20px; /* Adjust the size as needed */
  height: 20px; /* Adjust the size as needed */
  
}

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

.contact-info p {
  margin: 5px 0;
}

.social-media-info {
  margin: 0 10px;
}

.social-media-info img {
  width: 50px;
  height: auto;
  vertical-align: middle;
}

.logIn p a {
  text-align: center;
  padding: 20px;
  color: #ccc;
}

.logIn a:hover {
  color: #f37021;
}

.agents-profile {
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  background-color: #f9f9f9;
  display: none; /* Initially hidden */
}

/* Media Queries for Tablet and iPad in landscape Mode*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  /* Styles for tablets and iPads */
  header h1 img {
    width: 100%;
    height: auto;
  }

  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-wrap: nowrap;
  }

  nav ul li {
    margin: 10px 20; /* Increase vertical spacing for navigation items */
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .agents {
    padding: 20px;
    gap: 30px;
  }

  .agent {
    padding: 20px;
  }

  .agent img {
    width: 150px;
    height: 150px;
  }

}

/* Media Queries for Tablet and iPad in Portrait Mode*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)  {
  /* Styles for tablets and iPads */
  header h1 img {
    width: 100%;
    height: auto;
  }

  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-wrap: nowrap;
  }

  nav ul li {
    margin: 10px 20; /* Increase vertical spacing for navigation items */
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .agents {
    padding: 20px;
    gap: 30px;
  }

  .agent {
    padding: 20px;
  }

  .agent img {
    width: 150px;
    height: 150px;
  }

}

/* Styles for other tablets or devices with widths between 600px and 900px */
@media only screen and (min-width: 600px) and (max-width: 900px) {
  /* Styles for other tablets */
  header h1 img {
    width: 100%;
    height: auto;
  }

  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-wrap: nowrap;
  }

  nav ul li {
    margin: 10px 20; /* Increase vertical spacing for navigation items */
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .agents {
    padding: 20px;
    gap: 30px;
  }

  .agent {
    padding: 20px;
  }

  .agent img {
    width: 150px;
    height: 150px;
  }

}

/* Media Queries for Mobile Devices */
@media only screen and (max-width: 480px) {
  header h1 img {
    width: 100%;
    height: auto;
  }
  
  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .agents {
    padding: 20px;
    gap: 30px;
  }

  .agent {
    padding: 20px;
  }

  .agent img {
    width: 150px;
    height: 150px;
  }
}
