/* =================== ОБ'ЄДНАНИЙ CSS =================== */

/* ====== БАЗОВЕ ====== */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
body {
  margin: 0;
  background: #f0f9ff; /* gradient fallback */
  color: #1f2937;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
a{text-decoration: none;}
/* ====== ГРАДІЄНТИ ====== */
.bg-gradient-to-b { background-image: linear-gradient(to bottom,var(--tw-gradient-stops)); }
.from-sky-50 { --tw-gradient-from:#f0f9ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to,rgba(240,249,255,0)); }
.to-white { --tw-gradient-to:#fff; }

/* ====== ТЕКСТ ====== */
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-600 { color: #2563eb; }
.text-blue-500 { color: #3b82f6; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* ====== ШРИФТИ ====== */
.font-sans { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ====== МАРЖИНИ ====== */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }

/* ====== КОНТЕЙНЕР ====== */
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* ====== FLEX & GRID ====== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }

.grid { display: grid; }
.gap-10 { gap: 2.5rem; }
@media (min-width:768px){
  .md\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* ====== ARTICLE CARDS ====== */
.bg-white { background-color: #fff; }
.rounded-2xl { border-radius: 1rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.overflow-hidden { overflow: hidden; }
.transition-all { transition: all 0.15s cubic-bezier(0.4,0,0.2,1); }
.duration-500 { transition-duration: 0.5s; }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

.block { display: block; }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.transition-transform { transition: transform 0.15s cubic-bezier(0.4,0,0.2,1); text-decoration:none; }

.w-full { width: 100%; }
.object-cover { object-fit: cover; }

/* ====== КНОПКИ ====== */
button, .button, a.button {
  display: inline-block;
  font-weight: 600;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.share-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  background-image: linear-gradient(90deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.share-button::after {
  content:"";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg,#6366f1,#3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.share-button:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.share-button:hover::after {
  opacity: 0.2;
}
.share-button span.emoji { font-size: 1.2rem; }

/* ====== BREADCRUMBS ====== */
.breadcrumb-nav {
  font-size: 0.9rem;
  color: #2563eb;
  padding: 1rem;
  font-family: 'Inter', system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  animation: fadeIn 0.8s ease-out both;
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb-list a {
  color: #2563eb;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.breadcrumb-list a::after {
  content:"";
  position: absolute;
  left:0;
  bottom:-2px;
  width:0%;
  height:2px;
  background:linear-gradient(90deg,#2563eb,#a78bfa);
  transition: width 0.3s ease;
}
.breadcrumb-list a:hover {
  color:#a78bfa;
}
.breadcrumb-list a:hover::after { width:100%; }
.breadcrumb-note {
  width:16px;
  height:16px;
  display:inline-block;
  animation: floatNote 2s infinite ease-in-out;
  fill:#a78bfa;
}

/* ====== FOOTER ====== */
.text-center { text-align:center; }

/* ====== Анімації ====== */
@keyframes fadeIn {
  0% { opacity:0; transform:translateY(5px); }
  100% { opacity:1; transform:translateY(0); }
}
@keyframes slideUp {
  0% { opacity:0; transform:translateY(20px); }
  100% { opacity:1; transform:translateY(0); }
}
@keyframes floatNote {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.animate-fade-in { animation: fadeIn 1s ease-out both; }
.animate-slide-up { animation: slideUp 0.8s ease-out both; }
.delay-150 { animation-delay: 150ms; }


.article-figure {
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
  border-radius: 1rem; /* закруглені кути */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* ніжна тінь */
  background-color: #ffffff; /* білий фон під зображенням */
  text-align: center;
  min-height: 380px; 
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0; /* закруглення тільки верхніх кутів */
}

.article-figure figcaption {
  font-size: 0.875rem;
  color: #4b5563; /* сірий колір підпису */
  padding: 0.5rem 1rem 1rem;
  background-color: #f9fafb; /* світлий фон під підписом */
  border-top: 1px solid #e5e7eb; /* легка лінія відділення */
  border-radius: 0 0 1rem 1rem; /* закруглення нижніх кутів */
  line-height: 1.4;
}


.font-semibold {
  font-weight: 600;
}

/* Відступ праворуч */
.mr-4 {
  margin-right: 0.5rem; /* 16px */
}