/*
Theme Name: Workup BD
Theme URI: https://workupbd.com
Author: Workup BD
Author URI: https://workupbd.com
Description: A professional, lightweight, AdSense-friendly WordPress theme for Workup BD — an informational platform about digital skills, freelancing, and online work opportunities.
Version: 2.0.0
Requires at least: 5.9
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: workupbd
*/

/* ============ Tokens ============ */
:root{
  --wu-primary:#1E5AA8;
  --wu-primary-dark:#163F79;
  --wu-accent:#F4A623;
  --wu-accent-dark:#C97F0C;
  --wu-ink:#1B2430;
  --wu-muted:#5B6572;
  --wu-bg:#FFFFFF;
  --wu-bg-alt:#F4F6F9;
  --wu-border:#E4E8EE;
  --wu-success:#1F9D64;
  --wu-danger:#B3261E;
  --wu-radius:12px;
  --wu-max-width:1180px;
  --wu-font:'Inter','Hind Siliguri','Noto Sans Bengali',system-ui,-apple-system,sans-serif;
}

/* ============ Reset ============ */
*, *::before, *::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--wu-font);
  font-size:16px;
  line-height:1.7;
  color:var(--wu-ink);
  background:var(--wu-bg-alt);
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--wu-primary); text-decoration:none; }
a:hover{ text-decoration:underline; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family:var(--wu-font); font-weight:700; line-height:1.35; margin:0 0 .5em; text-wrap:balance; }
p{ margin:0 0 1em; }
button{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--wu-primary); outline-offset:2px; }

.screen-reader-text{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}
.skip-link{
  position:absolute; top:-40px; left:0; background:var(--wu-primary); color:#fff;
  padding:10px 16px; z-index:1000; border-radius:0 0 8px 0;
}
.skip-link:focus{ top:0; position:fixed; }

.container{ max-width:var(--wu-max-width); margin:0 auto; padding:0 20px; }
.container.narrow{ max-width:760px; }

/* ============ Breadcrumbs ============ */
.breadcrumbs{ padding:14px 0 0; }
.breadcrumbs ol{ display:flex; flex-wrap:wrap; gap:6px; font-size:12.5px; color:var(--wu-muted); }
.breadcrumbs a{ color:var(--wu-muted); }
.breadcrumbs a:hover{ color:var(--wu-primary); }
.breadcrumbs .sep{ color:var(--wu-border); }
.breadcrumbs [aria-current]{ color:var(--wu-ink); font-weight:600; }

/* ============ Header ============ */
.site-header{
  background:var(--wu-bg); border-bottom:1px solid var(--wu-border);
  position:sticky; top:0; z-index:100;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding:14px 20px; flex-wrap:wrap;
}
.site-branding{ display:flex; flex-direction:column; }
.site-title{
  font-size:24px; font-weight:700; color:var(--wu-primary-dark); text-decoration:none;
}
.site-title:hover{ text-decoration:none; color:var(--wu-primary); }
.custom-logo{ max-height:56px; width:auto; }

.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; border:1px solid var(--wu-border); border-radius:8px;
  background:var(--wu-bg); cursor:pointer; align-items:center;
}
.menu-toggle span{ display:block; width:18px; height:2px; background:var(--wu-ink); transition:.2s; }
.menu-toggle.is-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2){ opacity:0; }
.menu-toggle.is-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.primary-nav{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
#primary-menu{ display:flex; gap:22px; flex-wrap:wrap; }
#primary-menu a{
  color:var(--wu-ink); font-weight:600; font-size:15px; padding:6px 2px;
  border-bottom:2px solid transparent;
}
#primary-menu a:hover, #primary-menu .current-menu-item > a{
  color:var(--wu-primary); border-bottom-color:var(--wu-accent); text-decoration:none;
}
#primary-menu .sub-menu{
  position:absolute; background:var(--wu-bg); border:1px solid var(--wu-border);
  border-radius:10px; padding:8px; margin-top:12px; min-width:200px; box-shadow:0 10px 24px rgba(20,30,50,.08);
  display:none; flex-direction:column; gap:2px;
}
#primary-menu li{ position:relative; }
#primary-menu li:hover > .sub-menu{ display:flex; }
#primary-menu .sub-menu a{ padding:8px 10px; border-radius:6px; border-bottom:none; }
#primary-menu .sub-menu a:hover{ background:var(--wu-bg-alt); }

.nav-search{ display:flex; align-items:center; border:1px solid var(--wu-border); border-radius:999px; overflow:hidden; }
.nav-search input{
  border:none; padding:8px 12px; font:inherit; font-size:14px; width:150px; background:transparent; outline:none;
}
.nav-search button{ border:none; background:var(--wu-bg-alt); padding:8px 12px; cursor:pointer; }
.header-cta{ padding:9px 20px; font-size:14px; }

/* ============ Ad zones ============ */
.ad-zone{ text-align:center; }
.ad-zone--placeholder{
  border:1.5px dashed var(--wu-border); border-radius:var(--wu-radius); padding:16px;
  color:var(--wu-muted); font-size:12px; margin:16px 0;
}
.ad-zone--ad-header{ border-top:1px solid var(--wu-border); padding:10px 20px; }
.ad-zone--ad-homepage, .ad-zone--ad-article-top, .ad-zone--ad-article-middle, .ad-zone--ad-article-bottom{ margin:28px 0; }
.ad-zone--ad-between-posts{ grid-column:1/-1; margin:8px 0; }

/* ============ Hero ============ */
.hero{ background:linear-gradient(135deg,var(--wu-primary-dark),var(--wu-primary)); color:#fff; padding:64px 0; }
.hero-inner{
  display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center;
}
.hero h1{ color:#fff; font-size:clamp(28px,4vw,42px); margin-bottom:14px; }
.hero-sub{ font-size:17px; color:rgba(255,255,255,.9); margin-bottom:24px; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-art-wrap{ filter:drop-shadow(0 20px 40px rgba(10,20,40,.25)); }
.hero-art{ width:100%; height:auto; display:block; }

.btn-primary{
  display:inline-block; background:var(--wu-accent); color:var(--wu-ink); font-weight:700;
  padding:12px 26px; border-radius:999px; text-decoration:none; transition:.15s; border:none; cursor:pointer; font-size:15px;
}
.btn-primary:hover{ background:var(--wu-accent-dark); color:#fff; text-decoration:none; }
.btn-outline{
  display:inline-block; border:1.5px solid var(--wu-primary); color:var(--wu-primary); font-weight:700;
  padding:11px 24px; border-radius:999px; font-size:14px; text-decoration:none; white-space:nowrap; background:none; cursor:pointer;
}
.btn-outline:hover{ background:var(--wu-primary); color:#fff; text-decoration:none; }
.btn-outline--on-dark{ border-color:rgba(255,255,255,.55); color:#fff; }
.btn-outline--on-dark:hover{ background:#fff; color:var(--wu-primary-dark); }

.category-strip-list{ display:flex; gap:10px; flex-wrap:wrap; }
.category-strip-list--center{ justify-content:center; }
.category-chip{
  background:var(--wu-bg-alt); border:1px solid var(--wu-border); color:var(--wu-ink);
  padding:7px 16px; border-radius:999px; font-size:13.5px; font-weight:600;
}
.category-chip:hover{ background:var(--wu-primary); color:#fff; text-decoration:none; }

/* ============ Sections (homepage) ============ */
.section{ padding:56px 0; }
.section--alt{ background:var(--wu-bg); }
.section-title{ font-size:21px; margin-bottom:18px; padding-bottom:10px; border-bottom:2px solid var(--wu-border); }
.section-title--center{ text-align:center; border-bottom:none; padding-bottom:0; margin-bottom:14px; font-size:28px; }
.lead-text{ text-align:center; font-size:16.5px; color:var(--wu-muted); max-width:680px; margin:0 auto; }

.card-grid{ display:grid; gap:20px; }
.card-grid--3{ grid-template-columns:repeat(3,1fr); }
.card-grid--4{ grid-template-columns:repeat(4,1fr); }

.feature-card{
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:var(--wu-radius);
  padding:22px; text-align:left;
}
.feature-card-icon{ font-size:28px; display:block; margin-bottom:10px; }
.feature-card h3{ font-size:17px; margin-bottom:6px; }
.feature-card p{ color:var(--wu-muted); font-size:14px; margin-bottom:12px; }
.card-link{ font-size:13.5px; font-weight:700; }
.feature-card--skill{
  display:block; text-align:center; color:var(--wu-ink); transition:.15s;
}
.feature-card--skill:hover{ border-color:var(--wu-primary); text-decoration:none; color:var(--wu-primary); }
.feature-card--skill h3{ font-size:15px; margin:0; }

.explainer-list{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px; }
.explainer-list li{
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:10px; padding:12px 16px;
}
.explainer-list a{ font-weight:600; font-size:14.5px; color:var(--wu-ink); display:flex; align-items:center; gap:8px; }
.explainer-list a::before{ content:'→'; color:var(--wu-primary); }
.explainer-list a:hover{ color:var(--wu-primary); text-decoration:none; }

.steps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.step-card{ text-align:center; padding:20px 12px; }
.step-num{
  display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px;
  border-radius:50%; background:var(--wu-primary); color:#fff; font-weight:700; margin-bottom:12px;
}
.step-card h3{ font-size:16px; margin-bottom:4px; }
.step-card p{ color:var(--wu-muted); font-size:13.5px; margin:0; }

.trust-card{ text-align:center; padding:22px 14px; }
.trust-card-icon{ font-size:26px; display:block; margin-bottom:10px; }
.trust-card h3{ font-size:15.5px; margin-bottom:6px; }
.trust-card p{ color:var(--wu-muted); font-size:13.5px; margin:0; }

.final-cta{ background:linear-gradient(135deg,var(--wu-primary-dark),var(--wu-primary)); color:#fff; text-align:center; }
.final-cta h2{ color:#fff; font-size:26px; }
.final-cta .hero-cta{ justify-content:center; margin-top:16px; }

/* ============ FAQ accordion ============ */
.faq-accordion{ display:flex; flex-direction:column; gap:10px; }
.faq-item{
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:10px; padding:4px 18px;
}
.faq-item summary{
  cursor:pointer; padding:14px 0; font-weight:600; font-size:15px; list-style:none; position:relative; padding-right:24px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; position:absolute; right:0; top:12px; font-size:20px; color:var(--wu-primary); }
.faq-item[open] summary::after{ content:'−'; }
.faq-answer{ padding:0 0 16px; color:var(--wu-muted); font-size:14.5px; }
.faq-answer p:last-child{ margin-bottom:0; }
.faq-more{ text-align:center; margin-top:16px; font-weight:600; }

/* ============ Newsletter ============ */
.newsletter-box{ text-align:center; }
.newsletter-box h2{ font-size:24px; }
.newsletter-form{ display:flex; gap:10px; max-width:420px; margin:18px auto 0; flex-wrap:wrap; justify-content:center; }
.newsletter-form input{
  flex:1; min-width:220px; border:1px solid var(--wu-border); border-radius:999px; padding:11px 18px; font:inherit;
}
.newsletter-form .btn-primary{ padding:11px 24px; }
.admin-note{ font-size:12px; color:var(--wu-danger); margin-top:10px; }

/* ============ Homepage preview head (Latest Articles) ============ */
.home-preview-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px;
  padding-bottom:14px; border-bottom:2px solid var(--wu-border);
}
.home-preview-head .section-title{ margin-bottom:0; padding-bottom:0; border-bottom:none; }

/* ============ Layout ============ */
.content-layout{
  display:grid; grid-template-columns:1fr 300px; gap:36px; padding:36px 20px 56px; align-items:start;
}
.content-layout--page{ grid-template-columns:1fr; max-width:820px; }
.archive-title{ font-size:28px; margin-bottom:6px; }
.archive-desc{ color:var(--wu-muted); margin-bottom:20px; }

/* ============ Blog listing hero ============ */
.blog-hero .hero-inner{ grid-template-columns:.85fr 1.15fr; }
.blog-hero .search-form{ max-width:420px; }
.blog-hero .search-form input{ border:none; }
.blog-hero .search-form button{ background:var(--wu-accent); color:var(--wu-ink); font-weight:700; }
.blog-hero .search-form button:hover{ background:var(--wu-accent-dark); color:#fff; }

/* ============ Category-grouped sections (Blog page) ============ */
.category-section{ margin-bottom:44px; }
.category-section:last-child{ margin-bottom:0; }

/* ============ Post grid / cards ============ */
.post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.post-card{
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:var(--wu-radius);
  overflow:hidden; display:flex; flex-direction:column;
}
.post-card--featured{ grid-column:1/-1; display:grid; grid-template-columns:1.1fr 1fr; margin-bottom:22px; }
.post-card--featured .post-card-thumb{ aspect-ratio:auto; height:100%; }
.post-card--featured .post-card-title{ font-size:22px; }
.post-card-thumb{ display:block; aspect-ratio:16/10; background:var(--wu-bg-alt); overflow:hidden; }
.post-card-thumb img{ width:100%; height:100%; object-fit:cover; }
.post-card-thumb-fallback{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:38px; font-weight:700; color:var(--wu-primary); background:var(--wu-bg-alt);
}
.post-card-body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.post-card--featured .post-card-body{ padding:22px; justify-content:center; }
.post-card-cat{
  align-self:flex-start; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  color:var(--wu-primary); background:color-mix(in srgb, var(--wu-primary) 10%, transparent);
  padding:3px 10px; border-radius:999px;
}
.post-card-title{ font-size:17px; margin:0; }
.post-card-title a{ color:var(--wu-ink); }
.post-card-title a:hover{ color:var(--wu-primary); text-decoration:none; }
.post-card-excerpt{ font-size:13.5px; color:var(--wu-muted); margin:0; flex:1; }
.post-card-meta{ font-size:12px; color:var(--wu-muted); display:flex; gap:6px; font-variant-numeric:tabular-nums; }

.no-posts{ text-align:center; padding:60px 20px; color:var(--wu-muted); }

/* ============ Single post ============ */
.post-category{
  display:inline-block; font-size:12px; font-weight:700; text-transform:uppercase;
  color:var(--wu-primary); background:color-mix(in srgb, var(--wu-primary) 10%, transparent);
  padding:4px 12px; border-radius:999px; margin-bottom:12px;
}
.post-title{ font-size:clamp(24px,3.4vw,34px); margin-bottom:12px; }
.post-meta{ display:flex; gap:8px; font-size:13.5px; color:var(--wu-muted); margin-bottom:18px; font-variant-numeric:tabular-nums; flex-wrap:wrap; }
.post-thumb{ border-radius:var(--wu-radius); overflow:hidden; margin-bottom:24px; }
.post-thumb img{ width:100%; }

.toc-box{
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:var(--wu-radius);
  padding:18px 20px; margin-bottom:1.6em; max-width:74ch;
}
.toc-title{ font-weight:700; margin:0 0 8px; font-size:14.5px; }
.toc-box ul{ display:flex; flex-direction:column; gap:6px; }
.toc-box li a{ font-size:14px; }
.toc-box li.toc-sub{ padding-left:16px; }

.post-content{ font-size:17px; line-height:1.85; max-width:74ch; }
.post-content h2{ font-size:24px; margin-top:1.6em; scroll-margin-top:90px; }
.post-content h3{ font-size:20px; margin-top:1.4em; scroll-margin-top:90px; }
.post-content p{ margin-bottom:1.2em; }
.post-content ul, .post-content ol{ margin:0 0 1.2em; padding-left:1.4em; list-style:revert; }
.post-content table{ width:100%; border-collapse:collapse; margin:0 0 1.2em; font-size:15px; }
.post-content table th, .post-content table td{ border:1px solid var(--wu-border); padding:8px 12px; text-align:left; }
.post-content table th{ background:var(--wu-bg-alt); }
.post-content blockquote{
  margin:1.6em 0; padding:14px 20px; border-left:4px solid var(--wu-accent);
  background:var(--wu-bg-alt); border-radius:0 8px 8px 0; color:var(--wu-muted); font-style:italic;
}
.post-content img{ border-radius:10px; }
.post-content a{ text-decoration:underline; }
.post-content code{ background:var(--wu-bg-alt); padding:2px 6px; border-radius:4px; font-size:.9em; }
.post-content pre{ background:var(--wu-ink); color:#fff; padding:16px; border-radius:10px; overflow-x:auto; }

.internal-cta-box{
  max-width:74ch; margin:2em 0; padding:22px; background:var(--wu-bg-alt); border:1px dashed var(--wu-border);
  border-radius:var(--wu-radius); text-align:center;
}
.internal-cta-box h3{ font-size:17px; margin-bottom:6px; }
.internal-cta-box p{ color:var(--wu-muted); font-size:14px; }

.page-links{ margin:20px 0; font-weight:600; }
.post-tags{ display:flex; gap:8px; flex-wrap:wrap; margin:24px 0; }
.post-tags a{
  background:var(--wu-bg-alt); border:1px solid var(--wu-border); color:var(--wu-muted);
  padding:5px 12px; border-radius:999px; font-size:12.5px;
}

.author-box{
  display:flex; gap:14px; align-items:flex-start; margin-top:32px; padding:18px;
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:var(--wu-radius);
}
.author-box img{ border-radius:50%; }
.author-name{ font-weight:700; margin:0 0 4px; }
.author-desc{ margin:0; color:var(--wu-muted); font-size:14px; }

.related-posts{ margin-top:40px; }

/* ============ Contact page ============ */
.contact-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:28px; margin-top:24px; align-items:start; }
.contact-form-wrap, .contact-info-box{
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:var(--wu-radius); padding:24px;
}
.contact-form p{ margin-bottom:14px; }
.contact-form label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.contact-form input, .contact-form select, .contact-form textarea{
  width:100%; border:1px solid var(--wu-border); border-radius:8px; padding:10px 12px; font:inherit; font-size:14.5px;
}
.contact-form textarea{ resize:vertical; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }
.contact-info-box p{ font-size:14px; margin-bottom:14px; }
.contact-note{ color:var(--wu-muted); font-size:13px; margin-bottom:0; }
.form-notice{ padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.form-notice--success{ background:color-mix(in srgb, var(--wu-success) 12%, transparent); color:var(--wu-success); }
.form-notice--error{ background:color-mix(in srgb, var(--wu-danger) 10%, transparent); color:var(--wu-danger); }

/* ============ Sidebar / widgets ============ */
.content-sidebar{ display:flex; flex-direction:column; gap:20px; }
.widget{
  background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:var(--wu-radius); padding:18px;
}
.widget-title{ font-size:15px; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid var(--wu-border); }
.widget-post-list li, .widget-cat-list li{ padding:7px 0; border-bottom:1px dashed var(--wu-border); font-size:14px; }
.widget-post-list li:last-child, .widget-cat-list li:last-child{ border-bottom:none; }
.widget-cat-list a{ color:var(--wu-ink); }
.widget-cat-list a:hover{ color:var(--wu-primary); }

.widget-post-list--thumb li{ display:flex; align-items:center; gap:10px; padding:10px 0; }
.widget-post-thumb{
  flex:none; width:56px; height:56px; border-radius:8px; overflow:hidden; background:var(--wu-bg-alt);
  display:block;
}
.widget-post-thumb img{ width:100%; height:100%; object-fit:cover; }
.widget-post-thumb-fallback{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:700; color:var(--wu-primary); background:var(--wu-bg-alt);
}
.widget-post-body{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.widget-post-title{
  color:var(--wu-ink); font-size:13.5px; font-weight:600; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.widget-post-title:hover{ color:var(--wu-primary); text-decoration:none; }
.widget-post-date{ font-size:11.5px; color:var(--wu-muted); }
.ad-slot-widget{ padding:0; }

/* ============ Footer ============ */
.site-footer{ background:var(--wu-ink); color:rgba(255,255,255,.85); margin-top:20px; }
.footer-widgets{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; padding:44px 20px; }
.footer-col .widget-title{ color:#fff; border-bottom-color:rgba(255,255,255,.15); }
.footer-col p{ color:rgba(255,255,255,.7); font-size:14px; }
.footer-links li{ padding:5px 0; }
.footer-links a{ color:rgba(255,255,255,.75); font-size:14px; }
.footer-links a:hover{ color:var(--wu-accent); }
.footer-contact li{ border-bottom:none; padding:3px 0; }
.footer-social{ display:flex; gap:10px; margin-top:12px; }
.footer-social a{
  width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center; font-size:15px;
}
.footer-social a:hover{ background:var(--wu-accent); text-decoration:none; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding:18px 20px; display:flex;
  justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:13px;
}
.footer-bottom p{ margin:0; color:rgba(255,255,255,.6); }
.footer-menu{ display:flex; gap:16px; flex-wrap:wrap; }
.footer-menu a{ color:rgba(255,255,255,.75); font-size:13px; }

/* ============ Comments ============ */
.comments-area{ margin-top:40px; padding-top:28px; border-top:1px solid var(--wu-border); }
.comments-title{ font-size:19px; margin-bottom:18px; }
.comment-list{ display:flex; flex-direction:column; gap:16px; margin-bottom:24px; }
.comment-item{ display:flex; gap:12px; }
.comment-avatar img{ border-radius:50%; }
.comment-body{ background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:10px; padding:12px 14px; flex:1; }
.comment-meta{ display:flex; gap:10px; align-items:baseline; margin-bottom:6px; }
.comment-author{ font-weight:700; font-size:14px; }
.comment-date{ font-size:12px; color:var(--wu-muted); }
.comment-text p{ margin:0; font-size:14.5px; }
.comment-reply-link{ font-size:12.5px; font-weight:600; color:var(--wu-primary); }
.children{ margin-top:14px; padding-left:24px; }

.comment-respond{ background:var(--wu-bg); border:1px solid var(--wu-border); border-radius:var(--wu-radius); padding:20px; }
.comment-reply-title{ margin-top:0; font-size:17px; }
.comment-form p{ margin-bottom:14px; }
.comment-form label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%; border:1px solid var(--wu-border); border-radius:8px; padding:10px 12px; font:inherit; font-size:14.5px;
}
.comment-form textarea{ resize:vertical; }
.comment-form .form-submit input{
  background:var(--wu-primary); color:#fff; border:none; padding:11px 24px; border-radius:8px;
  font-weight:700; cursor:pointer;
}
.comment-form .form-submit input:hover{ background:var(--wu-primary-dark); }

/* ============ Search / forms ============ */
.search-form{ display:flex; gap:8px; margin:16px 0; }
.search-form input{ flex:1; border:1px solid var(--wu-border); border-radius:8px; padding:10px 12px; font:inherit; }
.search-form button{ background:var(--wu-primary); color:#fff; border:none; border-radius:8px; padding:10px 18px; cursor:pointer; }

/* ============ Pagination ============ */
.pagination, .nav-links{ display:flex; gap:8px; justify-content:center; margin:32px 0 8px; flex-wrap:wrap; }
.pagination .page-numbers, .nav-links .page-numbers{
  display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px;
  border:1px solid var(--wu-border); border-radius:8px; color:var(--wu-ink); font-size:14px; padding:0 8px;
  background:var(--wu-bg);
}
.pagination .page-numbers.current, .nav-links .page-numbers.current{ background:var(--wu-primary); color:#fff; border-color:var(--wu-primary); }
.pagination .page-numbers:hover, .nav-links .page-numbers:hover{ border-color:var(--wu-primary); text-decoration:none; }

/* ============ 404 ============ */
.error-404{ text-align:center; padding:60px 0; }
.error-404 h1{ font-size:28px; }
.error-404 .search-form{ justify-content:center; max-width:420px; margin:20px auto; }
.error-404-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:8px; }

/* ============ Back to top ============ */
.back-to-top{
  position:fixed; bottom:24px; right:24px; width:44px; height:44px; border-radius:50%;
  background:var(--wu-primary); color:#fff; border:none; font-size:18px; cursor:pointer;
  opacity:0; pointer-events:none; transition:.2s; box-shadow:0 6px 18px rgba(20,30,50,.2); z-index:90;
}
.back-to-top.is-visible{ opacity:1; pointer-events:auto; }

/* ============ Responsive ============ */
@media (max-width:1024px){
  .card-grid--3{ grid-template-columns:repeat(2,1fr); }
  .card-grid--4{ grid-template-columns:repeat(2,1fr); }
  .steps-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:900px){
  .content-layout{ grid-template-columns:1fr; }
  .post-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-widgets{ grid-template-columns:1fr 1fr; }
  .post-card--featured{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width:820px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-art-wrap{ max-width:360px; margin:0 auto; order:-1; }
  .hero-cta{ justify-content:center; }
}

@media (max-width:560px){
  .home-preview-head{ flex-direction:column; align-items:flex-start; }
  .card-grid--3, .card-grid--4, .steps-grid, .explainer-list{ grid-template-columns:1fr; }
}

@media (max-width:680px){
  .menu-toggle{ display:flex; }
  .primary-nav{
    display:none; flex-direction:column; align-items:stretch; width:100%;
    order:3; padding-top:12px; border-top:1px solid var(--wu-border); margin-top:12px;
  }
  .primary-nav.is-open{ display:flex; }
  #primary-menu{ flex-direction:column; gap:0; }
  #primary-menu a{ display:block; padding:10px 0; border-bottom:1px solid var(--wu-border); }
  #primary-menu .sub-menu{ position:static; box-shadow:none; margin:0 0 0 14px; display:flex; border:none; padding:0; }
  .nav-search{ margin-top:10px; }
  .nav-search input{ width:100%; }
  .header-cta{ text-align:center; }
  .post-grid{ grid-template-columns:1fr; }
  .footer-widgets{ grid-template-columns:1fr; }
  .hero{ padding:44px 0; }
  .section{ padding:40px 0; }
}
