/*
 * 1NEWS ONE visual layer
 * Inspired by the public NEWSONE / 1newsone.com.ua news-portal layout.
 * Keeps the SmartMag markup intact and changes only presentation.
 */

:root {
  --newsone-blue: #0a2b69;
  --newsone-blue-dark: #071d49;
  --newsone-blue-soft: #eef3fa;
  --newsone-red: #e31d2b;
  --newsone-red-dark: #bd1421;
  --newsone-text: #161616;
  --newsone-muted: #6f7682;
  --newsone-line: #dde2e8;
  --newsone-bg: #f4f5f7;
  --c-main: var(--newsone-red);
  --c-main-rgb: 227, 29, 43;
  --c-links: var(--newsone-text);
  --c-headings: #111827;
  --c-excerpts: #5b6472;
  --main-width: 1180px;
  --wrap-padding: 18px;
  --grid-gutter: 26px;
  --title-fw-semi: 600;
  --title-fw-bold: 700;
}

html,
body {
  background: var(--newsone-bg);
  color: var(--newsone-text);
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.main-wrap {
  background: #fff;
}

/* Header: compact, newsroom-like, navy/red hierarchy. */
.smart-head {
  --head-top-h: 36px;
  --head-mid-h: 88px;
  --head-bot-h: 48px;
  --head-row-pad: 0;
  --head-inner-pad: 0;
  --nav-items-space: 14px;
  --c-border: #d8dee7;
  box-shadow: none;
  border-bottom: 3px solid var(--newsone-red);
}

.smart-head .wrap,
.smart-head-row > .inner {
  max-width: var(--main-width);
  margin: 0 auto;
  width: 100%;
}

.smart-head-top {
  --c-bg: var(--newsone-blue-dark);
  --head-h: 36px;
  color: #fff;
}

.smart-head-top .items,
.smart-head-top .items a,
.smart-head-top .h-text,
.smart-head-top .h-date,
.smart-head-top .spc-social {
  color: #fff;
}

.smart-head-mid {
  --head-h: 88px;
  --c-bg: #fff;
  border-bottom: 1px solid var(--newsone-line);
}

.smart-head-bot {
  --head-h: 48px;
  --c-bg: #fff;
  --c-border: #e4e7eb;
  border-top: 0;
  border-bottom: 1px solid var(--newsone-line);
}

.smart-head .logo-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  color: var(--newsone-blue);
}

.smart-head .logo-link::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 0 2px 6px;
  background: var(--newsone-red);
  border-radius: 50%;
}

.smart-head .navigation .menu > li > a {
  color: var(--newsone-blue-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 48px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.smart-head .navigation .menu > li > a:hover,
.smart-head .navigation .menu > li.current-menu-item > a,
.smart-head .navigation .menu > li.current-menu-parent > a {
  color: var(--newsone-red);
}

.smart-head .search-icon {
  color: var(--newsone-blue-dark);
}

.newsone-live-strip {
  background: var(--newsone-blue);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.newsone-live-strip .inner {
  width: 100%;
  max-width: var(--main-width);
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--wrap-padding);
  overflow: hidden;
}

.newsone-live-strip .live-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 24px;
  padding: 0 10px;
  background: var(--newsone-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.newsone-live-strip .ticker {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.newsone-live-strip .ticker-track {
  display: inline-flex;
  gap: 28px;
  animation: newsoneTicker 28s linear infinite;
}

.newsone-live-strip a {
  color: #fff;
}

@keyframes newsoneTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

/* Main news area */
.main {
  max-width: calc(var(--main-width) + (var(--wrap-padding) * 2));
  margin: 22px auto 48px;
}

.main .ts-row {
  align-items: flex-start;
}

.main-content {
  background: #fff;
}

.archive-heading,
.block-heading {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 10px;
  color: var(--newsone-blue-dark);
  font-size: 23px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--newsone-blue);
}

.archive-heading::after,
.block-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 86px;
  height: 3px;
  background: var(--newsone-red);
}

/* News cards feel closer to a dense editorial portal. */
.grid-post,
.list-post,
.small-post,
.feat-grid .item {
  background: #fff;
}

.grid-post .post-title,
.list-post .post-title,
.small-post .post-title,
.feat-grid .post-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.grid-post .post-title a:hover,
.list-post .post-title a:hover,
.small-post .post-title a:hover,
.feat-grid .post-title a:hover {
  color: var(--newsone-red);
}

.grid-post .media,
.list-post .media,
.small-post .media {
  overflow: hidden;
}

.grid-post .media img,
.list-post .media img,
.small-post .media img {
  transition: transform .25s ease;
}

.grid-post:hover .media img,
.list-post:hover .media img,
.small-post:hover .media img {
  transform: scale(1.03);
}

.category,
.cat-labels a {
  background: var(--newsone-red) !important;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 800;
}

.post-meta {
  color: var(--newsone-muted);
  font-size: 11px;
}

.post-meta .meta-item,
.post-meta .post-cat a {
  color: var(--newsone-muted);
}

.loop-grid,
.loop-list,
.loop-small {
  row-gap: 22px;
}

.loop-sep .l-post:after,
.loop-list-sep .l-post,
.loop-small-sep .l-post {
  border-color: var(--newsone-line);
}

/* Sidebar styling. */
.right-sidebar {
  border-left: 1px solid var(--newsone-line);
  padding-left: 24px;
}

.right-sidebar .widget {
  margin-bottom: 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--newsone-line);
}

.right-sidebar .widget-title,
.right-sidebar .block-heading {
  color: var(--newsone-blue-dark);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--newsone-blue);
}

.right-sidebar .widget-title::after {
  background: var(--newsone-red);
}

.right-sidebar li a:hover {
  color: var(--newsone-red);
}

/* Legacy / theme defaults often used transparent dark bars. */
.smart-head .s-dark,
.smart-head.s-dark,
.s-dark .smart-head-row {
  color: #fff;
}

/* Responsive */
@media (max-width: 940px) {
  .smart-head {
    display: none;
  }

  .smart-head-mobile {
    display: block;
    border-bottom: 3px solid var(--newsone-red);
    background: #fff;
  }

  .smart-head-mobile .smart-head-mid {
    --head-h: 68px;
  }

  .smart-head-mobile .logo-link {
    font-size: 28px;
  }

  .main {
    margin-top: 16px;
  }

  .right-sidebar {
    border-left: 0;
    padding-left: 0;
    margin-top: 34px;
  }
}

@media (max-width: 540px) {
  :root {
    --wrap-padding: 14px;
  }

  .main {
    margin-bottom: 28px;
  }

  .archive-heading,
  .block-heading {
    font-size: 19px;
  }

  .newsone-live-strip .inner {
    min-height: 38px;
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .newsone-live-strip .ticker {
    font-size: 11px;
  }
}
