.custom-badge {
  background-color: #c73626;
  color: #f5f5f5;
  padding: 4px 8px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.carousel-caption {
  position: absolute;
  bottom: 40px;
  left: 10rem;
  right: auto;
  text-align: left;
  z-index: 2;
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
  line-height: 1.1;
  /* text-shadow: 2px 2px 4px rgba(0,0,0,0.5); */
}

.carousel-caption p {
  font-size: 1.25rem;
  color: white;
  margin: 0;
  line-height: 1.2;
  padding-left: 3px;
  /* text-shadow: 2px 2px 4px rgba(0,0,0,0.5); */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .carousel-caption {
    left: 2rem;
    bottom: 20px;
  }
  
  .carousel-caption h2 {
    font-size: 2rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .carousel-indicators-custom {
    right: 20px;
    bottom: 10px;
  }
  
  .carousel-indicators-custom button {
    width: 20px;
    height: 4px;
  }
}

.carousel-indicators {
  bottom: 20px;
  right: 40px;
  left: auto;
}

.carousel-indicators [data-bs-target] {
  width: 30px;
  height: 5px;
  border-radius: 0;
  background-color: #f5f5f5;
}

.carousel-indicators [data-bs-target].active {
  background-color: #c73626;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #4A5359;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 20px 20px;
}

/* Custom carousel controls positioning */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4A5359;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s;
  z-index: 10;
}

.carousel-control:hover {
  opacity: 1;
}

.carousel-control.custom-prev {
  left: 2rem;
}

.carousel-control.custom-next {
  right: 2rem;
}

.carousel-control .fa-chevron-left,
.carousel-control .fa-chevron-right {
  color: white;
  font-size: 16px;
}

/* Custom indicators */
#mainCarousel {
  position: relative;
}

.carousel-indicators-custom {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 15;
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel-indicators-custom button {
  width: 30px;
  height: 5px;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 0;
  outline: none;
}

.carousel-indicators-custom button.active {
  background-color: #c73626;
}

.carousel-indicators-custom button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel_overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.carousel-hidden {
  display: none;
}

.custom-badge-2 {
  background-color: #8f959b;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.orverlay-text-2 {
  position: absolute;
  top: 55px;
  left: 20px;
  z-index: 2;
}

/* Section 2 Styles */
.section2 {
  padding-top: 3rem !important;
  padding-bottom: 5rem !important;
}

.section2 h4 {
  margin: 0;
  white-space: nowrap;
  color: #333;
}

.section2 .line {
  height: 2px;
  background: #000;
  border: none;
  margin: 0;
  margin-left: 10px;
}

.filter-buttons-row {
  margin-bottom: 100px;
}

.btn-filtro {
  height: 45px;
  border: 1px solid #6c757d;
  background-color: transparent;
  color: #212529;
  transition: all 0.3s ease;
}

.btn-filtro:hover {
  background-color: #4A5359;
  color: #f5f5f5;
  border-color: #4A5359;
}

.btn-filtro.active {
  background-color: #c73626 !important;
  color: #f5f5f5 !important;
  border-color: #c73626 !important;
}

.btn-section2 {
  height: 45px;
}

.btn-section2.active {
  background-color: #c73626 !important;
  color: #f5f5f5 !important;
  border-color: #c73626 !important;
}

.btn-section2:hover {
  background-color: #4A5359;
}

.bt-ver-todos {
  padding: 10px 30px;
  height: 45px;
  color: #f5f5f5;;
  background-color: #c73626;
}

.bt-ver-todos:hover {
  background-color: #4A5359;
  color: #f5f5f5;
}

/* OWL CAROUSEL */
.carousel-css .item {
  position: relative !important;
  overflow: hidden !important;
  max-width: 400px !important;
  margin: 0 auto !important;
  height: 500px !important;
  cursor: pointer;
}

.project-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.carousel-css .item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.carousel-css .item .project-link::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.5) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.overlay-text {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  z-index: 2;
  pointer-events: none;
}

.overlay-project-name {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 1.1rem;
  color: white;
  z-index: 2;
  pointer-events: none;
}

.carousel-css .owl-dots {
  text-align: center !important;
  margin-top: 20px !important;
}

.carousel-css .owl-dot span {
  width: 30px !important;
  height: 5px !important;
  margin: 5px 3px !important;
  background: #ccc !important;
  display: inline-block !important;
  transition: background 0.3s !important;
  border-radius: 0 !important;
}

.carousel-css .owl-dot.active span {
  background: #c73626 !important;
}

.carousel-css .owl-nav {
  position: absolute !important;
  top: 40% !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 10px !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.carousel-css .owl-nav button {
  background-color: #4A5359 !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  background-size: 20px 20px !important;
  border: none !important;
  pointer-events: all !important;
}

.carousel-css .owl-nav i {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 20px 20px !important;
}

.section3 {
  background-image: url('../images/section3-bg.png'); /* fundo com curvas */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  position: relative;
}

.section3 .bloco-texto {
  position: relative;
  background-color: #475259;
  width: calc(100% + 20%);
  margin-left: -20%;
  padding-left: 20%;
  padding-right: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  z-index: 1;
  border-radius: 0px 50px 0px 0px !important;
  min-width: 300px;
}

.section3 .img-fluid {
  position: relative;
  z-index: 2;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important; */ /* Sombra mais destacada */
}

.section3 .row {
  position: relative;
}

.section3 h3 {
  font-size: 2rem;
  line-height: 1.6;
}

.section3 .bloco-texto h3 {
  padding-left: 80px;
}

.elemento-maxi {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-20%, 30%);
  width: 60px;
  z-index: 2;
}

.img-office-border {
  border-radius: 0px 0px 0px 25px !important;
}


@media screen and (max-width: 768px) {
  .carousel-caption {
    left: 40px;
  }

  .section3 .bloco-texto {
    width: 100%;
    margin-left: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 50px;
  }

  .section3 h3 {
    font-size: 1.5rem;
  }
  
  .section3 .bloco-texto h3 {
    padding-left: 1rem;
  }
  .elemento-maxi {
    display: none;
  }
}

/* Tablets e telas pequenas */
@media screen and (min-width: 769px) and (max-width: 991px) {
  .section3 .bloco-texto {
    width: calc(100% + 10%);
    margin-left: -10%;
    padding-left: 15%;
  }
  
  .section3 .bloco-texto h3 {
    padding-left: 40px;
  }
}

/* Telas médias */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .section3 .bloco-texto {
    width: calc(100% + 15%);
    margin-left: -15%;
    padding-left: 18%;
  }
  
  .section3 .bloco-texto h3 {
    padding-left: 60px;
  }
}

/* Telas grandes - desktop */
@media screen and (min-width: 1200px) {
  .section3 .bloco-texto h3 {
    padding-left: 120px;
    padding-right: 40px;
  }
}

@media screen and (min-width: 769px) { 
  .bloco-texto {
    height: 500px;
  }
}

