
.slide-container-nazva {
  position: relative; /* потрібно для псевдоелемента */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 0.90rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  padding: 2.5rem;
  box-sizing: border-box;
  background: #e5e7eb; /* фон всередині */
  overflow: hidden;  /* щоб розмиття не виходило */
}

/* Прапор на фоні */
.slide-container-nazva::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 0.8rem;
  /* Плавний перехід: синій трохи перекриває жовтий */
  background: linear-gradient(
    to bottom,
    #3366aa 0%,
    #3366aa 55%,   /* синій займає більше */
    #e6c200 45%,
    #e6c200 100%
  );
  filter: blur(8px); /* сильніше розмиття */
  z-index: 0;
}

/* Щоб контент був поверх прапора */
.slide-container-nazva > * {
  position: relative;
  z-index: 1;
}


/* Logo styles */
.logo-left,
.logo-right {
  height: 170px;
  width: auto;
}

/* Text and line container */
.animated-text {
  text-align: center;
  flex-grow: 1;
  padding: 0 20px; /* Spacing between logos and text/lines */
}

.animated-text h1 {
  opacity: 0;
  animation: fadeInDown 1.5s ease-in-out forwards;
  margin: 0; /* Remove default margin from h1 */
}

/* Text animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Line container and animation */
.line-container {
  width: 100%; /* << Adjusted to be responsive */
  height: 5px;
  overflow: hidden;
  margin: 10px auto 0; /* Center the line container */
  display: flex; /* Display lines side-by-side if needed, but in this case they'll be stacked */
  justify-content: center;
}

.animated-line,
.animated-line2 {
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  animation: slide-in 2s forwards;
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-line {
  background-color: #007bff;
}
.animated-line2 {
  background-color: #007bff;
}


@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Responsive styles */
@media (max-width: 767px) {
  .slide-container-nazva {
    flex-direction: column;
    padding: 1.5rem;
  }

  .logo-left,
  .logo-right {
    height: 80px; /* Smaller logos on mobile */
    margin-bottom: 10px;
  }

  .animated-text {
    order: 1; /* Puts the text between the logos on mobile */
  }

  .logo-right {
    order: 2;
  }
}
