/* ── Articles page ─────────────────────────────────────────────────────────── */
* { font-family: "Satoshi", sans-serif; }

/* Dark navbar (same as about/services pages) */
.nav-item {
  color: #656565 !important;
}
.nav-item.active {
  color: #97C49C !important;
}
.hamburger-line {
  background-color: black;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.art-hero {
  position: relative;
  min-height: 55vh;
  background: url('/images/spitalul.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 7rem;
}

.art-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.art-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0 24px;
}

.art-hero__title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.art-hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 2rem;
  line-height: 1.7;
}

.art-hero__search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 50px;
  padding: 10px 20px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.art-hero__search {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  background: transparent;
}

.art-hero__search::placeholder { color: #aaa; }

@media (max-width: 900px) {
  .art-hero { min-height: 45vh; }
  .art-hero__title { font-size: 1.8rem; }
}

.art-page {
  background: #faf8f3;
  min-height: 60vh;
  margin-top: 5rem;
}

.art-content {
  display: flex;
  flex-direction: column;
}

/* ── Category sections ────────────────────────────────────────────────────── */
.art-cat-section {
  margin: 4rem 0 4rem 10vw;
  scroll-margin-top: 80px;
  overflow-x: clip;
}

.art-cat-header {
  display: grid;
  grid-template-columns: 22rem 1fr;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.art-cat-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.art-cat-line {
  flex: 1;
  border: none;
  height: 3px;
  background-image: repeating-linear-gradient(
    to right,
    #01784B 0,
    #01784B 14px,
    transparent 14px,
    transparent 28px
  );
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
  min-width: 60px;
}

/* ── Slider ────────────────────────────────────────────────────────────────── */
.cat-slider {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cat-slider__clip {
  overflow: hidden;
  padding: 12px 10vw 12px 0;
  margin: -12px -10vw -12px 0;
}

.cat-slider__viewport { width: 100%; }

.cat-slider__track {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ── Article card ──────────────────────────────────────────────────────────── */
.art-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.art-card__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8ede9;
}

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

.art-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8b4;
  font-size: 2.5rem;
}

.art-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.art-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: #1a7a4a;
  color: #fff;
  align-self: flex-start;
}

.art-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

.art-card__excerpt {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a7a4a;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Controls ──────────────────────────────────────────────────────────────── */
.cat-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cat-slider__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #1a7a4a;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  padding: 0;
}

.cat-slider__arrow:hover:not(:disabled) {
  border-color: #1a7a4a;
  background: #edf7f2;
}

.cat-slider__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.cat-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.cat-slider__dot.active {
  background: #1a7a4a;
  transform: scale(1.25);
}

/* ── Article detail page ───────────────────────────────────────────────────── */
.art-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 70vh;
  margin-top: 6rem;
}

.art-detail__breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

.art-detail__breadcrumb a {
  color: #1a7a4a;
  text-decoration: none;
}

.art-detail__breadcrumb a:hover { text-decoration: underline; }

.art-detail__header { margin-bottom: 3rem; }

.art-detail__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #1a7a4a;
  color: #fff;
  margin-bottom: 1rem;
}

.art-detail__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.art-detail__subtitle {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

.art-detail__blocks {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.art-info-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a2e4a;
  margin: 0 0 0.75rem;
}

.art-info-block p,
.art-info-block__desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.75;
  margin: 0;
}

.art-info-block__img {
  width: 100%;
  border-radius: 12px;
  margin-top: 1.25rem;
  display: block;
}

.art-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3rem;
  color: #1a7a4a;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.art-detail__back:hover { text-decoration: underline; }

.art-detail__not-found {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
}

/* ── Related articles ──────────────────────────────────────────────────────── */
.art-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e8ede9;
}

.art-related__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem;
}

.art-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.art-related__card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.art-related__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.art-related__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8ede9;
}

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

.art-related__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #b0b8b4; font-size: 2rem;
}

.art-related__body {
  padding: 0.9rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.4rem; flex: 1;
}

.art-related__badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  background: #1a7a4a; color: #fff;
  padding: 2px 8px; border-radius: 20px;
  align-self: flex-start;
}

.art-related__card-title {
  font-size: 0.9rem; font-weight: 700;
  color: #1a1a1a; margin: 0; line-height: 1.4;
}

.art-related__excerpt {
  font-size: 0.8rem; color: #666;
  line-height: 1.55; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-related__cta {
  font-size: 0.8rem; font-weight: 700;
  color: #1a7a4a; margin-top: auto;
}

@media (max-width: 700px) {
  .art-related__grid { grid-template-columns: 1fr; }
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.art-empty {
  padding: 80px 40px;
  text-align: center;
  color: #888;
  font-size: 1.1rem;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .art-cat-section { margin: 2.5rem 0 2.5rem 1.25rem; }
  .cat-slider__clip { padding-right: 1.25rem; margin-right: -1.25rem; }
  .art-cat-title { font-size: 1.4rem; }
  .cat-slider__track { gap: 0.75rem; }
  .art-detail { padding: 40px 16px; }
  .art-detail__title { font-size: 1.7rem; }
}
