body{
  font-family: 'Inter';
}
.carousel{
  height: 630px;
}
swiper-container {
  width: 100%;
  height: 100%;
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-caption{
  position: absolute;
  --translateX: 15%;
  --translateY: -150% !important;
  transform: translate(var(--translateX), var(--translateY));
   z-index: 100;
   backdrop-filter: blur(15px);
   background: rgba(255, 255, 255, 0.425);
   width: 70%;
   max-width: 55%;
   
}
.carousel-caption::after {
  content: "";
  display: block;
  width: 100px; /* Довжина рисочки */
  height: 3px; /* Товщина рисочки */
  background-color: #68afe2; /* Колір рисочки */
  margin: 5px auto 0; /* Відступ від тексту */
  border-radius: 2px; /* Закруглені краї */
}
.carousel-caption h1{
  width: 100%;
  display: flex;
  justify-content: center;
}
.moreAboutUs{
  height: 100%;
}
.photoandcontent{
  display: flex;
  padding: 30px;
  justify-content: center;
}
.photo img{
  height: 600px;
  width: 100%;
  object-fit: contain !important;
}
.content{
  display: flex;
  padding-left: 50px;
  flex-direction: column;
  width: 50%;
  justify-content: center;
}
.textunderheading{
  padding: 10px 0 10px 0;
}
.content .support{
  display: flex;
  width: 200px;
}
.benefit-section{
  display:flex;
  margin:50px 0 50px 0;
  height: 300px;
}
.benefit-section .row{
  display: flex;
  text-align: center;
}
.row h1{
  font-weight: bold;
  margin-bottom: 15px;
}
.number{
  color: #68afe2;
    font-size: 3rem;
    font-weight: 700;
}
.text h4{
  font-size: 20px;
}
.project-heading{
  text-align: center;
}
.project-heading h1{
  font-weight: 700;
}
.project-section .support{
  display: flex;
  width: 200px;
  margin-bottom: 50px;
}
.col-lg-12{
  display: flex;
  justify-content: center;
}
.col-lg-12 .support{
  width: 200px;
}
.news-section .row {
  margin: 0 -0.5rem;
}
.news-section .col {
  padding: 0 0.5rem;
  margin-bottom: 1.5rem;
}
.news-section .card{
  border-color: #dee2e6 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0.375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}
.news-section .card-img-top {
  height: 225px;
  object-fit: cover;
  width: 100%;
}
.news-section .card-text{
  margin:0;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1rem;
  flex: 1;
  /* Обмеження кількості рядків - як в media.css */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4rem;
}
.news-section .card-body{
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-section .d-flex.justify-content-between {
  margin-top: auto;
}
.news-section .bg-body-tertiary{
  padding-bottom: 0 !important;
}
.news-section .support{
  display: flex !important;
}
.news-section a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.bg-body-tertiary{
  background-color: white !important;
}
.partners-section{
  margin:50px 0 50px 0;
}
.photos{
  display:flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.photos img{
  height: 100px;
  padding-right: 10px;
  transition: 0.3s ease;
}
.photos img:hover{
  transform: scale(1.1);
}
.logo-algorytm img{
  height: 60px;
}
.logo-lntu img{
  height: 60px;
}
.logo-monastur img{
  height: 110px;
}
.partners-section .container{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.photos img{
  object-fit: cover;
}
.logo-miskarada img{
  height: 70px;
}
.logo-osvita img{
  height: 50px;
}
.logo-iocc img{
  height: 50px;
}
.logo-eu img{
  height: 80px;
}
@media (max-width: 768px) {
  swiper-container::part(button-prev),
  swiper-container::part(button-next) {
      display: none !important;
  }
}
@media (max-width:770px) {
  .photoandcontent{
    flex-direction: column;
    justify-content: center;
  }
  .content{
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .photo img{
    object-fit:cover;
  }
  .content{
    width: 100%;
  }
  .benefit-section{
    height: 500px;
  }
  .news-section .support{
    display: flex !important;
  }
}
@media (max-width: 576px){
  .photo img{
    height: 50%;
  }
  .col-6{
    padding-top: 20px;
  }
  .partners-section .row h1{
    text-align: center;
  }
  .partners-section .photos img{
    padding: 0;
    max-width: 100%;
  }
  .carousel-caption h1{
    font-size: 20px;
  }
  .carousel-caption{
    --translateY:-270%;
  }
  
  
}

/* Бейджі категорій для новин */
.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 6px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.media-badge {
  background: #68afe2;
  color: white;
}

.news-badge {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}
