/* =========================================================
   NEWS ARTICLE PAGE — fluid scaling 1200 → 1920+ via clamp()
   Same pattern as o-nas / prodat / kupit / blog.
   Reference design: Figma 1920.
   ========================================================= */

.big_block_home--news {
  background: #FFFFFF;
  height: auto;
  min-height: 0;
  position: relative;
}
.big_block_home--news > .container {
  padding: 0 clamp(50px, 5vw, 96px);
  max-width: 1920px;
  height: auto;
  margin: 0 auto;
}
/* Mega-menu logo override */
.big_block_home--news header .mega-menu .logo img { filter: none; }

/* ----- Kill the bothersome vertical rails (per client request). -----
   Two sources of rails: (1) body::before/::after from the original
   news.css full-document rails, and (2) .big_block_home--news::before/::after
   from style.css's global rails. Both gone. Also remove the header bottom
   divider line. */
body:has(.big_block_home--news)::before,
body:has(.big_block_home--news)::after,
.big_block_home--news::before,
.big_block_home--news::after {
  content: none !important;
  display: none !important;
}
.big_block_home--news header .about_block .top_header_group { border-bottom-color: #010101; }
.big_block_home--news header .about_block .top_header_group::after { content: none !important; display: none !important; }

/* =========================================================
   ARTICLE BLOCK — fluid layout
   ========================================================= */
.news_article {
  background: #FFFFFF;
  padding: clamp(40px, 4vw, 64px) 0 clamp(48px, 6vw, 96px);
  /* Shared measure for the whole article (breadcrumbs, date, title, photo,
     lead, body, FAQ) so every block lines up on the same left/right edges
     and the column sits centred in the container. */
  --news-col: min(1180px, 100%);
}
.news_article__breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(6px, 0.4vw, 8px);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 0.75vw + 7px, 25px);
  line-height: 130%;
  color: #C4C4C4;
  width: 100%;
  max-width: var(--news-col);
  margin: 0 auto clamp(32px, 4vw, 64px);
}
.news_article__breadcrumbs a,
.news_article__breadcrumbs span {
  color: #C4C4C4;
  text-decoration: none;
  transition: color .2s;
}
.news_article__breadcrumbs a:hover { color: #010101; }

/* Single centred column. The publish date used to occupy a left grid column
   up to 642px wide, which pushed the title, photo and body off to the right
   of the page; it now renders as a meta line above the H1 (its markup still
   comes first in the DOM), so the article reads centred. */
.news_article__layout {
  display: block;
  position: relative;
  width: 100%;
  max-width: var(--news-col);
  margin-inline: auto;
}

/* When mega-menu overlay is open, drop the layout z-index so its photo/text
   doesn't punch through the menu's white background. */
body:has(.mega-menu.active) .news_article__layout {
  z-index: 1;
}

/* Meta line (was the left sidebar) — subcategory + date, above the title */
.news_article__sidebar {
  padding-right: 0;
  padding-top: 0;
  margin-bottom: clamp(10px, 1vw, 16px);
}
.news_article__category {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(28px, 1.1vw + 14.8px, 44px);
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  margin: 0;
  max-width: 510px;
}
.news_article__date {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 0.3vw + 11px, 18px);
  line-height: 120%;
  letter-spacing: 0.04em;
  color: #C4C4C4;
  margin-top: 0;
}

/* Main */
.news_article__main {
  max-width: 100%;
  min-width: 0;
}
.news_article__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(50px, 2vw + 26px, 80px);
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 2vw, 32px);
  max-width: 100%;
}
.news_article__photo {
  width: 100%;
  margin-bottom: clamp(20px, 2vw, 32px);
}
.news_article__photo img {
  width: 100%;
  height: clamp(320px, 30vw, 598px);
  object-fit: cover;
  display: block;
}
.news_article__lead {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 0.75vw + 7px, 25px);
  line-height: 130%;
  color: #3C3C3B;
  margin: 0 0 clamp(32px, 4vw, 64px);
  max-width: 100%;
}
.news_article__h2 {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(28px, 1.1vw + 14.8px, 44px);
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  -webkit-text-stroke: 0.32px #010101;
  margin: 0 0 clamp(20px, 2vw, 32px);
  max-width: 100%;
}
.news_article__h3 {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 0.85vw + 7px, 32px);
  line-height: 120%;
  color: #3C3C3B;
  margin: clamp(20px, 2vw, 32px) 0 clamp(10px, 1vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0;
}
.news_article__p {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 0.75vw + 7px, 25px);
  line-height: 130%;
  color: #3C3C3B;
  margin: 0 0 clamp(12px, 1.2vw, 16px);
  max-width: 100%;
}

/* Article body — applies the same h2/h3/p typography to raw user-generated
   HTML coming out of the wp_editor (which does not carry .news_article__*
   class names). Lists, blockquotes and inline media inherit sensible
   spacing too so the editor's output renders correctly without forcing the
   author to copy/paste class names. */
.news_article__body h2 {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(28px, 1.1vw + 14.8px, 44px);
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  -webkit-text-stroke: 0.32px #010101;
  margin: clamp(28px, 2.4vw, 40px) 0 clamp(20px, 2vw, 32px);
}
.news_article__body h3 {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 0.85vw + 7px, 32px);
  line-height: 120%;
  color: #3C3C3B;
  margin: clamp(20px, 2vw, 32px) 0 clamp(10px, 1vw, 16px);
  text-transform: uppercase;
}
.news_article__body p {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 0.75vw + 7px, 25px);
  line-height: 130%;
  color: #3C3C3B;
  margin: 0 0 clamp(12px, 1.2vw, 16px);
  max-width: 100%;
}
.news_article__body ul,
.news_article__body ol {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 0.75vw + 7px, 25px);
  line-height: 130%;
  color: #3C3C3B;
  margin: 0 0 clamp(12px, 1.2vw, 16px);
  padding-left: 24px;
  max-width: 100%;
}
.news_article__body li { margin-bottom: 6px; }
.news_article__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: clamp(20px, 2vw, 32px) 0;
  border-radius: 4px;
}
.news_article__body a { color: #3C3C3B; text-decoration: underline; }
/* Editor-placed in-body images (meta inm_body_images → <figure class="gaid2_fig">).
   Mirrors the guide layout's figure rhythm, scoped to the narrower news body. */
.news_article__body .gaid2_fig { margin: clamp(20px, 2vw, 32px) 0; }
.news_article__body .gaid2_fig__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 4px;
}
.news_article__body .gaid2_fig__cap {
  margin: 10px 0 0;
  font-size: clamp(13px, 0.3vw + 10px, 15px);
  line-height: 150%;
  color: #8A8A88;
}
.news_article__body blockquote {
  margin: clamp(20px, 2vw, 32px) 0;
  padding: 16px 24px;
  border-left: 3px solid #010101;
  font-style: italic;
  color: #3C3C3B;
  max-width: 100%;
}
/* Body tables — same row-line treatment as guide tables (gaid2.css), but
   tuned for blog tables whose first row is a column-header row (th|th)
   rather than the guide fact-sheet shape (th = row label). Without these,
   editor tables render browser-default: borderless, cells glued together. */
.news_article__body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: clamp(20px, 2vw, 32px) 0;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 0.5vw + 8px, 20px);
  line-height: 150%;
  color: #3C3C3B;
}
.news_article__body table th,
.news_article__body table td {
  padding: clamp(10px, 1vw, 15px) clamp(16px, 1.6vw, 26px);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #E3DFD8;
}
.news_article__body table th:first-child,
.news_article__body table td:first-child { padding-left: 0; }
.news_article__body table th:last-child,
.news_article__body table td:last-child { padding-right: 0; }
.news_article__body table tr:first-child th,
.news_article__body table tr:first-child td { border-top: 1px solid #E3DFD8; }
.news_article__body table th {
  font-weight: 600;
  color: #010101;
}
@media (max-width: 600px) {
  .news_article__body table { font-size: 14px; }
  .news_article__body table th,
  .news_article__body table td { padding: 9px 12px; }
  .news_article__body table th:first-child,
  .news_article__body table td:first-child { padding-left: 0; }
  .news_article__body table th:last-child,
  .news_article__body table td:last-child { padding-right: 0; }
}

/* =========================================================
   MOBILE — 768px
   ========================================================= */
@media (max-width: 768px) {
  .big_block_home--news > .container { padding: 0 30px; }
  .news_article { padding: 32px 0 48px; }
  .news_article__breadcrumbs { margin-bottom: 24px; font-size: 12px; gap: 6px; }
  .news_article__sidebar { margin-bottom: 8px; }
  .news_article__category { font-size: 20px; margin-bottom: 8px; }
  .news_article__date { font-size: 14px; margin-top: 0; }
  .news_article__title { font-size: 35px; margin-bottom: 16px; }
  .news_article__photo img { height: 320px; }
  .news_article__lead { font-size: 14px; line-height: 150%; margin-bottom: 24px; max-width: 100%; }
  .news_article__h2 { font-size: 20px; margin-bottom: 12px; max-width: 100%; }
  .news_article__h3 { font-size: 16px; margin: 16px 0 8px; }
  .news_article__p { font-size: 14px; line-height: 150%; max-width: 100%; }
}

/* =========================================================
   SMALL MOBILE — 360px
   ========================================================= */
@media (max-width: 360px) {
  .big_block_home--news > .container { padding: 0 16px; }
  .news_article { padding: 24px 0 32px; }
  .news_article__breadcrumbs { margin-bottom: 16px; font-size: 12px; gap: 4px; }
  .news_article__sidebar { margin-bottom: 6px; }
  .news_article__category { font-size: 20px; margin-bottom: 4px; }
  .news_article__date { font-size: 12px; }
  .news_article__title { font-size: 30px; margin-bottom: 16px; }
  .news_article__photo img { height: 200px; }
  .news_article__lead { font-size: 14px; margin-bottom: 16px; }
  .news_article__h2 { font-size: 20px; margin-bottom: 12px; }
  .news_article__h3 { font-size: 14px; margin: 16px 0 8px; }
  .news_article__p { font-size: 14px; margin-bottom: 12px; }
}

/* =========================================================
   FAQ on a news / blog article.
   Reuses the .gaid2_faq accordion component (markup, styles in
   gaid2.css and open/close JS in gaid2.js are shared with guides;
   functions.php loads them when an article has FAQ content). Here we
   only constrain its width to the article body column.
   ========================================================= */
.news_article__faq {
  /* Align the accordion width with the body paragraphs (.news_article__p).
     Vertical spacing comes from .gaid2_faq's own margin-top in gaid2.css. */
  max-width: 100%;
}

/* =========================================================
   "MORE FROM THE BLOG" — horizontal Swiper carousel shown below
   every news / blog article. Full-width band placed after the
   article container; its inner padding matches the article rails
   (.big_block_home--news > .container). Cards use slidesPerView:'auto'
   so widths come from the slide itself; overflow is reached via the
   prev/next buttons in the header (hidden when nothing overflows).
   ========================================================= */
.news_more {
  background: #FFFFFF;
  border-top: 1.6px solid #E1E1E1;
  padding: clamp(48px, 5vw, 96px) 0 clamp(56px, 6vw, 104px);
}
.news_more__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(50px, 5vw, 96px);
}
.news_more__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.news_more__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(28px, 1.1vw + 14.8px, 44px);
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  margin: 0;
}
.news_more__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.news_more__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.6px solid #E1E1E1;
  color: #010101;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.news_more__nav-btn:hover { background: #010101; border-color: #010101; color: #FFFFFF; }
.news_more__nav-btn.swiper-button-disabled,
.news_more__nav-btn.swiper-button-lock { opacity: 0.35; pointer-events: none; }
.news_more__swiper {
  width: 100%;
  overflow: hidden;
}
.news_more__card {
  width: clamp(300px, 26vw, 420px);
  height: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.news_more__photo {
  display: block;
  width: 100%;
  margin-bottom: clamp(16px, 1.6vw, 24px);
  overflow: hidden;
}
.news_more__photo img {
  width: 100%;
  height: clamp(220px, 18vw, 320px);
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.news_more__card:hover .news_more__photo img { transform: scale(1.06); }
.news_more__date {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 0.5vw + 8px, 18px);
  line-height: 120%;
  color: #C2C2C2;
  margin-bottom: clamp(8px, 0.8vw, 12px);
}
.news_more__name {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(22px, 0.7vw + 12px, 30px);
  line-height: 115%;
  letter-spacing: 0.02em;
  color: #010101;
  margin: 0 0 clamp(8px, 0.8vw, 12px);
}
.news_more__name a { color: inherit; text-decoration: none; transition: color .2s; }
.news_more__name a:hover { color: #41545C; }
.news_more__excerpt {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 0.4vw + 9px, 18px);
  line-height: 135%;
  color: #3C3C3B;
  margin: 0 0 clamp(16px, 1.6vw, 24px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news_more__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 1.6vw, 30px);
  height: clamp(46px, 3.2vw, 60px);
  background: transparent;
  color: #232323;
  border: 1.6px solid #232323;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(15px, 0.5vw + 8px, 20px);
  line-height: 150%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color .25s, color .25s, border-color .25s;
}
.news_more__btn:hover { background: #010101; color: #FFFFFF; border-color: #010101; }

@media (max-width: 768px) {
  .news_article__faq { max-width: 100%; }
  .news_more { padding: 40px 0 48px; }
  .news_more__inner { padding: 0 30px; }
  .news_more__head { margin-bottom: 24px; }
  .news_more__title { font-size: 26px; }
  .news_more__nav-btn { width: 40px; height: 40px; }
  .news_more__card { width: 78vw; max-width: 360px; }
  .news_more__photo img { height: 220px; }
  .news_more__name { font-size: 22px; }
  .news_more__excerpt { font-size: 15px; }
}
@media (max-width: 360px) {
  .news_more__inner { padding: 0 16px; }
  .news_more__card { width: 84vw; }
  .news_more__photo img { height: 200px; }
}
