﻿/* ====================================================================== */
/* 1. БАЗОВІ СТИЛІ ТА МАКЕТ (BODY, MAIN, КОНТЕЙНЕРИ) */
/* ====================================================================== */

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #333;
  background-color: #ecedff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  padding-top: 80px; /* Компенсація висоти шапки */
  min-height: 100vh;
  flex-grow: 1;
}

.main-content {
  width: 100%;
}

.content-part-line {
  /* Загальний Flex-контейнер для центрування */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.content-part {
  height: auto;
  width: 100%;
  max-width: 1393px; /* Обмеження ширини контенту */
}

/* ====================================================================== */
/* 2. СТИЛІ START-BANNER */
/* ====================================================================== */

.start-banner {
  background-color: #636ac0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 78vh;
  width: 100%;
  overflow: hidden;
}

.banner-container {
  width: 100%;
  display: flex;
  white-space: nowrap;
}

.banner-element {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.banner_image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====================================================================== */
/* 3. СТИЛІ OUR LIFE та NEWS */
/* ====================================================================== */
/* Рівняння рядка */
.ourlife-and-news {
  display: flex !important;
  flex-direction: row !important; /* РЯДОК, а не колонка */
  align-items: flex-start !important;
  gap: 30px !important;
  margin-top: 30px !important; /* Відступ 30px зверху */
  position: relative !important; /* Фіксує блок у потоці */
}

.ourlife-area {
  align-items: center;
}

/* Наше життя - робимо його контейнером */
.ourlife-area {
  width: 500px !important;
  flex-shrink: 0 !important;
}

.ourlife-area,
.news-area {
  height: 100%;
  display: flex;
  justify-content: center;
  flex: 1;
}

.news-area {
  margin-bottom: 15px;
}

.ourlife-square {
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: white;
  background: #5759799b;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.1),
    0 15px 40px rgba(0, 0, 0, 0.2) !important;
  position: relative;
  z-index: 1;
}

.text-field h2 {
  font-size: 50px;
  font-weight: 800;
  margin: 0;
  margin-bottom: 25px;
}

.image-field {
  margin-top: 20px !important;
  width: 100% !important;
}

.image-field img {
  width: 100%;
  border-radius: 20px;
  display: block;
}
/* NEWS CONTENT ---------------------------------------------------------------------------*/
/* --- СЕКЦІЯ НОВИН --- */

.news-area {
  width: 100% !important;
  display: block !important; /* Або прибери display: flex взагалі */
  margin-top: 0 !important;
}

.news-general-title {
  margin: 0 0 20px 15px !important;
}

.news-content {
  width: 100%;
  padding: 0 15px;
}

.news-grid-container {
  display: flex !important;
  gap: 30px;
  align-items: flex-start;
}

/* --- ЗАГАЛЬНІ СТИЛІ КАРТОК --- */
.main-news-block {
  flex: 1.8;
}
.side-news-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-news-block a,
.side-news-list a {
  display: flex !important;
  text-decoration: none;
  color: #333;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-news-block a:hover,
.side-news-list a:hover {
  transform: translateY(-5px) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* --- ВЕЛИКА КАРТКА --- */
.main-news-block a {
  flex-direction: column !important;
  height: auto !important;
}
.news-image {
  width: 300px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 20px;
  background-repeat: no-repeat;
  align-self: center;
}

/* --- МАЛІ КАРТКИ (КРАСИВИЙ КВАДРАТ) --- */
.side-news-list a {
  flex-direction: row !important;
  align-items: center;
  gap: 20px;
  height: auto !important;
}

.news-image-small {
  width: 90px;
  height: 90px;
  background-size: cover !important; /* Заповнює весь квадрат */
  background-position: center !important; /* Фокус на центр */
  background-repeat: no-repeat !important;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Рамка для чіткості */
  transition: transform 0.3s ease !important;
}

/* Ефект наведення на картинку */
.side-news-list a:hover .news-image-small {
  transform: scale(1.05);
}

/* --- ТЕКСТ ТА ДАТА --- */
.news-date,
.side-news-list small {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #575979;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

.news-date-icon {
  width: 14px !important;
  height: 14px !important;
  margin-right: 6px;
  filter: invert(36%) sepia(9%) saturate(1131%) hue-rotate(200deg)
    brightness(92%) contrast(89%);
}

h3 {
  margin: 0 0 15px 0 !important;
  font-size: 24px;
}
.news-title-small {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px !important;
}

/* Контейнер для всього блоку з датою та заголовком */
.news-info-container {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Важливо для того, щоб flex-item не розтягував картку */
  flex: 1;
}

/* Дата фіксована зверху */
.news-meta {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #575979;
  text-transform: uppercase;
  margin-bottom: 8px;
  flex-shrink: 0; /* Не дає даті стискатися */
}

/* Контейнер тексту, який не виходить за рамки */
.news-title-wrapper {
  overflow: hidden; /* Обрізає все, що не влазить */
}

.news-title-small {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  word-wrap: break-word; /* Переносить довгі слова */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Обмежує текст 3 рядками, далі будуть ... */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====================================================================== */
/* 4. СТИЛІ REVIEWS (ВІДГУКИ)  */
/* ====================================================================== */

.reviews-area {
  width: 100% !important;
  margin-top: 50px !important;
}

.reviews-general-title {
  margin-bottom: 25px !important;
  padding-left: 15px !important;
}

.reviews-general-title h2 {
  font-size: 32px !important;
  color: #2d2f45 !important;
  font-weight: 700 !important;
}

.reviews-field {
  position: relative !important;
  display: none;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-radius: 40px !important;
  padding: 50px 80px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 15px 50px rgba(118, 125, 207, 0.1) !important;
  overflow: hidden !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
}

.reviews-field::before {
  content: "" !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background-image: linear-gradient(
    135deg,
    rgba(109, 114, 171, 0.428) 0%,
    rgba(255, 255, 255, 0.7) 25%,
    rgba(148, 153, 201, 0.428) 50%,
    rgba(255, 255, 255, 0.9) 75%,
    rgba(118, 126, 219, 0.428) 100%
  ) !important;
  background-size: 200% 200% !important;
  animation: deepFlowGradient 20s ease-in-out infinite !important;
  z-index: -1 !important;
}

@keyframes deepFlowGradient {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.reviews-field.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  animation: slideFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

.reviews-field.active .pfp-name-status,
.reviews-field.active .rating-stars,
.reviews-field.active .comments {
  opacity: 0;
  transform: translateY(15px);
  animation: contentAppear 0.5s ease-out forwards !important;
  position: relative !important;
  z-index: 10 !important;
}

.reviews-field.active .pfp-name-status {
  animation-delay: 0.2s !important;
}
.reviews-field.active .rating-stars {
  animation-delay: 0.4s !important;
}
.reviews-field.active .comments {
  animation-delay: 0.6s !important;
}

@keyframes contentAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pfp-name-status {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
}

.profile-picture {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid white !important;
  flex-shrink: 0 !important;
}

.name-and-status {
  display: flex !important;
  flex-direction: column !important;
}

.name-and-status h3 {
  margin: 0 !important;
  color: #2d2f45 !important;
  font-size: 24px !important;
  white-space: nowrap !important;
}

.name-and-status p {
  margin: 2px 0 0 0 !important;
  color: #575979 !important;
  font-size: 16px !important;
}

.rating-stars svg {
  width: 100%;
  height: 100%;
}

.rating-stars svg:not(:last-child) {
  background-color: grey;
}

/* ТЕКСТ ВІДГУКУ */
.comments p {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: #2d2f45 !important;
  text-align: left !important;
  margin: 0 !important;
}

/* КРАПКИ СЛАЙДЕРА */
.slider-dots {
  text-align: center !important;
  margin-top: 30px !important;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 8px;
  background-color: #cbd0e6;
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s;
}

.dot.active {
  background-color: #575979;
  transform: scale(1.4);
}

/* ====================================================================== */
/* 7. CSS-СТИЛІ ДЛЯ АНІМАЦІЙ (Початкові стани та Transition) */
/* ====================================================================== */

/* Загальні налаштування для плавного переходу */
.start-banner,
.ourlife-area,
.news-area,
.reviews-general-title,
.pfp-name-status,
.rating-stars,
.partners-area {
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out; /* */
  will-change: opacity, transform;
}

/* --- 7.1. Start Banner --- */
.start-banner {
  transition: none; /*але треба збільшити час для появлення. для цього треба  */
  opacity: 0;
  transform: translateY(20px);
}

.start-banner.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- 7.2. Scroll Reveal: Our Life (Знизу) та News (Справа) --- */
.ourlife-area {
  opacity: 0;
  transform: translateY(50px);
}

.ourlife-area.show {
  opacity: 1;
  transform: translateY(0);
}

.news-area {
  opacity: 0;
  transform: translateX(50px);
}

.news-area.show {
  opacity: 1;
  transform: translateX(0);
}

/* --- 7.3. Scroll Reveal: Title та Partners (Нізвідки) --- */
.reviews-general-title,
.partners-area {
  opacity: 0;
}

.reviews-general-title.show,
.partners-area.show {
  width: 80%;
  opacity: 1;
}

/* --- 7.4. Scroll Reveal: Елементи відгуків (Зліва, послідовно) --- */
.pfp-name-status,
.rating-stars {
  opacity: 0;
  transform: translateX(-30px);
}

.pfp-name-status.show,
.rating-stars.show {
  opacity: 1;
  transform: translateX(0);
}

/* ====================================================================== */

/* Стилі для основної секції хедера */
.header {
  background-image: linear-gradient(to bottom, #949dff 0%, #ecedff 100%);
  padding: 5px 0;
  position: fixed; /* Закріплює хедер у верхній частині екрана */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 1.5s;
  box-shadow: 0 2px 12px rgba(44, 50, 88, 0.1);
  height: 80px;
  display: flex;
  will-change: transform;
  align-items: center;
}

/* Стиль для приховування хедера (при скролінгу вниз) */
.header.header-out {
  transform: translateY(-100%);
}

.header-content {
  width: 100%;
  /**max-width: 1400px; /* Обмежуємо ширину на 4K екранах */
  margin: 0 auto; /* Центруємо */
  padding: 0 20px;
  height: 100%; /* На всю висоту хедера */
}

/* Контейнер для логотипу та кнопок навігації */
.logo-and-navigation-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  /* max-width: 1200px; */ /* Закоментовано у вихідному коді */
  margin: 0 auto;
  padding: 0 0px;
  box-sizing: border-box;
}

/* Розділення контенту на ліву та праву сторони */
.left-side,
.right-side {
  height: 100%;
  flex: 1; /* гнучкий займання місця замість фіксованого 50% */
}

.left-side {
  display: flex;
  justify-content: flex-start;
  padding-left: 3%;
}

.right-side {
  display: flex;
  justify-content: flex-end;
  padding-right: 3%;
}

/* Стилі для логотипу */
.logo {
  margin-left: 0px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  max-height: 70px; /* Фіксуємо висоту, щоб не розтягувало хедер */
  width: auto; /* Ширина підлаштується сама */
  object-fit: contain;
}

/* Стилі для основних навігаційних кнопок */
.navigation-buttons {
  display: flex;
  align-items: center;
  margin-left: 0;
  width: auto;
  /* overflow-x: auto; */
  /* max-width: 50%; */
}

.navigation-buttons ul {
  display: flex;
  align-items: center; /* Центруємо по вертикалі */
  flex-direction: row;
  margin: 0;
  padding: 0;
}
.navigation-buttons li {
  display: flex; /* Або inline-block */
  align-items: center;
}

header .navigation-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

header .navigation-buttons a {
  display: block;
  text-decoration: none;
  color: #3d1d76;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

header .navigation-buttons a:hover {
  background-color: rgba(61, 29, 118, 0.1);
  color: #5a2eb0;
}

/* Стилі для випадаючого меню (Dropdown) */
header .navigation-buttons li.dropdown {
  position: relative;
  display: inline-block;
}

header .dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  width: max-content;
  min-width: 0;
  box-shadow: 0px 8px 20px rgba(61, 29, 118, 0.15);
  z-index: 1100;
  border-radius: 8px;
  top: 100%;
  left: 0;
  padding: 0;
  border: 1px solid rgba(61, 29, 118, 0.1);
  overflow: hidden;
}

header .dropdown-content a.dropdown-link {
  color: #3d1d76;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  margin: 0;
}

header .dropdown-content a.dropdown-link:first-child {
  border-radius: 8px 8px 0 0;
}

header .dropdown-content a.dropdown-link:last-child {
  border-radius: 0 0 8px 8px;
}

header .dropdown-content a.dropdown-link:only-child {
  border-radius: 8px;
}

header .dropdown-content a.dropdown-link:hover {
  background-color: rgba(61, 29, 118, 0.08);
}

header .dropdown:hover .dropdown-content,
header .dropdown.is-open .dropdown-content {
  display: block;
}

.banner-track {
   display: flex;
   transition: transform 0.6s ease;
   will-change: transform;
}

.banner-slide {
   min-width: 100%;
}

.banner-dots {
   position: absolute;
   left: 50%;
   bottom: 20px;
   transform: translateX(-50%);
   display: flex;
   align-items: center;
   gap: 10px;
   z-index: 3;
}

.banner-dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   border: 0;
   background: rgba(255, 255, 255, 0.55);
   padding: 0;
   cursor: pointer;
   transition: transform 0.2s ease, background 0.2s ease;
}

.banner-dot.is-active {
   transform: scale(1.2);
   background: #ffffff;
}

.banner-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   width: 42px;
   height: 42px;
   border: 0;
   border-radius: 50%;
   background: rgba(0, 0, 0, 0.35);
   color: #fff;
   font-size: 22px;
   line-height: 1;
   cursor: pointer;
   z-index: 3;
}

.banner-arrow-prev {
   left: 18px;
}

.banner-arrow-next {
   right: 18px;
}

/* ====================================================================== */
