/* === СЕКЦІЯ === */
.nt-section-category {
  background: var(--positive-gradient);
}

/* === ТАЙТЛ СЕКЦІЇ === */
.nt-section-category-title {
  text-align: center;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Коли з'являється у полі зору */
.nt-section-category-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.nt-section-category-title h2 {
  font-weight: 700;
  color: var(--color-var3);
  margin-bottom: 10px;
}

.nt-section-category-title p {
  color: var(--color-var8);
  font-size: 1rem;
}


/* === КАРТКА === */
.nt-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-var6);
  border-radius: 16px;
  background: var(--color-var5);
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  margin-bottom: 30px;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nt-card.visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(56, 182, 255, 0.08);
}

.nt-card:hover {
  /* transform: scale(1.01); Збільшуємо блок на 6% */
  box-shadow: 0 12px 30px rgba(56, 182, 255, 0.12);
  transition: box-shadow 0.3s ease; /* Плавна анімація */
}


.nt-card img {
  display: block;
  margin: 0 auto 20px;
  height: 150px;
  transition: transform 0.3s ease;
}

.nt-card:hover img {
  transform: scale(1.06);
}

/* --- Заголовок --- */
.nt-card h4 {
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.3rem;
}

.nt-card h4 a {
  color: var(--color-var10);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nt-card h4 a:hover {
  color: var(--color-var1);
}

/* === ЧІПСИ (з анімацією) === */
.nt-card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 8px;
  max-height: 85px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.nt-card.active .nt-card__links {
  max-height: 500px;
}

.nt-card__links::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--color-var5) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nt-card.active .nt-card__links::after {
  opacity: 0;
}

/* --- окремі чіпси --- */
.nt-card__links a {
  background: var(--color-var1);
  color: var(--color-var4);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--color-var6);
  min-width: 110px;
  text-align: center;
  line-height: 1.2;
  transition: all 0.25s ease, opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.nt-card.visible .nt-card__links a {
  opacity: 1;
  transform: translateY(0);
}

.nt-card__links a:hover {
  background: var(--color-var4);
  color: var(--color-var1);
  border-color: var(--color-var1);
  box-shadow: 0 3px 10px rgba(56, 182, 255, 0.25);
  transform: translateY(-1px);
}

/* === КНОПКА (мінімалістична) === */
.nt-card__toggle {
  background: none;
  border: none;
  color: var(--color-var1);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nt-card__toggle:hover {
  color: var(--color-var2);
  text-decoration: underline;
}

.nt-card__toggle:focus {
  outline: none;
  text-decoration: underline;
  color: var(--color-var1);
  box-shadow: none;
}

/* --- Стрілка --- */
.nt-card__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.nt-card.active .nt-card__toggle svg {
  transform: rotate(180deg);
}

/* === ФУТЕР === */
.nt-footer {
  background: var(--color-var3);
  color: var(--color-var7);
  text-align: center;
  padding: 25px 0;
  font-size: 14px;
  margin-top: 60px;
}

/* === АДАПТИВ === */
@media (max-width: 991.98px) {
  .nt-card {
    min-height: 380px;
    padding: 24px;
  }

  .nt-card__links {
            max-height: 75px;
  }

  .nt-card__links a {
    font-size: 13px;
    min-width: 90px;
    padding: 7px 10px;
  }
  .nt-card__links {
    gap: 6px;
    min-height: 55px;
  }
}

@media (max-width: 575.98px) {
  .nt-card {
    min-height: 360px;
  }
  .nt-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
}
