/* ГОЛОВНИЙ КОНТЕЙНЕР: Центрує все по вертикалі та горизонталі */
.expertise-main-wrapper {
  display: flex;
  flex-direction: column;   /* Елементи стовпчиком */
  align-items: center;      /* Центрування по горизонталі */
  justify-content: center;  /* Центрування по вертикалі */
  gap: 30px;                /* Відстань між фото, текстом і кнопкою */
  padding: 40px 20px;
  width: 100%;
  min-height: 100vh;        /* Займає всю висоту екрана для центрування */
  box-sizing: border-box;
}

/* ФОТО: Статичне, не змінюється при наведенні */
.photo-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.expertise-photo {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Повна заборона на будь-які рухи чи збільшення */
  transition: none !important;
  transform: none !important;
}

/* ТЕКСТ: Ефект мікроскопа */
.text-container {
  text-align: center;
}

.microscope-text {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  filter: blur(10px);
  opacity: 0;
  justify-content: center;
  animation: microscopeEffect 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes microscopeEffect {
  0% { filter: blur(15px); opacity: 0; transform: scale(0.92); }
  10% { filter: blur(8px); opacity: 0.5; transform: scale(0.96); }
  15% { filter: blur(10px); opacity: 0.4; transform: scale(0.94); }
  30%, 80% { filter: blur(0px); opacity: 1; transform: scale(1); }
  100% { filter: blur(10px); opacity: 0; transform: scale(1.02); }
}

/* КНОПКА */
.button-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-gov-narrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 320px;
  padding: 18px 0;
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 50%, #cfd8e3 100%);
  color: #334155;
  font-size: 22px;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.1);
}

/* Безшовна лінія внизу */
.btn-gov-narrow::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #9ca3af 0%, #f8fafc 50%, #9ca3af 100%);
  background-size: 200% 100%;
  animation: platinumFlowLeft 3s linear infinite;
  z-index: 2;
}

@keyframes platinumFlowLeft {
  0% { background-position: -200% 0%; }
  100% { background-position: 0% 0%; }
}

/* АНІМАЦІЯ СТРІЛОЧОК-ГОЛОЧОК */
.chevron-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chevron {
  width: 10px;
  height: 10px;
  border-left-style: solid;
  border-bottom-style: solid;
  border-color: #475569; 
  transform: rotate(45deg);
  opacity: 0.3;
}

.ch-thin   { border-width: 1.5px; }
.ch-medium { border-width: 3px; }
.ch-bold   { border-width: 5px; }

@keyframes waveEffect {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) scale(1); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.2); border-color: #1e293b; }
}

/* Запуск хвилі при наведенні */
.btn-gov-narrow:hover .chevron {
  animation: waveEffect 0.8s infinite;
}

.ch-thin   { animation-delay: 0.4s; }
.ch-medium { animation-delay: 0.2s; }
.ch-bold   { animation-delay: 0s; }

/* Ховер ефекти кнопки */
.btn-gov-narrow:hover {
  transform: translateX(-8px);
  color: #0f172a;
  box-shadow: -8px 12px 20px rgba(0, 0, 0, 0.12);
}

.btn-gov-narrow:hover::before {
  opacity: 0;
}