* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: -20px;/*this is the new added line*/
}

.firm {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  overflow: hidden;
  color: white;
  font-weight: 600;
  z-index: 1;
}

#bg-video {
  position: absolute;
  opacity: 60%;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.videotext {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hd2 {
  font-size: 1rem;
  color: #4d6a6d;
}

.hd1 {
  font-size: 3.5rem;
  color: #4d6a6d;
  text-decoration: underline;
  text-decoration-color: #ffffff;
  text-underline-offset: 1rem;
  text-decoration-thickness: 0.2rem;
}

.industries-section {
  background-color: white;
  color: black;
  padding: clamp(30px, 5vw, 60px) 20px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 clamp(10px, 5vw, 20px);
  margin: 0 auto;
  max-width: 1350px;
}

.industry-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.industry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.industry-header {
  font-size: 1.1rem;
  font-family: "Roboto", Arial, sans-serif;
  display: flex;
  flex-direction: column;

  align-items: center;
  margin-bottom: 10px;
  align-items: flex-start;
}

.industry-item img {
  max-width: 55px;
  height: 50px;
  margin-bottom: 10px;
  transition: filter 0.3s ease;
  background-color: #4d6a6d;
}

.industry-item h3 {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  position: relative;
}

.industry-item:hover h3 {
  color: var(--primary-color);
}

.industry-item h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: black;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: background 0.3s ease;
}

.industry-item:hover h3::after {
  background: var(--primary-color);
}

@media (max-width: 768px) {
  .hd2 {
    font-size: 1rem;
  }

  .hd1 {
    font-size: 2.5rem;
    text-decoration: underline;
    text-decoration-color: #4d6a6d;
    text-underline-offset: 1rem;
    text-decoration-thickness: 0.2rem;
  }

  .firm {
    height: 40vh;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hd2 {
    font-size: 1rem;
  }

  .hd1 {
    font-size: 2rem;
    text-decoration: underline;
    text-decoration-color: #4d6a6d;
    text-underline-offset: 1rem;
    text-decoration-thickness: 0.2rem;
  }

  .firm {
    height: 35vh;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .industry-item {
    /*
    align-items: flex-start;
    text-align: left;*/
    align-items: center;        
    text-align: center;
  }

  .industry-item h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /*this is newly added*/
  .industry-header {
    align-items: center;      /* center image + h3 vertically */
  }
}
