.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5); /* Apply brightness only to the image */
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1; /* Ensure the content is above the image */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h2,
.hero-content p {
  margin: 0px 0px 20px 0px;
}

.hero-content p {
  width: 50%;
}

.detail-btn {
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 10px;
}

/* 3 column image  */

.row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.column {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.layer-column-1 {
  transition-delay: 0.3s;
}

.layer-column-2 {
  transition-delay: 0.6s;
}

.layer-column-3 {
  transition-delay: 0.9s;
}

/* When section is visible */
.visible .column {
  opacity: 1;
}

/* Style the image container */
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.color-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

/* Color layer styles */

.layer-1 {
  background: linear-gradient(180deg, #ffdb4380, #09283880);
}

.layer-column-1:hover .layer-1 {
  background: linear-gradient(90deg, #09283880, #ffdb4380);
}

.layer-2 {
  background: linear-gradient(180deg, #00c5a280, #09283880);
}

.layer-column-2:hover .layer-2 {
  background: linear-gradient(90deg, #09283880, #00c5a280);
}

.layer-3 {
  background: linear-gradient(180deg, #25aff980, #09283880);
}

.layer-column-3:hover .layer-3 {
  background: linear-gradient(90deg, #09283880, #25aff980);
}

/* Text container in the center of the image */

.text-container {
  position: absolute;
  z-index: 2;
  text-align: center;
  padding: 10px;
}

.column-description {
  margin-top: 5px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* welcome to sfs section  */

.inner-welcome {
  display: flex;
  justify-content: space-between;
}

.text-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 0px 50px;
}

.right-img {
  display: flex;
  justify-content: right;
  width: 50%;
}

.welcome-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* counter  */

.counter-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.counter-column {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 300px;
  width: 25%;
}

.counter-column img.counter-icon {
  width: 50px;
  height: 50px;
}

/* blog section */

.blog-section {
  padding: 100px 0px;
}

.blog-text-and-button {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.view-all-btn {
  border: none;
  padding: 10px 30px;
  height: 40px;
  cursor: pointer;
  border-radius: 10px;
}

.gradient-btn {
  transition: all 1s ease;
}

.gradient-btn:hover {
  background: linear-gradient(
    90deg,
    rgb(5, 80, 141) 20%,
    /* Slight shift in the gradient positions */ rgb(46, 170, 172) 80%
  );
}

/* card  */

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.card {
  width: 32%;
  overflow: hidden;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  position: relative;
  transition: transform 0.4s ease;
  transform: translateX(-100%); /* Initially place them off-screen */
}

.card-show {
  transform: translateX(0); /* Move to normal position when visible */
}

.card-row.show-cards {
  opacity: 1; /* Show the row when it's in view */
}

.card-img {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  min-height: 40.5rem;
  height: auto;
  z-index: 1;
  object-fit: cover;
  filter: brightness(0.5);
}
.dummy-img img {
  width: 100%;
  min-height: 40.5rem;
  height: auto;
  z-index: 1;
  object-fit: cover;
}

.card-content {
  position: absolute;
  bottom: 40px;
  left: 10px;
  z-index: 2;
}
.dummyCards {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 1rem;
}

.margin-3 {
  margin: 3rem;
}

.font-500 {
  font-weight: 500 !important;
}

.font-style {
  font-size: 1.9rem !important;
  font-weight: 500;
  text-transform: capitalize;
}

/* Responsive adjustments */

@media (max-width: 992px) {
  .text-left {
    padding: 0px 20px;
  }

  .card {
    width: 48%;
  }
}

@media (max-width: 768px) {
  /* hero section  */

  .hero-content p {
    width: 80%;
  }

  .column {
    flex: 0 0 100%;
  }

  /* counter  */

  .counter-column {
    width: 50%;
  }

  /* welcome section  */

  .welcome-section {
    flex-direction: column;
  }

  .inner-welcome {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .text-left {
    padding: 0px 0px;
  }

  .text-left,
  .right-img {
    width: 100%;
  }

  .text-left {
    padding-top: 20px;
    width: 95%;
    margin: auto;
  }

  .card {
    width: 100%;
  }
}

@media (max-width: 556px) {
  .counter-row-2 {
    flex-direction: column-reverse;
  }

  .counter-column {
    width: 100%;
  }

  .blog-text-and-button {
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: normal;
  }

  .card {
    width: 100%;
    margin-bottom: 20px;
  }

  .view-all-btn {
    display: flex;
    margin-top: 20px;
    justify-content: center;
  }
}
