@media (max-width: 991.98px) {
  section:first-of-type {
    padding-top: 3rem !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: grey !important;
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.8);
    position: fixed;
    max-height: 80vh;
    overflow-y: auto;
    top: 0;
    left: 5;
    width: 40%;
    height: 250px;
    padding: 1rem;
    z-index: 1020;
    margin-top: 56px;
    backdrop-filter: blur(5px);
    border-radius: 5px;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    color: white !important;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-section-esg .hero-content,
  .hero-section .hero-content,
  .hero-section-equal .hero-content,
  .hero-section-about .hero-content,
  .hero-section-recent .hero-content,
  .hero-section-csr .hero-content {
    width: 100% !important;
    text-align: center;
    padding: 1rem;
  }

  .hero-section-esg .container,
  .hero-section .container,
  .hero-section-equal .container,
  .hero-section-about .container,
  .hero-section-recent .container,
  .hero-section-csr .container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-section-equal .container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 767.98px) {
  section.flex-column-on-small .d-flex.h-100 {
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem;
  }

  section.flex-column-on-small #solar {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem;
  }

  #carouselElectrical,
  #carouselSolar,
  #carouselSiteBuild {
    width: 100% !important;
    height: auto !important;
  }

  #carouselElectrical .carousel-inner,
  #carouselElectrical .carousel-item {
    height: auto !important;
  }

  #carouselElectrical img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  section.flex-column-on-small h3 {
    text-align: center;
    margin-bottom: 1rem;
  }

  section.flex-column-on-small > div > div:last-child {
    width: 100% !important;
  }
}

body {
  margin: 0;
  padding: 0;
}

.logo {
  width: 300px;
  height: 80px;
}

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

#card-team {
  width: 300px;
}

#card-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

#list-group {
  text-align: left;
}

#logo-div {
  width: 80px;
  height: 100%;
}

#card-image-about {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#services-image {
  width: 75px;
  height: 75px;
}

.navbar {
  transition: all 0.3s ease;
  background-color: transparent !important;
}

.navbar.scrolled {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
  color: black !important;
}

.navbar.scrolled #brandName {
  color: black !important;
}

.hero-section {
  height: 700px;
  background-image: url(img/tele.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.hero-section-about {
  height: 700px;
  background-image: url("img/elec.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-section-recent {
  height: 700px;
  background-image: url("img/project.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-section-csr {
  height: 700px;
  background-image: url("img/csr.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-section-equal {
  height: 1000px;
  background-image: url("img/handshake.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-section-esg {
  height: 1000px;
  background-image: url("img/clean.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#dirImage {
  width: 100px;
  height: 100px;
}

.carousel-inner {
  object-fit: cover;
  object-position: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
