/* ══════════════════════════════════════════
   SignsOf Theme — Main Stylesheet
   ══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #e32121;
  --red-dark:   #b81919;
  --red-light:  #fff0f0;
  --navy:       #0f172a;
  --gray-900:   #111827;
  --gray-700:   #374151;
  --gray-500:   #6b7280;
  --gray-300:   #d1d5db;
  --gray-200:   #e5e7eb;
  --gray-100:   #f3f4f6;
  --gray-50:    #f9fafb;
  --white:      #ffffff;
  --green:      #059669;
  --blue:       #2563eb;
  --purple:     #7c3aed;
  --amber:      #d97706;
  --teal:       #0d9488;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --trans:      all .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── ACCESSIBILITY ── */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: 12px;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a { color: rgba(255,255,255,.65); margin-left: 16px; transition: var(--trans); }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-mark  { font-size: 26px; font-weight: 900; color: var(--gray-900); letter-spacing: -1px; }
.logo-accent{ font-size: 26px; font-weight: 900; color: var(--red);      letter-spacing: -1px; }
.logo small { font-size: 10px; color: var(--gray-500); margin-top: 1px; font-weight: 400; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow: hidden; }

/* WP nav menu styles */
.main-nav .nav-menu-list,
.main-nav ul { display: flex; align-items: center; gap: 2px; flex: 1; overflow: hidden; padding: 0; margin: 0; list-style: none; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  font-size: 13.5px; font-weight: 500; color: var(--gray-700);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: var(--trans); white-space: nowrap; display: block;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-category-ancestor > a { background: var(--red-light); color: var(--red); }

/* Dropdown */
.main-nav ul li .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
}
.main-nav ul li:hover > .sub-menu { display: block; }
.main-nav ul li .sub-menu li a { padding: 9px 18px; border-radius: 0; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--trans); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   TRENDING BAR
══════════════════════════════════════════ */
.trending-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
}
.trending-inner { display: flex; align-items: center; gap: 16px; overflow: hidden; }
.trending-label {
  font-weight: 700; font-size: 13px; color: var(--red);
  white-space: nowrap; flex-shrink: 0;
  border-right: 1px solid var(--gray-200); padding-right: 16px;
}
.trending-items { display: flex; overflow: hidden; gap: 0; flex: 1; }
.trending-items a {
  font-size: 13px; color: var(--gray-700);
  white-space: nowrap; padding: 4px 14px;
  border-right: 1px solid var(--gray-200);
  transition: var(--trans);
}
.trending-items a:hover { color: var(--red); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: var(--gray-50);
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--gray-200);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.hero-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-main-img {
  display: block;
  position: relative;
  height: 380px;
  overflow: hidden;
}
.hero-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-main:hover .hero-main-img img { transform: scale(1.03); }
.hero-main-body { padding: 24px 28px 28px; }
.hero-main-body h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 800; line-height: 1.3;
  margin: 10px 0 12px; color: var(--gray-900);
}
.hero-main-body h1 a { color: inherit; }
.hero-main-body h1 a:hover { color: var(--red); }
.hero-main-body p { color: var(--gray-700); font-size: 15px; margin-bottom: 16px; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  padding: 12px; transition: var(--trans);
}
.hero-side-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hero-side-card > a img { width: 100px; height: 72px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.hero-side-card h3 { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--gray-900); margin: 5px 0 6px; }
.hero-side-card h3 a { color: inherit; }
.hero-side-card h3 a:hover { color: var(--red); }

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
.main-content { padding: 48px 20px 60px; }

/* Blog / Archive layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.posts-column { min-width: 0; }

/* Single article layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  margin-bottom: 52px;
}

/* ── SECTION HEADER ── */
.content-section { margin-bottom: 52px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}
.section-header h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--gray-900);
}
.accent-line          { display: inline-block; width: 5px; height: 22px; background: var(--red);    border-radius: 3px; }
.accent-mental        { background: var(--purple); }
.accent-rel           { background: var(--amber); }
.accent-ai            { background: var(--blue); }
.accent-spiritual     { background: var(--teal); }
.accent-good          { background: var(--green); }

.view-all { font-size: 13px; font-weight: 600; color: var(--red); transition: var(--trans); }
.view-all:hover { color: var(--red-dark); }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); transition: var(--trans);
}
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-img {
  display: block; position: relative; height: 200px; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.45; margin: 8px 0 10px; color: var(--gray-900); }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--red); }
.card-body p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; padding: 3px 8px; border-radius: 4px;
}
.badge-hot     { background: var(--red);    color: #fff; }
.badge-new     { background: var(--green);  color: #fff; }
.badge-popular { background: var(--blue);   color: #fff; }
.badge-warning { background: var(--amber);  color: #fff; }

.card-img .badge,
.hero-main-img .badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ── CATEGORY TAGS ── */
.cat-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; padding: 3px 9px; border-radius: 4px;
}
.cat-tag--lg { font-size: 13px; padding: 5px 14px; }
.cat-health    { background: #fee2e2; color: var(--red); }
.cat-medical   { background: #dbeafe; color: #1d4ed8; }
.cat-mental    { background: #ede9fe; color: #6d28d9; }
.cat-social    { background: #fef3c7; color: #92400e; }
.cat-rel       { background: #fef3c7; color: #b45309; }
.cat-community { background: #d1fae5; color: #065f46; }
.cat-spiritual { background: #ccfbf1; color: #0f766e; }
.cat-ai        { background: #dbeafe; color: #1e40af; }
.cat-good      { background: #d1fae5; color: #047857; }
.cat-creative  { background: #fce7f3; color: #9d174d; }

/* ── META ── */
.meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--gray-500);
}
.meta .author  { font-weight: 500; color: var(--gray-700); }
.dot           { opacity: .4; }
.avatar        { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ── SPLIT LAYOUT ── */
.split-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; margin-bottom: 52px;
}

/* ── LIST CARDS ── */
.list-cards { display: flex; flex-direction: column; gap: 14px; }
.list-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  transition: var(--trans);
}
.list-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateX(4px); }
.list-card a > img,
.list-card img { width: 80px; height: 60px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.list-card h4 { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--gray-900); margin: 4px 0 6px; }
.list-card h4 a { color: inherit; }
.list-card h4 a:hover { color: var(--red); }

/* ── NEWSLETTER BANNER ── */
.newsletter-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  border-radius: var(--radius-lg); padding: 40px 48px;
  margin-bottom: 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; overflow: hidden; position: relative;
}
.newsletter-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: rgba(227,33,33,.15); border-radius: 50%;
  pointer-events: none;
}
.newsletter-content { display: flex; align-items: center; gap: 40px; flex: 1; flex-wrap: wrap; }
.newsletter-text h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.newsletter-text p  { font-size: 14px; color: rgba(255,255,255,.65); max-width: 320px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 18px; border-radius: var(--radius-sm); border: none;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 14px; width: 260px; outline: none; transition: var(--trans);
  font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { background: rgba(255,255,255,.18); }
.newsletter-form button {
  padding: 12px 24px; background: var(--red); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: var(--trans); white-space: nowrap; font-family: inherit;
}
.newsletter-form button:hover { background: var(--red-dark); transform: translateY(-1px); }
.newsletter-deco { font-size: 56px; flex-shrink: 0; opacity: .8; }

/* ── WIDE CARDS ── */
.wide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wide-card {
  display: flex; flex-direction: row;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--gray-200);
  transition: var(--trans);
}
.wide-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.wide-card > a { display: block; width: 200px; flex-shrink: 0; }
.wide-card > a img { width: 100%; height: 100%; object-fit: cover; }
.wide-card-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.wide-card-body h3 { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--gray-900); }
.wide-card-body h3 a { color: inherit; }
.wide-card-body h3 a:hover { color: var(--red); }
.wide-card-body p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }
.read-more-btn { font-size: 13px; font-weight: 700; color: var(--red); transition: var(--trans); }
.read-more-btn:hover { color: var(--red-dark); }

/* ══════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════ */
.single-article { min-width: 0; }

.archive-header {
  padding: 28px 0 32px;
}
.archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 800; color: var(--gray-900);
  line-height: 1.2; margin: 10px 0 8px;
}
.archive-header p { font-size: 16px; color: var(--gray-500); max-width: 600px; }

.entry-header { margin-bottom: 28px; }
.entry-header .cat-tag { margin-bottom: 12px; }
.entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 800; line-height: 1.25;
  color: var(--gray-900); margin: 12px 0 20px;
}
.entry-meta {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; border-bottom: 1px solid var(--gray-200);
}
.entry-meta .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 600; font-size: 14px; display: block; margin-bottom: 2px; }

.entry-thumbnail {
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 32px; max-height: 480px;
}
.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.img-caption { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 8px; }

.entry-content {
  font-size: 16.5px; line-height: 1.8; color: var(--gray-700);
}
.entry-content h2 { font-size: 24px; font-weight: 800; color: var(--gray-900); margin: 36px 0 14px; }
.entry-content h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); margin: 28px 0 12px; }
.entry-content p  { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a  { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--red-dark); }
.entry-content blockquote {
  border-left: 4px solid var(--red); padding: 16px 24px;
  background: var(--red-light); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0; font-style: italic; color: var(--gray-700);
}
.entry-content img { border-radius: var(--radius); margin: 24px 0; max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th { background: var(--gray-100); padding: 10px 14px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--gray-200); }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); }
.entry-content code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.entry-content pre  { background: var(--gray-900); color: #e5e7eb; padding: 20px; border-radius: var(--radius); overflow-x: auto; margin: 24px 0; }

/* Tags */
.entry-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.entry-tags > span { font-size: 13px; font-weight: 600; color: var(--gray-500); }
.tag-pill {
  padding: 5px 13px; border: 1px solid var(--gray-300);
  border-radius: 20px; font-size: 12.5px; color: var(--gray-700);
  transition: var(--trans);
}
.tag-pill:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Author box */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--gray-50); border-radius: var(--radius-lg);
  padding: 28px; margin: 36px 0;
  border: 1px solid var(--gray-200);
}
.author-avatar { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.author-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.author-info p  { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 10px; }

/* Post navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 36px 0; padding-top: 24px; border-top: 1px solid var(--gray-200);
}
.post-nav-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  transition: var(--trans);
}
.post-nav-link:hover { background: var(--red-light); border-color: var(--red); }
.post-nav-link span { font-size: 12px; color: var(--red); font-weight: 600; }
.post-nav-link strong { font-size: 14px; color: var(--gray-900); line-height: 1.4; }
.post-nav-next { text-align: right; }

/* Comments */
.comments-area { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.comments-area .comments-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--gray-100); }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-author img { width: 36px; height: 36px; border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--gray-500); margin-left: auto; }
.comment-content p { font-size: 14.5px; color: var(--gray-700); line-height: 1.7; }

.comment-respond { margin-top: 36px; }
.comment-reply-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.comment-form-comment label,
.comment-form input label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--gray-900);
  background: var(--white); transition: var(--trans);
  margin-bottom: 16px;
}
.comment-form-comment textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,33,33,.1); }
.form-submit input[type="submit"] {
  padding: 12px 28px; background: var(--red); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: var(--trans); font-family: inherit;
}
.form-submit input[type="submit"]:hover { background: var(--red-dark); }

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb {
  font-size: 13px; color: var(--gray-500);
  padding: 14px 0 0; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); transition: var(--trans); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-300); }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.nav-links {
  display: flex; align-items: center; gap: 8px;
  margin-top: 40px; flex-wrap: wrap;
}
.nav-links a,
.nav-links span.current {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; border: 1px solid var(--gray-200);
  transition: var(--trans);
}
.nav-links a:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }
.nav-links span.current { background: var(--red); color: #fff; border-color: var(--red); }
.nav-links .prev, .nav-links .next { color: var(--red); font-weight: 600; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar { min-width: 0; }
.widget { margin-bottom: 28px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 22px; }
.widget-title {
  font-size: 15px; font-weight: 800; color: var(--gray-900);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}

/* Search widget */
.widget-search .search-form { display: flex; gap: 0; }
.widget-search .search-field {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--gray-300); border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px; font-family: inherit; outline: none;
  transition: var(--trans);
}
.widget-search .search-field:focus { border-color: var(--red); }
.widget-search .search-submit {
  padding: 10px 16px; background: var(--red); color: #fff;
  border: 1px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer; font-size: 14px; transition: var(--trans);
}
.widget-search .search-submit:hover { background: var(--red-dark); }

/* Popular posts */
.popular-posts { display: flex; flex-direction: column; gap: 12px; }
.popular-post { display: flex; gap: 12px; align-items: flex-start; }
.pop-num {
  font-size: 22px; font-weight: 900; color: var(--gray-200);
  line-height: 1; flex-shrink: 0; min-width: 28px;
}
.popular-post a { font-size: 13.5px; font-weight: 600; color: var(--gray-900); line-height: 1.5; }
.popular-post a:hover { color: var(--red); }

/* Sidebar categories */
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cats li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--gray-700); transition: var(--trans);
}
.sidebar-cats li a:hover { background: var(--red-light); color: var(--red); }
.cat-count {
  background: var(--gray-100); color: var(--gray-500);
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px;
}

/* Sidebar newsletter */
.widget-nl p { font-size: 13.5px; color: var(--gray-500); margin-bottom: 12px; }
.sidebar-nl-form { display: flex; flex-direction: column; gap: 10px; }
.sidebar-nl-form input {
  padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; outline: none; transition: var(--trans);
}
.sidebar-nl-form input:focus { border-color: var(--red); }
.sidebar-nl-form button {
  padding: 10px; background: var(--red); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: var(--trans);
}
.sidebar-nl-form button:hover { background: var(--red-dark); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding-top: 60px; }
.footer-inner {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 60px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 12px; }
.footer-logo span { color: var(--red); }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 240px; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7);
  transition: var(--trans);
}
.social-links a:hover { background: var(--red); color: #fff; }

.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h5 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: #fff; margin-bottom: 14px;
}
.footer-col .widget-title { color: #fff; border-bottom-color: var(--red); }
.footer-col a {
  display: block; font-size: 13.5px; color: rgba(255,255,255,.55);
  padding: 3px 0; transition: var(--trans);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-bottom { padding: 18px 0; }
.footer-bottom .container {
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 6px;
}

/* ══════════════════════════════════════════
   MISC / UTILITIES
══════════════════════════════════════════ */
.no-posts { padding: 60px 0; text-align: center; color: var(--gray-500); font-size: 16px; }
.no-results { padding: 40px 0; text-align: center; }
.no-results h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.no-results p { color: var(--gray-500); margin-bottom: 24px; }

/* WP Alignments */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; text-align: center; }
.alignfull  { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }

/* Page article */
.page-article .entry-title { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 28px; }

/* ══════════════════════════════════════════
   LAYOUT WIDTH MODES (body class driven)
══════════════════════════════════════════ */

/* ── WIDE (1400px) ── */
.layout-wide .container            { max-width: 1400px; }
.layout-wide .cards-grid           { grid-template-columns: repeat(3, 1fr); }
.layout-wide .hero-grid            { grid-template-columns: 1fr 400px; }

/* ── FULL WIDTH (100%) ── */
.layout-full .container            { max-width: 100%; padding-left: 40px; padding-right: 40px; }
.layout-full .hero-grid            { grid-template-columns: 1fr 420px; }
.layout-full .cards-grid           { grid-template-columns: repeat(4, 1fr); }
.layout-full .cards-grid--2        { grid-template-columns: repeat(3, 1fr); }
.layout-full .wide-cards           { grid-template-columns: repeat(3, 1fr); }
.layout-full .split-layout         { grid-template-columns: 1fr 1fr; }
.layout-full .blog-layout          { grid-template-columns: 1fr 320px; }
.layout-full .single-layout        { grid-template-columns: 1fr 320px; }
.layout-full .footer-inner         { grid-template-columns: 320px 1fr; }
.layout-full .newsletter-banner    { padding: 48px 56px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 320px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .wide-cards { grid-template-columns: 1fr 1fr; }

  /* Override full-width at this breakpoint */
  .layout-full .cards-grid       { grid-template-columns: repeat(3, 1fr); }
  .layout-full .cards-grid--2    { grid-template-columns: repeat(2, 1fr); }
  .layout-full .wide-cards       { grid-template-columns: 1fr 1fr; }
  .layout-full .hero-grid        { grid-template-columns: 1fr 360px; }
}

@media (max-width: 900px) {
  .blog-layout,
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .hero-main-img { height: 260px; }
  .hero-main-body h1 { font-size: 22px; }
  .split-layout { grid-template-columns: 1fr; }
  .wide-cards { grid-template-columns: 1fr; }
  .wide-card { flex-direction: column; }
  .wide-card > a { width: 100%; height: 200px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Reset all layout modes to single-column on tablet */
  .layout-wide .hero-grid,
  .layout-full .hero-grid         { grid-template-columns: 1fr; }
  .layout-wide .cards-grid,
  .layout-full .cards-grid        { grid-template-columns: repeat(2, 1fr); }
  .layout-full .cards-grid--2     { grid-template-columns: repeat(2, 1fr); }
  .layout-wide .wide-cards,
  .layout-full .wide-cards        { grid-template-columns: 1fr; }
  .layout-wide .blog-layout,
  .layout-full .blog-layout,
  .layout-wide .single-layout,
  .layout-full .single-layout     { grid-template-columns: 1fr; }
  .layout-full .footer-inner      { grid-template-columns: 1fr; }
  .layout-full .container         { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 768px) {
  .topbar .topbar-right { display: none; }
  .main-nav { display: none !important; }
  .main-nav.is-open {
    display: flex !important; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 16px 20px;
    overflow-y: auto; z-index: 99;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open ul { flex-direction: column; gap: 2px; }
  .main-nav.is-open ul li .sub-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .hamburger { display: flex; }
  .trending-items a:nth-child(n+4) { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--2 { grid-template-columns: 1fr; }
  .newsletter-banner { padding: 28px 24px; flex-direction: column; text-align: center; }
  .newsletter-deco { display: none; }
  .newsletter-form input { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
  .entry-title { font-size: 26px; }
  .archive-header h1 { font-size: 26px; }

  /* Force all layout modes to mobile single-column */
  .layout-wide .cards-grid,
  .layout-full .cards-grid,
  .layout-wide .cards-grid--2,
  .layout-full .cards-grid--2     { grid-template-columns: 1fr; }
  .layout-full .newsletter-banner { padding: 28px 24px; }
  .layout-full .container         { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .hero-main-body { padding: 18px; }
  .main-content { padding: 28px 16px 40px; }
}
