/*
Theme Name: ScholarPath Pro
Theme URI: https://studyscholarshipprovider.com/
Author: Study Scholarships Provider
Author URI: https://studyscholarshipprovider.com/
Description: A fast, SEO-optimized WordPress theme built for scholarship discovery sites. Features scholarship card layouts, reading progress, table of contents, breadcrumbs, and full mobile responsiveness.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scholarpath-pro
Tags: education, scholarships, blog, magazine, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, two-columns, right-sidebar
*/

/* ===================================================
   SCHOLARPATH PRO — Study Scholarships Provider Theme
   Design: Editorial/Academic, Navy + Gold + White
   =================================================== */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,600;0,700;0,900;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  --navy:       #0B2559;
  --navy-dark:  #071a40;
  --navy-light: #1a3a6e;
  --gold:       #F0A500;
  --gold-dark:  #d4920a;
  --gold-light: #ffc63a;
  --green:      #1A6B3A;
  --bg:         #F5F7FC;
  --bg-card:    #FFFFFF;
  --text:       #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border:     #E4E8F1;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 4px rgba(11,37,89,0.07);
  --shadow-md:  0 4px 20px rgba(11,37,89,0.10);
  --shadow-lg:  0 8px 40px rgba(11,37,89,0.14);
  --font-head:  'Fraunces', Georgia, serif;
  --font-body:  'Plus Jakarta Sans', -apple-system, sans-serif;
  --max-width:  1200px;
  --content-width: 780px;
  --sidebar-width: 330px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: #FEFBF0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
  margin: 1.5rem 0;
}

/* ---------- LAYOUT WRAPPERS ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2.5rem;
  align-items: start;
}

/* =============================================
   READING PROGRESS BAR
   ============================================= */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar a { color: rgba(255,255,255,0.75); }
.top-bar a:hover { color: var(--gold-light); }
.top-bar-left { display: flex; gap: 1.5rem; align-items: center; }
.top-bar-right { display: flex; gap: 1rem; align-items: center; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.site-branding { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.site-branding img { height: 48px; width: auto; }
.site-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}
.site-title span { color: var(--gold-dark); }
.site-tagline { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; display: block; }

/* Search bar in header */
.header-search {
  flex: 1;
  max-width: 380px;
}
.header-search form { position: relative; display: flex; }
.header-search input {
  width: 100%;
  padding: 0.6rem 3rem 0.6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
}
.header-search input:focus { border-color: var(--navy); background: #fff; }
.header-search button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav-wrap { background: var(--navy); }
.main-nav-wrap .container { display: flex; align-items: center; justify-content: space-between; }

.main-nav { display: flex; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  letter-spacing: 0.03em;
  transition: color .2s, background .2s;
  text-transform: uppercase;
}
.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a { color: var(--gold-light); background: rgba(255,255,255,0.06); }

/* Dropdown */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s ease;
  z-index: 500;
}
.main-nav > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.855rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all .15s;
}
.main-nav .sub-menu li:last-child a { border-bottom: none; }
.main-nav .sub-menu li a:hover { color: var(--navy); background: #f0f4ff; padding-left: 1.6rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* =============================================
   CATEGORY PILLS (below nav)
   ============================================= */
.cat-pills-bar {
  background: var(--navy-light);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-pills-bar::-webkit-scrollbar { display: none; }
.cat-pills-bar .container { display: flex; gap: 0.5rem; padding: 0.6rem 1.25rem; white-space: nowrap; }
.cat-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.77rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cat-pill:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.cat-pill.active { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs-wrap { background: #fff; border-bottom: 1px solid var(--border); padding: 0.6rem 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--navy); font-weight: 500; }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs .sep { color: var(--text-light); }
.breadcrumbs .current { color: var(--text-muted); }

/* =============================================
   HERO / FEATURED SECTION
   ============================================= */
.hero-section { background: var(--navy); color: #fff; padding: 3.5rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-text h1 span { color: var(--gold-light); }
.hero-text p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-search { display: flex; max-width: 440px; }
.hero-search input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}
.hero-search button {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .2s;
}
.hero-search button:hover { background: var(--gold-dark); }

.hero-stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.hero-stat .num { font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); color: var(--gold-light); }
.hero-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-featured { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.hero-featured img { width: 100%; height: 320px; object-fit: cover; }
.hero-featured-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(7,26,64,0.92), transparent);
}
.hero-featured-overlay h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.3rem; }
.hero-featured-overlay .cat-badge { display: inline-block; }

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--gold);
  border-radius: 2px;
}
.section-link { font-size: 0.85rem; color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--gold); padding-bottom: 1px; }
.section-link:hover { color: var(--gold-dark); }

/* =============================================
   SCHOLARSHIP CARDS
   ============================================= */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.scholarship-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.scholarship-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.scholarship-card:hover .card-image-wrap img { transform: scale(1.04); }

.card-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-cat { background: var(--navy); color: #fff; }
.badge-funded { background: var(--green); color: #fff; }
.badge-deadline { background: #DC2626; color: #fff; }
.badge-new { background: var(--gold); color: var(--navy-dark); }

.card-body { padding: 1.15rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--gold-dark); }
.card-excerpt { font-size: 0.855rem; color: var(--text-muted); line-height: 1.6; flex: 1; }

.card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.775rem; color: var(--text-light); padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: auto; }
.card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-meta-item { display: flex; align-items: center; gap: 0.3rem; }

.card-footer { padding: 0.75rem 1.2rem; border-top: 1px solid var(--border); background: #fafbff; }
.read-more-link { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 0.35rem; }
.read-more-link:hover { color: var(--gold-dark); }
.read-more-link svg { transition: transform .2s; }
.read-more-link:hover svg { transform: translateX(3px); }

/* Featured large card */
.card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-featured .card-image-wrap { aspect-ratio: auto; height: 100%; min-height: 240px; }
.card-featured .card-body { padding: 1.75rem; justify-content: center; gap: 0.75rem; }
.card-featured .card-title { font-size: 1.25rem; }

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.site-main { padding: 2.5rem 0; }

/* =============================================
   SINGLE POST
   ============================================= */
.post-hero { background: var(--navy); color: #fff; padding: 3rem 0 2rem; }
.post-hero-inner { max-width: var(--content-width); }
.post-hero .post-cat-links { margin-bottom: 0.75rem; }
.post-hero h1.entry-title { color: #fff; margin-bottom: 1rem; }
.post-hero .entry-meta { color: rgba(255,255,255,0.7); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.post-hero .entry-meta a { color: rgba(255,255,255,0.85); }
.entry-meta-item { display: flex; align-items: center; gap: 0.35rem; }

.post-thumbnail-wrap { margin: -1.5rem 0 2rem; }
.post-thumbnail-wrap img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: 480px; object-fit: cover; }

/* Table of Contents */
.toc-box {
  background: #EFF4FF;
  border: 1px solid #C7D9FF;
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.toc-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.75rem; }
.toc-list { display: flex; flex-direction: column; gap: 0.3rem; counter-reset: toc-counter; }
.toc-list li { display: flex; align-items: baseline; gap: 0.5rem; }
.toc-list li::before { counter-increment: toc-counter; content: counter(toc-counter)"."; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.toc-list a { font-size: 0.875rem; color: var(--navy); font-weight: 500; }
.toc-list a:hover { color: var(--gold-dark); text-decoration: underline; }

/* Scholarship Info Box */
.scholarship-info-box {
  background: linear-gradient(135deg, #EFF4FF, #FEFBF0);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.info-box-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--text-muted); margin-bottom: 1rem; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.info-item label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 0.2rem; }
.info-item span { font-size: 0.9rem; color: var(--navy); font-weight: 600; }

/* Entry content styles */
.entry-content { font-size: 1.02rem; line-height: 1.85; }
.entry-content h2 { margin: 2rem 0 0.75rem; padding-top: 0.5rem; }
.entry-content h3 { margin: 1.5rem 0 0.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold-dark); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.entry-content th { background: var(--navy); color: #fff; padding: 0.7rem 1rem; text-align: left; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.entry-content td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: #f8f9fc; }

/* Apply CTA box */
.apply-cta-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.apply-cta-box h3 { color: var(--gold-light); margin-bottom: 0.5rem; }
.apply-cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }
.btn-apply {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 0.85rem 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all .2s;
  letter-spacing: 0.02em;
}
.btn-apply:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,165,0,0.35); }

/* Post share */
.post-share { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 0; border-top: 1px solid var(--border); margin-top: 2rem; flex-wrap: wrap; }
.share-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.linkedin { background: #0A66C2; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag-link {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all .15s;
}
.tag-link:hover { border-color: var(--navy); color: var(--navy); background: #eef2ff; }

/* Author Box */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; border: 3px solid var(--gold); }
.author-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.author-bio { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.3rem; }

/* =============================================
   RELATED POSTS
   ============================================= */
.related-posts { padding: 2.5rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 0.75rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.widget-body { padding: 1.1rem 1.2rem; }

/* Search widget */
.widget-search .search-form { position: relative; }
.widget-search input {
  width: 100%;
  padding: 0.65rem 2.8rem 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color .2s;
}
.widget-search input:focus { border-color: var(--navy); }
.widget-search button { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--navy); }

/* Categories widget */
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  transition: color .15s;
}
.cat-list a:hover { color: var(--navy); }
.cat-list .count {
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Recent posts widget */
.recent-post-item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-img { width: 70px; height: 58px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recent-post-title { font-size: 0.84rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.recent-post-title a { color: inherit; }
.recent-post-title a:hover { color: var(--navy); }
.recent-post-date { font-size: 0.75rem; color: var(--text-light); margin-top: 0.3rem; }

/* Deadline tracker widget */
.deadline-item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.deadline-item:last-child { border-bottom: none; }
.deadline-date { background: var(--gold); color: var(--navy-dark); border-radius: 8px; padding: 0.3rem 0.6rem; text-align: center; flex-shrink: 0; min-width: 52px; }
.deadline-date .month { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.07em; }
.deadline-date .day { font-size: 1.25rem; font-weight: 900; font-family: var(--font-head); line-height: 1; }
.deadline-info .title { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.deadline-info a { color: inherit; }
.deadline-info a:hover { color: var(--navy); }
.deadline-badge { font-size: 0.7rem; font-weight: 600; color: #DC2626; display: block; margin-top: 0.15rem; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 2rem 0; flex-wrap: wrap; }
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: #fff;
  transition: all .15s;
}
.pagination .page-numbers:hover { border-color: var(--navy); color: var(--navy); background: #eef2ff; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .prev, .pagination .next { width: auto; padding: 0 1rem; gap: 0.4rem; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); }

.footer-top { padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }

.footer-about .footer-logo { margin-bottom: 1rem; }
.footer-about p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.65); }

.footer-widget h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.4rem; transition: color .15s; }
.footer-links a::before { content: '›'; color: var(--gold); font-weight: 700; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-newsletter { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.footer-newsletter p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.footer-newsletter form { display: flex; gap: 0.5rem; flex-direction: column; }
.footer-newsletter input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter button { background: var(--gold); color: var(--navy-dark); border: none; padding: 0.6rem 1rem; border-radius: 6px; font-weight: 700; font-size: 0.82rem; cursor: pointer; font-family: var(--font-body); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  transition: all .2s;
}
.social-icon:hover { background: var(--gold); color: var(--navy-dark); }

.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 1rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--gold-light); }

/* =============================================
   BACK TO TOP
   ============================================= */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  border: none;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* =============================================
   404 PAGE
   ============================================= */
.error-404-page { text-align: center; padding: 5rem 1rem; }
.error-404-page .big-number { font-size: 8rem; font-family: var(--font-head); color: var(--gold); line-height: 1; font-weight: 900; }
.error-404-page h2 { font-size: 2rem; margin: 1rem 0; }
.error-404-page p { color: var(--text-muted); max-width: 400px; margin: 0 auto 2rem; }

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-featured { display: none; }
}

@media (max-width: 768px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .main-nav { display: none; flex-direction: column; width: 100%; background: var(--navy); }
  .main-nav.open { display: flex; }
  .main-nav > li > a { padding: 0.75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border-top: none; box-shadow: none; background: rgba(0,0,0,0.2); }
  .main-nav .sub-menu a { color: rgba(255,255,255,0.75); }
  .menu-toggle { display: block; }
  .main-nav-wrap .container { flex-wrap: wrap; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid.two-col { grid-template-columns: 1fr; }
  .card-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .card-featured .card-image-wrap { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .header-search { display: none; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-section { padding: 2rem 0 1.5rem; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
}

/* =============================================
   PRINT STYLES (SEO + accessibility)
   ============================================= */
@media print {
  .site-header, .site-footer, .sidebar, .main-nav-wrap, #back-to-top, #reading-progress { display: none; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
