/*
Theme Name: CareerUpdates Blog
Theme URI: https://example.com/careerupdates-blog
Author: CareerUpdates
Author URI: https://example.com
Description: Professional AdSense-ready blogging theme. Orange & Navy Blue. Fully responsive mobile-first.
Version: 6.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: careerupdates
Tags: blog, education, news, custom-logo, featured-images, two-columns, right-sidebar
*/

/* ================================================
   COLOR TOKENS
================================================ */
:root {
  --bg:            #f4f6fb;
  --surface:       #ffffff;
  --text:          #0d1b2e;
  --muted:         #5a6a82;
  --line:          #dde4f0;

  --orange:        #E8621A;
  --orange-dark:   #c04e10;
  --orange-light:  #fff3eb;
  --orange-mid:    #ffd4b8;

  --navy:          #0d2246;
  --navy-mid:      #1a3563;
  --navy-light:    #e8eef8;
  --navy-muted:    #3d5a8a;

  --primary:       #0d2246;
  --primary-dark:  #061530;
  --primary-light: #e8eef8;
  --accent:        #E8621A;

  --shadow-sm: 0 2px 12px rgba(13,34,70,.07);
  --shadow-md: 0 8px 28px rgba(13,34,70,.12);
  --shadow-lg: 0 18px 48px rgba(13,34,70,.18);
  --radius:    10px;
}

/* ================================================
   RESET + BASE
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ================================================
   LAYOUT
================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ================================================
   ACCENT STRIPE
================================================ */
.tiranga-stripe {
  height: 4px;
  background: linear-gradient(to right, var(--orange) 50%, var(--navy) 50%);
}

/* ================================================
   TOPBAR
================================================ */
.topbar {
  background: var(--navy);
  color: #a8bcdc;
  font-size: 12.5px;
  font-weight: 600;
}
.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ticker-wrap { overflow: hidden; flex: 1; max-width: 680px; }
.ticker {
  display: flex;
  gap: 52px;
  white-space: nowrap;
  animation: tick 36s linear infinite;
}
.ticker span { color: #7a9cc8; }
.ticker b    { color: #c8d8f0; }
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.topbar-links { display: flex; gap: 14px; flex-shrink: 0; }
.topbar-links a { color: #7a9cc8; font-weight: 700; transition: color .15s; }
.topbar-links a:hover { color: var(--orange); }
.topbar-social { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #7a9cc8;
  transition: background .15s, color .15s;
}
.social-icon:hover { background: var(--orange); color: #fff; }

/* ================================================
   HEADER / NAV
================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 16px rgba(13,34,70,.10);
}
.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.brand-text strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--navy); }
.brand-text small  { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.custom-logo-link  { display: inline-flex; align-items: center; }
.custom-logo       { max-height: 40px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links li { list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { background: var(--orange-light); color: var(--orange-dark); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--navy-light);
  background: #fff;
  padding: 7px 13px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: var(--navy);
  flex-shrink: 0;
}

/* ================================================
   HERO — Redesigned professional layout
================================================ */
.hero {
  background: linear-gradient(135deg, #061530 0%, #0d2246 45%, #1a3563 100%);
  color: #fff;
  padding: 52px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 92% 50%, rgba(232,98,26,.22) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 10% 80%, rgba(232,98,26,.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--orange), #f0a060, var(--orange));
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; max-width: 620px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,98,26,.20);
  border: 1px solid rgba(232,98,26,.45);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 800;
  color: #f4b08a;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(26px, 3.8vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p {
  color: #8aabcf;
  font-size: 15.5px;
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 0;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.hero-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 110px;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.hero-stat:hover { background: rgba(232,98,26,.15); border-color: rgba(232,98,26,.35); }
.hero-stat-num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8aabcf;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: .18s;
  border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(232,98,26,.35); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.28); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.5); }

/* ================================================
   AD SLOT — real ads only, no placeholder shown
================================================ */
.ad-slot {
  display: block;
  text-align: center;
  margin: 20px 0;
  overflow: hidden;
}
.ad-slot ins, .ad-slot iframe, .ad-slot > * { display: block; margin: 0 auto; }

/* ================================================
   SECTION UTILITIES
================================================ */
.section { padding: 36px 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.sec-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.view-all {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy-mid);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 5px 14px;
  border: 1.5px solid var(--navy-light);
  border-radius: 100px;
  transition: .15s;
}
.view-all:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ================================================
   CATEGORY FILTER BAR
================================================ */
.cat-filter-wrap {
  background: #fff;
  border-bottom: 2px solid var(--orange);
  padding: 10px 0;
  position: sticky;
  top: 67px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(13,34,70,.07);
}
.cat-filter-inner {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-filter-inner::-webkit-scrollbar { display: none; }
.cf-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
  font-family: inherit;
}
.cf-btn:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-light); }
.cf-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ================================================
   CATEGORY GRID
================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: .2s;
  cursor: pointer;
  text-decoration: none;
  border-left: 4px solid transparent;
}
.category-card:hover {
  border-left-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: #fff;
}
.cat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: background .2s;
}
.category-card:hover .cat-icon { background: var(--orange-light); }
.cat-info { flex: 1; min-width: 0; }
.cat-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-info span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.cat-arrow {
  color: var(--orange);
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0;
  transition: .15s;
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(2px); }

/* ================================================
   POST CARD — MOBILE FIRST
================================================ */
.posts-grid,
.section-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--orange-mid);
}
.pc-img {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 52%;
  overflow: hidden;
  background: var(--navy-light);
  flex-shrink: 0;
}
.pc-img img,
.pc-img .pc-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.pc-img .pc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, var(--navy-light), #dce6f7);
}
.post-card:hover .pc-img img { transform: scale(1.05); }

.post-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}
.ptag {
  background: var(--navy-light);
  color: var(--navy-mid);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid #c5d4ec;
}
.post-card h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}
.post-card h3 a:hover { color: var(--orange-dark); }
.post-card .post-excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-dark);
  margin-top: 4px;
  align-self: flex-start;
  padding: 5px 13px;
  background: var(--orange-light);
  border-radius: 100px;
  border: 1px solid var(--orange-mid);
  transition: .15s;
}
.read-more:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

@media (min-width: 680px) {
  .post-card {
    flex-direction: row;
    min-height: 180px;
  }
  .pc-img {
    width: 240px;
    flex-shrink: 0;
    padding-top: 0;
    height: auto;
    min-height: 180px;
  }
  .post-body { padding: 20px 22px; }
  .post-card h3 { font-size: 16px; }
}
@media (min-width: 1000px) {
  .pc-img { width: 300px; }
  .post-card h3 { font-size: 17px; }
}

/* ================================================
   CATEGORY SECTION BLOCKS
================================================ */
.category-section { margin-bottom: 32px; }
.category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  flex-wrap: wrap;
  border-left: 4px solid var(--orange);
}
.category-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  flex: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.view-all-link {
  color: var(--orange) !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(232,98,26,.15);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(232,98,26,.3);
  transition: .15s;
}
.view-all-link:hover { background: var(--orange) !important; color: #fff !important; }
.cat-social { display: flex; gap: 5px; align-items: center; }
.cat-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #a8bcdc;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 11px;
  text-decoration: none;
  transition: .15s;
}
.cat-social-btn:hover { background: var(--orange) !important; color: #fff !important; border-color: var(--orange) !important; }
.section-posts {
  padding: 14px;
  border: 1.5px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  gap: 12px;
}

/* ================================================
   ARTICLE LAYOUT
================================================ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px;
  padding: 24px 0 52px;
  align-items: start;
}
.article-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.article-title { font-size: clamp(20px,3.5vw,34px); font-weight: 900; line-height: 1.2; margin-bottom: 16px; color: var(--navy); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--muted); align-items: center;
}
/* Feature image — contained, full-width, no overflow */
.article-feat-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--navy-light);
  max-height: 460px;
  line-height: 0;
}
.article-feat-img img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.article-body { font-size: 15px; line-height: 1.8; color: #2a3a50; }
.article-body h2 { font-size: 20px; font-weight: 800; margin: 26px 0 10px; color: var(--navy); }
.article-body h3 { font-size: 17px; font-weight: 800; margin: 20px 0 8px; color: var(--navy-mid); }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 14px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--orange-dark); text-decoration: underline; }
.article-body strong { color: var(--navy); }
.article-body blockquote { border-left: 4px solid var(--orange); margin: 22px 0; padding: 12px 18px; background: var(--navy-light); border-radius: 0 8px 8px 0; color: var(--navy-mid); font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.article-body th { background: var(--navy); color: #fff; padding: 9px 13px; text-align: left; font-weight: 700; }
.article-body td { padding: 8px 13px; border-bottom: 1px solid var(--line); }
.article-body tr:nth-child(even) td { background: var(--navy-light); }

/* Disclaimer */
.article-disclaimer {
  background: #fff8f0;
  border: 1.5px solid var(--orange-mid);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 12.5px;
  color: #6b4c2a;
  line-height: 1.6;
  margin-top: 22px;
}
.article-disclaimer strong { color: var(--orange-dark); font-size: 13px; }

/* ================================================
   POST SHARE BAR
================================================ */
.post-share-bar {
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
  padding: 14px 20px;
  background: var(--bg);
  border-top: 1.5px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 0;
}
.post-share-bar strong { font-size: 12px; font-weight: 800; color: var(--navy); margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px;
  border-radius: 100px; font-size: 12px; font-weight: 700; border: none;
  cursor: pointer; text-decoration: none; transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-btn.fb  { background: #1877f2; color: #fff; }
.share-btn.tw  { background: #000; color: #fff; }
.share-btn.wa  { background: #25d366; color: #fff; }
.share-btn.tg  { background: #0088cc; color: #fff; }
.share-btn.ln  { background: #0a66c2; color: #fff; }
.share-btn.cp  { background: var(--navy-light); color: var(--navy); border: 1px solid var(--line); }

/* ================================================
   SIDEBAR + WIDGETS
================================================ */
.sidebar { display: grid; gap: 18px; align-content: start; }
.widget {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.widget-title {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  border-left: 4px solid var(--orange);
}
.widget-body { padding: 14px 16px; }

/* Related posts in sidebar */
.related-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  transition: color .15s;
}
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--orange-dark); }

/* Categories in sidebar */
.side-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.side-cats a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-light);
  transition: .15s;
  white-space: nowrap;
}
.side-cats a:hover { background: var(--orange-light); border-color: var(--orange-mid); color: var(--orange-dark); }

/* Social follow buttons in sidebar */
.side-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.social-follow-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff;
  text-align: center; transition: opacity .15s; text-decoration: none;
}
.social-follow-btn:hover { opacity: .88; }
.sfb-fb  { background: #1877f2; }
.sfb-tw  { background: #000; }
.sfb-wa  { background: #25d366; }
.sfb-tg  { background: #0088cc; }
.sfb-yt  { background: #ff0000; }
.sfb-ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* Related posts article section */
.related-posts { margin-top: 24px; }
.related-posts h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; color: var(--navy); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: .18s; }
.related-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card-img { width: 100%; height: 110px; object-fit: cover; background: var(--navy-light); display: block; }
.related-card-body { padding: 11px 13px; }
.related-card-body h4 { font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--navy); }

/* Sidebar ad wrapper */
.rp-item { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rp-item:last-child { border-bottom: none; }
.rp-thumb { width: 66px; height: 50px; object-fit: cover; border-radius: 6px; background: var(--navy-light); display: block; }
.rp-info h4 { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--navy); margin-bottom: 2px; }
.rp-info span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.rp-item:hover .rp-info h4 { color: var(--orange-dark); }

.cat-widget-list { display: grid; gap: 3px; }
.cat-widget-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--navy); transition: .15s; }
.cat-widget-item:hover { background: var(--navy-light); color: var(--orange-dark); }
.cat-widget-count { background: var(--navy-light); color: var(--navy-mid); font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 100px; }

/* ================================================
   PAGE CONTENT
================================================ */
.page-card { background: #fff; border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin: 22px 0 38px; }
.page-card h1 { font-size: clamp(24px,4vw,38px); font-weight: 900; margin-bottom: 16px; color: var(--navy); }
.page-card h2 { font-size: 19px; font-weight: 800; margin: 22px 0 9px; color: var(--navy); }
.page-card p  { color: #4a5e78; font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.page-card ul, .page-card ol { padding-left: 22px; color: #4a5e78; margin-bottom: 14px; }
.page-card li { margin-bottom: 5px; }
.page-card a  { color: var(--orange-dark); text-decoration: underline; }

/* ================================================
   BLOG / ARCHIVE
================================================ */
.blog-hero { background: linear-gradient(135deg, #061530, #0d2246); color: #fff; padding: 34px 0 30px; border-top: 4px solid var(--orange); }
.blog-hero h1 { font-size: clamp(22px,4vw,36px); font-weight: 900; margin-bottom: 8px; }
.blog-hero p  { color: #8aabcf; font-size: 14px; }
.archive-hero { background: linear-gradient(135deg, #061530, #0d2246); color: #fff; padding: 30px 0 26px; border-top: 4px solid var(--orange); }
.archive-hero h1 { font-size: clamp(20px,3.5vw,34px); font-weight: 900; margin-bottom: 5px; }
.archive-hero p  { color: #8aabcf; font-size: 13.5px; }
.archive-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ================================================
   SEARCH
================================================ */
.search-wrap { display: flex; width: 100%; }
.search-wrap input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--text); }
.search-wrap input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,98,26,.10); }
.search-wrap button { flex-shrink: 0; background: var(--orange); color: #fff; border: none; padding: 0 16px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.search-wrap button:hover { background: var(--orange-dark); }
.search-wrap button svg { display: block; }

/* ================================================
   PAGINATION
================================================ */
.pagination { display: flex; justify-content: center; gap: 5px; padding: 26px 0 14px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 11px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line); background: #fff; color: var(--navy); transition: .15s; }
.pagination a:hover { background: var(--navy-light); border-color: var(--navy-light); }
.pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: var(--navy);
  color: #7a9cc8;
  padding: 44px 0 0;
  margin-top: 14px;
  border-top: 3px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  align-items: start;
}
.footer-brand-col { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 4px; }
.footer-brand-link .brand-mark { width: 38px; height: 38px; border-radius: 8px; }
.footer-brand-link .brand-text strong { color: #fff; font-size: 16px; }
.footer-brand-link .brand-text small { color: #6a8cb4; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; color: #6a8cb4; max-width: 320px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: #a8bcdc;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.footer-social-icon:hover { background: var(--orange); color: #fff; }

.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: #6a8cb4;
  transition: color .15s;
  line-height: 1.4;
  padding: 2px 0;
}
.footer-links a:hover { color: var(--orange); }

/* Footer bottom bar */
.footer-btm-wrap {
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 12px;
  color: #4a6a94;
  flex-wrap: wrap;
}
.footer-btm a { color: #6a8cb4; }
.footer-btm a:hover { color: var(--orange); }
.footer-legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal-links a { font-size: 12px; color: #6a8cb4; transition: color .15s; }
.footer-legal-links a:hover { color: var(--orange); }

/* ================================================
   UTILS
================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.error404-wrap { text-align: center; padding: 60px 20px; }
.error404-wrap h1 { font-size: 72px; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 10px; }
.error404-wrap h2 { font-size: 22px; font-weight: 800; color: var(--orange-dark); margin-bottom: 10px; }
.error404-wrap p { color: var(--muted); margin-bottom: 22px; }

/* ================================================
   RESPONSIVE — Tablet ≤ 1024px
================================================ */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: minmax(0,1fr) 270px; }
  .hero-stats { flex-direction: row; margin-top: 28px; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-content { max-width: 100%; }
}

/* ================================================
   RESPONSIVE — Tablet ≤ 768px
================================================ */
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .hero-stats { flex-direction: row; gap: 10px; }
  .hero-stat { padding: 12px 16px; min-width: 80px; }
  .hero-stat-num { font-size: 20px; }
}

/* ================================================
   RESPONSIVE — Mobile ≤ 680px
================================================ */
@media (max-width: 680px) {
  /* Topbar off */
  .topbar { display: none; }

  /* Header */
  .site-header { position: sticky; top: 0; }
  .nav { min-height: 58px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { display: none; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    left: 0; right: 0; top: 58px;
    z-index: 300;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px 16px;
    border-top: 2px solid var(--orange);
    background: #fff;
    box-shadow: 0 8px 32px rgba(13,34,70,.18);
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; border-radius: 8px; font-size: 15px; }
  .menu-toggle { display: inline-flex; }

  /* Category filter — always horizontal scroll on mobile */
  .cat-filter-wrap { top: 58px; }

  /* Category grid — 2 col on mobile */
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .category-card { padding: 12px 10px; gap: 9px; border-left-width: 3px; }
  .cat-icon { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
  .cat-info strong { font-size: 11.5px; }
  .cat-info span { display: none; }
  .cat-arrow { display: none; }

  /* Category section heads */
  .category-section-head { padding: 11px 14px; gap: 8px; }
  .category-section-head h3 { font-size: 13.5px; }
  .cat-social { display: none; }
  .section-posts { padding: 10px; gap: 10px; }

  /* Section head */
  .sec-head { align-items: center; }
  .sec-head h2 { font-size: 18px; }
  .view-all { font-size: 11.5px; padding: 4px 11px; }

  /* Hero — mobile optimized */
  .hero { padding: 32px 0 36px; }
  .hero-inner { gap: 20px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .hero-btns { gap: 10px; }
  .hero-stats { flex-direction: row; gap: 8px; width: 100%; }
  .hero-stat { flex: 1; padding: 10px 8px; min-width: 0; }
  .hero-stat-num { font-size: 18px; }
  .hero-stat-label { font-size: 10px; }

  /* Sidebar — single column on mobile */
  .sidebar { grid-template-columns: 1fr; }

  /* Article */
  .article-content { padding: 16px 14px; }
  .article-layout { padding: 12px 0 36px; gap: 14px; }
  .article-feat-img { margin-bottom: 16px; }
  .article-feat-img img { max-height: 220px; }

  /* Share bar mobile */
  .post-share-bar { padding: 11px 14px; gap: 6px; }
  .share-btn { padding: 5px 10px; font-size: 11px; }
  .share-btn span { display: none; }

  /* Footer — full single column */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 22px; }
  .footer-brand-col { grid-column: auto; }
  .footer-btm { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; }
  .footer-legal-links { gap: 10px; }
  .footer-legal-links a { font-size: 11px; }

  /* Page */
  .page-card { padding: 18px 15px; }

  /* Sidebar widgets */
  .side-social-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .social-follow-btn { font-size: 11px; padding: 8px 6px; }
}

/* ================================================
   RESPONSIVE — Small ≤ 480px
================================================ */
@media (max-width: 480px) {
  .container { padding-inline: 12px; }
  .hero { padding: 24px 0 28px; }
  .section { padding: 22px 0; }
  .posts-grid, .section-posts { gap: 10px; }
  .btn { height: 42px; font-size: 13px; padding: 0 18px; }
  .category-grid { gap: 7px; }
  .category-card { padding: 10px 9px; gap: 8px; }
  .cat-icon { width: 30px; height: 30px; font-size: 14px; }
  .cat-info strong { font-size: 11px; }
  .footer-grid { gap: 18px; }
  .footer-social { gap: 6px; }
  .footer-social-icon { width: 30px; height: 30px; }
  .side-cats a { font-size: 11px; padding: 4px 9px; }
}

/* ================================================
   RESPONSIVE — Very small ≤ 380px
================================================ */
@media (max-width: 380px) {
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-stats { gap: 6px; }
  .hero-stat-num { font-size: 16px; }
  .footer-legal-links { gap: 8px; }
}
