/*
Theme Name:  Sasa Apply
Theme URI:   https://sasaapply.co.tz
Author:      Sasa Apply Team
Author URI:  https://sasaapply.co.tz
Description: Simple, clean, mobile-first WordPress theme for Sasa Apply — Tanzania's job and scholarship platform. Includes Jobs, Scholarships, CV Services and Contact pages. Optimised for Astra + Elementor.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sasa-apply
Tags:        jobs, scholarships, tanzania, mobile-first, blue, simple, lightweight
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:        #0d1f3c;
  --blue:        #1a56db;
  --blue-light:  #3b82f6;
  --blue-pale:   #eff6ff;
  --accent:      #0ea5e9;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-light:  #e2e8f0;
  --gray:        #94a3b8;
  --gray-dark:   #475569;
  --text:        #1e293b;
  --green:       #16a34a;
  --green-pale:  #f0fdf4;
  --gold:        #f59e0b;
  --red:         #ef4444;
  --whatsapp:    #25d366;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 16px rgba(13,31,60,0.08);
  --shadow-md:   0 4px 32px rgba(13,31,60,0.12);
  --font-head:   'Plus Jakarta Sans', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden;
}
/* ── Prevent WordPress / Gutenberg from shrinking the layout ── */
#page, #content, .site, .site-content,
main#content, #colophon {
  width: 100% !important;
  max-width: 100% !important;
}
/* ── Kill any top padding/margin on main content area (causes white gap below sticky header) ── */
main#content,
#content,
.site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* ── Heroes must sit flush against the header ── */
main#content > .sa-page-hero:first-child,
main#content > .sa-schol-hero:first-child,
#content > .sa-schol-hero,
.sa-schol-hero {
  margin-top: 0 !important;
  padding-top: 40px !important;
}
/* Override WP block editor content-width cap on single posts */
.wp-site-blocks, .entry-content, .wp-block-post-content,
.is-layout-constrained > *, .is-layout-flow > *,
.wp-block, .wp-block-group, .wp-block-cover,
/* Single post pages — all possible body classes WP might assign */
.single-job #content,
.single-scholarship #content,
.sa-single-job #content,
.sa-single-scholarship #content,
.post-type-job,
.post-type-scholarship,
body.single-job,
body.single-scholarship,
body.sa-single-job,
body.sa-single-scholarship {
  max-width: 100% !important;
  width: 100% !important;
}
/* Layout container — always full width up to 1140px */
.sa-single-layout {
  width: 100% !important;
  max-width: 1140px !important;
  box-sizing: border-box !important;
}
#masthead { width: 100% !important; }
.sa-page-hero { width: 100% !important; box-sizing: border-box; }
footer, footer#colophon { width: 100% !important; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
ul, ol { list-style: none; padding: 0; margin: 0; }
button, input, select, textarea { font-family: var(--font-body); }

/* ============================================================
   LAYOUT
   ============================================================ */
.sa-wrap   { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sa-section { padding: 64px 20px; }
.sa-section--alt { background: var(--off-white); }
.sa-section--blue { background: var(--navy); color: var(--white); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#masthead {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
  width: 100% !important;
  left: 0; right: 0;
  box-sizing: border-box;
  overflow: visible;
}
.sa-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* logo left */
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;            /* vertical padding keeps logo from touching edges */
  min-height: 90px;
  box-sizing: border-box;
}

/* Logo */
/* Logo */
.sa-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;          /* never let nav squash the logo */
  text-decoration: none;
}
/* Base rule */
.sa-logo img {
  height: 66px;            /* fits comfortably inside the padded header */
  width: auto !important;
  max-width: 340px !important;
  display: block !important;
  object-fit: contain !important;
}
.sa-logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
  line-height: 1;
}
.sa-logo-text em { color: var(--accent); font-style: normal; }
.sa-logo-tag { font-size: 0.62rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

/* Nav links */
.sa-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;                 /* take remaining space */
  justify-content: center; /* center nav links */
}
.sa-nav-menu a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 13px; border-radius: 8px;
  transition: all .18s;
}
.sa-nav-menu a:hover, .sa-nav-menu a.active {
  color: var(--white); background: rgba(255,255,255,0.1);
}
.sa-nav-cta {
  background: var(--whatsapp); color: var(--white) !important;
  border-radius: 8px; padding: 8px 14px !important;
  font-weight: 700 !important; display: flex; align-items: center; gap: 6px;
}
.sa-nav-cta:hover { background: #1ebe5d !important; color: var(--white) !important; }

/* Mobile toggle */
.sa-menu-toggle {
  display: none; background: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white); padding: 7px 11px; border-radius: 8px;
  font-size: 1.1rem; cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.sa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; border: none;
  cursor: pointer; transition: all .22s; text-decoration: none;
  font-family: var(--font-body);
}
.sa-btn--primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 4px 14px rgba(26,86,219,0.35);
}
.sa-btn--primary:hover { background: #1447c0; color: var(--white); transform: translateY(-2px); }
.sa-btn--outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.sa-btn--outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.sa-btn--white { background: var(--white); color: var(--navy); }
.sa-btn--white:hover { background: var(--blue-pale); color: var(--blue); transform: translateY(-2px); }
.sa-btn--whatsapp {
  background: var(--whatsapp); color: var(--white);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.sa-btn--whatsapp:hover { background: #1ebe5d; color: var(--white); transform: translateY(-2px); }
.sa-btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.sa-btn--full { width: 100%; justify-content: center; }
.sa-btn--apply {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,86,219,0.3);
}
.sa-btn--apply:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,86,219,0.4); color: var(--white); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.sa-tag {
  display: inline-block;
  background: var(--blue-pale); color: var(--blue);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 14px;
}
.sa-tag--green { background: var(--green-pale); color: var(--green); }
.sa-tag--gold  { background: #fffbeb; color: var(--gold); }
.sa-section-title {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  color: var(--navy); line-height: 1.2; margin-bottom: 12px;
}
.sa-section-title--white { color: var(--white); }
.sa-section-sub { font-size: 1rem; color: var(--gray-dark); margin-bottom: 36px; line-height: 1.7; }
.sa-section-sub--white { color: rgba(255,255,255,0.75); }
.sa-center { text-align: center; }
.sa-center .sa-section-sub { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO
   ============================================================ */
.sa-hero {
  background: linear-gradient(145deg, var(--navy) 0%, #1a3a6b 55%, #1a56db 100%);
  padding: 72px 20px 80px;
  position: relative; overflow: hidden;
}
.sa-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sa-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.sa-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 7px 16px; border-radius: 30px; margin-bottom: 24px;
}
.sa-hero h1 {
  font-family: var(--font-head);
  font-size: 2.8rem; font-weight: 800; color: var(--white);
  line-height: 1.18; margin-bottom: 16px;
}
.sa-hero h1 span { color: var(--accent); }
.sa-hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.75;
}

/* Search bar */
.sa-search {
  display: flex; gap: 8px; align-items: center;
  background: var(--white); border-radius: 14px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
  max-width: 640px; margin: 0 auto 24px;
}
.sa-search input {
  flex: 1; border: none; outline: none;
  font-size: 1rem; color: var(--text); background: transparent;
}
.sa-search select {
  border: none; outline: none; background: var(--off-white);
  border-radius: 8px; padding: 9px 13px;
  font-size: 0.88rem; color: var(--gray-dark); cursor: pointer;
}
.sa-search button {
  background: var(--blue); color: var(--white); border: none;
  padding: 11px 24px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 700; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.sa-search button:hover { background: #1447c0; }

/* Quick links */
.sa-hero-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sa-hero-links a {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 15px; border-radius: 30px;
  font-size: 0.82rem; font-weight: 500; transition: all .18s;
}
.sa-hero-links a:hover { background: rgba(255,255,255,0.2); color: var(--white); }

/* ============================================================
   STATS BAR
   ============================================================ */
.sa-stats {
  background: var(--white); border-bottom: 1px solid var(--gray-light);
  padding: 22px 20px;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.sa-stat-num {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--blue);
}
.sa-stat-label { font-size: 0.82rem; color: var(--gray); font-weight: 500; }

/* ============================================================
   SECTION HEADER ROW
   ============================================================ */
.sa-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.sa-view-all {
  font-size: 0.88rem; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.sa-view-all:hover { color: var(--navy); }

/* ============================================================
   JOB CARDS
   ============================================================ */
.sa-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px; }
.sa-job-card {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all .22s;
  text-decoration: none; display: block; color: var(--text);
  position: relative;
}
.sa-job-card:hover {
  border-color: var(--blue-light); box-shadow: var(--shadow-md);
  transform: translateY(-3px); color: var(--text);
}
.sa-job-card--featured { border-color: var(--gold); }
.sa-job-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: var(--white);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 3px 9px; border-radius: 20px;
}
.sa-job-badge--new { background: var(--green); }
.sa-job-logo {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 1rem;
  flex-shrink: 0; margin-bottom: 14px;
  overflow: hidden;
}
.sa-job-logo img { width: 100%; height: 100%; object-fit: cover; }
.sa-job-company { font-size: 0.82rem; color: var(--gray-dark); margin-bottom: 4px; font-weight: 500; }
.sa-job-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--navy); margin-bottom: 10px; line-height: 1.35;
}
.sa-job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.sa-job-tag {
  background: var(--off-white); color: var(--gray-dark);
  font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
}
.sa-job-tag--type { background: var(--blue-pale); color: var(--blue); }
.sa-job-tag--deadline { background: #fff7ed; color: #c2410c; }
.sa-job-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.sa-job-salary { font-weight: 700; color: var(--green); font-size: 0.88rem; }

/* ============================================================
   SCHOLARSHIP CARDS
   ============================================================ */
.sa-schol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px; }
.sa-schol-card {
  background: var(--white); border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all .22s; text-decoration: none; color: var(--text); display: block;
}
.sa-schol-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.sa-schol-flag { font-size: 2rem; margin-bottom: 12px; }
.sa-schol-country { font-size: 0.78rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.sa-schol-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.sa-schol-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.sa-schol-deadline { font-size: 0.78rem; color: #c2410c; font-weight: 600; background: #fff7ed; padding: 3px 10px; border-radius: 6px; }
.sa-schol-eligibility { font-size: 0.78rem; color: var(--gray-dark); background: var(--off-white); padding: 3px 10px; border-radius: 6px; font-weight: 500; }

/* ============================================================
   CV SERVICE CARD (homepage teaser)
   ============================================================ */
.sa-cv-teaser {
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; color: var(--white);
}
.sa-cv-teaser h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.sa-cv-teaser p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 0; }
.sa-cv-price {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  color: var(--accent); white-space: nowrap;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.sa-wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--whatsapp); color: var(--white) !important;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all .22s; text-decoration: none;
}
.sa-wa-float:hover { transform: scale(1.1); color: var(--white) !important; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.sa-page-hero {
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  padding: 56px 20px 52px; text-align: center;
  margin-top: 0 !important;
  display: block;
}
.sa-page-hero h1 {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  color: var(--white); margin-bottom: 10px;
}
.sa-page-hero p { font-size: 1rem; color: rgba(255,255,255,0.78); max-width: 540px; margin: 0 auto; }

/* ============================================================
   SINGLE JOB / SCHOLARSHIP PAGE
   ============================================================ */
.sa-single-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; max-width: 1140px; margin: 0 auto; padding: 48px 20px;
}
.sa-single-card {
  background: var(--white); border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg); padding: 32px;
}
.sa-single-header {
  display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 1.5px solid var(--gray-light);
}
.sa-single-logo {
  width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 1.4rem;
}
.sa-single-company { font-size: 0.9rem; color: var(--gray-dark); margin-bottom: 4px; }
.sa-single-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.sa-single-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-detail-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.sa-detail-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.sa-detail-label { font-size: 0.78rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; }
.sa-detail-value { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.sa-body-content { line-height: 1.8; color: var(--gray-dark); word-break: break-word; overflow-wrap: break-word; overflow: hidden; max-width: 100%; }
.sa-body-content h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; word-break: break-word; }
.sa-body-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.sa-body-content ul li { margin-bottom: 6px; word-break: break-word; }
.sa-body-content p { margin-bottom: 14px; word-break: break-word; overflow-wrap: break-word; }
.sa-body-content table { width: 100%; max-width: 100%; table-layout: fixed; overflow-x: auto; display: block; word-break: break-word; }
.sa-body-content img { max-width: 100%; height: auto; }

/* Sidebar */
.sa-sidebar-box {
  background: var(--white); border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.sa-sidebar-box h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 16px; }
.sa-sidebar-box p { font-size: 0.88rem; color: var(--gray-dark); line-height: 1.65; margin-bottom: 14px; }
.sa-cv-promo {
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  color: var(--white);
}
.sa-cv-promo h4 { color: var(--white) !important; }
.sa-cv-promo p { color: rgba(255,255,255,0.75) !important; }
.sa-deadline-box { background: #fff7ed; border-color: #fed7aa; }
.sa-deadline-box h4 { color: #c2410c !important; }

/* ============================================================
   CV SERVICES PAGE
   ============================================================ */
.sa-cv-hero { background: linear-gradient(135deg, var(--navy), #1a3a6b); padding: 64px 20px; text-align: center; color: var(--white); }
.sa-cv-price-big {
  font-family: var(--font-head); font-size: 4rem; font-weight: 800;
  color: var(--accent); margin: 16px 0;
}
.sa-cv-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; margin: 40px 0; }
.sa-cv-feat {
  background: var(--white); border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg); padding: 26px; text-align: center;
  transition: all .22s;
}
.sa-cv-feat:hover { border-color: var(--blue-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.sa-cv-feat-icon { font-size: 2rem; margin-bottom: 12px; }
.sa-cv-feat h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.sa-cv-feat p { font-size: 0.88rem; color: var(--gray-dark); line-height: 1.6; }
.sa-cv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; counter-reset: steps; margin-top: 32px; }
.sa-cv-step { text-align: center; }
.sa-cv-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: var(--white); font-family: var(--font-head); font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.sa-cv-step h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.sa-cv-step p { font-size: 0.88rem; color: var(--gray-dark); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.sa-contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; max-width: 1000px; margin: 0 auto; }
.sa-form-wrap { background: var(--white); border: 1.5px solid var(--gray-light); border-radius: var(--radius-lg); padding: 36px; }
.sa-form-wrap h3 { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }
.sa-form-wrap > p { font-size: 0.9rem; color: var(--gray-dark); margin-bottom: 24px; }
.sa-field { margin-bottom: 18px; }
.sa-field label { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; display: block; }
.sa-field input, .sa-field select, .sa-field textarea {
  width: 100%; border: 2px solid var(--gray-light); border-radius: 9px;
  padding: 11px 15px; font-size: 0.95rem; color: var(--text);
  outline: none; transition: border-color .2s; background: var(--white);
}
.sa-field input:focus, .sa-field textarea:focus { border-color: var(--blue-light); }
.sa-field textarea { height: 120px; resize: vertical; }
.sa-contact-info-box { background: var(--off-white); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.sa-contact-info-box h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.sa-contact-row { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.sa-contact-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.sa-contact-label { font-weight: 700; font-size: 0.85rem; color: var(--navy); margin-bottom: 2px; }
.sa-contact-val { font-size: 0.88rem; color: var(--gray-dark); }

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.sa-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.sa-archive-card {
  background: var(--white); border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .22s;
  text-decoration: none; color: var(--text); display: block;
}
.sa-archive-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.sa-archive-thumb { height: 160px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.sa-archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sa-archive-body { padding: 20px; }
.sa-archive-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 6px; }
.sa-archive-title { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.sa-archive-meta { font-size: 0.78rem; color: var(--gray); }

/* ============================================================
   PAGINATION
   ============================================================ */
.sa-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.sa-pagination a, .sa-pagination span {
  padding: 9px 15px; border-radius: 8px;
  border: 1.5px solid var(--gray-light); font-size: 0.9rem; font-weight: 600;
  color: var(--gray-dark); transition: all .18s; text-decoration: none;
}
.sa-pagination a:hover { border-color: var(--blue-light); color: var(--blue); }
.sa-pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ============================================================
   NOTICE / ALERT
   ============================================================ */
.sa-notice {
  padding: 14px 18px; border-radius: 9px; font-size: 0.9rem; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.sa-notice--success { background: var(--green-pale); color: #15803d; border: 1.5px solid #86efac; }
.sa-notice--info    { background: var(--blue-pale);  color: var(--blue);  border: 1.5px solid #93c5fd; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 52px 20px 28px;
}
.sa-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; max-width: 1140px; margin: 0 auto 40px;
}
.sa-footer-desc { font-size: 0.88rem; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.sa-footer-col-title { font-weight: 700; color: var(--white); margin-bottom: 14px; font-size: 0.9rem; }
.sa-footer-links li { margin-bottom: 9px; }
.sa-footer-links a { color: rgba(255,255,255,0.6); font-size: 0.86rem; transition: color .18s; }
.sa-footer-links a:hover { color: var(--white); }
.sa-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; flex-wrap: wrap; gap: 10px; max-width: 1140px; margin: 0 auto;
}
/* Legal links — own clearly visible row above copyright */
.sa-footer-legal-row {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0 0;
  margin-top: 10px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.sa-footer-legal-links {
  display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center;
  justify-content: center;
}
.sa-footer-legal-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color .18s, background .18s;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  margin: 4px;
}
.sa-footer-legal-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
}
.sa-social { display: flex; gap: 10px; flex-direction: row !important; }
.sa-social a {
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--white) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: background .18s, transform .18s; text-decoration: none;
}
.sa-social a:hover { opacity: 0.85; }

/* ============================================================
   WOOCOMMERCE
   ============================================================ */
.woocommerce .button, .woocommerce button.button {
  background: var(--blue) !important; color: var(--white) !important;
  border-radius: 9px !important; font-family: var(--font-body) !important;
  font-weight: 700 !important; border: none !important;
  transition: all .2s !important;
}
.woocommerce .button:hover { background: #1447c0 !important; }
.woocommerce .price { color: var(--blue) !important; font-weight: 800 !important; }

/* ============================================================
   WP JOB MANAGER
   ============================================================ */
.job_listings { list-style: none !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px !important; }
.job_listing {
  background: var(--white) !important; border: 1.5px solid var(--gray-light) !important;
  border-radius: var(--radius-lg) !important; padding: 20px !important;
  transition: all .22s !important;
}
.job_listing:hover { border-color: var(--blue-light) !important; box-shadow: var(--shadow) !important; transform: translateY(-2px) !important; }
.job_listing .position h3 { font-family: var(--font-head) !important; color: var(--navy) !important; font-size: 1rem !important; font-weight: 700 !important; }
.job-type { border-radius: 6px !important; font-size: 0.72rem !important; font-weight: 700 !important; }
.job-type.full-time  { background: var(--blue-pale) !important; color: var(--blue) !important; }
.job-type.part-time  { background: var(--green-pale) !important; color: var(--green) !important; }
.job-type.internship { background: #fffbeb !important; color: var(--gold) !important; }

/* ============================================================
   RESPONSIVE — mobile-first breakpoints
   ============================================================ */
@media (max-width: 900px) {
  .sa-nav-menu { display: none; }
  .sa-nav-menu.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 12px 20px 20px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .sa-nav-menu.open a { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); display: block; }
  .sa-nav-menu.open li:last-child a { border-bottom: none; }
  .sa-menu-toggle { display: block; }
  /* Make sure header is the positioning parent for the dropdown */
  #masthead { position: sticky; top: 0; }
  .sa-header-inner { position: relative; }
  .sa-hero h1 { font-size: 2rem; }
  .sa-single-layout { grid-template-columns: 1fr; }
  .sa-contact-grid { grid-template-columns: 1fr; }
  .sa-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sa-cv-teaser { flex-direction: column; text-align: center; }
  .sa-section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .sa-hero { padding: 52px 20px 60px; }
  .sa-hero h1 { font-size: 1.7rem; }
  .sa-search { flex-direction: column; padding: 12px; gap: 10px; }
  .sa-search select, .sa-search button { width: 100%; }
  .sa-section { padding: 48px 20px; }
  .sa-stats { gap: 24px; }
  .sa-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .sa-footer-bottom { flex-direction: column; text-align: center; }
  .sa-jobs-grid, .sa-schol-grid { grid-template-columns: 1fr; }
  .sa-cv-price-big { font-size: 3rem; }
  .sa-single-header { flex-direction: column; }
  .sa-page-hero h1 { font-size: 1.8rem; }
}

/* ============================================================
   LOGO — large and clear on ALL devices
   ============================================================ */
/* ── HEADER LOGO — every possible WP wrapper selector ── */
#masthead .sa-logo img,
#masthead .sa-logo a img,
#masthead .sa-logo .custom-logo-link img,
#masthead .sa-logo img.custom-logo,
.sa-logo img,
.sa-logo a img,
.sa-logo .custom-logo-link img,
.sa-logo img.custom-logo {
  height: 66px !important;      /* fits inside header with 12px top+bottom padding */
  width: auto !important;
  max-width: 320px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: left center !important;
}
/* ── FOOTER LOGO ── */
.sa-footer-brand-col img,
.sa-footer-brand-col a img,
.sa-footer-brand-col .custom-logo-link img,
.sa-footer-brand-col .custom-logo-link img.custom-logo {
  height: 80px !important;
  width: auto !important;
  max-width: 320px !important;
  display: block !important;
  object-fit: contain !important;
  opacity: 1 !important;
}
/* Tablet */
@media (max-width: 900px) {
  #masthead .sa-logo img,
  .sa-logo img,
  .sa-logo a img,
  .sa-logo .custom-logo-link img {
    height: 56px !important;
    max-width: 260px !important;
  }
}
/* Mobile */
@media (max-width: 600px) {
  #masthead .sa-logo img,
  .sa-logo img,
  .sa-logo a img,
  .sa-logo .custom-logo-link img {
    height: 48px !important;
    max-width: 200px !important;
  }
  .sa-footer-brand-col img,
  .sa-footer-brand-col a img,
  .sa-footer-brand-col .custom-logo-link img {
    height: 64px !important;
  }
}

/* ============================================================
   SOCIAL ICONS — small circles, horizontal row, brand colors
   ============================================================ */
.sa-footer-socials {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}
.sa-social-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  color: #ffffff !important;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  border: none;
  outline: none;
}
.sa-social-btn:hover {
  transform: translateY(-3px) scale(1.12);
  box-shadow: 0 5px 16px rgba(0,0,0,0.28);
  color: #ffffff !important;
  text-decoration: none;
}
.sa-social-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
/* Official brand colours */
.sa-social-btn--facebook  { background: #1877F2 !important; }
.sa-social-btn--facebook:hover  { background: #1464d0 !important; }
.sa-social-btn--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888) !important; }
.sa-social-btn--instagram:hover { filter: brightness(1.15); }
.sa-social-btn--youtube   { background: #FF0000 !important; }
.sa-social-btn--youtube:hover   { background: #cc0000 !important; }
.sa-social-btn--whatsapp  { background: #25D366 !important; }
.sa-social-btn--whatsapp:hover  { background: #1ebe5d !important; }

/* ── WordPress custom logo wrapper cleanup ── */
.sa-logo .custom-logo-link,
.sa-footer-brand-col .custom-logo-link {
  display: block;
  line-height: 0;
  padding: 0;
  margin: 0;
}

/* ============================================================
   PAGE CONTENT (About Us, Privacy Policy, etc.)
   ============================================================ */
.sa-page-content { max-width: 860px; }
.sa-page-content h2 {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 800;
  color: var(--navy); margin: 36px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-pale);
}
.sa-page-content h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin: 24px 0 8px;
}
.sa-page-content p { margin-bottom: 16px; color: var(--gray-dark); line-height: 1.85; }
.sa-page-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.sa-page-content ul li { margin-bottom: 8px; color: var(--gray-dark); line-height: 1.7; }
.sa-page-content a { color: var(--blue); text-decoration: underline; }
.sa-page-content strong { color: var(--navy); }

/* ============================================================
   NUCLEAR FULL-WIDTH OVERRIDE
   Must be last — beats every WP/Gutenberg injected style
   ============================================================ */
html, body {
  width: 100% !important;
  max-width: 100% !important;
}
/* Every possible body class combination for single posts */
body.single-job .sa-single-layout,
body.single-scholarship .sa-single-layout,
body.sa-single-job .sa-single-layout,
body.sa-single-scholarship .sa-single-layout,
.sa-single-layout {
  max-width: 1140px !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-job,
body.single-scholarship,
body.sa-single-job,
body.sa-single-scholarship,
body.page {
  max-width: 100% !important;
  width: 100% !important;
}
/* Stop WP block editor from setting a narrow content width */
:root {
  --wp--style--global--content-size: 100% !important;
  --wp--style--global--wide-size: 100% !important;
}

/* ── FINAL LOGO SAFETY NET — runs after everything else ── */
#masthead { overflow: visible !important; }
.sa-logo, .sa-logo a, .sa-logo .custom-logo-link {
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
}

/* ============================================================
   SINGLE SCHOLARSHIP PAGE — FULL REDESIGN
   Fixes: narrow layout, word overflow, content cut-off
   ============================================================ */

/* ── Hero banner ── */
.sa-schol-hero {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 60%, #1a56db 100%);
  padding: 40px 0 36px;          /* no left/right padding — hero is truly full-width */
  text-align: center;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  /* Kill any whitespace injected by WP/Astra between header and hero */
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block;
}
.sa-schol-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;               /* padding lives here, not on the outer hero */
}
.sa-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.sa-breadcrumb a    { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.sa-breadcrumb a:hover { color: #fff; }
.sa-breadcrumb span { color: rgba(255,255,255,.35); }
.sa-breadcrumb span:last-child {
  color: rgba(255,255,255,.85);
  /* Truncate very long titles in breadcrumb */
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.sa-schol-hero-flag  { font-size: 3.2rem; margin-bottom: 10px; line-height: 1; }
.sa-schol-hero-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  /* CRITICAL: prevent long titles from overflowing */
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.sa-schol-hero-country {
  font-size: 0.95rem;
  color: rgba(255,255,255,.70);
  font-weight: 500;
}

/* ── Page wrapper — always full viewport width ── */
.sa-schol-page-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  padding: 40px 0 60px;          /* no left/right padding — full width */
  margin: 0 !important;
}

/* ── Two-column layout ── */
.sa-schol-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;               /* horizontal breathing room inside the full-width wrap */
  align-items: start;
}

/* ── Main column ── */
.sa-schol-main {
  min-width: 0;          /* CRITICAL: allows grid child to shrink below content size */
  width: 100%;
  box-sizing: border-box;
}

/* ── Meta chips ── */
.sa-schol-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.sa-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-chip--country  { background: #eff6ff; color: #1e40af; }
.sa-chip--deadline { background: #fff7ed; color: #c2410c; }
.sa-chip--funded   { background: #f0fdf4; color: #15803d; }

/* ── Details grid ── */
.sa-schol-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.sa-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sa-detail-item-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.sa-detail-value {
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── Scholarship body content ── */
.sa-schol-content {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 28px;
  /* CRITICAL: prevent content overflow */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
/* All prose elements inside content */
.sa-schol-content *,
.sa-schol-content p,
.sa-schol-content li,
.sa-schol-content td,
.sa-schol-content th {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.sa-schol-content h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0d1f3c;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eff6ff;
}
.sa-schol-content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1f3c;
  margin: 24px 0 8px;
}
.sa-schol-content h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0 6px;
}
.sa-schol-content p {
  margin-bottom: 16px;
  color: #475569;
  line-height: 1.85;
  font-size: 0.97rem;
}
.sa-schol-content ul,
.sa-schol-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
  list-style: disc;
}
.sa-schol-content ol { list-style: decimal; }
.sa-schol-content li {
  margin-bottom: 7px;
  color: #475569;
  line-height: 1.75;
}
/* Links in content */
.sa-schol-content a {
  color: #1a56db;
  text-decoration: underline;
  word-break: break-all; /* break long URLs */
}
.sa-schol-content a:hover { color: #0d1f3c; }
/* Tables responsive */
.sa-schol-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
.sa-schol-content th,
.sa-schol-content td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: left;
}
/* Images in content */
.sa-schol-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}
/* Strong / em */
.sa-schol-content strong { color: #0d1f3c; font-weight: 700; }
.sa-schol-content em     { font-style: italic; }
/* Blockquote */
.sa-schol-content blockquote {
  border-left: 4px solid #1a56db;
  padding: 12px 20px;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-style: italic;
  color: #334155;
}

/* ── Apply CTA banner ── */
.sa-schol-apply-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 8px;
}
.sa-schol-apply-cta-text h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 6px;
}
.sa-schol-apply-cta-text p {
  font-size: 0.88rem;
  color: #166534;
  margin: 0;
}
.sa-schol-apply-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Sidebar ── */
.sa-schol-sidebar {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.sa-sidebar-box {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.sa-sidebar-box h4 {
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 700;
  color: #0d1f3c;
  margin-bottom: 10px;
}
.sa-sidebar-box p {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 14px;
}
.sa-deadline-box   { background: #fff7ed; border-color: #fed7aa; }
.sa-deadline-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c2410c;
  font-family: var(--font-head);
  word-break: break-word;
  margin-bottom: 8px;
}
.sa-sidebar-apply-box { background: #eff6ff; border-color: #bfdbfe; }
.sa-sidebar-apply-box h4 { color: #1e40af; }
.sa-cv-promo {
  background: linear-gradient(135deg, #0d1f3c, #1a3a6b);
  border-color: transparent;
}
.sa-cv-promo h4 { color: #fff !important; }
.sa-cv-promo p  { color: rgba(255,255,255,.75) !important; }

/* More scholarships items */
.sa-sidebar-more-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.sa-sidebar-more-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sa-sidebar-more-flag { font-size: 1.3rem; flex-shrink: 0; line-height: 1.4; }
.sa-sidebar-more-text a {
  font-weight: 700;
  font-size: 0.86rem;
  color: #0d1f3c;
  line-height: 1.4;
  display: block;
  text-decoration: none;
  word-break: break-word;
}
.sa-sidebar-more-text a:hover { color: #1a56db; text-decoration: underline; }
.sa-sidebar-more-text span {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .sa-schol-layout {
    grid-template-columns: 1fr;
  }
  .sa-schol-sidebar {
    /* On tablet/mobile sidebar goes below main */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
  }
  .sa-schol-sidebar .sa-sidebar-box { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .sa-schol-page-wrap { padding: 24px 14px 48px; }
  .sa-schol-hero      { padding: 28px 14px 24px; }
  .sa-schol-hero-title { font-size: 1.4rem; }
  .sa-schol-content   { padding: 20px 16px; }
  .sa-schol-apply-cta { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .sa-schol-apply-cta-btns { width: 100%; flex-direction: column; }
  .sa-schol-apply-cta-btns .sa-btn { width: 100%; justify-content: center; }
  .sa-schol-details-grid { grid-template-columns: 1fr; }
  .sa-schol-sidebar  { grid-template-columns: 1fr; }
  .sa-breadcrumb span:last-child { max-width: 180px; }
}

/* ── Kill any legacy narrow overrides that may affect scholarship pages ── */
body.single-scholarship .sa-single-layout,
body.single-scholarship .entry-content,
body.single-scholarship #content,
body.single-scholarship main {
  max-width: 100% !important;
  width: 100% !important;
}

/* ============================================================
   ASTRA THEME OVERRIDE — Kill all wrappers that add whitespace/padding
   around hero sections on job and scholarship single pages.
   Astra injects: #primary > .ast-article-single > .entry-content
   All of these add padding that creates the white gap above hero.
   ============================================================ */

/* Strip padding/margin from ALL Astra/WP content wrappers on single pages */
body.single-job #primary,
body.single-job .ast-article-single,
body.single-job .entry-content,
body.single-job .entry-header,
body.single-scholarship #primary,
body.single-scholarship .ast-article-single,
body.single-scholarship .entry-content,
body.single-scholarship .entry-header {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Astra's .ast-container and .container add horizontal padding — remove on these pages */
body.single-job .ast-container,
body.single-job .container,
body.single-job #content .ast-row,
body.single-scholarship .ast-container,
body.single-scholarship .container,
body.single-scholarship #content .ast-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Astra article layout — no padding above hero */
body.single-job article,
body.single-scholarship article {
  padding: 0 !important;
  margin: 0 !important;
}

/* The hero must be the very first visible element after the sticky nav */
body.single-job .sa-page-hero,
body.single-scholarship .sa-schol-hero {
  margin-top: 0 !important;
  padding-top: 36px !important; /* controlled padding, not margin */
  display: block !important;
}

/* Astra sometimes adds top padding to #content via inline style — override */
#content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* ============================================================
   v8 PATCH — Scholarship page layout aligned with job page
   The single-scholarship.php now uses the same HTML wrapper
   pattern as single-job.php so Astra cannot break the layout.
   These rules are minimal clean-up only — no CSS hacks needed.
   ============================================================ */

/* Ensure the full-width wrapper div in both single templates
   always breaks out of any theme container */
body.single-scholarship #page,
body.single-scholarship #content,
body.single-scholarship #primary,
body.single-scholarship main#content,
body.single-scholarship .ast-article-single,
body.single-scholarship .entry-content,
body.single-scholarship article {
  padding:    0 !important;
  margin-top: 0 !important;
  max-width:  100% !important;
  width:      100% !important;
  box-sizing: border-box !important;
}

/* Hero flush to header — matches .sa-page-hero rule already in place */
body.single-scholarship .sa-page-hero {
  margin-top: 0 !important;
}

/* Content word-wrap protection */
body.single-scholarship .sa-body-content,
body.single-scholarship .sa-body-content * {
  overflow-wrap: break-word;
  word-break:    break-word;
  max-width:     100%;
}

/* ============================================================
   CONTENT WIDTH FIX — single-job & single-scholarship
   Prevents text/content from overflowing the card area
   ============================================================ */

/* Make the single card itself never overflow its column */
.sa-single-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Sidebar must never push main column out of bounds */
.sa-single-layout > aside {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* All direct children of the layout grid must respect grid column width */
.sa-single-layout > * {
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Catch any long unbroken strings (URLs, file names) in job/scholarship content */
body.single-job .sa-body-content,
body.single-scholarship .sa-body-content,
body.single-job .sa-body-content *,
body.single-scholarship .sa-body-content * {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix embeds or iframes pasted into post content */
body.single-job .sa-body-content iframe,
body.single-scholarship .sa-body-content iframe {
  max-width: 100% !important;
  width: 100% !important;
}

/* Archive scholarship page — ensure section content fits */
body.archive.post-type-archive-scholarship .sa-section,
body.archive.post-type-archive-scholarship .sa-wrap {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body.archive.post-type-archive-scholarship .sa-schol-grid {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   BLOG SECTION — Online Jobs & Career Tips (archive-job.php)
   ============================================================ */
.sa-blog-section {
  padding: 64px 20px;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
}

/* ── Header row ── */
.sa-blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.sa-blog-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.2;
}
.sa-blog-subtitle {
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin: 0;
}

/* ── Grid — 3 columns desktop ── */
.sa-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ── */
.sa-blog-card {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sa-blog-card:hover {
  box-shadow: 0 8px 32px rgba(13,31,60,0.10);
  transform: translateY(-3px);
}

/* ── Thumbnail ── */
.sa-blog-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blue-pale);
  text-decoration: none;
}
.sa-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.sa-blog-card:hover .sa-blog-thumb img {
  transform: scale(1.04);
}
.sa-blog-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ── Card body ── */
.sa-blog-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Meta row: category + date ── */
.sa-blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sa-blog-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 3px 10px;
  border-radius: 20px;
}
.sa-blog-date {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ── Post title ── */
.sa-blog-post-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 10px;
}
.sa-blog-post-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s;
}
.sa-blog-post-title a:hover {
  color: var(--blue);
}

/* ── Excerpt ── */
.sa-blog-excerpt {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

/* ── Read More link ── */
.sa-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.18s, color 0.18s;
}
.sa-blog-read-more:hover {
  color: var(--navy);
  gap: 9px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sa-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-blog-title { font-size: 1.45rem; }
}
@media (max-width: 600px) {
  .sa-blog-section { padding: 48px 20px; }
  .sa-blog-grid { grid-template-columns: 1fr; }
  .sa-blog-header { flex-direction: column; align-items: flex-start; }
  .sa-blog-title { font-size: 1.3rem; }
}

/* ── JOBS FILTER BAR — CENTERED ─────────────────────────────── */
.sa-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.sa-filter-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.sa-filter-input {
  width: 280px;
  border: 1.5px solid var(--gray-light);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: .9rem;
  outline: none;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.sa-filter-input:focus {
  border-color: var(--blue);
}

.sa-filter-select {
  border: 1.5px solid var(--gray-light);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: .9rem;
  outline: none;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
}
.sa-filter-select:focus {
  border-color: var(--blue);
}

/* Mobile — stack inputs full width but keep centered */
@media (max-width: 600px) {
  .sa-filter-form {
    width: 100%;
  }
  .sa-filter-input,
  .sa-filter-select {
    width: 100%;
    flex: 1 1 100%;
  }
}
