/*
Theme Name: FreeScholarship India
Theme URI: https://freescholarship.in
Author: FreeScholarship Team
Description: India-focused scholarship theme — Central & State Government, Merit, Minority, SC/ST/OBC scholarships. IST timezone, India-specific design, Key Highlights, E-E-A-T editorial review, deadline countdown, status badges. Magazine-style editorial design with Google Discover optimization, responsive images, dark mode, urgency badges, TOC, social sharing, and advanced SEO. Compatible with RankMath, LiteSpeed Cache & Cloudflare.
Version: 1.0.0
Text Domain: freescholarship-in
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

/* ============================================================
   DESIGN SYSTEM — CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --c-primary: #0A1628;
  --c-primary-light: #132240;
  --c-accent: #FF9933;
  --c-accent-glow: #FFB347;
  --c-blue: #1565C0;
  --c-blue-light: #1976D2;
  --c-green: #138808;
  --c-green-light: #2E7D32;
  --c-red: #DC2626;
  --c-orange: #EA580C;
  --c-india: #FF9933;

  /* Surfaces */
  --bg: #F8F7F4;
  --bg-card: #FFFFFF;
  --bg-muted: #F0EEE9;
  --bg-hover: #EBE9E3;
  --bg-glass: rgba(255,255,255,.72);

  /* Text */
  --tx: #1A1A2E;
  --tx-secondary: #5A5A6E;
  --tx-muted: #8E8E9E;
  --tx-inverse: #FFFFFF;

  /* Borders & Shadows */
  --border: #E2E0DA;
  --border-light: #EDEBE6;
  --shadow-sm: 0 1px 3px rgba(10,22,40,.04), 0 1px 2px rgba(10,22,40,.06);
  --shadow-md: 0 4px 14px rgba(10,22,40,.06), 0 2px 6px rgba(10,22,40,.04);
  --shadow-lg: 0 12px 40px rgba(10,22,40,.08), 0 4px 12px rgba(10,22,40,.05);
  --shadow-glow: 0 0 30px rgba(212,168,67,.15);
  --thumb-ratio: 1200/630; /* Discover/OG ratio */

  /* Spacing & Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Fonts */
  --f-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1160px;
  --header-h: 60px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0D1117;
  --bg-card: #161B22;
  --bg-muted: #1C2333;
  --bg-hover: #21293A;
  --bg-glass: rgba(22,27,34,.85);
  --tx: #E6EDF3;
  --tx-secondary: #A0AEC0;
  --tx-muted: #6B7A8D;
  --border: #2D3748;
  --border-light: #252D3D;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
  --shadow-md: 0 4px 14px rgba(0,0,0,.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.35);
  --c-primary: #E6EDF3;
  --c-primary-light: #CBD5E0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--tx);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s;
}
a { color: var(--c-blue); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--c-blue-light); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); color: var(--c-primary); line-height: 1.25; font-weight: 400; }
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.35rem); }
h4 { font-size: clamp(.92rem, 2vw, 1.1rem); }
.sf-container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Utilities */
.sf-skip { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sf-skip:focus { left: 14px; top: 14px; width: auto; height: auto; z-index: 9999; background: var(--bg-card); color: var(--tx); padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.sf-site { min-height: 100vh; display: flex; flex-direction: column; }
.sf-main { flex: 1; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.sf-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; background: transparent; }
.sf-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--c-accent), var(--c-blue)); border-radius: 0 3px 3px 0; transition: width .08s linear; }
body.admin-bar .sf-progress { top: 32px; }
@media(max-width:782px) { body.admin-bar .sf-progress { top: 46px; } }

/* ============================================================
   TOP BAR
   ============================================================ */
.sf-topbar { background: var(--c-primary); background: linear-gradient(90deg, #0A1628, #132240); color: #fff; padding: 0; font-size: 12px; overflow: hidden; height: 32px; display: flex; align-items: center; }
.sf-topbar-in { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.sf-topbar-r { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.sf-topbar-r a { color: rgba(255,255,255,.65); font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.sf-topbar-r a:hover { color: var(--c-accent); }
.sf-mq { flex: 1; overflow: hidden; margin-right: 14px; min-width: 0; }
.sf-mq span { display: inline-block; white-space: nowrap; color: var(--c-accent); font-weight: 600; animation: mq 22s linear infinite; }
@keyframes mq { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ============================================================
   HEADER
   ============================================================ */
.sf-header {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s, background .3s;
  height: var(--header-h);
}
.sf-header.scrolled { box-shadow: var(--shadow-md); }
.sf-hd-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo */
.sf-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.sf-logo-m {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--c-accent), #C49432);
  border-radius: 10px;
  color: var(--c-primary);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  letter-spacing: -.02em;
  box-shadow: 0 2px 8px rgba(212,168,67,.25);
}
[data-theme="dark"] .sf-logo-m { color: #0A1628; }
.sf-logo-t { display: flex; flex-direction: column; line-height: 1.15; }
.sf-logo-t strong { font-size: .95rem; font-weight: 700; color: var(--tx); letter-spacing: -.01em; }
.sf-logo-t small { font-size: .6rem; color: var(--tx-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }

/* Nav */
.sf-nav { display: flex; align-items: center; gap: 1px; }
.sf-nav a {
  padding: 7px 14px; font-size: .84rem; font-weight: 600; color: var(--tx-secondary);
  border-radius: var(--r-sm); white-space: nowrap; transition: .15s; letter-spacing: -.01em;
}
.sf-nav a:hover { background: var(--bg-muted); color: var(--tx); }

/* Header Actions */
.sf-hd-acts { display: flex; align-items: center; gap: 4px; }
.sf-ic {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-secondary);
  transition: .2s; -webkit-tap-highlight-color: transparent;
  font-size: 0;
}
.sf-ic:hover { background: var(--bg-muted); color: var(--tx); border-color: var(--border); }
.sf-ic svg { width: 18px; height: 18px; }
.sf-ham { display: none; }
.sf-dark-ic { font-size: 16px; }

body.admin-bar .sf-header { top: 32px; }
@media(max-width:782px) { body.admin-bar .sf-header { top: 46px; } }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.sf-overlay { position: fixed; inset: 0; background: rgba(10,22,40,.55); z-index: 2000; opacity: 0; visibility: hidden; transition: .3s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sf-overlay.open { opacity: 1; visibility: visible; }
.sf-drawer {
  position: fixed; top: 0; right: 0;
  width: 300px; max-width: 85vw; height: 100dvh;
  background: var(--bg-card); z-index: 2001;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.32,.72,.24,1);
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.sf-drawer.open { transform: translateX(0); }
.sf-dr-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-light); }
.sf-dr-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--tx); font-size: .9rem; }
.sf-dr-brand .sf-logo-m { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
.sf-dr-x { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--r-sm); background: transparent; font-size: 20px; color: var(--tx); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sf-dr-nav { list-style: none; flex: 1; padding: 8px 0; }
.sf-dr-nav li { border-bottom: 1px solid var(--border-light); }
.sf-dr-nav a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: .92rem; font-weight: 600; color: var(--tx); transition: .15s; }
.sf-dr-nav a:active { background: var(--bg-muted); color: var(--c-blue); }
.sf-dr-foot { padding: 16px 18px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; flex-wrap: wrap; }
.sf-dr-foot a { font-size: .78rem; padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--tx-secondary); font-weight: 600; transition: .2s; }
.sf-dr-foot a:hover { background: var(--c-accent); color: #1a1a2e; border-color: var(--c-accent); }
body.dr-open { overflow: hidden; }

body.admin-bar .sf-drawer { top: 32px; height: calc(100dvh - 32px); }
@media(max-width:782px) { body.admin-bar .sf-drawer { top: 46px; height: calc(100dvh - 46px); } }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.sf-search-full {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 2500; opacity: 0; visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: .3s;
}
.sf-search-full.open { opacity: 1; visibility: visible; }
.sf-sr-inner { width: 92%; max-width: 520px; position: relative; }
.sf-sr-inner input {
  width: 100%; padding: 16px 50px 16px 20px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 1.05rem; font-family: var(--f-body);
  outline: none; transition: border-color .2s;
}
.sf-sr-inner input::placeholder { color: rgba(255,255,255,.35); }
.sf-sr-inner input:focus { border-color: var(--c-accent); }
.sf-sr-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.sf-hero {
  background: linear-gradient(160deg, #0A1628 0%, #0f2238 35%, #162848 60%, #0f2440 100%);
  padding: 48px 0 68px;
  position: relative;
  overflow: hidden;
}
.sf-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 15% 50%, rgba(255,153,51,.07) 0%, transparent 55%),
              radial-gradient(ellipse at 85% 30%, rgba(19,136,8,.05) 0%, transparent 45%),
              radial-gradient(ellipse at 50% 80%, rgba(21,101,192,.04) 0%, transparent 50%);
  pointer-events: none;
}
.sf-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.sf-hero-in { text-align: center; position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }

.sf-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,153,51,.12);
  border: 1px solid rgba(255,153,51,.2);
  border-radius: var(--r-pill);
  padding: 5px 14px; margin-bottom: 16px;
}
.sf-hero-pulse { width: 7px; height: 7px; background: var(--c-green-light); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.85); } }
.sf-hero-badge span { color: var(--c-accent-glow); font-size: .73rem; font-weight: 600; letter-spacing: .02em; }

.sf-hero h1 { color: #fff; margin-bottom: 10px; font-family: var(--f-display); letter-spacing: -.01em; }
.sf-hero h1 b { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-glow), #F0D078); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sf-hero p { color: rgba(255,255,255,.6); font-size: clamp(.84rem, 2vw, .96rem); margin-bottom: 22px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.65; }

.sf-hero-form { max-width: 460px; margin: 0 auto 24px; display: flex; gap: 8px; }
.sf-hero-form input {
  flex: 1; padding: 12px 16px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: .88rem; font-family: var(--f-body); outline: none; min-width: 0;
  transition: border-color .2s;
}
.sf-hero-form input::placeholder { color: rgba(255,255,255,.3); }
.sf-hero-form input:focus { border-color: var(--c-accent); }
.sf-hero-form button {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--c-accent), #C49432);
  color: #0A1628; border: none; border-radius: var(--r-md);
  font-weight: 700; font-size: .84rem; cursor: pointer; white-space: nowrap;
  transition: .2s; box-shadow: 0 4px 14px rgba(212,168,67,.25);
  font-family: var(--f-body);
}
.sf-hero-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,168,67,.35); }

.sf-hero-stats { display: flex; justify-content: center; gap: 28px; }
.sf-hero-stat strong { display: block; font-size: clamp(1.1rem, 3vw, 1.4rem); color: #fff; font-family: var(--f-display); }
.sf-hero-stat span { font-size: .65rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sf-sec { padding: 36px 0 40px; }
.sf-sec-head { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf-sec-head-left { }
.sf-sec-label {
  display: inline-block; font-size: .63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--c-accent); margin-bottom: 4px;
}
.sf-sec-head h2 { margin: 0; }
.sf-sec-viewall {
  font-size: .82rem; font-weight: 700; color: var(--c-blue);
  white-space: nowrap; display: flex; align-items: center; gap: 4px;
}
.sf-sec-viewall:hover { gap: 7px; }

/* ============================================================
   FEATURED POST (Magazine Hero)
   ============================================================ */
.sf-featured { padding: 0 0 24px; margin-top: -28px; position: relative; z-index: 3; }
.sf-featured-card {
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: var(--bg-card); border-radius: var(--r-xl);
  overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  transition: .3s;
}
.sf-featured-card:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); }
.sf-featured-img{border-radius:22px;overflow:hidden;background:var(--bg-muted);aspect-ratio:var(--thumb-ratio);padding:0;margin:14px 0}
.sf-featured-img a { display: block; width: 100%; height: 100%; }
.sf-featured-img img{width:100%;height:100%;display:block;object-fit:contain;border-radius:0;background:var(--bg-muted)}
.sf-featured-card:hover .sf-featured-img img { width: 100%; height: 100%; object-fit: contain; filter: saturate(1.02); border-radius: calc(var(--r-xl) - 8px); }
.sf-featured-img .sf-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, var(--bg-muted), var(--bg)); }
.sf-featured-body { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
.sf-featured-body .sf-badge { margin-bottom: 10px; }
.sf-featured-body .sf-card-date { font-size: .74rem; color: var(--tx-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.sf-featured-body h2 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); margin-bottom: 8px; line-height: 1.3; }
.sf-featured-body h2 a { color: var(--c-primary); text-decoration: none; }
.sf-featured-body h2 a:hover { color: var(--c-blue); }
.sf-featured-body .sf-card-ex { font-size: .88rem; color: var(--tx-secondary); line-height: 1.65; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sf-featured-body .sf-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--c-primary); color: #fff;
  border-radius: var(--r-sm); font-weight: 700; font-size: .82rem;
  transition: .2s; align-self: flex-start;
}
[data-theme="dark"] .sf-featured-body .sf-more-btn { background: var(--c-accent); color: #0A1628; }
.sf-featured-body .sf-more-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
[data-theme="dark"] .sf-featured-body .sf-more-btn:hover { color: #0A1628; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.sf-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sf-cat-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  border: 1px solid var(--border-light);
  transition: .25s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.sf-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sf-cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.sf-cat-india::before { background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808); }
.sf-cat-intl::before { background: linear-gradient(90deg, var(--c-blue), var(--c-accent)); }
.sf-cat-central::before { background: linear-gradient(90deg, #FF9933, #E8870E); }
.sf-cat-state::before { background: linear-gradient(90deg, #138808, #2E7D32); }
.sf-cat-merit::before { background: linear-gradient(90deg, #1565C0, #1976D2); }
.sf-cat-minority::before { background: linear-gradient(90deg, #7B1FA2, #9C27B0); }
.sf-cat-icon { font-size: 28px; margin-bottom: 8px; }
.sf-cat-card h3 { font-size: 1rem; margin-bottom: 4px; font-family: var(--f-body); font-weight: 700; color: var(--tx); }
.sf-cat-card p { font-size: .78rem; color: var(--tx-secondary); margin-bottom: 10px; line-height: 1.55; }
.sf-cat-arrow { font-size: .78rem; font-weight: 700; color: var(--c-blue); }
.sf-cat-count {
  position: absolute; top: 12px; right: 12px;
  font-size: .62rem; font-weight: 700; color: var(--tx-muted);
  background: var(--bg-muted); padding: 3px 9px; border-radius: var(--r-pill);
}

/* ============================================================
   SLIDER / CAROUSEL
   ============================================================ */
.sf-slider-sec { padding: 16px 0 28px; }
.sf-slider-sec-bottom { padding: 24px 0 16px; margin-top: 10px; border-top: 1px solid var(--border-light); }
.sf-slider-box {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  padding: 18px 0 18px 18px; margin-bottom: 16px;
  overflow: hidden;
}
.sf-slider-head { display: flex; align-items: center; justify-content: space-between; padding-right: 18px; margin-bottom: 14px; }
.sf-slider-head h3 { font-size: .95rem; display: flex; align-items: center; gap: 9px; margin: 0; font-family: var(--f-body); font-weight: 700; color: var(--tx); }
.sf-slider-head h3 .sf-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sf-slider-head h3 .sf-dot-in { background: linear-gradient(135deg, #FF9933, #138808); }
.sf-slider-head h3 .sf-dot-intl { background: linear-gradient(135deg, var(--c-blue), var(--c-accent)); }
.sf-slider-head a { font-size: .78rem; font-weight: 700; color: var(--c-blue); }

.sf-slider-track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px; padding-right: 18px;
  scroll-snap-type: x proximity;
}
.sf-slider-track::-webkit-scrollbar { display: none; }

.sf-carousel { position: relative; }
.sf-car-btn {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--tx); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md); transition: .2s; z-index: 5;
  font-size: 18px;
}
.sf-car-btn:hover { transform: translateY(-50%) scale(1.05); box-shadow: var(--shadow-lg); }
.sf-car-prev { left: -8px; }
.sf-car-next { right: -8px; }

.sf-slide {
  min-width: 230px; max-width: 230px; flex-shrink: 0;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border-light);
  transition: .3s; background: var(--bg-card);
  scroll-snap-align: start;
}
.sf-slide:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sf-slide-img{position:relative;aspect-ratio:var(--thumb-ratio);overflow:hidden;border-radius:16px;background:var(--bg-muted);padding:0}
.sf-slide-img a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.sf-slide-img img{width:100%;height:100%;display:block;object-fit:contain;border-radius:0;transform:none;background:var(--bg-muted)}
.sf-slide:hover .sf-slide-img img { transform: none; }
.sf-slide-body { padding: 10px 12px 12px; }
.sf-slide-body h4 { font-size: .82rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px; font-family: var(--f-body); font-weight: 700; color: var(--tx); }
.sf-slide-body h4 a { color: var(--tx); }
.sf-slide-body h4 a:hover { color: var(--c-blue); }
.sf-slide-meta { display: flex; justify-content: space-between; font-size: .65rem; color: var(--tx-muted); margin-bottom: 4px; }
.sf-slide-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.sf-slide-btn {
  display: block; text-align: center; padding: 8px 10px;
  background: var(--c-primary); color: #fff;
  border-radius: var(--r-sm); font-weight: 700; font-size: .78rem;
  transition: .2s;
}
[data-theme="dark"] .sf-slide-btn { background: var(--c-accent); color: #0A1628; }
.sf-slide-btn:hover { opacity: .9; color: #fff; }
[data-theme="dark"] .sf-slide-btn:hover { color: #0A1628; }

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.sf-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #fff;
}
.sf-badge-in { background: rgba(255,153,51,.88); }
.sf-badge-intl { background: rgba(37,99,235,.85); }
.sf-badge-def { background: rgba(90,97,117,.7); }
.sf-badge-urgent { background: var(--c-red); animation: urgentPulse 2s infinite; }
@keyframes urgentPulse { 0%,100% { opacity: 1; } 50% { opacity: .8; } }
.sf-badge-new { background: var(--c-green); }
.sf-badge-hot { background: var(--c-orange); }

.sf-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 600;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(37,99,235,.07);
  color: var(--c-blue); border: 1px solid rgba(37,99,235,.1);
  white-space: nowrap;
}
.sf-pill.sm { font-size: .62rem; padding: 3px 7px; }
.sf-pill-urgent { background: rgba(220,38,38,.07); color: var(--c-red); border-color: rgba(220,38,38,.12); }
.sf-pill-green { background: rgba(5,150,105,.07); color: var(--c-green); border-color: rgba(5,150,105,.12); }

.sf-meta-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* ============================================================
   POST CARDS
   ============================================================ */
.sf-posts-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.sf-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sf-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: .3s;
  display: flex; flex-direction: column;
}
.sf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sf-card-img{position:relative;width:100%;aspect-ratio:var(--thumb-ratio);overflow:hidden;background:var(--bg-muted);border-radius:16px;padding:0;display:block}
.sf-card-img a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.sf-card-img img{width:100%;height:100%;display:block;object-fit:contain;object-position:center;border-radius:0;transform:none;background:var(--bg-muted)}
.sf-card:hover .sf-card-img img { transform: none; }
.sf-card-img .sf-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; background: linear-gradient(135deg, var(--bg-muted), var(--bg)); }
.sf-badge-wrap { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }

.sf-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.sf-card-date { font-size: .7rem; color: var(--tx-muted); margin-bottom: 2px; }
.sf-card-body h3 { font-size: .9rem; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; font-family: var(--f-body); font-weight: 700; }
.sf-card-body h3 a { color: var(--tx); }
.sf-card-body h3 a:hover { color: var(--c-blue); }
.sf-card-ex { font-size: .8rem; color: var(--tx-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; flex: 1; line-height: 1.55; }

.sf-card-ft {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--border-light); margin-top: auto;
}
.sf-card-ft .sf-more { font-size: .76rem; font-weight: 700; color: var(--c-blue); display: flex; align-items: center; gap: 3px; }
.sf-card-ft .sf-more:hover { gap: 6px; }
.sf-card-ft .sf-time { font-size: .68rem; color: var(--tx-muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sf-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 14px); }
.sf-widget {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border-light); padding: 18px;
}
.sf-widget-title {
  font-size: .88rem; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border-light);
  position: relative; color: var(--tx); font-family: var(--f-body);
}
.sf-widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 30px; height: 2px; background: var(--c-accent); }

/* Channel Widgets */
.sf-channel {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-md);
  margin-bottom: 8px; text-decoration: none;
  transition: .2s; font-weight: 600; font-size: .84rem;
}
.sf-channel:last-child { margin-bottom: 0; }
.sf-channel-tg { background: linear-gradient(135deg, #0088cc, #00aaee); color: #fff; }
.sf-channel-wa { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.sf-channel:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.sf-channel-icon { font-size: 22px; flex-shrink: 0; }
.sf-channel-text small { display: block; font-size: .66rem; font-weight: 400; opacity: .8; }

/* Newsletter */
.sf-nl { background: linear-gradient(135deg, #0A1628, #1a3358); border: none; color: #fff; }
.sf-nl .sf-widget-title { color: #fff; border-color: rgba(255,255,255,.08); }
.sf-nl .sf-widget-title::after { background: var(--c-accent); }
.sf-nl p { color: rgba(255,255,255,.6); font-size: .8rem; margin-bottom: 10px; line-height: 1.55; }
.sf-nl input[type="email"] {
  width: 100%; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm);
  background: rgba(255,255,255,.06); color: #fff;
  font-family: var(--f-body); margin-bottom: 8px; outline: none; font-size: .84rem;
}
.sf-nl input::placeholder { color: rgba(255,255,255,.3); }
.sf-nl input:focus { border-color: var(--c-accent); }
.sf-nl button {
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, var(--c-accent), #C49432);
  color: #0A1628; border: none; border-radius: var(--r-sm);
  font-weight: 700; font-size: .84rem; cursor: pointer;
  transition: .2s; font-family: var(--f-body);
}
.sf-nl button:disabled { opacity: .5; cursor: not-allowed; }
.sf-nl-msg { font-size: .76rem; margin-top: 6px; padding: 6px 8px; border-radius: var(--r-sm); display: none; text-align: center; }
.sf-nl-msg.ok { display: block; background: rgba(52,211,153,.15); color: #34D399; }
.sf-nl-msg.err { display: block; background: rgba(220,38,38,.15); color: #f87171; }
.sf-nl-msg.dup { display: block; background: rgba(234,179,8,.15); color: #fbbf24; }

/* Recent */
.sf-recent { list-style: none; }
.sf-recent li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.sf-recent li:last-child { border-bottom: none; }
.sf-recent a { font-size: .82rem; color: var(--tx); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-recent a:hover { color: var(--c-blue); }
.sf-recent .sf-rd { font-size: .66rem; color: var(--tx-muted); margin-top: 2px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.sf-single { padding: 16px 0 40px; }
.sf-single-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.sf-article { background: var(--bg-card); border-radius: var(--r-lg); border: 1px solid var(--border-light); overflow: hidden; }
.sf-article-hero { width: 100%; max-height: 460px; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-muted); }
.sf-article-hero img { width: 100%; height: auto; max-height: 460px; object-fit: contain; display: block; }
.sf-article-in { padding: 26px 24px; }
.sf-article-in h1 { margin-bottom: 12px; }

.sf-pmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: .76rem; color: var(--tx-muted); }
.sf-pmeta span { display: flex; align-items: center; gap: 3px; }
.sf-pmeta a { color: var(--c-blue); font-weight: 600; }

/* Table of Contents */
.sf-toc {
  background: var(--bg-muted); border-radius: var(--r-md);
  padding: 18px 20px; margin-bottom: 20px;
  border-left: 3px solid var(--c-accent);
}
.sf-toc-title {
  font-size: .82rem; font-weight: 700; color: var(--tx);
  margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-family: var(--f-body);
}
.sf-toc-title::after { content: '▾'; font-size: .7rem; transition: transform .2s; }
.sf-toc.collapsed .sf-toc-title::after { transform: rotate(-90deg); }
.sf-toc-list { list-style: none; counter-reset: toc; }
.sf-toc.collapsed .sf-toc-list { display: none; }
.sf-toc-list li { counter-increment: toc; padding: 4px 0; }
.sf-toc-list a { font-size: .82rem; color: var(--tx-secondary); font-weight: 500; display: flex; gap: 6px; transition: color .2s; }
.sf-toc-list a::before { content: counter(toc) '.'; color: var(--c-accent); font-weight: 700; min-width: 18px; }
.sf-toc-list a:hover { color: var(--c-blue); }

/* Article Body */
.sf-article-body { font-size: .96rem; line-height: 1.85; color: var(--tx-secondary); }
.sf-article-body p { margin-bottom: 14px; }
.sf-article-body ul, .sf-article-body ol { margin: 8px 0 14px 20px; }
.sf-article-body li { margin-bottom: 5px; }
.sf-article-body blockquote {
  border-left: 3px solid var(--c-accent); background: var(--bg-muted);
  padding: 14px 18px; margin: 14px 0; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic; color: var(--tx);
}
.sf-article-body a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sf-article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; overflow-x: auto; display: block; }
.sf-article-body th, .sf-article-body td { padding: 8px 12px; border: 1px solid var(--border); font-size: .88rem; text-align: left; }
.sf-article-body th { background: var(--c-primary); color: #fff; font-weight: 600; }
[data-theme="dark"] .sf-article-body th { background: var(--bg-muted); color: var(--tx); }
.sf-article-body tr:nth-child(even) td { background: var(--bg-muted); }
.sf-article-body img { border-radius: var(--r-md); margin: 12px 0; }

.sf-in-article-ad { margin: 18px 0; padding: 14px; background: var(--bg-muted); border-radius: var(--r-md); text-align: center; border: 1px dashed var(--border); color: var(--tx-muted); font-size: .78rem; }

.sf-article-tags {
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
}
.sf-article-tags b { font-size: .78rem; color: var(--tx-secondary); }
.sf-article-tags a {
  padding: 3px 10px; background: var(--bg-muted);
  border-radius: var(--r-pill); font-size: .72rem;
  color: var(--tx-secondary); transition: .2s; font-weight: 500;
}
.sf-article-tags a:hover { background: var(--c-blue); color: #fff; }

/* Social Share */
.sf-share {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
}
.sf-share-label { font-size: .78rem; font-weight: 700; color: var(--tx-secondary); white-space: nowrap; }
.sf-share a {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff;
  transition: .2s;
}
.sf-share a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: #fff; }
.sf-share-wa { background: #25D366; }
.sf-share-tg { background: #0088cc; }
.sf-share-tw { background: #1DA1F2; }
.sf-share-fb { background: #1877F2; }
.sf-share-li { background: #0A66C2; }
.sf-share-cp { background: var(--bg-muted); color: var(--tx-secondary) !important; border: 1px solid var(--border); }
.sf-share-cp:hover { background: var(--c-accent); color: #0A1628 !important; border-color: var(--c-accent); }

/* Author Box */
.sf-author-box {
  background: var(--bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--border-light); padding: 22px;
  margin-top: 16px; display: flex; gap: 16px; align-items: flex-start;
}
.sf-author-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-muted); }
.sf-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sf-author-info { flex: 1; }
.sf-author-info h4 { font-size: .95rem; margin-bottom: 3px; font-family: var(--f-body); font-weight: 700; }
.sf-author-info h4 a { color: var(--tx); }
.sf-author-info h4 a:hover { color: var(--c-blue); }
.sf-author-info p { font-size: .82rem; color: var(--tx-secondary); margin-bottom: 8px; line-height: 1.55; }
.sf-author-social { display: flex; gap: 5px; flex-wrap: wrap; }
.sf-author-social a {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: .65rem; color: var(--tx-muted); transition: .2s;
  font-weight: 700;
}
.sf-author-social a:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* Post Navigation */
.sf-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sf-post-nav a { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 14px; transition: .2s; }
.sf-post-nav a:hover { border-color: var(--c-blue); box-shadow: var(--shadow-sm); }
.sf-nav-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tx-muted); display: block; margin-bottom: 3px; font-weight: 600; }
.sf-nav-title { font-weight: 700; color: var(--tx); font-size: .82rem; }

/* Related Posts */
.sf-related { margin-top: 20px; }
.sf-related h3 { font-size: 1rem; margin-bottom: 14px; font-family: var(--f-body); font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--border-light); position: relative; }
.sf-related h3::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 30px; height: 2px; background: var(--c-accent); }
.sf-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-related-item { display: flex; gap: 10px; padding: 10px; background: var(--bg-card); border-radius: var(--r-md); border: 1px solid var(--border-light); transition: .2s; }
.sf-related-item:hover { border-color: var(--c-blue); box-shadow: var(--shadow-sm); }
.sf-related-thumb { width: 70px; height: 52px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-muted); }
.sf-related-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--bg-muted); }
.sf-related-text h4 { font-size: .78rem; font-family: var(--f-body); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-related-text h4 a { color: var(--tx); }
.sf-related-text h4 a:hover { color: var(--c-blue); }
.sf-related-text .sf-rd { font-size: .65rem; color: var(--tx-muted); margin-top: 2px; }

/* ============================================================
   ARCHIVE / SEARCH HEADER
   ============================================================ */
.sf-archive-hd {
  background: linear-gradient(160deg, #0A1628, #132240, #1a3358);
  padding: 30px 0 48px; text-align: center;
  position: relative; overflow: hidden;
}
.sf-archive-hd::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 30px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.sf-archive-hd h1 { color: #fff; position: relative; z-index: 2; }
.sf-archive-hd p { color: rgba(255,255,255,.5); position: relative; z-index: 2; font-size: .86rem; margin-top: 4px; }

/* Breadcrumbs */
.sf-bc { padding: 10px 0; font-size: .72rem; color: var(--tx-muted); }
.sf-bc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sf-bc li { display: inline-flex; align-items: center; gap: 6px; }
.sf-bc a { color: var(--tx-secondary); background: var(--bg-muted); border: 1px solid var(--border-light); padding: 4px 10px; border-radius: var(--r-pill); font-weight: 600; }
.sf-bc a:hover { color: var(--c-blue); background: rgba(37,99,235,.06); }
.sf-bc .sf-bc-sep { opacity: .4; }
.sf-bc .sf-bc-cur { color: var(--tx-muted); background: var(--bg-muted); border: 1px solid var(--border-light); padding: 4px 10px; border-radius: var(--r-pill); font-weight: 600; max-width: 65vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pagination */
.sf-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; grid-column: 1/-1; }
.sf-pagination a, .sf-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: var(--r-sm); font-size: .84rem; font-weight: 700; transition: .2s;
}
.sf-pagination a { background: var(--bg-card); border: 1px solid var(--border); color: var(--tx); }
.sf-pagination a:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.sf-pagination .current { background: var(--c-primary); color: #fff; border: 1px solid var(--c-primary); }
[data-theme="dark"] .sf-pagination .current { background: var(--c-accent); color: #0A1628; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.sf-cta { padding: 28px 0 36px; }
.sf-cta-box {
  background: linear-gradient(135deg, #0A1628, #1a3358);
  border-radius: var(--r-xl); padding: 34px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.sf-cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(212,168,67,.06) 0%, transparent 70%); pointer-events: none; }
.sf-cta-box h2 { color: #fff; margin-bottom: 6px; font-size: 1.25rem; position: relative; }
.sf-cta-box p { color: rgba(255,255,255,.55); max-width: 400px; margin: 0 auto 16px; font-size: .86rem; position: relative; }
.sf-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--c-accent), #C49432);
  color: #0A1628; border-radius: var(--r-md);
  font-weight: 700; font-size: .88rem;
  transition: .2s; position: relative;
  box-shadow: 0 4px 14px rgba(212,168,67,.2);
}
.sf-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,67,.35); color: #0A1628; }

/* ============================================================
   FOOTER
   ============================================================ */
.sf-footer { background: #070E18; color: rgba(255,255,255,.7); padding: 40px 0 0; }
.sf-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sf-footer-brand .sf-logo-t strong { color: #fff; }
.sf-footer-brand p { color: rgba(255,255,255,.4); margin-top: 10px; font-size: .8rem; line-height: 1.65; }
.sf-footer-social { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.sf-footer-social a {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: .72rem; transition: .2s; font-weight: 700;
}
.sf-footer-social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #0A1628; }
.sf-footer h4 { color: #fff; font-size: .82rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--f-body); font-weight: 700; }
.sf-footer-links { list-style: none; }
.sf-footer-links li { margin-bottom: 6px; }
.sf-footer-links a { color: rgba(255,255,255,.4); font-size: .8rem; transition: .2s; }
.sf-footer-links a:hover { color: var(--c-accent); }
.sf-footer-btm { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; font-size: .7rem; color: rgba(255,255,255,.25); }
.sf-footer-btm a { color: rgba(255,255,255,.3); }
.sf-footer-btm a:hover { color: var(--c-accent); }

/* Author Page */
.sf-author-avatar-lg { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,.2); background: var(--bg-muted); }
.sf-author-avatar-lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ============================================================
   MISC
   ============================================================ */
.sf-404 { text-align: center; padding: 48px 16px; }
.sf-404 h1 { font-size: 4rem; opacity: .08; margin-bottom: -10px; }
.sf-page-hd { background: linear-gradient(160deg, #0A1628, #132240); padding: 30px 0 48px; text-align: center; position: relative; overflow: hidden; }
.sf-page-hd::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 30px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.sf-page-hd h1 { color: #fff; position: relative; z-index: 2; }
.sf-page-body { background: var(--bg-card); border-radius: var(--r-lg); border: 1px solid var(--border-light); padding: 28px; max-width: 720px; margin: 20px auto 40px; }
.sf-page-body p { font-size: .96rem; line-height: 1.85; }
.sf-comments { background: var(--bg-card); border-radius: var(--r-lg); border: 1px solid var(--border-light); padding: 20px; margin-top: 16px; }
.comment-list { list-style: none; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.comment:last-child { border-bottom: none; }
.sf-comments label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 2px; }
.sf-comments input[type="text"], .sf-comments input[type="email"], .sf-comments textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: .86rem; margin-bottom: 8px; outline: none;
  background: var(--bg); color: var(--tx); transition: border-color .2s;
}
.sf-comments input:focus, .sf-comments textarea:focus { border-color: var(--c-blue); }
.sf-comments input[type="submit"] {
  background: var(--c-primary); color: #fff; padding: 10px 22px;
  border: none; border-radius: var(--r-sm); font-weight: 700; cursor: pointer; font-size: .86rem;
  font-family: var(--f-body);
}
[data-theme="dark"] .sf-comments input[type="submit"] { background: var(--c-accent); color: #0A1628; }

/* Back to Top */
.sf-back-top {
  position: fixed; bottom: clamp(24px, 5vh, 40px); right: 18px;
  width: 44px; height: 44px;
  background: var(--c-primary); color: #fff;
  border: none; border-radius: var(--r-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: var(--shadow-lg);
  z-index: 999; -webkit-tap-highlight-color: transparent;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s, background .2s;
}
[data-theme="dark"] .sf-back-top { background: var(--c-accent); color: #0A1628; }
.sf-back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sf-back-top:hover { background: var(--c-blue); }
[data-theme="dark"] .sf-back-top:hover { background: var(--c-accent-glow); }

/* Fade Animations */
.sf-fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.sf-fade.in { opacity: 1; transform: none; }

/* Align helpers */
.alignleft { float: left; margin: 0 14px 6px 0; }
.alignright { float: right; margin: 0 0 6px 14px; }
.aligncenter { display: block; margin: 0 auto 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px) {
  .sf-posts-layout, .sf-single-grid { grid-template-columns: 1fr; }
  .sf-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sf-nl { grid-column: 1/-1; }
  .sf-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sf-featured-card { grid-template-columns: 1fr; }
  .sf-featured-img { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-muted); aspect-ratio: var(--thumb-ratio); display:flex; align-items:center; justify-content:center; padding: 0; box-sizing: border-box; }
  .sf-related-grid { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
  .sf-topbar-r { display: none; }
  .sf-nav { display: none; }
  .sf-ham { display: flex; }
  .sf-hero { padding: 32px 0 54px; }
  .sf-hero h1 { font-size: 1.3rem; }
  .sf-hero-form { flex-direction: column; }
  .sf-hero-form button { width: 100%; }
  .sf-hero-stats { gap: 14px; }
  .sf-hero-stat strong { font-size: 1rem; }
  .sf-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sf-card-grid { grid-template-columns: 1fr; gap: 12px; }
  .sf-sidebar { grid-template-columns: 1fr; }
  .sf-footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .sf-footer-btm { flex-direction: column; gap: 4px; text-align: center; }
  .sf-post-nav { grid-template-columns: 1fr; }
  .sf-article-in { padding: 18px 16px; }
  .sf-author-box { flex-direction: column; align-items: center; text-align: center; }
  .sf-slide { min-width: 195px; max-width: 195px; }
  .sf-share { flex-wrap: wrap; }
  .sf-car-prev { left: -5px; }
  .sf-car-next { right: -5px; }
  .sf-car-btn { width: 32px; height: 32px; font-size: 16px; }
}
@media(max-width:480px) {
  .sf-container { padding: 0 12px; }
  .sf-hero { padding: 24px 0 44px; }
  .sf-hero h1 { font-size: 1.15rem; }
  .sf-card-body h3 { font-size: .85rem; }
  .sf-card-body { padding: 10px 12px 12px; }
  .sf-slide { min-width: 168px; max-width: 168px; }
  .sf-related-grid { grid-template-columns: 1fr; }
}

/* --- Content headings (professional highlighted) --- */
.sf-article-body h2{
  position:relative;
  margin:32px 0 16px;
  font-size:1.35rem;
  padding:14px 18px 14px 22px;
  background:linear-gradient(135deg, rgba(212,168,67,.07) 0%, rgba(37,99,235,.04) 100%);
  border-left:4px solid var(--c-accent);
  border-radius:2px 14px 14px 2px;
  color:var(--c-primary);
  line-height:1.35;
  scroll-margin-top:calc(var(--header-h) + 24px);
}
.sf-article-body h2::after{
  content:'';position:absolute;bottom:0;left:22px;right:22px;height:1px;
  background:linear-gradient(90deg,var(--c-accent),transparent);opacity:.25;
}
[data-theme="dark"] .sf-article-body h2{
  background:linear-gradient(135deg, rgba(212,168,67,.08) 0%, rgba(37,99,235,.06) 100%);
}
.sf-article-body h3{
  margin:24px 0 12px;
  font-size:1.18rem;
  padding:10px 16px 10px 18px;
  border-left:3px solid var(--c-blue);
  background:rgba(37,99,235,.04);
  border-radius:2px 10px 10px 2px;
  color:var(--c-primary);
  scroll-margin-top:calc(var(--header-h) + 24px);
}
[data-theme="dark"] .sf-article-body h3{background:rgba(37,99,235,.07);}
.sf-article-body h4{
  margin:20px 0 10px;
  font-size:1.05rem;
  padding:8px 14px;
  border-left:3px solid var(--c-green);
  background:rgba(5,150,105,.04);
  border-radius:2px 8px 8px 2px;
  color:var(--c-primary);
  scroll-margin-top:calc(var(--header-h) + 24px);
}
[data-theme="dark"] .sf-article-body h4{background:rgba(5,150,105,.07);}

/* Entry-content headings (page.php / generic) */
.entry-content h2,
.entry-content h3,
.entry-content h4{
  border-left: 4px solid var(--c-accent);
  border-radius: 2px 12px 12px 2px;
}
.entry-content h2{margin:28px 0 14px; font-size:1.35rem; padding:14px 18px 14px 22px; background:linear-gradient(135deg, rgba(212,168,67,.07), rgba(37,99,235,.04));}
.entry-content h3{margin:22px 0 12px; font-size:1.18rem; padding:10px 16px; background:rgba(37,99,235,.04); border-left-color:var(--c-blue);}
.entry-content h4{margin:18px 0 10px; font-size:1.05rem; padding:8px 14px; background:rgba(5,150,105,.04); border-left-color:var(--c-green);}

/* Thumbnails: handled by v9 comprehensive image rules below */

/* Badges slightly more transparent */
.sf-badge{opacity:.88; text-shadow: 0 1px 2px rgba(0,0,0,.22);}

/* ============================================================
   ENGAGEMENT: Estimated Read Time Pill on Cards
   ============================================================ */
.sf-card-ft .sf-time {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .68rem; color: var(--tx-muted);
  background: var(--bg-muted); padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* ============================================================
   ENGAGEMENT: Sticky Mobile CTA Bar (Single Post)
   ============================================================ */
.sf-sticky-cta{
  position:fixed;bottom:0;left:0;right:0;
  background:var(--bg-glass);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  backdrop-filter:blur(16px) saturate(160%);
  border-top:1px solid var(--border-light);
  padding:10px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  z-index:998;
  transform:translateY(100%);opacity:0;
  transition:transform .35s ease,opacity .3s ease;
}
.sf-sticky-cta.show{transform:translateY(0);opacity:1;}
.sf-sticky-cta .sf-sticky-title{
  font-size:.78rem;font-weight:700;color:var(--tx);
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
  flex:1;min-width:0;
}
.sf-sticky-cta .sf-sticky-share{
  display:flex;gap:6px;flex-shrink:0;
}
.sf-sticky-cta .sf-sticky-share a{
  width:32px;height:32px;border-radius:var(--r-sm);
  display:flex;align-items:center;justify-content:center;
  font-size:.68rem;font-weight:700;color:#fff;transition:.2s;
}
@media(min-width:769px){.sf-sticky-cta{display:none;}}

/* ============================================================
   ENGAGEMENT: Reading progress percentage badge
   ============================================================ */
.sf-read-pct{
  position:fixed;bottom:110px;right:18px;
  width:40px;height:40px;
  border-radius:50%;
  background:var(--c-primary);color:#fff;
  font-size:.64rem;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  z-index:997;opacity:0;pointer-events:none;
  transition:opacity .3s,bottom .3s;
  box-shadow:var(--shadow-md);
  font-family:var(--f-body);
}
[data-theme="dark"] .sf-read-pct{background:var(--c-accent);color:#0A1628;}
.sf-read-pct.show{opacity:1;}
/* When sticky CTA is visible, push % badge + back-to-top up */
.sf-sticky-cta.show ~ .sf-read-pct,.sf-read-pct.cta-up{bottom:160px;}
.sf-sticky-cta.show ~ .sf-back-top,.sf-back-top.cta-up{bottom:100px !important;}
@media(max-width:768px){.sf-read-pct{bottom:108px;right:14px;width:36px;height:36px;font-size:.58rem;}.sf-read-pct.cta-up{bottom:160px;}}

/* ============================================================
   ENGAGEMENT: Smooth hover reveals on cards
   ============================================================ */
.sf-card:hover .sf-card-body h3 a{color:var(--c-blue);}
.sf-card .sf-more{transition:gap .2s,color .2s;}
.sf-card:hover .sf-more{gap:6px;color:var(--c-accent);}

/* ============================================================
   ENGAGEMENT: Key Info Highlight Box (for single post scholarship details)
   ============================================================ */
.sf-key-info{
  background:linear-gradient(135deg, rgba(212,168,67,.06), rgba(37,99,235,.04));
  border:1px solid rgba(212,168,67,.15);
  border-radius:var(--r-lg);
  padding:16px 20px;
  margin-bottom:18px;
  display:flex;flex-wrap:wrap;gap:10px;
  align-items:center;
}
[data-theme="dark"] .sf-key-info{
  background:linear-gradient(135deg, rgba(212,168,67,.1), rgba(37,99,235,.07));
  border-color:rgba(212,168,67,.2);
}
.sf-key-info .sf-pill{font-size:.75rem;padding:5px 12px;}

/* ============================================================
   ENGAGEMENT: "Keep Reading" nudge after related posts
   ============================================================ */
.sf-keep-reading{
  text-align:center;padding:20px 16px;margin-top:16px;
  background:var(--bg-muted);border-radius:var(--r-lg);
  border:1px dashed var(--border);
}
.sf-keep-reading p{font-size:.86rem;color:var(--tx-secondary);margin-bottom:10px;}
.sf-keep-reading a{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 22px;background:var(--c-primary);color:#fff;
  border-radius:var(--r-sm);font-weight:700;font-size:.84rem;transition:.2s;
}
[data-theme="dark"] .sf-keep-reading a{background:var(--c-accent);color:#0A1628;}
.sf-keep-reading a:hover{transform:translateY(-1px);box-shadow:var(--shadow-md);color:#fff;}
[data-theme="dark"] .sf-keep-reading a:hover{color:#0A1628;}


/* ============================================================
   BOTTOM MOVING STRIP (Home + Category)
   ============================================================ */
.sf-bottom-strip { margin: 26px 0 0; }
.sf-bottom-strip .sf-strip-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px; }
.sf-bottom-strip .sf-strip-head h3 { font-size: 1.05rem; margin: 0; }
.sf-strip-track { overflow:hidden; border-radius: var(--r-lg); border: 1px solid var(--border-light); background: var(--bg-card); }
.sf-strip-run { display:flex; gap: 10px; padding: 12px; width: max-content; animation: sfStrip 55s linear infinite; }
.sf-strip-track:hover .sf-strip-run { animation-play-state: paused; }
@keyframes sfStrip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sf-strip-item { display:flex; align-items:center; gap: 10px; padding: 8px 10px; border-radius: 14px; border:1px solid var(--border-light); background: rgba(12,45,72,.03); min-width: 260px; max-width: 320px; }
.sf-strip-item:hover { background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.18); }
.sf-strip-item .sf-strip-img{width:88px;aspect-ratio:var(--thumb-ratio);border-radius:14px;overflow:hidden;background:var(--bg-muted);padding:0;flex:0 0 auto}
.sf-strip-item img{width:100%;height:100%;display:block;object-fit:contain;object-position:center;border-radius:0;background:var(--bg-muted)}
.sf-strip-item .sf-strip-title { font-size: .86rem; font-weight: 750; line-height: 1.25; color: var(--tx); display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
@media(max-width: 820px){
  .sf-strip-item{ min-width: 220px; }
  .sf-strip-item .sf-strip-img{ width: 76px; }
}
@media(max-width: 520px){
  .sf-strip-item{ min-width: 190px; }
  .sf-strip-item .sf-strip-img{ width: 70px; padding:0; }
}


/* ============================================================
   v9.0 — COMPREHENSIVE IMAGE FIX (all contexts)
   Images fill container proportionally. NEVER crop awkwardly.
   Backend originals untouched. Frontend CSS handles display.
   ============================================================ */
/* Universal image container rules */
.sf-card-img,
.sf-slide-img,
.sf-featured-img,
.sf-strip-item .sf-strip-img,
.sf-related-thumb,
.sf-article-hero,
.sf-recent-thumb {
  overflow: hidden;
  background: var(--bg-muted);
  position: relative;
}
/* Universal image display — CONTAIN for main images (never crop designed thumbnails) */
.sf-card-img img,
.sf-slide-img img,
.sf-featured-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  image-rendering: auto;
  background: var(--bg-muted);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Small thumbnails — always show full image (no crop) */
.sf-strip-item img,
.sf-related-thumb img,
.sf-recent-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  image-rendering: auto;
  background: var(--bg-muted);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Article hero: keep Discover ratio, never crop */
.sf-article-hero {
  aspect-ratio: var(--thumb-ratio);
  max-height: none;
  border-radius: var(--r-lg);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-article-hero img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--bg-muted);
}
/* Sidebar recent thumb */
.sf-recent-thumb {
  width: 64px; height: 48px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* ============================================================
   v9.0 — SIDEBAR CATEGORY TABS
   ============================================================ */
.sf-widget-tabs { padding: 14px; }
.sf-widget-tabs .sf-widget-title { padding: 0 4px 8px; }
.sf-tab-btns {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.sf-tab-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: .72rem; font-weight: 700;
  color: var(--tx-secondary);
  cursor: pointer; transition: .2s;
  font-family: var(--f-body);
  white-space: nowrap;
}
.sf-tab-btn:hover { border-color: var(--c-blue); color: var(--c-blue); }
.sf-tab-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
[data-theme="dark"] .sf-tab-btn.active { background: var(--c-accent); color: #0A1628; border-color: var(--c-accent); }
.sf-tab-panel { display: none; }
.sf-tab-panel.active { display: block; }
.sf-tab-viewall {
  display: block; text-align: center; margin-top: 8px;
  font-size: .76rem; font-weight: 700; color: var(--c-blue);
  padding: 6px; border-radius: var(--r-sm);
  transition: .2s;
}
.sf-tab-viewall:hover { background: rgba(37,99,235,.06); }

/* Recent list with thumbnails */
.sf-recent-row {
  display: flex; gap: 10px; align-items: center;
}
.sf-recent-info { flex: 1; min-width: 0; }
.sf-recent li { padding: 7px 0; }

/* ============================================================
   v9.0 — E-E-A-T TRUST SIGNALS
   ============================================================ */
.sf-eeat-bar {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 10px 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(5,150,105,.05), rgba(37,99,235,.04));
  border: 1px solid rgba(5,150,105,.12);
  border-radius: var(--r-md);
  font-size: .76rem;
}
.sf-eeat-item { display: flex; align-items: center; gap: 4px; color: var(--tx-secondary); font-weight: 500; }
.sf-eeat-item a { color: var(--c-blue); font-weight: 700; }
[data-theme="dark"] .sf-eeat-bar { background: linear-gradient(135deg, rgba(5,150,105,.1), rgba(37,99,235,.07)); border-color: rgba(5,150,105,.2); }

/* Author label + expertise */
.sf-author-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tx-muted); font-weight: 700; margin-bottom: 2px; }
.sf-author-expertise { font-size: .76rem; color: var(--c-green); font-weight: 600; margin-bottom: 4px; }

/* Trust widget */
.sf-trust-widget { padding: 16px; }
.sf-trust-badge { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.sf-trust-icon { font-size: 22px; flex-shrink: 0; }
.sf-trust-badge strong { display: block; font-size: .82rem; color: var(--tx); font-weight: 700; }
.sf-trust-badge small { font-size: .72rem; color: var(--tx-secondary); line-height: 1.4; }
.sf-trust-stats { display: flex; gap: 8px; }
.sf-trust-stat {
  flex: 1; text-align: center;
  padding: 8px 4px; background: var(--bg-muted);
  border-radius: var(--r-sm);
}
.sf-trust-stat strong { display: block; font-size: .88rem; color: var(--c-primary); font-weight: 800; font-family: var(--f-body); }
.sf-trust-stat span { font-size: .6rem; color: var(--tx-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* Helpful feedback */
.sf-helpful {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 16px;
  background: var(--bg-muted); border-radius: var(--r-md);
  font-size: .82rem; color: var(--tx-secondary); font-weight: 600;
}
.sf-helpful-btn {
  padding: 6px 14px; border: 1px solid var(--border);
  border-radius: var(--r-pill); background: var(--bg-card);
  cursor: pointer; font-size: .78rem; font-weight: 700;
  transition: .2s; font-family: var(--f-body); color: var(--tx);
}
.sf-helpful-btn:hover { border-color: var(--c-blue); background: rgba(37,99,235,.06); }
.sf-helpful-btn.voted { background: var(--c-green); color: #fff; border-color: var(--c-green); }
.sf-helpful-thanks { font-size: .78rem; color: var(--c-green); font-weight: 700; }

/* ============================================================
   v9.0 — MOBILE OPTIMIZATION + SMALL DETAIL FIXES
   ============================================================ */
/* Back-to-top smooth transition when CTA pushes it */
.sf-back-top { transition: opacity .2s, transform .2s, background .2s, bottom .3s ease; }
.sf-back-top.cta-up { bottom: 56px !important; }
@media(max-width:768px) {
  .sf-back-top.cta-up { bottom: 62px !important; }
  /* Sticky CTA: proper safe area on iPhone */
  .sf-sticky-cta { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* Mobile card grid: single column on small screens */
@media(max-width:480px) {
  .sf-card-img { border-radius: 12px; }
  .sf-card { border-radius: 14px; }
  .sf-card-body { padding: 10px 12px 12px; }
  .sf-card-body h3 { font-size: .84rem; }
  .sf-card-ft { font-size: .7rem; }
  /* Better touch targets */
  .sf-card-ft a, .sf-share a, .sf-tab-btn { min-height: 44px; display: inline-flex; align-items: center; }
  /* Readable text */
  .sf-article-body { font-size: .92rem; line-height: 1.72; }
  .sf-article-body h2 { font-size: 1.15rem; padding: 10px 14px 10px 16px; }
  .sf-article-body h3 { font-size: 1.05rem; }
  /* Hero image mobile */
  .sf-article-hero { max-height: 260px; border-radius: var(--r-md); }
  .sf-article-hero img { max-height: 260px; }
  /* Key info pills wrap nicely */
  .sf-key-info { gap: 5px; }
  .sf-pill { font-size: .68rem; padding: 4px 8px; }
  /* Sidebar tabs scroll on mobile */
  .sf-tab-btns { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sf-tab-btns::-webkit-scrollbar { display: none; }
  /* E-E-A-T bar stack on mobile */
  .sf-eeat-bar { flex-direction: column; gap: 4px; font-size: .72rem; }
  /* Key Highlights mobile */
  .sf-highlights-box { padding: 12px 14px; margin: 10px 0 14px; }
  .sf-highlights-title { font-size: .82rem; }
  .sf-highlights-list { font-size: .8rem; }
  .sf-highlights-list li { margin-bottom: 5px; }
  /* E-E-A-T bottom mobile */
  .sf-eeat-bottom { padding: 12px 14px; }
  .sf-eeat-heading { font-size: .78rem; }
  /* Share buttons */
  .sf-share { flex-wrap: wrap; }
  .sf-share a { min-width: 38px; min-height: 38px; }
  /* Related grid single column */
  .sf-related-grid { grid-template-columns: 1fr !important; }
}

/* Tablet tweaks */
@media(min-width:481px) and (max-width:768px) {
  .sf-article-body { font-size: .94rem; }
  .sf-card-img { border-radius: 14px; }
}

/* Smooth scroll for TOC links */
html { scroll-behavior: smooth; }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Post navigation: better mobile layout */
.sf-post-nav { display: flex; gap: 8px; margin-top: 16px; }
.sf-post-nav a {
  flex: 1; padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-md); text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.sf-post-nav a:hover { border-color: var(--c-blue); box-shadow: var(--shadow-sm); }
.sf-nav-label { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-muted); font-weight: 700; margin-bottom: 2px; }
.sf-nav-title { display: block; font-size: .78rem; color: var(--tx); font-weight: 600; line-height: 1.3; }
@media(max-width:480px) {
  .sf-post-nav { flex-direction: column; }
}

/* Apply button: high visibility CTA */
.sf-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--c-green), #059669);
  color: #fff; font-weight: 800; font-size: .88rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5,150,105,.25);
  transition: transform .15s, box-shadow .15s;
  font-family: var(--f-body);
}
.sf-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,.35); color: #fff; }

/* Meta chips on cards */
.sf-meta-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }

/* Skeleton/placeholder for no-image cards */
.sf-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg) 100%);
}

/* ============================================================
   v9.0 — E-E-A-T ADDITIONAL CSS
   ============================================================ */
/* "Last updated" prominence on post meta */
.sf-pmeta span:last-child { opacity: .7; }
.sf-pmeta a { font-weight: 600; }

/* Author page: better card spacing */
.sf-archive-grid { gap: 16px; }
@media(max-width:480px) { .sf-archive-grid { gap: 12px; } }

/* Better link underlines in content for accessibility */
.sf-article-body a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(37,99,235,.3); }
.sf-article-body a:hover { text-decoration-color: var(--c-blue); }

/* Focus visible for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Print styles */
@media print {
  .sf-header, .sf-footer, .sf-sidebar, .sf-share, .sf-sticky-cta, .sf-read-pct,
  .sf-back-top, .sf-progress, .sf-keep-reading, .sf-helpful, .sf-toc { display: none !important; }
  .sf-article-body { font-size: 12pt; line-height: 1.6; }
  .sf-single-grid { display: block; }
}

/* Footer disclaimer */
.sf-disclaimer {
  text-align: center; padding: 8px 16px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sf-disclaimer small {
  font-size: .62rem; color: rgba(255,255,255,.35);
  line-height: 1.5; display: block; max-width: 700px; margin: 0 auto;
}

/* ============================================================
   v10.0 — SCHOLARSHIP INFO CARD
   ============================================================ */
.sf-info-card {
  background: var(--bg-card); border: 2px solid var(--c-blue);
  border-radius: var(--r-xl); padding: 0; margin: 18px 0;
  overflow: hidden; box-shadow: 0 4px 20px rgba(37,99,235,.08);
}
.sf-info-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(37,99,235,.02));
  border-bottom: 1px solid var(--border-light);
}
.sf-info-title { font-weight: 800; font-size: .88rem; color: var(--c-primary); font-family: var(--f-body); }
.sf-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0;
}
.sf-info-item {
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.sf-info-item:last-child { border-right: none; }
.sf-info-icon { font-size: 1.1rem; margin-bottom: 2px; }
.sf-info-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-muted); font-weight: 700; }
.sf-info-value { font-size: .84rem; font-weight: 700; color: var(--tx); margin-top: 2px; line-height: 1.35; }
.sf-info-cta { padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-info-hint { font-size: .64rem; color: var(--tx-muted); }
@media(max-width:480px) {
  .sf-info-grid { grid-template-columns: 1fr 1fr; }
  .sf-info-item { padding: 10px 14px; }
}
/* Status badges */
.sf-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sf-status-open { background: rgba(16,185,129,.12); color: #059669; }
.sf-status-soon { background: rgba(245,158,11,.12); color: #d97706; }
.sf-status-urgent { background: rgba(239,68,68,.12); color: #dc2626; animation: pulse-urgent 1.5s infinite; }
.sf-status-closed { background: rgba(107,114,128,.12); color: #6b7280; }
@keyframes pulse-urgent { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
[data-theme="dark"] .sf-status-open { background: rgba(16,185,129,.2); }
[data-theme="dark"] .sf-status-soon { background: rgba(245,158,11,.2); }
[data-theme="dark"] .sf-status-urgent { background: rgba(239,68,68,.2); }
[data-theme="dark"] .sf-info-card { border-color: rgba(37,99,235,.4); }
/* Countdown */
.sf-countdown { display: inline-block; font-size: .66rem; color: var(--c-blue); font-weight: 600; margin-left: 4px; }

/* ============================================================
   v10.0 — QUICK SUMMARY BOX
   ============================================================ */
.sf-summary-box {
  background: linear-gradient(135deg, rgba(212,168,67,.08), rgba(212,168,67,.03));
  border-left: 4px solid var(--c-accent); border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 18px; margin: 16px 0;
}
.sf-summary-title { font-weight: 800; font-size: .82rem; color: var(--c-primary); margin-bottom: 8px; font-family: var(--f-body); }
.sf-summary-list { margin: 0; padding: 0 0 0 18px; font-size: .82rem; line-height: 1.6; color: var(--tx); }
.sf-summary-list li { margin-bottom: 3px; }
.sf-summary-list li::marker { color: var(--c-accent); }
[data-theme="dark"] .sf-summary-box { background: linear-gradient(135deg, rgba(212,168,67,.1), rgba(212,168,67,.03)); }

/* ============================================================
   v10 — KEY HIGHLIGHTS BOX (after title, before article)
   ============================================================ */
.sf-highlights-box {
  background: linear-gradient(135deg, rgba(37,99,235,.04), rgba(212,168,67,.04));
  border: 1px solid rgba(37,99,235,.12);
  border-left: 4px solid var(--c-blue);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 16px 20px; margin: 12px 0 16px;
  position: relative; overflow: hidden;
}
.sf-highlights-box::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(212,168,67,.08), transparent 70%);
  border-radius: 50%; transform: translate(20px, -20px);
}
.sf-highlights-title {
  font-weight: 800; font-size: .88rem; color: var(--c-primary);
  margin-bottom: 10px; font-family: var(--f-body);
  display: flex; align-items: center; gap: 6px;
}
[data-theme="dark"] .sf-highlights-title { color: var(--c-accent); }
.sf-highlights-list {
  margin: 0; padding: 0 0 0 4px; list-style: none;
  font-size: .84rem; line-height: 1.65; color: var(--tx);
}
.sf-highlights-list li {
  margin-bottom: 6px; padding-left: 20px; position: relative;
}
.sf-highlights-list li::before {
  content: '✦'; position: absolute; left: 0; top: 0;
  color: var(--c-blue); font-size: .72rem; font-weight: 700;
}
[data-theme="dark"] .sf-highlights-box {
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(212,168,67,.05));
  border-color: rgba(37,99,235,.2);
}
[data-theme="dark"] .sf-highlights-list li::before { color: var(--c-accent); }

/* ============================================================
   v10 — E-E-A-T BOTTOM BAR (editorial info at article end)
   ============================================================ */
.sf-eeat-bottom {
  margin: 20px 0 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(5,150,105,.04), rgba(37,99,235,.03));
  border: 1px solid rgba(5,150,105,.12);
  border-radius: var(--r-lg);
  flex-direction: column;
  gap: 6px;
}
.sf-eeat-heading {
  font-weight: 800; font-size: .84rem; color: var(--c-primary);
  margin-bottom: 4px; font-family: var(--f-body);
}
[data-theme="dark"] .sf-eeat-heading { color: var(--c-green-light, #6EE7B7); }
.sf-eeat-bottom .sf-eeat-item {
  font-size: .76rem; padding: 2px 0;
}
.sf-eeat-note {
  display: block; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(5,150,105,.08);
  font-size: .68rem; color: var(--tx-muted); line-height: 1.5; font-style: italic;
}
[data-theme="dark"] .sf-eeat-bottom {
  background: linear-gradient(135deg, rgba(5,150,105,.08), rgba(37,99,235,.05));
  border-color: rgba(5,150,105,.18);
}

/* IST/UTC timezone label */
.sf-pmeta .sf-tz-label {
  font-size: .58rem; font-weight: 700; padding: 1px 5px;
  border-radius: var(--r-pill); background: var(--bg-muted);
  color: var(--tx-muted); vertical-align: middle; margin-left: 2px;
}

/* ============================================================
   v10.0 — BOTTOM APPLY CTA
   ============================================================ */
.sf-bottom-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 20px;
  background: linear-gradient(135deg, rgba(5,150,105,.06), rgba(5,150,105,.02));
  border: 1px solid rgba(5,150,105,.15); border-radius: var(--r-lg); margin: 20px 0; flex-wrap: wrap;
}
.sf-bottom-cta-text { font-size: .82rem; line-height: 1.5; }
.sf-bottom-cta-text strong { display: block; font-size: .9rem; color: var(--tx); }
.sf-bottom-cta-text span { color: var(--tx-muted); font-size: .76rem; }
@media(max-width:480px) { .sf-bottom-cta { flex-direction: column; text-align: center; } }

/* Share CTA */
.sf-share-cta { text-align: center; padding: 12px; background: var(--bg-muted); border-radius: var(--r-md); margin: 12px 0; }
.sf-share-cta p { margin: 0; font-size: .78rem; color: var(--tx-muted); }

/* Sticky Apply button */
.sf-sticky-apply {
  padding: 7px 16px !important; background: linear-gradient(135deg, var(--c-green), #059669) !important;
  color: #fff !important; border-radius: var(--r-pill) !important;
  font-weight: 800 !important; font-size: .72rem !important; text-decoration: none;
  box-shadow: 0 2px 8px rgba(5,150,105,.3);
}

/* Author meta small */
.sf-author-meta-small { font-size: .66rem; color: var(--tx-muted); margin-top: -2px; margin-bottom: 4px; }

/* ============================================================
   v10.0 — ENHANCED 404 PAGE
   ============================================================ */
.sf-404-page { text-align: center; padding: 40px 20px; }
.sf-404-num { font-size: 4rem; font-weight: 900; color: var(--c-primary); opacity: .15; line-height: 1; font-family: var(--f-display); }
.sf-404-title { font-size: 1.4rem; margin: 10px 0 8px; color: var(--tx); font-weight: 700; }
.sf-404-desc { color: var(--tx-muted); font-size: .88rem; margin-bottom: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
.sf-404-search { max-width: 360px; margin: 0 auto 24px; }
.sf-404-search input { width: 100%; padding: 12px 16px; border: 2px solid var(--border-light); border-radius: var(--r-pill); font-size: .86rem; background: var(--bg-card); color: var(--tx); }
.sf-404-search input:focus { border-color: var(--c-blue); outline: none; }
.sf-404-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.sf-404-links a { padding: 8px 18px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; color: var(--tx); text-decoration: none; transition: all .2s; }
.sf-404-links a:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* Card status overlay on post cards */
.sf-card-status { position: absolute; top: 10px; right: 10px; z-index: 2; }
