/*
Theme Name: Neve News Child (Donna Alxia)
Template: neve
Text Domain: neve-news-child
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700;900&family=Assistant:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #17140f;
  --paper: #f7f4ee;
  --paper-2: #efeade;
  --line: #ddd6c4;
  --muted: #6b6357;

  --news-red: #a3241f;
  --news-dark: #17140f;
  --news-gray: #efeade;

  --cat-local: #a3241f;
  --cat-world: #1c4b3f;
  --cat-economy: #1f6b4a;
  --cat-sports: #b5680b;
  --cat-tech: #4a3b8c;
  --cat-health: #0e6e70;
  --cat-culture: #942a63;
  --cat-politics: #4a4438;
}

body {
  direction: rtl;
  text-align: right;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Assistant', sans-serif;
}

h1, h2, h3, h4,
.article-title,
.news-hero-overlay h2,
.news-hero-overlay h3,
.news-card-body h3,
.news-section-banner h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
}

a { transition: color .15s ease; }

/* ===== Hero / Breaking News ===== */
.news-hero {
  position: relative;
  margin-bottom: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.news-hero-main {
  position: relative;
  height: 480px;
  border-radius: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
}
.news-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-hero-main:hover img { transform: scale(1.03); }
.news-hero-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 34px 30px 28px;
  background: linear-gradient(to top, rgba(10,8,5,0.92), rgba(10,8,5,0.35) 65%, rgba(10,8,5,0));
  color: #fff;
}
.news-hero-overlay h2 {
  font-size: 32px;
  line-height: 1.25;
  margin: 12px 0 0;
  color: #fff;
}
.news-hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.news-hero-side-item {
  position: relative;
  height: 160px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
}
.news-hero-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-hero-side-item:hover img { transform: scale(1.05); }
.news-hero-side-item .news-hero-overlay {
  padding: 14px;
  background: linear-gradient(to top, rgba(10,8,5,0.9), rgba(10,8,5,0));
}
.news-hero-side-item .news-hero-overlay h3 {
  font-size: 15.5px;
  color: #fff;
  margin: 6px 0 0;
  line-height: 1.3;
}

/* ===== Category Badge ===== */
.cat-badge {
  display: inline-block;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 2px;
  color: #fff;
  background: var(--news-dark);
  text-decoration: none;
}
.cat-local    { background: var(--cat-local); }
.cat-world    { background: var(--cat-world); }
.cat-economy  { background: var(--cat-economy); }
.cat-sports   { background: var(--cat-sports); }
.cat-tech     { background: var(--cat-tech); }
.cat-health   { background: var(--cat-health); }
.cat-culture  { background: var(--cat-culture); }
.cat-politics { background: var(--cat-politics); }

/* ===== Category Section Banner ===== */
.news-section { margin: 46px 0; }
.news-section-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 10px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 22px;
  color: var(--ink);
  background: none !important;
}
.news-section-banner h2 {
  color: var(--ink);
  margin: 0;
  font-size: 23px;
}
.news-section-banner a {
  color: var(--news-red);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.news-section-banner a:hover { text-decoration: underline; }

/* ===== News Card Grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-hero-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.news-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform .15s ease;
}
.news-card:hover { transform: translateY(-2px); }
.news-card-img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.news-card-body { padding: 0; }
.news-card-body h3 {
  font-size: 16.5px;
  line-height: 1.35;
  margin: 8px 0 6px;
}
.news-card-body h3 a {
  color: var(--news-dark);
  text-decoration: none;
}
.news-card-body h3 a:hover {
  color: var(--news-red);
}
.news-card-meta {
  font-size: 11.5px;
  color: var(--muted);
}

/* ===== Single Post ===== */
.news-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.news-breadcrumbs a { color: var(--muted); text-decoration: none; }
.news-breadcrumbs a:hover { color: var(--news-red); }

.news-related {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 3px solid var(--ink);
}
.news-related h2 {
  font-size: 21px;
  margin-bottom: 20px;
}

/* ===== Ad slots ===== */
.news-ad-slot {
  margin: 34px 0;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ===== Header ===== */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-title-link {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--news-dark);
  text-decoration: none;
}
.main-nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav-list a {
  color: var(--news-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.main-nav-list a:hover {
  color: var(--news-red);
  border-bottom-color: var(--news-red);
}
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px 10px;
}
.mobile-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--news-dark);
}

@media (max-width: 900px) {
  .mobile-nav-toggle { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open { display: block; }
  .main-nav-list {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 14px;
  }
  .main-nav-list li a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #c7c0af;
  margin-top: 64px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}
@media (max-width: 700px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 26px; }
}
.site-footer h3 {
  font-family: 'Frank Ruhl Libre', serif;
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
}
.footer-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-cat-list li { margin-bottom: 8px; }
.footer-cat-list a,
.footer-social a {
  color: #c7c0af;
  text-decoration: none;
  font-size: 13.5px;
}
.footer-cat-list a:hover,
.footer-social a:hover { color: #fff; }
.footer-social {
  display: flex;
  gap: 16px;
}
.site-footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  color: #8b8474;
}

/* ===== Single Article ===== */
.article-title {
  font-size: 34px;
  line-height: 1.28;
  margin-bottom: 12px;
}
.article-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
  display: flex;
  gap: 16px;
}
.article-featured-img img {
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.article-content {
  font-size: 18.5px;
  line-height: 1.85;
  color: #26221b;
}
.article-content p { margin-bottom: 20px; }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid var(--line);
}
.article-tags {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article-tag {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
.article-tag:hover { color: var(--news-red); border-color: var(--news-red); }
.article-share {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}
.article-share a {
  color: var(--news-red);
  text-decoration: none;
  font-weight: 700;
}
.article-share a:hover { text-decoration: underline; }

/* ===== Mobile tuning ===== */
@media (max-width: 600px) {
  .site-title-link { font-size: 21px; }
  .news-hero-main { height: 260px; }
  .news-hero-overlay { padding: 20px 16px 16px; }
  .news-hero-overlay h2 { font-size: 19px; }
  .news-hero-side { grid-template-columns: 1fr 1fr; gap: 10px; }
  .news-hero-side-item { height: 120px; }
  .news-section-banner h2 { font-size: 19px; }
  .news-card-img { height: 130px; }
  .news-card-body h3 { font-size: 14px; }
  .article-title { font-size: 25px; }
  .article-content { font-size: 16.5px; }
}
