/*
Theme Name: Noblefolio Abroad
Theme URI: https://apply.noblefolio.com
Author: Noblefolio
Description: Study Abroad & Scholarship content site for apply.noblefolio.com. Modelled after apply.recruitmenttrust.com. Built on Neve-compatible structure: full-width, no sidebar, Ubuntu Sans font, AdSense-ready, email popup, post listing with category tags.
Version: 1.0.0
Requires at least: 6.0
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: noblefolio-abroad
Tags: blog, education, scholarship, custom-menu, featured-images, full-width-template
*/

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

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  /* Colors - extracted from site inspection */
  --nv-primary-accent: #0066cc;
  --nv-secondary-accent: #004999;
  --nv-site-bg: #ffffff;
  --nv-text-color: #333333;
  --nv-light-bg: #f9f9f9;
  --nv-border: #e5e5e5;
  --nv-meta-color: #777777;

  /* Typography */
  --bodyfontfamily: 'Ubuntu Sans';
  --nv-fallback-ff: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bodyfontsize: 1rem;
  --bodylineheight: 1.7;
  --bodyfontweight: 400;
  --bodyletterspacing: 0;
  --bodytexttransform: none;

  /* Headings */
  --headingsfontfamily: 'Ubuntu Sans';
  --headingcolor: #111111;
  --h1fontsize: 2rem;       --h1fontweight: 700; --h1lineheight: 1.3;
  --h2fontsize: 1.6rem;     --h2fontweight: 700; --h2lineheight: 1.3;
  --h3fontsize: 1.3rem;     --h3fontweight: 700; --h3lineheight: 1.3;
  --h4fontsize: 1.1rem;     --h4fontweight: 600; --h4lineheight: 1.4;
  --h5fontsize: 1rem;       --h5fontweight: 600; --h5lineheight: 1.4;
  --h6fontsize: 0.9rem;     --h6fontweight: 600; --h6lineheight: 1.4;

  /* Buttons */
  --primarybtnbg: #0066cc;
  --primarybtncolor: #ffffff;
  --primarybtnhoverbg: #004999;
  --primarybtnhovercolor: #ffffff;
  --primarybtnborderradius: 3px;
  --primarybtnpadding: 13px 15px;
  --btnfontweight: 700;

  /* Layout */
  --container: 1200px;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--nv-site-bg); color: var(--nv-text-color);
  font-family: var(--bodyfontfamily), var(--nv-fallback-ff);
  font-size: var(--bodyfontsize); line-height: var(--bodylineheight);
  font-weight: var(--bodyfontweight); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: var(--headingsfontfamily), var(--nv-fallback-ff);
  color: var(--headingcolor); margin: 0 0 20px; }
h1 { font-size: var(--h1fontsize); font-weight: var(--h1fontweight); line-height: var(--h1lineheight); }
h2 { font-size: var(--h2fontsize); font-weight: var(--h2fontweight); line-height: var(--h2lineheight); }
h3 { font-size: var(--h3fontsize); font-weight: var(--h3fontweight); line-height: var(--h3lineheight); }
h4 { font-size: var(--h4fontsize); font-weight: var(--h4fontweight); line-height: var(--h4lineheight); }
p { margin: 0 0 20px; }
a { color: var(--nv-primary-accent); text-decoration: none; }
a:hover { opacity: 0.85; color: var(--nv-secondary-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; padding: 0 15px; margin: 0 auto; max-width: var(--container); }

/* =====================================================
   WRAPPER
   ===================================================== */
.wrapper { width: 100%; }

/* =====================================================
   HEADER
   ===================================================== */
.header { background: #fff; border-bottom: 1px solid var(--nv-border); position: sticky; top: 0; z-index: 1000; }

/* Desktop top header row */
.header--row { width: 100%; }
.header-top-inner .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.row--wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hfg-slot { display: flex; align-items: center; }
.hfg-slot.right { gap: 20px; }

/* LOGO */
.site-logo { display: flex; align-items: center; }
.site-logo .brand { text-decoration: none; }
.site-title {
  font-family: var(--headingsfontfamily), var(--nv-fallback-ff);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.nv-title-tagline-wrap small { display: none; }

/* PRIMARY NAV (Desktop) */
.nav-menu-primary { display: flex; align-items: center; }
.primary-menu-ul { display: flex; align-items: center; gap: 4px; }
.primary-menu-ul .menu-item a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.primary-menu-ul .menu-item a:hover,
.primary-menu-ul .menu-item.current-menu-item a {
  background: #f0f0f0;
  color: var(--nv-primary-accent);
}

/* Search icon */
.nv-search-icon-component { display: flex; align-items: center; }
.nv-search { color: #555; display: flex; align-items: center; cursor: pointer; }
.nv-search svg { width: 18px; height: 18px; fill: currentColor; }
.nv-nav-search { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff;
  border-bottom: 2px solid var(--nv-primary-accent); padding: 16px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.nv-nav-search.open { display: block; }
.nv-nav-search .search-form { display: flex; align-items: center; gap: 10px; }
.nv-nav-search .search-field { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px;
  font-size: 1rem; outline: none; }
.nv-nav-search .search-field:focus { border-color: var(--nv-primary-accent); }
.nv-nav-search .search-submit { background: var(--primarybtnbg); color: #fff; border: none;
  padding: 10px 18px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.close-responsive-search { background: none; border: none; cursor: pointer; padding: 8px; }

/* Mobile nav — hide desktop nav on mobile */
.header-main { display: none; background: #fff; border-bottom: 1px solid #eee; }
.header-main-inner .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.navbar-toggle { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.navbar-toggle .bars { display: flex; flex-direction: column; gap: 5px; }
.navbar-toggle .icon-bar { width: 24px; height: 2px; background: #333; border-radius: 2px; }

/* Mobile sidebar dropdown */
#header-menu-sidebar { display: none; position: fixed; inset: 0; background: rgba(14,20,35,0.97);
  z-index: 9999; padding: 20px; overflow-y: auto; flex-direction: column; gap: 8px; }
#header-menu-sidebar.open { display: flex; }
#header-menu-sidebar .menu-mobile { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 24px; }
#header-menu-sidebar .menu-mobile .menu-item a {
  display: block; padding: 14px 16px; color: rgba(255,255,255,0.85);
  font-size: 1.05rem; font-weight: 600; border-radius: 6px; transition: all 0.2s;
}
#header-menu-sidebar .menu-mobile .menu-item a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.header-menu-sidebar-overlay { display: none; }
.sidebar-close-btn { background: none; border: 2px solid rgba(255,255,255,0.3); color: #fff;
  font-size: 1.4rem; width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; align-self: flex-end; }

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.neve-main { padding: 0; }
.archive-container { padding: 30px 0 50px; }
.nv-index-posts { width: 100%; }

/* =====================================================
   AD BLOCK (above posts)
   ===================================================== */
.code-block { margin: 0 auto 20px; text-align: center; }
.code-block .ads-label {
  color: #505050; font-weight: bold; font-size: 10px; line-height: 1;
  letter-spacing: 0; margin: 8px 0 5px; display: block;
  text-transform: uppercase; text-align: right;
}
.rt-ad { text-align: center; }
.rt-ad ins { display: block; }

/* =====================================================
   POST CARDS — matching exact Neve blog layout
   ===================================================== */
.posts-wrapper { display: flex; flex-direction: column; gap: 0; }

article.nv-non-grid-article {
  border-bottom: 1px solid var(--nv-border);
  padding: 24px 0;
}
article.nv-non-grid-article:first-child { padding-top: 8px; }

.default-post.nv-ft-wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Thumbnail */
.nv-post-thumbnail-wrap.img-wrap {
  flex-shrink: 0;
  width: 280px;
}
.nv-post-thumbnail-wrap.img-wrap a { display: block; border-radius: 6px; overflow: hidden; }
.nv-post-thumbnail-wrap.img-wrap img {
  width: 280px;
  height: 187px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.nv-post-thumbnail-wrap.img-wrap a:hover img { transform: scale(1.03); }

/* Post content area */
.non-grid-content.default-layout-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Post title */
.blog-entry-title.entry-title {
  font-size: var(--h4fontsize);
  font-weight: var(--h4fontweight);
  line-height: 1.35;
  margin: 0;
  color: var(--headingcolor);
}
.blog-entry-title a { color: inherit; text-decoration: none; }
.blog-entry-title a:hover { color: var(--nv-primary-accent); opacity: 1; }

/* Category meta */
.nv-meta-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.nv-meta-list li { margin: 0; font-size: 0.78rem; font-weight: 600; }
.meta.category a {
  color: var(--nv-primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: 700;
}
.meta.category a:hover { opacity: 0.8; }

/* Excerpt */
.excerpt-wrap.entry-summary { margin: 0; }
.excerpt-wrap p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.excerpt-wrap .screen-reader-text { display: none; }
/* Hide the "read more" span that's inside the p as it's a screen-reader only span */
.excerpt-wrap a[rel="bookmark"] { display: none; }

/* =====================================================
   PAGINATION
   ===================================================== */
.nv-pagination, .pagination-wrap { display: flex; justify-content: center; padding: 32px 0 0; gap: 6px; }
.nv-pagination .page-numbers, .pagination-wrap .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--nv-border); border-radius: 4px;
  font-size: 0.875rem; font-weight: 600; color: #333; transition: all 0.2s;
}
.nv-pagination .page-numbers:hover, .nv-pagination .page-numbers.current {
  background: var(--nv-primary-accent); border-color: var(--nv-primary-accent); color: #fff;
}
.nv-pagination .page-numbers.dots { border: none; }

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-post-container { padding: 32px 0 50px; }
.entry-header { margin-bottom: 24px; }
.entry-header .entry-title { font-size: 1.9rem; line-height: 1.25; margin-bottom: 14px; }
.entry-header .nv-meta-list { margin-bottom: 16px; }

.nv-thumb-wrap { margin-bottom: 28px; border-radius: 8px; overflow: hidden; }
.nv-thumb-wrap img { width: 100%; height: auto; }

.entry-content { font-size: 1rem; line-height: 1.78; color: #333; }
.entry-content h2 { font-size: 1.4rem; margin: 30px 0 14px; }
.entry-content h3 { font-size: 1.15rem; margin: 24px 0 12px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content ul li { list-style: disc; margin-bottom: 6px; }
.entry-content ol li { list-style: decimal; margin-bottom: 6px; }
.entry-content a { text-decoration: underline; color: var(--nv-primary-accent); }
.entry-content blockquote {
  border-left: 4px solid var(--nv-primary-accent); padding: 14px 20px;
  background: #f5f8ff; border-radius: 0 6px 6px 0; margin: 20px 0;
  font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.entry-content table th { background: var(--nv-primary-accent); color: #fff; padding: 10px 14px; text-align: left; }
.entry-content table td { padding: 9px 14px; border-bottom: 1px solid #eee; }
.entry-content table tr:nth-child(even) td { background: #f9f9f9; }
.entry-content img { border-radius: 6px; margin: 16px 0; }

/* Scholarship info box (shortcode) */
.scholarship-info-box { border: 2px solid #e0e0e0; border-radius: 10px; overflow: hidden; margin: 24px 0; }

/* In-content apply button (eligibility) */
.apply-cta-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: #f0f7ff; border: 2px solid var(--nv-primary-accent);
  border-radius: 8px; padding: 18px 22px; gap: 16px; margin: 24px 0; flex-wrap: wrap;
}
.apply-cta-banner h4 { margin: 0 0 4px; font-size: 1rem; }
.apply-cta-banner p { margin: 0; font-size: 0.875rem; color: #555; }
.apply-btn {
  display: inline-block; background: var(--nv-primary-accent); color: #fff !important;
  padding: 12px 22px; border-radius: 4px; font-weight: 700; font-size: 0.9rem;
  text-decoration: none !important; white-space: nowrap;
}
.apply-btn:hover { background: var(--nv-secondary-accent); opacity: 1; }

/* Related posts */
.related-posts-section { border-top: 2px solid #eee; padding-top: 32px; margin-top: 40px; }
.related-posts-section h3 { margin-bottom: 20px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-post-card { border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.related-post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.related-post-card img { width: 100%; height: 140px; object-fit: cover; }
.related-post-card-body { padding: 14px; }
.related-post-card-title { font-size: 0.9rem; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.related-post-card-title a { color: #111; }
.related-post-card-title a:hover { color: var(--nv-primary-accent); }
.related-post-card-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--nv-primary-accent); margin-bottom: 6px; display: block; }

/* Post email CTA box */
.post-email-cta {
  background: linear-gradient(135deg, #0a2540 0%, #0066cc 100%);
  border-radius: 10px; padding: 28px 32px; text-align: center; margin: 32px 0; color: #fff;
}
.post-email-cta h3 { color: #fff; margin-bottom: 8px; }
.post-email-cta p { color: rgba(255,255,255,0.8); margin-bottom: 18px; }
.post-email-cta-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; }
.post-email-cta-form input[type="email"] {
  flex: 1; padding: 12px 14px; border-radius: 4px; border: none;
  font-size: 0.9rem; outline: none; min-width: 180px;
}
.post-email-cta-form button { background: #e8a020; color: #fff; border: none;
  padding: 12px 20px; border-radius: 4px; font-weight: 700; cursor: pointer; }

/* =====================================================
   SEARCH FORM (header)
   ===================================================== */
.search-form { display: flex; gap: 8px; align-items: center; }
.search-field { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem; width: 220px; outline: none; }
.search-field:focus { border-color: var(--nv-primary-accent); }
.search-submit { background: var(--primarybtnbg); color: #fff; border: none; padding: 8px 16px;
  border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 0.875rem; }
.search-submit:hover { background: var(--primarybtnhoverbg); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #f9f9f9; border-top: 1px solid #e0e0e0; padding: 20px 0; }
.footer-top-inner { padding: 14px 0; }
.hfg-grid-top { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.footer-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 0.85rem; }
.footer-links a { color: #555; transition: color 0.2s; }
.footer-links a:hover { color: var(--nv-primary-accent); }
.footer-links .sep { color: #ccc; }
.nv-contact-list { display: flex; gap: 16px; justify-content: center; }
.nv-contact-list li { font-size: 0.82rem; color: #888; }

/* =====================================================
   EMAIL POPUP (rt-webinar-popup-mailwizz style — exact match)
   ===================================================== */
.rtwpop-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center;
  z-index: 99999; padding: 14px;
}
.rtwpop-overlay.active { display: flex; }

.rtwpop-container {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.28);
  position: relative;
}

.rtwpop-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  border: none; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  font-size: 20px; line-height: 1; color: #111;
  cursor: pointer; opacity: 0.85;
}
.rtwpop-close:hover { opacity: 1; }

.rtwpop-content { padding: 22px 18px 18px; text-align: center; }

.rtwpop-greeting {
  font-weight: 900; letter-spacing: -0.5px;
  margin: 2px 0 8px;
  font-size: clamp(28px, 7vw, 44px);
}
.rtwpop-hey { color: #2f855a; }
.rtwpop-hi  { color: #e11d48; }

.rtwpop-headline {
  font-weight: 900; color: #3f3f46;
  margin: 0 0 8px; line-height: 1.08;
  font-size: clamp(20px, 6vw, 32px);
}

.rtwpop-subheadline {
  font-weight: 800; color: #52525b;
  margin: 0 0 14px; line-height: 1.15;
  font-size: clamp(16px, 4.8vw, 22px);
}

.rtwpop-field { margin: 10px 0; }
.rtwpop-field input {
  width: 100%; padding: 14px;
  font-size: 16px; border-radius: 12px;
  border: 2px solid #e5e7eb; outline: none;
  color: #111; background: #fff;
  font-family: var(--bodyfontfamily), var(--nv-fallback-ff);
}
.rtwpop-field input:focus { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(59,130,246,0.12); }

.rtwpop-submit {
  width: 100%; margin-top: 12px; padding: 14px;
  border: none; border-radius: 12px;
  background: #1f7ed1; color: #fff;
  font-size: 18px; font-weight: 900; letter-spacing: 0.6px;
  cursor: pointer; font-family: var(--bodyfontfamily), var(--nv-fallback-ff);
}
.rtwpop-submit:hover { filter: brightness(0.96); }
.rtwpop-submit--small { padding: 12px; font-size: 14px; letter-spacing: 0.3px; }

.rtwpop-privacy { font-size: 12px; color: #71717a; margin-top: 10px; }

.rtwpop-error {
  display: none; margin-top: 10px; padding: 10px;
  border-radius: 12px; background: #fff1f2;
  border: 1px solid #fecdd3; color: #9f1239;
  font-size: 13px; text-align: left;
}

.rtwpop-success { display: none; padding: 10px 0 0; }
.rtwpop-success.active { display: block; }
.rtwpop-success-title { font-size: 18px; font-weight: 900; color: #16a34a; margin-top: 6px; }
.rtwpop-success-text { font-size: 13px; color: #52525b; margin-top: 6px; }

@media (max-width: 360px) {
  .rtwpop-content { padding: 18px 14px 14px; }
  .rtwpop-close { top: 8px; right: 8px; border-radius: 8px; }
  .rtwpop-field input { padding: 12px; }
  .rtwpop-submit { font-size: 16px; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn, button[type="submit"],
input[type="submit"] {
  cursor: pointer; background: var(--primarybtnbg); color: var(--primarybtncolor);
  border: none; border-radius: var(--primarybtnborderradius);
  padding: var(--primarybtnpadding); font-weight: var(--btnfontweight);
  font-family: var(--bodyfontfamily), var(--nv-fallback-ff);
  transition: background 0.2s;
}
.btn:hover, button[type="submit"]:hover { background: var(--primarybtnhoverbg); color: var(--primarybtnhovercolor); }

/* =====================================================
   ARCHIVE / CATEGORY HERO
   ===================================================== */
.archive-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0066cc 100%);
  color: #fff; padding: 40px 0; margin-bottom: 32px;
}
.archive-hero h1 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.archive-hero p { color: rgba(255,255,255,0.8); margin: 0; font-size: 1rem; }
.archive-hero .breadcrumb { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-bottom: 12px; }
.archive-hero .breadcrumb a { color: rgba(255,255,255,0.8); }

/* =====================================================
   404 / SEARCH RESULTS
   ===================================================== */
.nv-404 { text-align: center; padding: 80px 0; }
.nv-404 h1 { font-size: 6rem; color: #eee; margin-bottom: 0; }
.nv-404 h2 { margin-bottom: 16px; }
.nv-404 p { color: #777; max-width: 440px; margin: 0 auto 28px; }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--nv-primary-accent); color: #fff;
  border: none; cursor: pointer; font-size: 1.2rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 500;
  transition: background 0.2s;
}
.back-to-top-btn.visible { display: flex; }
.back-to-top-btn:hover { background: var(--nv-secondary-accent); }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb-wrap { padding: 10px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.8rem; color: #888; }
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: var(--nv-primary-accent); }
.breadcrumb-sep { color: #ccc; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  /* Hide desktop header, show mobile */
  .header-top { display: none !important; }
  .header-main { display: block !important; }

  /* Posts layout: stack on mobile */
  .default-post.nv-ft-wrap { flex-direction: column; }
  .nv-post-thumbnail-wrap.img-wrap { width: 100%; }
  .nv-post-thumbnail-wrap.img-wrap img { width: 100%; height: 220px; }

  .related-posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .related-posts-grid { grid-template-columns: 1fr; }
  .apply-cta-banner { flex-direction: column; }
  .post-email-cta-form { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 6px; }
}

/* =====================================================
   HIDE / SHOW UTILITIES
   ===================================================== */
.hide-on-mobile { }
.hide-on-tablet { }
.hide-on-desktop { }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .hide-on-mobile { display: none !important; }
  .hide-on-tablet { display: none !important; }
}
@media (min-width: 901px) {
  .hide-on-desktop { display: none !important; }
}
