/* =====================================================
   Atlas Guide - News Page Styles
   /css/news.css
   Requires: global.css (loaded first)
   ===================================================== */

/* ---- TICKER ---- */
.news-ticker {
  background: var(--ag-green-800);
  color: var(--ag-white);
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.news-ticker__label {
  flex-shrink: 0;
  background: var(--secondary);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}
.news-ticker__track {
  overflow: hidden;
  flex: 1;
}
.news-ticker__inner {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.news-widget--ad {
    padding: 0;
    overflow: hidden;
}
.news-ticker__inner:hover { animation-play-state: paused; }
.news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 12.5px;
  font-weight: 500;
  opacity: .9;
}
.news-ticker__item::after {
  content: '·';
  opacity: .4;
  margin-left: 12px;
}
.news-ticker__item a { color: inherit; text-decoration: none; }
.news-ticker__item a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- MASTHEAD ---- */
.news-masthead {
  background: var(--bg-dark);
  padding: 150px 0 40px;
  position: relative;
  overflow: hidden;
}
.news-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 79px,
    rgba(255,255,255,.03) 79px,
    rgba(255,255,255,.03) 80px
  );
  pointer-events: none;
}
.news-masthead__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.news-masthead__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}
.news-masthead__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--ag-white);
  line-height: 1.1;
  font-weight: 600;
}
.news-masthead__title em {
  color: var(--accent);
  font-style: italic;
}
.news-masthead__sub {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}
.news-masthead__date {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  font-weight: 500;
  letter-spacing: .04em;
  padding-bottom: 6px;
}

/* ---- CATEGORY FILTER ---- */
.news-filter {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.news-filter__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.news-filter__inner::-webkit-scrollbar { display: none; }
.news-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, border-color .2s;
  font-family: var(--font-body);
}
.news-filter__btn:hover { color: var(--primary); }
.news-filter__btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---- BREADCRUMB ---- */
.news-breadcrumb {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 64px) 0;
  font-size: 12.5px;
  color: var(--text-mid);
  opacity: .6;
}
.news-breadcrumb a { color: inherit; text-decoration: none; }
.news-breadcrumb a:hover { text-decoration: underline; }
.news-breadcrumb span { margin: 0 6px; }

/* ---- LAYOUT ---- */
.news-layout {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 64px) 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { display: none; }
}

/* ---- HERO ARTICLE ---- */
.news-hero {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1.5px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.news-hero:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-hero__visual {
  background: linear-gradient(135deg, var(--ag-green-900) 0%, var(--ag-green-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.news-hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,.03) 20px,
    rgba(255,255,255,.03) 21px
  );
}
.news-hero__globe {
  font-size: 72px;
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.news-hero__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  color: var(--ag-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 14px;
  width: fit-content;
}
.news-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}
.news-hero__summary {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.news-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.news-hero__meta span { color: var(--text-mid); font-weight: 400; }
@media (max-width: 640px) {
  .news-hero { grid-template-columns: 1fr; }
  .news-hero__visual { min-height: 140px; }
}

/* ---- ARTICLE GRID ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex !important;
  flex-direction: column;
  grid-template-columns: unset;
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.news-card__top                    { height: 6px; }
.news-card__top--visa              { background: var(--ag-ocean-500); }
.news-card__top--safety            { background: var(--ag-terra-500); }
.news-card__top--airlines          { background: #7B5EA7; }
.news-card__top--deals             { background: var(--ag-green-500); }
.news-card__top--destinations      { background: var(--primary); }
.news-card__top--health            { background: var(--ag-gold-600); }
.news-card__top--general           { background: var(--accent); }
.news-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
  flex: 1;
  font-weight: 600;
}
.news-card__summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
}
.news-card__time   { color: var(--text-light); font-weight: 500; }
.news-card__source { color: var(--primary); font-weight: 600; }
.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.news-card__tag {
  background: var(--bg-warm);
  color: var(--text-mid);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

/* ---- EMPTY STATE ---- */
.news-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-light);
}
.news-empty__icon { font-size: 48px; margin-bottom: 16px; }
.news-empty__text { font-size: 15px; }

/* ---- PAGINATION ---- */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.news-pagination a:hover        { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-pagination .current       { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-pagination .disabled      { opacity: .35; pointer-events: none; }

/* ---- SIDEBAR ---- */
.news-sidebar,
.na-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow-y: auto;
  scrollbar-width: none;
}
.news-sidebar::-webkit-scrollbar,
.na-sidebar::-webkit-scrollbar { display: none; }

.news-widget {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.news-widget__head {
  background: var(--bg-dark);
  color: var(--ag-white);
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.news-widget__body { padding: 16px; }
.news-widget__cats { display: flex; flex-direction: column; gap: 4px; }
.news-widget__cat-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-mid);
  transition: background .2s, color .2s;
  gap: 8px;
}
.news-widget__cat-link:hover,
.news-widget__cat-link.active {
  background: var(--bg-warm);
  color: var(--primary);
}

.news-cta {
  background: linear-gradient(135deg, var(--ag-green-900), var(--ag-green-600));
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  color: var(--ag-white);
  text-align: center;
}
.news-cta__icon  { font-size: 32px; margin-bottom: 12px; }
.news-cta__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.news-cta__text {
  font-size: 13px;
  opacity: .75;
  line-height: 1.55;
  margin-bottom: 18px;
}
.news-cta__btn {
  display: inline-block;
  background: var(--ag-white);
  color: var(--ag-green-900);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: opacity .2s;
}
.news-cta__btn:hover { opacity: .85; }

.news-affiliate-note {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}
.news-affiliate-btn {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
  transition: opacity .2s, transform .2s;
}
.news-affiliate-btn:hover { opacity: .88; transform: translateY(-1px); }
.news-affiliate-btn--primary   { background: var(--primary); color: #fff; }
.news-affiliate-btn--secondary { background: var(--bg-warm); color: var(--ag-green-900); }

/* ---- LANGUAGE SWITCHER BAR ---- */
.news-lang-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.news-lang-bar__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.news-lang-bar__inner::-webkit-scrollbar { display: none; }
.news-lang-bar__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  font-family: var(--font-body);
}
.news-lang-bar__btn:hover { color: var(--primary); }
.news-lang-bar__btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---- BREAKING BADGE ---- */
.news-card__breaking {
  background: var(--ag-terra-500);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  animation: ag-pulse 2s ease infinite;
}

/* ---- COUNTRY TAGS AS LINKS ---- */
a.news-card__tag {
  text-decoration: none;
  transition: background .2s, color .2s;
}
a.news-card__tag:hover {
  background: var(--ag-green-100);
  color: var(--ag-green-800);
}

/* ---- PREVENT AD INJECTION INSIDE CARDS ---- */
.news-grid > *:not(.news-card) { display: none !important; }
.news-card * > ins,
.news-card * > iframe,
.news-card .ezoic-ad { display: none !important; }

/* ---- HIDE LANGUAGE SWITCHER ON NEWS PAGES ---- */
.language-switcher-bottom { display: none !important; }

/* ---- NEW TODAY BADGE ---- */
.news-card__new-today {
  background: var(--ag-green-600);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ---- SEARCH BAR ---- */
.news-search-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.news-search-bar__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}
.news-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.news-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.news-search-input-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
  flex-shrink: 0;
}
.news-search-input {
  width: 100%;
  padding: 10px 40px 10px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.news-search-input:focus { border-color: var(--primary); }
.news-search-clear {
  position: absolute;
  right: 14px;
  color: var(--text-light);
  font-size: 18px;
  text-decoration: none;
  line-height: 1;
}
.news-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.news-search-btn:hover { background: var(--primary-light); }
.news-search-results-header {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-mid);
}
.news-search-results-header strong { color: var(--text); }