/* ================================================================
   SAVETI.CSS — Съвети listing page + article page
   ================================================================ */

/* ─── LISTING PAGE: HERO ─────────────────────────────────────── */
.sv-hero {
  position: relative;
  height: 216px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  background: #fff;
}
.sv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('http://localhost:3845/assets/667486e02c22349ae7111e9d9f364681c45d17ee.png') center / cover no-repeat;
  opacity: 0.07;
}
.sv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

/* ─── LISTING PAGE: MAIN ─────────────────────────────────────── */
.sv-main {
  background: #fff;
  padding: 0 0 96px;
}
.sv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.sv-section {
  padding-top: 56px;
}
.sv-section-title {
  font-size: 24px;
  font-weight: 600;
  color: #0f172b;
  line-height: 32px;
  margin: 0 0 24px;
}

/* ─── FEATURED ARTICLE CARD ──────────────────────────────────── */
.sv-featured {
  display: flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #f1f5f9, 0 12px 30px -24px rgba(15, 23, 42, 0.4);
  overflow: hidden;
  min-height: 395px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.sv-featured:hover {
  box-shadow: 0 0 0 1px #e2e8f0, 0 18px 36px -20px rgba(15, 23, 42, 0.35);
}
.sv-featured-img-wrap {
  flex: 0 0 59%;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.sv-featured-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sv-featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 19px 40px 40px;
}

/* ─── META ROW (tags / read-time / date) ─────────────────────── */
.sv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.sv-tag {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #314158;
  white-space: nowrap;
}
.sv-read-time,
.sv-date {
  font-size: 12px;
  font-weight: 500;
  color: #62748e;
  white-space: nowrap;
}

.sv-featured-title {
  font-size: 30px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.25;
  margin: 0 0 20px;
}
.sv-featured-desc {
  font-size: 16px;
  color: #45556c;
  line-height: 26px;
  margin: 0 0 24px;
  flex: 1;
}
.sv-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  background: rgba(136, 206, 255, 0.47);
  border-radius: 32px;
  font-size: 14px;
  font-weight: 500;
  color: #2c3746;
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-start;
  transition: background 0.18s;
}
.sv-read-more:hover {
  background: rgba(136, 206, 255, 0.68);
}

/* ─── MORE ARTICLES CARDS ────────────────────────────────────── */
.sv-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 354px));
  gap: 20px;
}
.sv-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.55);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
}
.sv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.5);
}
.sv-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 332 / 187;
  overflow: hidden;
}
.sv-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sv-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.sv-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.sv-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sv-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #0f172b;
  line-height: 25px;
  margin: 0 0 10px;
}
.sv-card-desc {
  font-size: 14px;
  color: #45556c;
  line-height: 22.75px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   ARTICLE PAGE STYLES (saveti-statia.html)
   ================================================================ */

/* ─── ARTICLE INTRO HEADER ───────────────────────────────────── */
.sa-intro {
  padding: 48px 0 44px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.sa-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 91px;
}

/* ─── BREADCRUMB / META ROW ──────────────────────────────────── */
.sa-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.sa-bc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #314158;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s;
}
.sa-bc-link:hover { background: #f8fafc; }
.sa-bc-arrow {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
}
.sa-bc-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #314158;
}
.sa-bc-divider {
  width: 1px;
  height: 20px;
  background: #cbd5e1;
  margin: 0 2px;
}
.sa-bc-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #62748e;
}

/* ─── ARTICLE TITLE & SUBTITLE ───────────────────────────────── */
.sa-title {
  font-size: 46px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.18;
  margin: 0 0 20px;
  max-width: 900px;
}
.sa-subtitle {
  font-size: 18px;
  color: #45556c;
  line-height: 1.65;
  margin: 0;
  max-width: 798px;
}

/* ─── ARTICLE HERO IMAGE ─────────────────────────────────────── */
.sa-hero-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 91px 0;
}
.sa-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ─── ARTICLE POST BODY ──────────────────────────────────────── */
.sa-post {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 80px 96px;
}
.sa-post-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  border-top: 1px solid #e2e8f0;
  padding-top: 52px;
  margin-top: 52px;
}

/* ─── TABLE OF CONTENTS ──────────────────────────────────────── */
.sa-toc {
  display: flex;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 120px;
}
.sa-toc-line {
  width: 1px;
  min-height: 480px;
  background: #999;
  flex-shrink: 0;
}
.sa-toc-nav {
  flex: 1;
}
.sa-toc-title {
  font-size: 18px;
  font-weight: 500;
  color: #141414;
  margin: 0 0 16px;
}
.sa-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sa-toc-item a {
  font-size: 15px;
  color: #373c47;
  text-decoration: none;
  line-height: 1.45;
  display: block;
  transition: color 0.15s;
}
.sa-toc-item a:hover,
.sa-toc-item.active a {
  color: #0368fe;
}
.sa-toc-item.active a {
  font-weight: 500;
}

/* ─── ARTICLE CONTENT ────────────────────────────────────────── */
.sa-content {
  min-width: 0;
}
.sa-content h2 {
  font-size: 28px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.35;
  margin: 52px 0 20px;
  scroll-margin-top: 130px;
}
.sa-content h2:first-child {
  margin-top: 0;
}
.sa-content p {
  font-size: 17px;
  color: #45556c;
  line-height: 1.78;
  margin: 0 0 18px;
}
.sa-article-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 32px 0;
}

/* ─── CTA BOX ────────────────────────────────────────────────── */
.sa-cta {
  background: #f7fbff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 26px 28px 26px 62px;
  position: relative;
  margin: 36px 0;
}
.sa-cta-icon {
  position: absolute;
  left: 22px;
  top: 26px;
  width: 22px;
  height: 22px;
  color: #0368fe;
}
.sa-cta-heading {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.4;
}
.sa-cta-sub {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 16px;
  line-height: 1.5;
}
.sa-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 0.5px solid #97979788;
  border-radius: 8px;
  font-size: 14px;
  color: #314158;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.sa-cta-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* ─── FAQ SECTION ────────────────────────────────────────────── */
.sa-faqs {
  margin-top: 56px;
  scroll-margin-top: 130px;
}
.sa-faq-title {
  font-size: 36px;
  font-weight: 400;
  color: #141414;
  line-height: 1.4;
  margin: 0 0 28px;
}
.sa-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 683px;
}
.sa-faq-item {
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}
.sa-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.sa-faq-question {
  font-size: 19px;
  color: #333;
  font-weight: 400;
  line-height: 1.4;
  flex: 1;
}
.sa-faq-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  position: relative;
}
.sa-faq-icon::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 19px;
  width: 14px;
  height: 2px;
  background: #141414;
  border-radius: 1px;
}
.sa-faq-icon::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 13px;
  width: 2px;
  height: 14px;
  background: #141414;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.2s;
}
.sa-faq-item.open .sa-faq-icon::after {
  opacity: 0;
  transform: rotate(90deg);
}
.sa-faq-answer {
  display: none;
  padding: 4px 16px 18px;
  font-size: 15px;
  color: #45556c;
  line-height: 1.65;
}
.sa-faq-item.open .sa-faq-answer {
  display: block;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sa-intro-inner,
  .sa-hero-wrap { padding-left: 48px; padding-right: 48px; }
  .sa-post { padding: 0 48px 72px; }
  .sa-post-inner { grid-template-columns: 240px 1fr; gap: 44px; }
  .sa-title { font-size: 38px; }
}

@media (max-width: 900px) {
  .sa-post-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sa-toc {
    position: static;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
  }
  .sa-toc-line { display: none; }
  .sv-featured { flex-direction: column; }
  .sv-featured-img-wrap {
    flex: 0 0 auto;
    height: 280px;
    width: 100%;
  }
  .sv-featured-title { font-size: 24px; }
  .sa-hero-img { height: 260px; }
  .sa-article-img { height: 280px; }
}

@media (max-width: 700px) {
  .sv-cards { grid-template-columns: 1fr; max-width: 460px; }
  .sv-container { padding: 0 20px; }
  .sa-intro-inner,
  .sa-hero-wrap { padding-left: 20px; padding-right: 20px; }
  .sa-post { padding: 0 20px 64px; }
  .sa-title { font-size: 28px; }
  .sa-content h2 { font-size: 22px; }
  .sa-faq-question { font-size: 16px; }
  .sa-faq-list { max-width: 100%; }
  .sv-featured-title { font-size: 20px; }
  .sv-hero { height: 120px; }
  .sv-section { padding-top: 40px; }
  .sa-article-img,
  .sa-hero-img { height: 220px; }
}

@media (max-width: 480px) {
  .sa-breadcrumb { gap: 6px; }
  .sa-bc-link,
  .sa-bc-current { padding: 8px 11px; font-size: 13px; }
  .sa-bc-divider { display: none; }
  .sa-title { font-size: 24px; }
  .sa-subtitle { font-size: 16px; }
}
