h1 {
  color: #212070;
}

.btn-orange {
  max-width: 220px;
  width: 100%;
  cursor: pointer;
}

.arrow-icon {
  transform: translateX(15px);
  transition: 0.6s;
  filter: brightness(0) invert(1);
}

.btn-load-more:hover .arrow-icon {
  transform: translateX(20px);
  filter: unset;
}

/* FEATURED PROJECTS */
.featured_projects {
  padding: 100px 50px 145px 50px;
  margin-bottom: -250px;
}

.featured_projects h1 {
  text-align: center;
}

.featured_projects h2 {
  color: var(--brand-color, #212070);
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  text-transform: capitalize;
}

.featured_projects .owl-dots {
  display: flex;
  padding: 0;
  right: unset;
  align-items: center;
  position: absolute;
  bottom: 100px;

  @media (max-width: 1400px) {
    max-width: 550px;
  }

  @media (max-width: 1199px) {
    max-width: unset;
  }
}

.featured_projects .owl-featured-projects .owl-dots .owl-dot span {
  display: none;
}

.featured_projects .owl-featured-projects button.owl-dot {
  margin: 0;
  height: 5px;
  width: 30px;
  background-color: #eaeaea;
}

.featured_projects .owl-featured-projects button.owl-dot.active {
  background-color: #f57921;
  height: 7px;
}

.featured_projects .row-carousel {
  flex-direction: row-reverse;
  justify-content: space-between;
  row-gap: 30px;
}

.featured_projects .col-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured_projects .col-content {
  position: relative;
}

.featured_projects .img-featured {
  height: 642px;
  width: 100%;
  object-fit: cover;
  clip-path: polygon(0 32%, 100% 0, 100% 100%, 0% 100%);
  cursor: default !important;
}

/* FEATURED PROJECTS END */

/* ALL - PROJECTS */

.all-projects {
  padding: 150px 50px 100px 50px;
  background-image: url("../../assets/images/projects/all-projects-bg-min.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.all-projects h2 {
  color: white;
  display: flex;
  justify-content: center;
}

.all-projects .section-head {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 70px;
}

.all-projects .section-head .btn-sort {
  border: none;
  border-radius: 5px;
  background: white;
  color: #212070;
  background-repeat: no-repeat;
  background-position: 15px center;
  padding: 15px 15px 15px 45px;
  appearance: none;
}

.all-projects .section-head,
.all-projects .row-main:not(:last-of-type) {
  margin-bottom: 50px;
}

.all-projects .img-featured {
  object-fit: cover;
  border-radius: 5px;
  height: 100%;
  width: 100%;
  max-height: 225px;
}

.all-projects .btn-orange {
  margin: 50px auto 0 auto;
}

.all-projects .d-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 30px;
}

.all-projects .d-grid .grid-item:nth-child(10n + 1),
.all-projects .d-grid .grid-item:nth-child(10n + 8) {
  grid-column: span 2;
  grid-row: span 2;
}

.all-projects .d-grid .grid-item:nth-child(10n + 1) .img-featured,
.all-projects .d-grid .grid-item:nth-child(10n + 8) .img-featured {
  max-height: 475px;
}

.all-projects .grid-item {
  grid-column: span 1;
  grid-row: span 1;
}

.all-projects .grid-item {
  position: relative;
  overflow: hidden;
}

.all-projects .grid-item:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Adjust the opacity (0.5) for your desired darkness */
  transition: opacity 0.3s ease-in-out;
}

.all-projects .image-title {
  display: none;
  position: absolute;
  bottom: 0;
  color: #fff;
  z-index: 1;
  margin: 0;
  font-weight: 700;
  line-height: 38px;
  text-transform: capitalize;
  text-wrap: balance;
  padding: 70px;
  font-size: 32px;
}

.all-projects .grid-item:hover .image-title {
  display: block;
}

/* ALL - PROJECTS END */

/* @media (min-width:1600px) {
    .featured_projects .owl-dots {
        margin-bottom: 150px;
    }
} */

@media (max-width: 1199px) {
  .featured_projects {
    margin-bottom: 0;
  }

  .featured_projects .carousel-indicators {
    position: unset;
    margin: 0;
  }

  .featured_projects .row-carousel {
    margin-bottom: 50px;
  }

  .all-projects .grid-item {
    grid-column: span 2;
    grid-row: span 2;
  }

  .featured_projects .owl-dots {
    position: unset;
  }

  .all-projects .image-title {
    padding: 20px;
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .all-projects {
    background-position: right;
  }

  .featured_projects .img-featured {
    height: 350px;
  }

  .all-projects .section-head {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .all-projects .row-main:not(:last-of-type) {
    margin-bottom: 30px;
  }

  .all-projects .row {
    row-gap: 30px !important;
  }

  .all-projects .img-featured {
    max-height: 300px;
    width: 100%;
  }
}

/* @media (min-width:1400px) and (max-width:1599px) {
    .featured_projects .owl-dots {
        margin-bottom: 100px;
    }
} */

@media (max-width: 575px) {
  .lg-sub-html p {
    font-size: unset;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  /* .featured_projects .owl-dots {
        margin-bottom: 60px;
    } */

  .featured_projects {
    margin-bottom: -220px;
  }

  .featured_projects .carousel-indicators {
    margin: 0 0 4rem 0;
  }
}

/* Project Cards */
.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 24px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hidden overlay — shown on hover */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}

.project-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  margin: 0;
}

/* Hover state */
.project-card:hover .project-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-title {
  opacity: 1;
  transform: translateY(0);
}

/* .project-card:hover img {
  transform: scale(1.04);
} */

.featured_projects .owl-featured-projects .owl-stage-outer .owl-item h2 {
  margin-bottom: 10px;
}

.featured_projects .owl-carousel {
  overflow: hidden;
}

.featured_projects {
  overflow: hidden;
}

@media (max-width: 1400px) {
}

.featured_projects .owl-carousel {
  overflow: hidden !important;
}

.featured_projects .container {
  overflow: hidden !important;
}

.featured_projects .owl-item {
  overflow: hidden !important;
}

.featured_projects .row-carousel {
  margin-left: 0;
  margin-right: 0;
}
