/*
Theme Name: DiscoverSchools
Theme URI: https://discoverschools.co.ke
Author: Pro Designers Ke
Author URI: https://discoverschools.co.ke
Description: A fast, lightweight, ad-friendly theme for university and college guides. University profiles with a banner photo and a details box, browse by state, article pages with a table of contents and author box, and six ad zones that leave no blank space when empty.
Version: 2.2
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: discoverschools
Tags: blog, education, news, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, threaded-comments
*/

/* -----------------------------------------------------------
   1. RESET & BASE
----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

:root{
  --color-bg: #ffffff;
  --color-text: #1c1f26;
  --color-muted: #5b6270;
  --color-primary: #1e5fbf;
  --color-primary-dark: #144a97;
  --color-accent: #e8622c;
  --color-border: #e6e9ee;
  --color-surface: #f7f8fa;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --max-width: 1200px;
  --content-width: 760px;
}

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

body{
  margin:0;
  /* Footer always sits at the bottom of the screen, even on short pages. */
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
}

.admin-bar{ min-height:calc(100vh - 32px); }
@media (max-width:782px){ .admin-bar{ min-height:calc(100vh - 46px); } }
.site-content{ flex:1 0 auto; width:100%; }
.site-footer{ flex-shrink:0; }

img{ max-width:100%; height:auto; display:block; }
a{ color: var(--color-primary); text-decoration:none; }
a:hover{ color: var(--color-primary-dark); text-decoration:underline; }

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-heading);
  line-height:1.25;
  margin: 1.4em 0 0.6em;
  color:#101319;
}
h1{ font-size:2.1rem; }
h2{ font-size:1.6rem; }
h3{ font-size:1.3rem; }
p{ margin:0 0 1.2em; }
ul,ol{ margin:0 0 1.2em; padding-left:1.4em; }

.btn{
  display:inline-block;
  background:var(--color-primary);
  color:#fff;
  padding:12px 22px;
  border:2px solid var(--color-primary);
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  font-family:inherit;
  font-size:.95rem;
}
.btn:hover{ background:var(--color-primary-dark); border-color:var(--color-primary-dark); color:#fff; text-decoration:none; }
.btn.btn-outline{ background:transparent; color:var(--color-primary); }
.btn.btn-outline:hover{ background:var(--color-primary); color:#fff; }
.btn:disabled{ opacity:.6; cursor:default; }

/* -----------------------------------------------------------
   2. SITE HEADER
----------------------------------------------------------- */
.site-header{
  border-bottom:1px solid var(--color-border);
  background:#fff;
  position:sticky;
  top:0;
  z-index:100;
}
.site-header-inner{
  display:flex;
  align-items:center;
  padding:12px 20px;
  max-width: var(--max-width);
  margin:0 auto;
  gap:20px;
  flex-wrap:wrap;
}
.site-branding{ margin-right:auto; }
.site-branding .site-title{
  font-family: var(--font-heading);
  font-size:1.5rem;
  margin:0;
  font-weight:700;
}
.site-branding .site-title a{ color:var(--color-text); text-decoration:none; }
.site-branding .custom-logo{ max-height:48px; width:auto; }

.primary-nav ul{
  list-style:none;
  display:flex;
  gap:6px;
  margin:0;
  padding:0;
  flex-wrap:wrap;
}
.primary-nav a{
  display:block;
  color:var(--color-text);
  font-weight:600;
  font-size:.95rem;
  padding:8px 12px;
  border-radius:6px;
  text-decoration:none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a{ background:var(--color-surface); color:var(--color-primary); }
.primary-nav ul ul{
  display:none;
  position:absolute;
  background:#fff;
  border:1px solid var(--color-border);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  padding:8px;
  min-width:200px;
  flex-direction:column;
  gap:0;
  border-radius:6px;
}
.primary-nav li{ position:relative; }
.primary-nav li:hover > ul,
.primary-nav li:focus-within > ul{ display:flex; }
.primary-nav ul ul li a{ font-weight:400; }

.site-search-wrap{ position:relative; }
.site-search-toggle{
  width:40px; height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--color-border);
  border-radius:6px;
  background:#fff;
  color:var(--color-text);
  cursor:pointer;
}
.site-search-toggle:hover{ background:var(--color-surface); }
.site-search-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:8px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  padding:14px;
  width:320px;
  max-width:calc(100vw - 28px);
  z-index:200;
}
.site-search-dropdown.is-open{ display:block; }

.search-form{ display:flex; gap:8px; max-width:460px; }
.search-form label{ flex:1; min-width:0; }
.search-form input[type="search"]{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--color-border);
  border-radius:6px;
  font:inherit;
  font-size:.95rem;
}
.search-form button[type="submit"]{
  padding:10px 16px;
  background:var(--color-primary);
  color:#fff;
  border:none;
  border-radius:6px;
  cursor:pointer;
  font:inherit;
  font-size:.95rem;
  font-weight:600;
}

.menu-toggle{ display:none; }

@media (max-width: 860px){
  .primary-nav{ display:none; width:100%; order:5; }
  .primary-nav.is-open{ display:block; }
  .primary-nav ul{ flex-direction:column; gap:0; border-top:1px solid var(--color-border); }
  .primary-nav ul ul{ position:static; box-shadow:none; border:none; padding:0 0 0 14px; display:none; }
  .primary-nav li.menu-open > ul{ display:flex; }
  .primary-nav a{ padding:11px 4px; border-bottom:1px solid var(--color-border); border-radius:0; }
  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px; height:40px;
    border:1px solid var(--color-border);
    border-radius:6px;
    background:#fff;
    cursor:pointer;
    font-size:1rem;
  }
}
@media (max-width: 480px){
  .site-header-inner{ padding:10px 14px; gap:8px; }
  .site-branding .site-title{ font-size:1.15rem; }
  .site-branding .custom-logo{ max-height:36px; }
  .site-search-toggle, .menu-toggle{ width:36px; height:36px; }
}

/* -----------------------------------------------------------
   3. AD ZONES
   A zone with no widget prints nothing, so there is never a
   blank band on the page. A filled zone reserves a little
   height so the page does not jump while the ad loads.
----------------------------------------------------------- */
.ad-zone{
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 20px;
  text-align:center;
  clear:both;
}
.ad-zone .ad-label{
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--color-muted);
  margin-bottom:6px;
}
.ad-zone-inner{
  min-height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.ad-zone-inner > *{ max-width:100%; }
.ad-zone--header{ margin-top:16px; }
.ad-zone--in-content,
.ad-zone--after-content{ margin: 34px 0; padding:0; }
.ad-zone--in-content .ad-zone-inner,
.ad-zone--after-content .ad-zone-inner{ min-height:250px; }
.ad-zone--sidebar{ margin: 0 0 24px; padding:0; }
.ad-zone--sidebar .ad-zone-inner{ min-height:250px; }
.ad-zone--footer{ margin-top:40px; width:100%; }
.ad-zone--header{ width:100%; }
.ad-zone--in-feed{ margin:10px 0 40px; padding:0; }
/* Ad code is never squeezed or cut off on phones. */
.ad-zone ins.adsbygoogle{ display:block; width:100%; }

/* -----------------------------------------------------------
   4. LAYOUT
----------------------------------------------------------- */
.site-main{
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 0 20px;
  display:grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap:44px;
}
.site-main--full{ display:block; }
.site-main--narrow{ display:block; max-width: calc(var(--content-width) + 40px); }
.content-area{ min-width:0; }
.sidebar{ min-width:0; }
.widget{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:8px;
  padding:20px;
  margin-bottom:24px;
}
.widget h3, .widget-title{ margin-top:0; font-size:1.05rem; }

@media (max-width: 960px){
  .site-main{ grid-template-columns: 1fr; gap:30px; }
}

.page-head{ margin-bottom:24px; }
.page-head h1{ margin:0 0 .2em; font-size:2.3rem; }
.page-head-sub, .archive-description{ color:var(--color-muted); font-size:1.05rem; margin:0; }
.archive-description p:last-child{ margin-bottom:0; }
.page-head .search-form{ margin-top:16px; }

.breadcrumbs{ font-size:.82rem; color:var(--color-muted); margin-bottom:18px; }
.breadcrumbs a{ color:var(--color-muted); }
.breadcrumbs-sep{ margin:0 4px; }

.not-found{ text-align:center; padding:50px 0; }
.not-found .search-form{ margin:0 auto 24px; }

/* -----------------------------------------------------------
   5. ARTICLE
----------------------------------------------------------- */
.entry-header{ margin:0 0 22px; }
.entry-category{
  display:inline-block;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
  color:var(--color-accent);
}
.entry-title{ font-size:2.3rem; margin:.25em 0 .35em; }
.entry-summary{ font-size:1.12rem; color:var(--color-muted); margin:0 0 16px; }
.entry-meta{
  color:var(--color-muted);
  font-size:.88rem;
  display:flex;
  gap:8px 22px;
  flex-wrap:wrap;
  padding:12px 0;
  border-top:1px solid var(--color-border);
}
.entry-meta-item{ display:inline-flex; align-items:center; gap:6px; }
.entry-meta-item svg{ flex:none; }
.entry-thumbnail{ margin:0 0 26px; }
.entry-thumbnail img{ width:100%; border-radius:8px; }
.entry-thumbnail figcaption{ font-size:.78rem; color:var(--color-muted); margin-top:6px; }

.share-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:.82rem;
}
.share-links-label{ color:var(--color-muted); font-weight:600; }
.share-links a, .share-copy{
  display:inline-block;
  padding:5px 12px;
  border:1px solid var(--color-border);
  border-radius:20px;
  background:#fff;
  color:var(--color-text);
  font:inherit;
  cursor:pointer;
  text-decoration:none;
}
.share-links a:hover, .share-copy:hover{ background:var(--color-surface); color:var(--color-primary); text-decoration:none; }
.entry-footer{ margin:30px 0; padding-top:20px; border-top:1px solid var(--color-border); }

.toc{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:8px;
  padding:18px 22px;
  margin:0 0 28px;
}
.toc-title{ font-family:var(--font-heading); font-weight:700; font-size:1.05rem; margin:0 0 8px; }
.toc ol{ margin:0; padding-left:1.3em; font-size:.95rem; }
.toc li{ margin-bottom:4px; }

.entry-content{ max-width: var(--content-width); }
.entry-content--wide{ max-width:none; margin-bottom:24px; }
.entry-content > *:first-child{ margin-top:0; }
.entry-content h2{ margin-top:1.8em; scroll-margin-top:90px; }
.entry-content img{ border-radius:6px; margin:1.2em 0; }
.entry-content blockquote{
  border-left:4px solid var(--color-primary);
  margin:1.4em 0;
  padding:.4em 1.2em;
  background:var(--color-surface);
  color:var(--color-muted);
}
.entry-content .wp-block-table{ margin:1.4em 0; overflow-x:auto; }
.entry-content table{ width:100%; border-collapse:collapse; margin:1.4em 0; font-size:.95rem; }
.entry-content .wp-block-table table{ margin:0; }
.entry-content th, .entry-content td{ border:1px solid var(--color-border); padding:10px 12px; text-align:left; vertical-align:top; }
.entry-content th, .entry-content thead td{ background:var(--color-surface); font-weight:700; }

/* FAQ box. Works with the Yoast "FAQ" block. */
.entry-content .schema-faq{
  border:1px solid var(--color-border);
  border-radius:8px;
  padding:6px 24px;
  margin:2em 0;
  background:#fff;
}
.entry-content .schema-faq-section{ padding:16px 0; border-bottom:1px solid var(--color-border); }
.entry-content .schema-faq-section:last-child{ border-bottom:none; }
.entry-content .schema-faq-question{ display:block; font-size:1.02rem; margin-bottom:6px; }
.entry-content .schema-faq-answer{ margin:0; color:var(--color-muted); }

.entry-tags{ margin:30px 0 0; }
.entry-tags a{
  display:inline-block;
  background:var(--color-surface);
  border:1px solid var(--color-border);
  padding:5px 12px;
  border-radius:20px;
  font-size:.8rem;
  margin:0 6px 6px 0;
  color:var(--color-text);
}
.entry-tags a:hover{ background:var(--color-primary); color:#fff; text-decoration:none; }

.author-box{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:8px;
  padding:20px;
  margin:30px 0;
}
.author-box-avatar{ border-radius:50%; flex:none; }
.author-box p{ margin:0; }
.author-box-label{ font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--color-muted); }
.author-box-name{ font-family:var(--font-heading); font-weight:700; font-size:1.1rem; }
.author-box-name a{ color:var(--color-text); }
.author-box-bio{ font-size:.92rem; color:var(--color-muted); margin-top:4px !important; }

.post-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:30px 0;
}
.post-nav-link{
  display:block;
  border:1px solid var(--color-border);
  border-radius:8px;
  padding:14px 16px;
  text-decoration:none;
}
.post-nav-link:hover{ background:var(--color-surface); text-decoration:none; }
.post-nav-link--next{ text-align:right; }
.post-nav-label{ display:block; font-size:.75rem; color:var(--color-muted); margin-bottom:4px; }
.post-nav-title{ display:block; font-size:.92rem; font-weight:600; color:var(--color-text); line-height:1.35; }
@media (max-width:600px){
  .post-nav{ grid-template-columns:1fr; }
  .post-nav-link--next{ text-align:left; }
  .entry-title, .page-head h1{ font-size:1.8rem; }
}

.more-guides ul{ list-style:none; margin:0; padding:0; }
.more-guides li{ padding:9px 0; border-bottom:1px solid var(--color-border); font-size:.9rem; line-height:1.4; }
.more-guides li:last-child{ border-bottom:none; padding-bottom:0; }
.more-guides a{ color:var(--color-text); }
.more-guides a:hover{ color:var(--color-primary); }

/* -----------------------------------------------------------
   6. CARD GRIDS
----------------------------------------------------------- */
.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap:26px;
  margin: 20px 0 40px;
}
@media (min-width: 961px){
  .card-grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .card-grid--4{ grid-template-columns: repeat(4, minmax(0,1fr)); gap:22px; }
}
.post-card{
  border:1px solid var(--color-border);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.post-card:hover{ box-shadow:0 10px 24px rgba(0,0,0,.08); transform:translateY(-2px); }
.post-card a{ display:block; height:100%; text-decoration:none; }
.post-card-thumb{ aspect-ratio:16/10; background:var(--color-surface); overflow:hidden; }
.post-card-thumb img{ width:100%; height:100%; object-fit:cover; }
.post-card-body{ padding:16px; }
.post-card-category{
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--color-accent);
  font-weight:700;
}
.post-card-title{
  font-family: var(--font-heading);
  font-size:1.1rem;
  margin:.4em 0;
  color:var(--color-text);
}
.post-card-excerpt{ font-size:.9rem; color:var(--color-muted); margin:0; }
.post-card-meta{ font-size:.75rem; color:var(--color-muted); margin-top:12px; }

.uni-card .post-card-title{ font-size:1.2rem; margin-top:0; }
.uni-card-location{ font-size:.85rem; color:var(--color-muted); margin:0 0 8px; }
.uni-card-meta{ display:flex; justify-content:space-between; gap:10px; }

/* -----------------------------------------------------------
   7. HOMEPAGE
----------------------------------------------------------- */
.hero{
  background: linear-gradient(135deg, var(--color-surface), #fff);
  border-bottom:1px solid var(--color-border);
  padding:56px 20px;
  text-align:center;
}
.hero-badge{
  display:inline-block;
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:20px;
  padding:4px 14px;
  font-size:.8rem;
  font-weight:600;
  color:var(--color-primary);
  margin:0 0 16px;
}
.hero h1{ font-size:2.5rem; margin:0 auto .3em; max-width:760px; }
.hero p{ color:var(--color-muted); max-width:640px; margin:0 auto 1.4em; font-size:1.08rem; }
.hero-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
@media (max-width:600px){
  .hero{ padding:38px 16px; }
  .hero h1{ font-size:1.8rem; }
}

.home-section{ margin: 10px 0 50px; }
.home-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.home-section-head h2{ margin:0; }
.home-section-link{ font-size:.88rem; font-weight:700; white-space:nowrap; }
.home-section .card-grid{ margin-bottom:0; }
.home-load-more-wrap{ text-align:center; margin-top:28px; }

.topic-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap:14px;
}
.topic-tile{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:18px 18px;
  border:1px solid var(--color-border);
  border-radius:8px;
  background:#fff;
  text-decoration:none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.topic-tile:hover{
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  transform:translateY(-2px);
  text-decoration:none;
}
.topic-tile-name{
  font-family: var(--font-heading);
  font-weight:700;
  color:var(--color-text);
  font-size:1.08rem;
}
.topic-tile-count{ font-size:.8rem; color:var(--color-muted); }
.location-group-title{ font-size:1.3rem; margin:1.6em 0 .6em; }
.location-group-title a{ color:inherit; }

.category-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap:20px;
  margin-bottom:40px;
}
.category-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:26px;
  border:1px solid var(--color-border);
  border-radius:8px;
  background:#fff;
  text-decoration:none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.category-card:hover{ box-shadow:0 8px 20px rgba(0,0,0,.08); transform:translateY(-2px); text-decoration:none; }
.category-card-name{ font-family:var(--font-heading); font-weight:700; font-size:1.35rem; color:var(--color-text); }
.category-card-desc{ font-size:.92rem; color:var(--color-muted); }
.category-card-link{ font-size:.88rem; font-weight:600; margin-top:auto; padding-top:6px; }

/* -----------------------------------------------------------
   8. UNIVERSITY PROFILE
----------------------------------------------------------- */
.uni-hero{
  position:relative;
  min-height:400px;
  display:flex;
  align-items:flex-end;
  background:#12141a;
  overflow:hidden;
}
.uni-hero--no-image{ min-height:220px; background:linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)); }
.uni-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.uni-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.1) 65%);
}
.uni-hero--no-image::after{ display:none; }
.uni-hero-inner{
  position:relative;
  z-index:1;
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:30px 20px;
  color:#fff;
}
.uni-hero h1{ color:#fff; font-size:2.6rem; margin:0 0 .25em; }
.uni-hero-meta{ display:flex; flex-wrap:wrap; gap:6px 22px; margin:0; font-size:1rem; }
.uni-hero-credit{
  max-width:var(--max-width);
  margin:6px auto 0;
  padding:0 20px;
  font-size:.72rem;
  color:var(--color-muted);
  text-align:right;
}
@media (max-width:600px){
  .uni-hero{ min-height:280px; }
  .uni-hero h1{ font-size:1.8rem; }
  .uni-hero-meta{ font-size:.9rem; }
}

.uni-lead{ font-size:1.2rem; color:var(--color-muted); margin-bottom:1.2em; }
.uni-overview{ margin-bottom:10px; }
.uni-articles h2{ margin-top:1.2em; }

.uni-details{
  border:1px solid var(--color-border);
  border-radius:8px;
  padding:22px;
  margin-bottom:24px;
  background:#fff;
}
.uni-details-title{ font-size:1.15rem; margin:0 0 14px; }
.uni-details-name{ font-weight:700; margin:-6px 0 14px; }
.uni-details dl{ margin:0; }
.uni-details dt{ font-size:.8rem; color:var(--color-muted); }
.uni-details dd{ margin:0 0 14px; font-weight:600; font-size:.95rem; }
.uni-details dd:last-child{ margin-bottom:0; }

/* -----------------------------------------------------------
   9. FOOTER
----------------------------------------------------------- */
.site-footer{
  background:#12141a;
  color:#c7cbd4;
  margin-top:50px;
  padding:50px 20px 20px;
}
.footer-grid{
  max-width: var(--max-width);
  margin:0 auto;
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:30px;
}
.footer-grid h4{ color:#fff; font-size:.95rem; margin-top:0; }
.footer-grid p{ font-size:.9rem; max-width:320px; }
.footer-grid ul{ list-style:none; padding:0; margin:0; }
.footer-grid li{ margin-bottom:8px; }
.footer-grid a{ color:#c7cbd4; font-size:.9rem; }
.footer-grid a:hover{ color:#fff; }
.footer-bottom{
  max-width: var(--max-width);
  margin:30px auto 0;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:.8rem;
  color:#8a8f9c;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
@media (max-width:760px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* -----------------------------------------------------------
   10. MISC / ACCESSIBILITY
----------------------------------------------------------- */
.screen-reader-text{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
}
.skip-link{
  position:absolute;
  left:-9999px;
  background:#000; color:#fff;
  padding:10px 16px;
  z-index:999;
}
.skip-link:focus{ left:10px; top:10px; width:auto; height:auto; clip:auto; }
a:focus-visible, button:focus-visible, input:focus-visible{ outline:2px solid var(--color-primary); outline-offset:2px; }

.pagination{ text-align:center; margin:30px 0; }
.pagination .nav-links{ display:flex; justify-content:center; flex-wrap:wrap; gap:6px; }
.pagination a, .pagination span{
  display:inline-block;
  padding:8px 14px;
  border:1px solid var(--color-border);
  border-radius:5px;
  color:var(--color-text);
}
.pagination .current{ background:var(--color-primary); color:#fff; border-color:var(--color-primary); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .post-card, .topic-tile, .category-card{ transition:none; }
  .post-card:hover, .topic-tile:hover, .category-card:hover{ transform:none; }
}

/* -----------------------------------------------------------
   11. COMMENTS
----------------------------------------------------------- */
.comments-area{ max-width:var(--content-width); margin:40px 0; padding-top:10px; border-top:1px solid var(--color-border); }
.comments-title{ font-size:1.3rem; }
.comment-list{ list-style:none; padding:0; }
.comment-list .children{ list-style:none; padding-left:24px; }
.comment-body{ padding:14px 0; border-bottom:1px solid var(--color-border); font-size:.95rem; }
.comment-author .avatar{ display:inline-block; border-radius:50%; vertical-align:middle; margin-right:8px; }
.comment-metadata{ font-size:.78rem; margin:4px 0 8px; }
.comment-metadata a{ color:var(--color-muted); }
.comment-form label{ display:block; font-size:.88rem; font-weight:600; margin-bottom:4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--color-border);
  border-radius:6px;
  font:inherit;
}
.comment-form .comment-form-cookies-consent label{ display:inline; font-weight:400; }
.comment-form input[type="submit"]{
  background:var(--color-primary);
  color:#fff;
  border:none;
  border-radius:6px;
  padding:11px 20px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}


/* ===== v2.3 Homepage redesign ===== */
.hero--search{ padding:46px 20px 40px; }
.hero--search h1{ font-size:2.4rem; }
.hero-search{ max-width:640px; margin:0 auto; }
.hero-chips{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:16px; font-size:.86rem; align-items:center; }
.hero-chips span{ color:var(--color-muted); }
.hero-chips a{ border:1px solid var(--color-border); background:#fff; border-radius:999px; padding:5px 13px; color:var(--color-text); text-decoration:none; transition:all .15s ease; }
.hero-chips a:hover{ border-color:var(--color-primary); color:var(--color-primary); }

.feature-grid{ display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:24px; margin:18px 0 40px; }
.feature-side-col{ display:grid; grid-template-rows:1fr 1fr; gap:24px; }
.feature-lead,.feature-side{ border:1px solid var(--color-border); border-radius:10px; overflow:hidden; background:#fff; transition:box-shadow .15s ease, transform .15s ease; }
.feature-lead:hover,.feature-side:hover{ box-shadow:0 12px 28px rgba(0,0,0,.09); transform:translateY(-2px); }
.feature-lead a,.feature-side a{ display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }
.feature-thumb{ aspect-ratio:16/9; background:var(--color-surface); overflow:hidden; }
.feature-side .feature-thumb{ aspect-ratio:16/8; }
.feature-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.feature-body{ padding:20px 22px 22px; }
.feature-side .feature-body{ padding:14px 18px 16px; }
.feature-kicker{ display:block; font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--color-accent); margin-bottom:6px; }
.feature-title{ font-family:var(--font-heading); font-size:1.7rem; line-height:1.25; margin:0 0 10px; color:var(--color-text); }
.feature-side .feature-title{ font-size:1.12rem; margin-bottom:6px; }
.feature-excerpt{ color:var(--color-muted); margin:0 0 12px; font-size:1rem; }
.feature-meta{ font-size:.82rem; color:var(--color-muted); margin:0; }

.chip-row{ display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 8px; }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:9px 18px; border:1px solid var(--color-border); border-radius:999px; background:#fff; color:var(--color-text); text-decoration:none; font-weight:500; font-size:.95rem; transition:all .15s ease; }
.chip:hover{ border-color:var(--color-primary); color:var(--color-primary); text-decoration:none; box-shadow:0 4px 12px rgba(30,95,191,.12); }
.chip small{ color:var(--color-muted); font-weight:400; }
.band{ background:var(--color-surface); border-top:1px solid var(--color-border); border-bottom:1px solid var(--color-border); padding:30px 0 22px; margin:0 0 36px; }
.band .home-section{ margin-bottom:0; }

.home-split{ display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:36px; align-items:start; margin-bottom:20px; }
.card-grid--2{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.home-aside{ position:sticky; top:84px; }
.home-aside .widget{ background:#fff; }
.widget-list{ list-style:none; margin:0; padding:0; }
.widget-list li{ border-bottom:1px solid var(--color-border); }
.widget-list li:last-child{ border-bottom:0; }
.widget-list a{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:11px 2px; color:var(--color-text); text-decoration:none; font-size:.96rem; }
.widget-list a:hover{ color:var(--color-primary); }
.widget-list .count{ color:var(--color-muted); font-size:.8rem; background:var(--color-surface); border-radius:999px; padding:2px 9px; }
.mini-uni{ display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--color-border); text-decoration:none; color:var(--color-text); }
.mini-uni:last-child{ border-bottom:0; }
.mini-uni img{ width:52px; height:52px; border-radius:8px; object-fit:cover; flex:none; background:var(--color-surface); }
.mini-uni strong{ display:block; font-family:var(--font-heading); font-size:.98rem; line-height:1.25; }
.mini-uni span{ font-size:.8rem; color:var(--color-muted); }
.mini-uni:hover strong{ color:var(--color-primary); }

.why-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:18px 0 10px; }
.why-card{ background:#fff; border:1px solid var(--color-border); border-radius:10px; padding:22px; }
.why-card h3{ margin:0 0 8px; font-size:1.1rem; font-family:var(--font-heading); }
.why-card p{ margin:0; color:var(--color-muted); font-size:.96rem; }

@media (max-width:960px){
  .feature-grid{ grid-template-columns:1fr; }
  .feature-side-col{ grid-template-columns:1fr 1fr; grid-template-rows:none; }
  .home-split{ grid-template-columns:1fr; }
  .home-aside{ position:static; }
  .why-grid{ grid-template-columns:1fr; }
  .hero--search h1{ font-size:1.9rem; }
}
@media (max-width:600px){
  .feature-side-col{ grid-template-columns:1fr; }
  .card-grid--2{ grid-template-columns:1fr; }
  .feature-title{ font-size:1.35rem; }
}
