/**** Font Import *****/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

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

img {
  width: 100%;
  height: auto;
}

.header-background {
  position: relative;
  background: linear-gradient(
      -60deg,
      rgba(255, 255, 255, 0.1) 45%,
      rgba(255, 255, 255, 0) 45%
    ),
    url("/upload/images/banner-projects.png");
  background-repeat: no-repeat;
  background-size: 500%;
  background-position-x: 50%;
  background-position-y: 0%;
  height: 400px;
}

.header-text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", san-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
}

.head-text-container {
  font-family: "Montserrat", sans-serif;
  margin: 10px 0;
}

.head-text-container h5 {
  color: #003976;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: #fdb72e;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.head-text-container p {
  color: #fdb72e;
  font-weight: 600;
  font-size: 2rem;
}

/**** cards ******/
.card-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card-container .card {
  border: 2px solid #fdb72e;
  padding: 20px;

  opacity: 0;
  transform: translateY(10%);
  transition: opacity 1s ease-in, transform 1s ease-in;
  filter: blur(20px);
}

.card-container .card.active {
  opacity: 1;
  transform: translateY(0%);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
  filter: blur(0px);
}

.card .images-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/*** cards that has two rows images ****/
.card:nth-child(4) .images-container {
  display: grid;
}

.card:last-child .images-container {
  display: grid;
}

.card:last-child .images-container div{
  display: grid;
  gap: 30px;
}

/**** card text content *****/
.card .text-container {
  font-family: "Montserrat", sans-serif;
  margin-top: 20px;
}

.card .text-container h5 {
  color: #003976;
  font-weight: 700;
  font-size: 1rem;

  text-decoration: underline;
  text-decoration-color: #fdb72e;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.card .text-container p {
  font-weight: 600;
}

/**** TAB *****/
@media screen and (min-width: 768px) {
  .header-background {
    background-size: 150%;
    height: 700px;
  }

  .header-text {
    font-size: 1.5rem;
  }
}

/***  Desktop ****/
@media screen and (min-width: 1024px) {
  .header-background {
    background-size: 120%;
  }
  .header-text {
    font-size: 2rem;
  }

  .card .images-container {
    flex-direction: row;
  }

  .card:nth-child(4) .images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .card:last-child .images-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .card:last-child .images-container div {
    grid-column: 1 / -1;
    display: flex;
  }

  .card:last-child .images-container .img-container:nth-child(1){
    grid-column: span 2;
  }
  .card:last-child .images-container .img-container:nth-child(2) {
    grid-column: span 2;
  }
  
  .images-containerr {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust spacing between images */
  }
  
  .img-containerr {
    text-align: center; /* Center the image and text */
    margin-bottom: 10px; /* Add space between the image and its description */
  }
  
  .image-descriptionn {
    margin-top: 5px; /* Add space between the image and the description */
    font-size: 14px; /* Adjust the size of the text */
    color: #555; /* You can change the color of the description */
  }
  

}
