*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", serif;
}

body {
  background-color: #edf3ff;
}

/* Custom scrollbar*/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #c9d6eb;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #6a8fc8;
  border-radius: 10px;
  border: 2px solid #e0e9f7;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #5076b5;
}
/**LOGO **/
.logo {
  width: 80%;
}
/** Main **/
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
}
/**SECTION HEADING **/

.section-heading {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}
.section-heading span {
  color: #002e82;
}

/** Wavy Underline text **/
/* .wavy {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: #002e82;
} */

/* Navigation Bar */

nav {
  padding: 0px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Changed from default to space-between */
  width: 70%; /* Add width to contain the links */
}

.nav-links a {
  margin-right: 25px;
  position: relative;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: -3x;
  content: " ";
  width: 0;
  display: block;
  overflow: hidden;
  border-bottom: 2px solid #002e82;
  transition: 0.4s all;
}
.nav-effect:hover::after {
  width: 100%;
}

a:link,
a:visited,
a:active {
  text-decoration: none;
  color: #000;
}

/** FOOTER CONTAINER **/
.map-section {
  flex: 2;
  padding-left: 20px;
}

.map-section h3 {
  color: #002e82;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

#map {
  height: 250px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Footer Section Styles */
.footer {
  padding: 60px 50px 20px;
  background-color: #fff;
  margin-top: 40px;
}

.footer-container {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.brand-text {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-links p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.social-links img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.company-section {
  flex: 1;
}

.company-section h3,
.contact-section h3,
.map-section h3 {
  color: #002e82;
  font-size: 18px;
  margin-bottom: 25px;
  font-weight: 600;
}

.company-links {
  list-style: none;
  padding: 0;
}

.company-links li {
  margin-bottom: 15px;
}

.company-links a {
  color: #333;
  font-size: 14px;
  transition: color 0.3s ease;
}

.company-links a:hover {
  color: #002e82;
}

.contact-section {
  flex: 1.5;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.footer-icon {
  width: 20px;
  min-width: 20px;
  margin-top: 4px;
}

.vertical-line {
  width: 1px;
  background-color: #e0e0e0;
  height: 200px;
  margin: 0 15px;
}

/* Responsive Design for Medium Screens */
@media (max-width: 1024px) {
  .footer-container {
    flex-wrap: wrap;
  }

  .map-section {
    flex: 100%;
    margin-top: 30px;
  }
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .vertical-line {
    display: none;
  }

  .company-section,
  .contact-section {
    width: 100%;
  }

  .map-section {
    padding-left: 0;
    margin-top: 30px;
    width: 100%;
  }

  #map {
    height: 200px;
  }
}

/*********** Hamburger Menu Styles **************/
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 2px 0;
  transition: 0.3s;
}

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

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

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

/** Prevent Scrolling **/

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/******************** Responsive Styles ***************************/

/** For screen of 1024 px or lower **/
@media screen and (max-width: 1024px) {
}
/** For screen of 960px or lower **/
@media (max-width: 960px) {
  /**Logo **/
  .logo {
    max-width: 200px;
  }
  /* Navigation */
  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .nav-links {
    display: flex;
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 75%;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
    background-image: url("assets/images/background.svg");
  }

  .nav-links a {
    margin: 20px 0;
    font-size: 20px;
  }
}
/** For screen of 768px or lower **/
@media screen and (max-width: 768px) {
}

/** For screen of 480px or lower **/

@media screen and (max-width: 480px) {
  nav {
    padding: 0 10px;
  }
  .logo {
    max-width: 150px;
  }
}

/** Dropdown**/
/** Dropdown**/
.dropdown {
  position: relative;
  display: inline-block;
  margin: 20px 0;
}

/** Drop down right arrow **/
.right-arrow-icon {
  transform: translateY(4px);
  transition: transform 0.3s ease;
}

.arrow-icon {
  width: 20px;
}

/* Added invisible bridge to prevent dropdown from closing */
.dropdown::after {
  content: "";
  position: absolute;
  height: 20px;
  width: 100%;
  left: 0;
  top: 100%;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 800px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 30px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  top: calc(100% + 20px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Dropdown arrow */
.dropdown-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: grid;
  opacity: 1;
}

.dropdown-content:hover {
  display: grid;
  opacity: 1;
}

/* Dropdown Sections */
.dropdown-section {
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.dropdown-section:hover {
  background-color: #eef3fa; /* Slightly lighter than your background color */
}
.dropdown-section h3 {
  color: #002e82;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 600;
}

.dropdown-section a {
  display: block;
  color: #333;
  padding: 10px 15px;
  font-size: 14px;
  margin: 0 !important;
  text-wrap: nowrap;
  transition: all 0.3s ease-in-out;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.dropdown-section a:hover {
  color: #002e82;
  font-weight: 500;
  background-color: rgba(0, 46, 130, 0.08);
  transform: translateX(5px);
}

/* Mobile Submenu */
.mobile-arrow {
  display: none;
}

.submenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  transition: transform 0.3s ease-in-out;
}

.submenu-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.back-btn {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.back-btn:hover {
  transform: translateX(-3px);
}

.submenu h2 {
  margin-left: 20px;
  color: #002e82;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h3 {
  color: #002e82;
  margin-bottom: 15px;
  font-weight: 600;
}

.menu-section a {
  display: block;
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.menu-section a:hover {
  background-color: #eef3fa;
  color: #002e82;
  transform: translateX(5px);
}

/* Responsive Styles */
@media screen and (max-width: 960px) {
  .dropdown::after {
    display: none;
  }

  .dropdown-content {
    position: static;
    min-width: 100%;
    transform: none;
    box-shadow: none;
    display: none;
    grid-template-columns: 1fr;
    background: transparent;
    padding: 0 20px;
  }

  .dropdown-content::before {
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: grid;
  }

  .dropdown-section {
    padding: 5px 0;
  }

  .dropdown-section h3 {
    font-size: 16px;
    margin: 10px 0;
  }

  .dropdown-section a {
    font-size: 14px;
    padding: 10px 15px;
  }

  .nav-links {
    padding-top: 60px;
  }

  .mobile-arrow {
    display: inline;
    margin-left: 5px;
  }

  .dropdown-content {
    display: none !important;
  }

  .submenu.active {
    display: block;
  }

  .menu-section a {
    padding: 12px 15px;
  }
}

/**************************************************************************************************************************************/
/** CHANGES **/

.store-locator {
  padding: 40px 30px;
  margin: 0 auto;
}

.store-heading {
  color: #002e82;
  font-size: clamp(24px, 5vw, 36px);
  text-align: center;
  font-weight: 600;
  margin-bottom: 40px;
  text-transform: uppercase;
  position: relative;
}
.store-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #002e82;
}

@media (max-width: 768px) {
  .store-heading {
    margin: 30px 0;
  }
}
@media (max-width: 576px) {
  .store-heading {
    margin: 25px 0;
  }
}
@media screen and (max-width: 480px) {
  .store-heading {
    font-size: 24px;
  }
}
.search-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 280px;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  background-color: #002e82;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #001f5c;
}

.map-results-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  height: 600px;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.search-results {
  background: white;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
}

.store-card {
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.store-card:hover {
  background-color: #f5f5f5;
}

.store-card h3 {
  color: #002e82;
  margin-bottom: 10px;
  font-size: 16px;
}

.store-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.store-card .distance {
  color: #002e82;
  font-weight: 500;
  margin-bottom: 10px;
}

.store-card .contact {
  color: #002e82;
  font-weight: 500;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #002e82;
  font-size: 14px;
  transition: background-color 0.2s;
}

.directions-btn:hover {
  background-color: #e0e0e0;
}

@media (max-width: 768px) {
  .map-results-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  #map {
    height: 400px;
  }

  .search-results {
    height: auto;
    max-height: 400px;
  }
}
/** Changes **/
#footerMap {
  height: 200px; /* or whatever height you prefer */
  width: 100%;
}
