.title-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1e2a38;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background-color: #0d6efd;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.oferty-container {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 15px;
}

.oferta-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.oferta-item:hover {
  transform: scale(1.03);
}

.oferta-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}

.oferta-item h2 {
  color: #111;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0px 15px; 
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80px;
} 

.oferta322-item p.lead {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.wrapper-oferty {
    position: relative;
}

.wrapper-oferty .carousel-item {
  overflow: hidden;
}

.wrapper-oferty .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 600px;
  margin-left: auto;
  margin-right: auto;
  min-height: 400px;
}

  
.wrapper-oferty .welcome-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5); 
  padding: 40px;
  border-radius: 15px;
}

@media (max-width: 992px) {
  .wrapper-oferty .carousel-item {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .wrapper-oferty .carousel-item {
    height: 250px;
  }

  .wrapper-oferty .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .wrapper-oferty .welcome-overlay {
    padding: 20px;
    max-width: 95vw;
  }

  .wrapper-oferty .welcome-overlay h1 {
    font-size: 1.8rem; 
  }

  .wrapper-oferty .welcome-overlay p.lead {
    font-size: 1rem;
  }

  .wrapper-oferty .welcome-overlay .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .wrapper-oferty section.container .row {
    flex-direction: column;
  }

  .wrapper-oferty section.container .row > div {
    width: 100%;
    margin-bottom: 2rem;
  }

  .wrapper-oferty section.container .row > div img {
    height: auto;
    max-width: 80%; 
    margin-left: auto;
    margin-right: auto;
  }
}