/* ================================================
   Career Decode - Main Stylesheet v3
   Trust-first · Mobile-first · Lighthouse 100
   Indian Govt Exam Prep Brand
   ================================================ */

:root {
  /* Brand */
  --navy:        #1b3f72;
  --navy-dk:     #0d2547;
  --navy-md:     #1e4fa0;
  --saffron:     #e07008;
  --saffron-lt:  #f47f1a;
  --saffron-glow:rgba(224,112,8,.15);
  --green:       #1e7e34;
  --green-lt:    #28a745;

  /* Neutrals */
  --white:    #ffffff;
  --off:      #f7f8fc;
  --g0:       #f0f2f7;
  --g1:       #e4e8f0;
  --g2:       #c8cfe0;
  --g3:       #8896b0;
  --g4:       #5a6680;
  --g5:       #2d3548;
  --ink:      #111827;
  --ink-lt:   #374151;

  /* UI tokens */
  --r:        6px;
  --r-lg:     12px;
  --r-xl:     18px;
  --shadow:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:0 4px 20px rgba(0,0,0,.12);
  --ease:     .18s ease;

  --font: 'Noto Sans', system-ui, -apple-system, sans-serif;
  --max:  860px;
  --maxw: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-md); text-decoration: none; }
a:hover { color: var(--saffron); }

h1,h2,h3,h4,h5 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-dk);
}
h1 { font-size: clamp(1.3rem, 5vw, 2rem); }
h2 { font-size: clamp(1.05rem, 3.5vw, 1.4rem); }
h3 { font-size: clamp(.93rem, 3vw, 1.1rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul,ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .3rem; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: var(--max); }
main { flex: 1; }

/* ================================================================
   ACCESSIBILITY
================================================================ */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--saffron); color: #fff;
  padding: .5rem 1rem; font-weight: 700;
  z-index: 999; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { top: 0; }

/* ================================================================
   HEADER
================================================================ */
.site-header {
  background: var(--navy-dk);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--saffron);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem; gap: .5rem;
}

/* Logo */
.site-logo { display: flex; flex-direction: column; gap: 1px; text-decoration: none; flex-shrink: 0; }
.site-logo__name { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.4px; line-height: 1.1; }
.site-logo__name span { color: var(--saffron); }
.site-logo__tagline { font-size: .58rem; color: rgba(255,255,255,.5); letter-spacing: .8px; text-transform: uppercase; line-height: 1; }

/* Hamburger */
.nav-toggle {
  background: none; border: none; cursor: pointer;
  padding: .4rem; color: #fff;
  display: flex; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav - mobile: dropdown below header */
.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.25); z-index: 99;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav li a {
  display: block; padding: .75rem 1.2rem;
  color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.05); transition: var(--ease);
}
.site-nav li a:hover, .site-nav li a.active {
  color: var(--saffron); background: rgba(255,255,255,.05);
  padding-left: 1.6rem;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--g0); border-bottom: 1px solid var(--g1);
  padding: .35rem 1rem; font-size: .74rem; color: var(--g4);
}
.breadcrumb-bar a { color: var(--navy-md); }
.breadcrumb-bar a:hover { color: var(--saffron); }
.breadcrumb-bar span + span::before { content: " › "; margin: 0 .2rem; }

/* ================================================================
   HERO
================================================================ */
.hero {
  background: linear-gradient(145deg, var(--navy-dk) 0%, #1a3c8a 55%, #1b4db8 100%);
  color: #fff; padding: 1.7rem 1rem 1.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.04) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255,165,0,.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--saffron), var(--saffron-lt), #138808);
}
.hero h1 { color: #fff; position: relative; margin-bottom: .5rem; }
.hero h1 em { color: var(--saffron-lt); font-style: normal; }
.hero p { color: rgba(255,255,255,.78); font-size: .92rem; max-width: 500px; margin: 0 auto 1.1rem; position: relative; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; position: relative; }
.hero-tags a {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92); padding: .28rem .8rem; border-radius: 99px;
  font-size: .74rem; font-weight: 700; transition: var(--ease);
}
.hero-tags a:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }

/* ================================================================
   SECTION HEADINGS
================================================================ */
.section-title {
  font-size: .9rem; font-weight: 800; color: var(--navy-dk);
  padding-bottom: .45rem; margin-bottom: .9rem;
  border-bottom: 2px solid var(--g1);
  display: flex; align-items: center; gap: .4rem;
  position: relative;
}
.section-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 44px; height: 2px; background: var(--saffron);
}
.section-title .icon { font-size: .98rem; }

/* ================================================================
   CARD GRID
================================================================ */
.card-grid {
  display: grid; grid-template-columns: 1fr;
  gap: .8rem; padding-bottom: 1rem;
}
@media (min-width: 480px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Card ── */
.card {
  background: var(--white); border: 1px solid var(--g1);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--g2); }

/* Card image area - only shown when image exists */
.card__img-wrap {
  position: relative; background: var(--g0);
  aspect-ratio: 16/8; overflow: hidden;
  flex-shrink: 0;
}
.card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card__img-wrap img { transform: scale(1.04); }

/* Badge */
.card__badge {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--saffron); color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: .16rem .45rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .5px;
}
.card__badge--new    { background: var(--green); }
.card__badge--result { background: var(--navy-md); }
.card__badge--admit  { background: #6d28d9; }

/* Badge when no image - shown in body area */
.card__badge-inline {
  display: inline-block;
  background: var(--saffron); color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: .16rem .45rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: .4rem;
}
.card__badge-inline--new    { background: var(--green); }
.card__badge-inline--result { background: var(--navy-md); }
.card__badge-inline--admit  { background: #6d28d9; }

.card__body { padding: .8rem .85rem; flex: 1; display: flex; flex-direction: column; }

.card__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.card__tag {
  font-size: .63rem; font-weight: 700; color: var(--navy-md);
  background: #e8eefe; padding: .1rem .42rem; border-radius: 3px;
}

.card__title {
  font-size: .9rem; font-weight: 700; color: var(--ink);
  margin-bottom: .35rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--saffron); }

.card__meta {
  font-size: .69rem; color: var(--g4); margin-top: auto;
  padding-top: .4rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}

/* Download CTA on card */
.card__pdf-btn {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  margin-top: .6rem; background: var(--saffron); color: #fff;
  border-radius: var(--r); padding: .52rem .8rem;
  font-size: .79rem; font-weight: 800; transition: background var(--ease), transform var(--ease);
  text-decoration: none;
}
.card__pdf-btn:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* ================================================================
   ARTICLE PAGE
================================================================ */
.article-layout {
  padding: 1.1rem 1rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.article-header { margin-bottom: 1rem; }

.article-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.article-tag {
  background: #e8eefe; color: var(--navy-md);
  font-size: .68rem; font-weight: 700; padding: .12rem .5rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .3px;
}
.article-tag:hover { background: var(--navy-md); color: #fff; }

.article-header h1 { font-size: clamp(1.18rem, 4.5vw, 1.85rem); line-height: 1.22; color: var(--navy-dk); margin-bottom: .5rem; }

.article-meta {
  font-size: .73rem; color: var(--g4);
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
}
.article-meta span { display: flex; align-items: center; gap: .25rem; }

/* Featured image - only rendered when present (Hugo conditional) */
.article-featured-img {
  width: 100%; border-radius: var(--r);
  margin-bottom: 1rem; aspect-ratio: 16/8; object-fit: cover;
}

/* ── PDF Download Box ── */
.pdf-download-box {
  border-radius: var(--r-lg);
  padding: 1.2rem 1rem;
  margin: 1.2rem 0;
  text-align: center;
  background: #fff9f0;
  border: 2px solid var(--saffron);
  box-shadow: 0 4px 18px var(--saffron-glow);
  overflow: hidden;
}

/* Top badge ribbon - using a child element instead of ::before for reliable layout */
.pdf-download-box__ribbon {
  display: block;
  background: var(--saffron); color: #fff;
  font-size: .67rem; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
  padding: .26rem .5rem;
  margin: -1.2rem -1rem 1rem;
  text-align: center;
}

.pdf-download-box__icon { font-size: 2.5rem; line-height: 1; margin-bottom: .3rem; }
.pdf-download-box__title { font-size: 1rem; font-weight: 800; color: var(--navy-dk); margin-bottom: .2rem; }
.pdf-download-box__subtitle { font-size: .8rem; color: var(--g4); margin-bottom: .85rem; }

.btn-download {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--saffron); color: #fff;
  font-size: .97rem; font-weight: 800;
  padding: .8rem 2rem; border-radius: var(--r);
  text-decoration: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 14px rgba(224,112,8,.38);
}
.btn-download:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(27,63,114,.3); }
.btn-download:active { transform: translateY(0); }

.pdf-download-box__note {
  font-size: .69rem; color: var(--g4); margin-top: .55rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap;
}

/* ── Article body ── */
.article-content { font-size: .95rem; }
.article-content h2 {
  font-size: 1.08rem; margin: 1.4rem 0 .5rem;
  padding-bottom: .32rem; border-bottom: 2px solid var(--g1); color: var(--navy);
  position: relative;
}
.article-content h2::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 34px; height: 2px; background: var(--saffron);
}
.article-content h3 { font-size: .96rem; margin: 1rem 0 .4rem; color: var(--navy); }

/* Tables */
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .86rem; overflow-x: auto; display: block; }
.article-content th { background: var(--navy); color: #fff; padding: .48rem .7rem; text-align: left; font-size: .79rem; white-space: nowrap; }
.article-content td { padding: .42rem .7rem; border-bottom: 1px solid var(--g1); vertical-align: top; }
.article-content tr:nth-child(even) td { background: var(--g0); }

/* Info box */
.info-box {
  background: #e8f4fd; border-left: 4px solid var(--navy-md);
  border-radius: 0 var(--r) var(--r) 0;
  padding: .85rem 1rem; margin: 1rem 0; font-size: .87rem;
}
.info-box strong { color: var(--navy-dk); }

/* ================================================================
   STICKY DOWNLOAD BAR (mobile)
================================================================ */
#stickyDownload {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90; background: var(--navy-dk);
  padding: .55rem .85rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,.25);
  border-top: 2px solid var(--saffron);
}
.sticky-btn {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--saffron); color: #fff;
  font-weight: 800; font-size: .9rem;
  padding: .65rem; border-radius: var(--r);
  text-decoration: none; max-width: 500px; margin: 0 auto;
}
.sticky-btn:hover { background: var(--saffron-lt); color: #fff; }
@media (min-width: 900px) {
  #stickyDownload { padding: .4rem 1rem; }
  .sticky-btn { max-width: 360px; font-size: .82rem; padding: .5rem 1.25rem; }
}

/* ================================================================
   REDIRECT PAGE
================================================================ */
.redirect-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(145deg, var(--navy-dk) 0%, #1a3c8a 100%);
  position: relative; overflow: hidden;
}
.redirect-page::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,165,0,.07); pointer-events: none;
}
.redirect-page::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}

.redirect-card {
  background: #fff; border-radius: var(--r-xl);
  max-width: 370px; width: 100%; text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
  position: relative; z-index: 1; overflow: hidden;
  padding-bottom: 1.5rem;
}

.redirect-card-top { background: var(--saffron); padding: .85rem 1.2rem; }
.redirect-logo { font-size: 1.05rem; font-weight: 800; color: #fff; }
.redirect-logo span { color: rgba(255,255,255,.7); }
.redirect-logo__tag { display: block; font-size: .58rem; color: rgba(255,255,255,.7); letter-spacing: .8px; text-transform: uppercase; margin-top: 1px; }

/* All children after top bar get horizontal padding */
.redirect-card > *:not(.redirect-card-top) { padding-left: 1.4rem; padding-right: 1.4rem; }

.redirect-icon {
  font-size: 3rem; line-height: 1; margin: 1.2rem 0 .65rem;
  display: block;
  animation: bounce-icon 1.8s ease-in-out infinite;
}
@keyframes bounce-icon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.redirect-title { font-size: 1.05rem; font-weight: 800; color: var(--navy-dk); margin-bottom: .3rem; }
.redirect-subtitle { font-size: .8rem; color: var(--g4); margin-bottom: 1.1rem; }

/* Countdown ring */
.countdown-wrap { position: relative; width: 76px; height: 76px; margin: 0 auto .9rem; }
.countdown-ring { transform: rotate(-90deg); }
.countdown-ring__track { fill: none; stroke: var(--g1); stroke-width: 5; }
.countdown-ring__progress {
  fill: none; stroke: var(--saffron); stroke-width: 5;
  stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.countdown-number {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--navy-dk);
}

/* Progress bar */
.redirect-progress-wrap { background: var(--g1); border-radius: 99px; height: 5px; overflow: hidden; margin-bottom: .75rem; }
.redirect-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--navy-md), var(--saffron));
  border-radius: 99px; width: 0%; transition: width 1s linear;
}

.redirect-status { font-size: .78rem; color: var(--g4); margin-bottom: 1rem; display: block; }

.btn-redirect-now {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--saffron); color: #fff;
  font-weight: 800; font-size: .9rem;
  padding: .75rem 1.7rem; border-radius: var(--r);
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
  box-shadow: 0 4px 14px rgba(224,112,8,.35);
  margin-bottom: .45rem;
}
.btn-redirect-now:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* Trust badges */
.trust-badges { display: flex; justify-content: center; gap: .75rem; margin-top: .85rem; flex-wrap: wrap; }
.trust-badge { font-size: .69rem; color: var(--g4); display: flex; align-items: center; gap: .2rem; }
.trust-badge svg { color: var(--green); flex-shrink: 0; }

.redirect-note { margin-top: .8rem; font-size: .69rem; color: var(--g3); display: block; }
.redirect-note a { color: var(--g4); }

/* ================================================================
   LIST / TAG PAGE
================================================================ */
.list-header {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  color: #fff; padding: 1.3rem 1rem 1rem;
  border-bottom: 3px solid var(--saffron);
}
.list-header h1 { color: #fff; font-size: 1.3rem; margin-bottom: .2rem; }
.list-header p { font-size: .82rem; color: rgba(255,255,255,.62); margin: 0; }
.list-content { padding: 1.1rem 1rem 2rem; }

/* Filter pills on list page */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem;
}
.filter-pill {
  background: var(--g0); border: 1px solid var(--g1); color: var(--ink);
  padding: .28rem .75rem; border-radius: 99px;
  font-size: .76rem; font-weight: 700; text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.filter-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-pill--active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ================================================================
   WHY SECTION
================================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.why-card {
  background: #fff; border: 1px solid var(--g1); border-radius: var(--r-lg);
  padding: .85rem .7rem; text-align: center;
  transition: box-shadow var(--ease);
}
.why-card:hover { box-shadow: var(--shadow); }
.why-card__icon { font-size: 1.6rem; line-height: 1; margin-bottom: .3rem; }
.why-card__title { font-size: .78rem; font-weight: 800; color: var(--navy-dk); margin-bottom: .15rem; }
.why-card__desc { font-size: .7rem; color: var(--g4); line-height: 1.45; }

/* ================================================================
   EXAM CATEGORY PILLS
================================================================ */
.exam-pill {
  display: inline-block;
  background: var(--g0); border: 1px solid var(--g1); color: var(--ink);
  padding: .35rem .85rem; border-radius: 99px;
  font-size: .74rem; font-weight: 700; text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.exam-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ================================================================
   BUTTONS
================================================================ */
.btn-primary {
  display: inline-block; background: var(--navy); color: #fff;
  padding: .58rem 1.4rem; border-radius: var(--r);
  font-size: .85rem; font-weight: 700; text-decoration: none;
  transition: background var(--ease);
}
.btn-primary:hover { background: var(--navy-md); color: #fff; }

/* ================================================================
   PAGINATION
================================================================ */
.pagination {
  display: flex; justify-content: center;
  gap: .4rem; flex-wrap: wrap; padding: .5rem 0 1.5rem;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .55rem;
  border: 1px solid var(--g1); border-radius: var(--r);
  font-size: .83rem; font-weight: 600; color: var(--navy-md); transition: var(--ease);
}
.pagination a:hover, .pagination .active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { color: var(--g3); cursor: not-allowed; }

/* Related articles: 1-col mobile, 2-col at 480px+ */
.card-grid--related { grid-template-columns: 1fr; }
@media (min-width: 480px) { .card-grid--related { grid-template-columns: repeat(2, 1fr); } }

/* ================================================================
   SHARE NUDGE
================================================================ */
.share-nudge {
  margin-top: 1.3rem; background: var(--g0);
  border: 1px solid var(--g1); border-radius: var(--r-lg);
  padding: .85rem; text-align: center; font-size: .81rem; color: var(--g4);
}
.share-nudge strong { color: var(--ink); }
.share-nudge a { color: var(--navy-md); font-weight: 700; }

/* ================================================================
   TAGS
================================================================ */
.tag-pill {
  display: inline-block; background: var(--g0); border: 1px solid var(--g1); color: var(--ink-lt);
  padding: .24rem .7rem; border-radius: 99px; font-size: .74rem; font-weight: 600;
}
.tag-pill:hover { background: var(--g1); }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--navy-dk); color: rgba(255,255,255,.62);
  padding: 1.5rem 1rem 1rem; font-size: .8rem;
  border-top: 3px solid var(--saffron);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand .site-logo__name { font-size: 1.05rem; }
.footer-brand p { font-size: .75rem; color: rgba(255,255,255,.48); margin-top: .35rem; line-height: 1.5; }

.footer-tg {
  display: inline-flex; align-items: center; gap: .32rem;
  margin-top: .65rem; background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78); padding: .38rem .85rem; border-radius: 99px;
  font-size: .74rem; font-weight: 700; text-decoration: none;
  transition: background var(--ease);
}
.footer-tg:hover { background: rgba(255,255,255,.14); color: #fff; }

.footer-col h4 { color: #fff; font-size: .8rem; margin-bottom: .5rem; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .26rem; }
.footer-col a { color: rgba(255,255,255,.52); font-size: .76rem; transition: var(--ease); }
.footer-col a:hover { color: var(--saffron); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: .75rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: space-between; align-items: center;
  font-size: .7rem; color: rgba(255,255,255,.32);
}
.footer-bottom a { color: rgba(255,255,255,.42); }
.footer-bottom a:hover { color: var(--saffron); }

/* ================================================================
   UTILITY
================================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; } .hidden { display: none; }

.badge-new {
  display: inline-block; background: var(--green); color: #fff;
  font-size: .6rem; font-weight: 800; padding: .04rem .33rem;
  border-radius: 3px; letter-spacing: .5px; text-transform: uppercase;
  vertical-align: middle; margin-left: .28rem;
}

/* ================================================================
   DESKTOP REFINEMENTS
================================================================ */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important; position: static;
    align-items: center; background: transparent;
    border: none; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: .1rem; }
  .site-nav li a {
    padding: .36rem .68rem; border-radius: var(--r); border-bottom: none; font-size: .81rem;
  }
  .site-nav li a:hover, .site-nav li a.active { padding-left: .68rem; background: rgba(255,255,255,.1); }
  .header-inner { padding: .58rem 1.5rem; }

  .pdf-download-box { padding: 1.4rem 1.8rem; }
  .pdf-download-box__ribbon { margin: -1.4rem -1.8rem 1rem; }
}

@media (min-width: 900px) {
  .article-layout { padding: 2rem 2rem 3.5rem; max-width: 860px; margin: 0 auto; }
  .container { padding: 0 2rem; }
}

@media print {
  .site-header, .site-footer, .pdf-download-box, #stickyDownload { display: none; }
}

/* ================================================================
   REDIRECT CARD BODY (added in v3)
================================================================ */
.redirect-card-body {
  padding: 0 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================================================================
   DESKTOP ENHANCEMENTS - Better font scale, spacing, readability
================================================================ */

/* Scale base font size up on larger screens - kept conservative */
@media (min-width: 1024px) {
  html { font-size: 15.5px; }
}
@media (min-width: 1280px) {
  html { font-size: 16px; }
}

/* Heading scale improvements */
@media (min-width: 900px) {
  h1 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
  h2 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
  h3 { font-size: clamp(.95rem, 1.4vw, 1.1rem); }
}

/* Container wider on desktop with better padding */
@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; max-width: var(--maxw); }
}
@media (min-width: 1280px) {
  .container { padding: 0 3rem; }
}

/* Header: bigger logo & nav on desktop */
@media (min-width: 768px) {
  .site-logo__name { font-size: 1.55rem; }
  .site-logo__tagline { font-size: .65rem; }
  .header-inner { padding: .75rem 2rem; }
  .site-nav li a { font-size: .93rem; padding: .42rem .85rem; }
}

/* Hero: larger text and more breathing room on desktop */
@media (min-width: 768px) {
  .hero { padding: 2.8rem 2rem 2.4rem; }
  .hero p { font-size: 1.05rem; max-width: 620px; margin-bottom: 1.4rem; }
  .hero-tags a { font-size: .82rem; padding: .35rem 1rem; }
}

/* Section title: bigger on desktop */
@media (min-width: 768px) {
  .section-title { font-size: 1.1rem; padding-bottom: .55rem; margin-bottom: 1.2rem; }
  .section-title::after { width: 52px; }
}

/* Cards: larger text and more padding on desktop */
@media (min-width: 768px) {
  .card__body { padding: 1.1rem 1.2rem; }
  .card__title { font-size: 1.05rem; line-height: 1.4; }
  .card__tag { font-size: .72rem; padding: .14rem .5rem; }
  .card__meta { font-size: .78rem; padding-top: .55rem; }
  .card__pdf-btn { font-size: .9rem; padding: .6rem 1rem; }
  .card__badge { font-size: .68rem; padding: .2rem .55rem; }
}

@media (min-width: 1024px) {
  .card__body { padding: 1.3rem 1.4rem; }
  .card__title { font-size: 1.1rem; }
  .card__meta { font-size: .82rem; }
  .card-grid { gap: 1.2rem; }
}

/* List/tag page: more padding and spacing */
@media (min-width: 768px) {
  .list-header { padding: 2rem 2rem 1.6rem; }
  .list-header h1 { font-size: 1.8rem; margin-bottom: .4rem; }
  .list-header p { font-size: .95rem; }
  .list-content { padding: 1.8rem 2rem 3rem; }
  .filter-pill { font-size: .85rem; padding: .36rem 1rem; }
  .filter-pills { gap: .55rem; margin-bottom: 1.5rem; }
}

/* Article page: bigger readable text on desktop */
@media (min-width: 768px) {
  .article-layout { padding: 2rem 2rem 3.5rem; }
  .article-header h1 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.2; margin-bottom: .7rem; }
  .article-meta { font-size: .85rem; gap: .6rem; margin-bottom: .3rem; }
  .article-tag { font-size: .76rem; padding: .15rem .65rem; }
  .article-tags { margin-bottom: .7rem; }
  .article-content { font-size: .97rem; line-height: 1.75; }
  .article-content h2 { font-size: 1.13rem; margin: 1.8rem 0 .7rem; }
  .article-content h3 { font-size: .99rem; margin: 1.3rem 0 .5rem; }
  .article-content th { font-size: .85rem; padding: .58rem .9rem; }
  .article-content td { font-size: .87rem; padding: .52rem .9rem; }
  .article-content ul, .article-content ol { padding-left: 1.8rem; }
  .article-content li { margin-bottom: .5rem; }
  .info-box { font-size: .92rem; padding: 1rem 1.3rem; }
  .breadcrumb-bar { font-size: .82rem; padding: .45rem 2rem; }
}

@media (min-width: 1024px) {
  .article-content { font-size: .99rem; }
  .article-layout { max-width: 880px; padding: 2.5rem 2.5rem 4rem; }
}

/* PDF download box: larger on desktop */
@media (min-width: 768px) {
  .pdf-download-box { padding: 1.8rem 2.4rem; margin: 1.8rem 0; }
  .pdf-download-box__ribbon { margin: -1.8rem -2.4rem 1.3rem; font-size: .75rem; }
  .pdf-download-box__title { font-size: 1.15rem; }
  .pdf-download-box__subtitle { font-size: .92rem; margin-bottom: 1.1rem; }
  .pdf-download-box__icon { font-size: 3rem; }
  .btn-download { font-size: 1.08rem; padding: .9rem 2.4rem; }
  .pdf-download-box__note { font-size: .78rem; margin-top: .7rem; }
}

/* Why section: bigger text */
@media (min-width: 768px) {
  .why-grid { gap: 1rem; }
  .why-card { padding: 1.2rem 1rem; }
  .why-card__icon { font-size: 2rem; }
  .why-card__title { font-size: .9rem; }
  .why-card__desc { font-size: .8rem; }
}

/* Exam pills: bigger on desktop */
@media (min-width: 768px) {
  .exam-pill { font-size: .84rem; padding: .42rem 1rem; }
}

/* Footer: larger text */
@media (min-width: 768px) {
  .site-footer { padding: 2.5rem 2rem 1.5rem; font-size: .9rem; }
  .footer-brand .site-logo__name { font-size: 1.25rem; }
  .footer-brand p { font-size: .84rem; margin-top: .45rem; }
  .footer-col h4 { font-size: .92rem; margin-bottom: .65rem; }
  .footer-col a { font-size: .86rem; }
  .footer-col li { margin-bottom: .38rem; }
  .footer-bottom { font-size: .78rem; padding-top: 1rem; }
  .footer-tg { font-size: .84rem; padding: .45rem 1.1rem; }
  .footer-grid { gap: 1.8rem; }
}

/* Share nudge: bigger */
@media (min-width: 768px) {
  .share-nudge { font-size: .92rem; padding: 1.1rem 1.4rem; margin-top: 1.8rem; }
}

/* Tags */
@media (min-width: 768px) {
  .tag-pill { font-size: .82rem; padding: .3rem .9rem; }
}

/* Redirect page: bigger card on desktop */
@media (min-width: 768px) {
  .redirect-card { max-width: 440px; padding-bottom: 2rem; }
  .redirect-logo { font-size: 1.25rem; }
  .redirect-title { font-size: 1.25rem; margin-bottom: .4rem; }
  .redirect-subtitle { font-size: .92rem; }
  .redirect-card-top { padding: 1.1rem 1.6rem; }
  .countdown-wrap { width: 90px; height: 90px; }
  .countdown-number { font-size: 1.8rem; }
  .btn-redirect-now { font-size: 1.05rem; padding: .9rem 2.1rem; }
  .trust-badge { font-size: .8rem; }
  .redirect-note { font-size: .78rem; }
}

/* Pagination: bigger targets on desktop */
@media (min-width: 768px) {
  .pagination a, .pagination span { min-width: 42px; height: 42px; font-size: .92rem; }
}