/*Текст навігація, класси : ( навігація кнопки, зміна мови, випадаюче меню, назва сайту )  */
.navbar-brand, .nav-link, .language-switcher{

  font-family: Romul;
  font-weight: 100;
}


/* Текст футер, власні класси: ( bottem-email, bottc-contact, bott-all other text )  */
.bottem, .bottc,.bott{

  font-family: segoeu;
  font-weight: 300;
}


/* Текст : команда  */
.textproj, .textcardh{

  font-family: Fixel;
  font-weight: 100;
  
}


/* Текст : інформація  */
.textcardo{

  font-family: FixelL;
  font-weight: 100;
  
}





.nav-link {
  color: #000;
  text-decoration: none;
}
.nav-link:hover {
  text-decoration: underline;
}



.navbar .nav-link {
  padding: 0 15px;
}



  /* Анімація прокрутки */
  .smooth-scroll {
    scroll-behavior: smooth;
  }
  
  /* Загальні стилі для навігації */
  .navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 40px;
  background-color: #f8f9fa;
  position: fixed; /*navbar фіксованим */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: top 0.3s ease-in-out; 
}

body {
  padding-top: 80px; 
}
  
  .navbar-brand {
    display: flex;
    align-items: center;
    width: 180px;
    gap: 20px;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .desktop-menu {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
    
  }
  
  .language-switcher {
    display: flex;
    width: 110px;
    gap: 20px;
    align-items: center;
  }


  .lang-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease, font-weight 0.3s ease;
  }
  
  .lang-btn:hover {
    color: #007bff;
  }
  
  .lang-btn:active {
    font-weight: bold;
    color: #007bff;
  }



  
  /* Бургер-меню */
  .navbar-toggler {
    display: none;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  
  
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .menu-open .menu-overlay {
    display: block;
    opacity: 1;
  }
  
  .menu-slide {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    transition: right 0.4s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  }
  
  .menu-open .menu-slide {
    right: 0;
  }
  
  /* Адаптивність */
  @media (max-width: 992px) {
    .desktop-menu, .language-switcher {
      display: none;
    }
  
    .navbar-toggler {
      display: block;
    }
  }
  
  /* Ховаємо зміну мов разом із десктопним меню при малих екранах */
  @media (max-width: 1200px) {
    .desktop-menu, .language-switcher {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
  }
  
  
  /* При ширині менше 1024px */
  @media (max-width: 1024px) {
    .desktop-menu .language-switcher {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
  }
  
  /* При ширині менше 768px */
  @media (max-width: 768px) {
    .desktop-menu .language-switcher{
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
  }
  
  /* Показуємо зміну мов та меню тільки на великих екранах */
  @media (min-width: 1200px) {
    .desktop-menu, .language-switcher {
        display: flex !important;
    }
    .navbar-toggler {
        display: none !important;
    }
  }
  
  
  /* Базове позиціонування бургер-меню */
  .navbar-toggler {
    position: absolute;
    right: 15px; 
    top: 55%; 
    transform: translateY(-50%);
  }
  
  /* Адаптація для мобільних пристроїв */
  @media (max-width: 768px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between; 
        padding: 10px 15px;
    }
  
    .navbar-toggler {
        position: static;
        margin-left: auto;
        transform: translateY(3px); 
    }
  }
  
  
  /* Футер */
  .footer-left,
  .footer-right {
    width: 40%;
  }
  .footer-left {
    text-align: left;
  }
  .footer-right {
    text-align: right;
  }
  .footer-link {
    text-decoration: none;
    color: #000;
  }
  .footer-link:hover {
    text-decoration: underline;
  }
  .header-image,
  .footer-image {
    max-height: 75px; 
  }
  
  
  footer .gap-3 a {
      font-size: 1.25rem; 
    }
    footer img {
      margin: 0 auto;
    }


    .news-container {
      width: 1300px;
      background: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    

 
     .image-wrapper {
      position: relative;
      display: inline-block;
      max-width: 100%;
      cursor: pointer;
    }

    .image-wrapper img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    /* ПК tooltip */
    .tooltip-message-desktop {
      position: fixed;
      top: 50%;
      right: -400px;
      transform: translateY(-50%);
      width: 300px;
      padding: 15px;
      background-color: #333;
      color: #fff;
      font-size: 14px;
      border-radius: 8px 0 0 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
      transition: right 0.5s ease;
      z-index: 9999;
      display: none;
    }

    .tooltip-message-desktop.show {
      right: 0;
    }

    @media (hover: hover) and (pointer: fine) {
      .tooltip-message-desktop {
        display: block;
      }
    }

    /* Мобільне повідомлення */
    .tooltip-mobile {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    padding: 15px;
    background-color: #333;
    color: white;
    font-size: 16px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .tooltip-mobile.show {
    display: block;
  }

    @media (hover: none) and (pointer: coarse) {
      .tooltip-mobile {
        display: block;
      }
    }


    
    .news-content {
      
      width: 70%;
      padding-right: 80px;
      padding-left: 30px;
      width: 100%;
    }
    
    .news-title {
      text-align: center;
      font-size: 24px;
      font-weight: bold;
      margin-top: 20px;
      margin-bottom: 20px;
    }
    
    
    
    .text-center {
      margin-top: 20px;
    }
    
    .btn-outline-primary {
      border-radius: 8px;
      padding: 10px 20px;
      font-weight: 600;
      transition: all 0.3s ease;
    }
    
    .btn-outline-primary:hover {
      background-color: #0d6efd;
      color: white;
    }
    
    

    @media (max-width: 768px) {
      .news-container {
        padding: 15px;
      }
    
      .news-title {
        font-size: 20px;
      }
    
      .carousel-inner img {
        max-height: 300px;
      }

    }
    
    .news-container {
      width: 100%;
      max-width: 1300px;
      padding: 20px;
      margin: 0 auto;
   }
   
   .carousel-inner {
      display: flex;
      align-items: center;
      border-radius: 10px;
      overflow: hidden;
   }
   
   @media (max-width: 768px) {
      .news-container {
         padding: 15px;
      }
   
      .news-title {
         font-size: 18px;
         margin-top: 10px;
         margin-bottom: 10px;
      }
   
      .news-content {
         padding: 10px;
      }
   
      .carousel-item img {
         max-height: 250px;
      }
   
      .carousel-control-prev,
      .carousel-control-next {
         width: 10%;
      }
      
      .carousel-control-prev-icon,
      .carousel-control-next-icon {
         width: 30px;
         height: 30px;
      }
   
      .progress {
         max-width: 100%;
      }
   
      .btn-primary {
         font-size: 16px;
         padding: 8px 16px;
      }
   }
    