/*
Theme Name: Unifi Malaysia
Theme URI: https://unifi-malaysia.com
Author: Unifi Malaysia
Author URI: https://unifi-malaysia.com
Description: Custom WordPress theme for Unifi Malaysia authorized reseller — optimised for lead generation, local SEO, and conversion.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: unifi-malaysia
Tags: custom-logo, custom-menu, full-width-template, sticky-post, threaded-comments
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:     #FF6600;
  --orange-dark:#e05400;
  --green-wa:   #25D366;
  --navy:       #0D1B2A;
  --white:      #ffffff;
  --off-white:  #F7F7F5;
  --border:     rgba(0,0,0,0.1);
  --text:       #1a1a1a;
  --text-muted: #666666;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --font-main:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* === UTILITY === */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* === TOPBAR === */
.site-topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
}
.site-topbar strong { color: var(--white); }
.site-topbar a { color: var(--green-wa); }

/* === HEADER / NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

/* Logo — uses WordPress custom_logo */
.site-logo a { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 40px; width: auto; }
.site-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.3px;
}

/* Nav menu */
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
.site-nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}
.site-nav ul li a:hover { color: var(--orange); text-decoration: none; }
.site-nav ul li.current-menu-item a { color: var(--orange); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: opacity .15s, transform .1s; text-decoration: none; }
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn-orange  { background: var(--orange); color: var(--white); }
.btn-wa      { background: var(--green-wa); color: var(--white); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* === HERO === */
.site-hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.site-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 360px; height: 360px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { max-width: 1160px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px; padding: 4px 14px;
  color: var(--white); font-size: 12px; font-weight: 500;
  margin-bottom: 16px;
}
.hero-inner h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero-sub { color: rgba(255,255,255,0.88); font-size: 16px; margin-bottom: 20px; }

.hero-benefits {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.hero-benefits span {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px; padding: 5px 14px;
  color: var(--white); font-size: 13px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btns .btn { font-size: 15px; padding: 12px 24px; }
.hero-btns .btn-orange { background: var(--white); color: var(--orange); }

/* === STATS BAR === */
.stats-bar {
  background: var(--navy);
  padding: 18px 24px;
}
.stats-bar .inner {
  max-width: 1160px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; text-align: center;
}
.stat-num { font-size: 26px; font-weight: 700; color: var(--orange); }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* === PROMO BANNER === */
.promo-banner {
  background: #FFF3E0;
  border-bottom: 2px solid var(--orange);
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  color: #b34700;
}
.promo-banner strong { font-weight: 700; }

/* === SECTION WRAPPER === */
.section { padding: 56px 24px; }
.section-alt { background: var(--off-white); }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.section-header p  { color: var(--text-muted); font-size: 15px; margin-top: 8px; }

/* === PLAN TABS === */
.plan-tabs { display: flex; justify-content: center; margin-bottom: 28px; }
.tab-toggle {
  display: flex;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tab-toggle button {
  padding: 9px 28px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; background: var(--white); color: var(--orange);
  transition: background .15s, color .15s;
}
.tab-toggle button.active { background: var(--orange); color: var(--white); }

.plans-panel { display: none; }
.plans-panel.active { display: block; }

/* HOME PLANS — 5 cols */
.home-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1160px; margin: 0 auto;
}

/* BIZ PLANS — 4 cols */
.biz-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1160px; margin: 0 auto;
}

/* PLAN CARD */
.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--orange); border-width: 2px; }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: var(--white);
  border-radius: 20px; padding: 3px 12px; font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.plan-speed { font-size: 22px; font-weight: 800; color: var(--orange); }
.plan-speed span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.plan-desc { font-size: 11px; color: var(--text-muted); margin: 4px 0 10px; line-height: 1.4; }
.plan-price { font-size: 20px; font-weight: 700; color: var(--text); }
.plan-price sup { font-size: 13px; font-weight: 600; vertical-align: top; margin-top: 4px; }
.plan-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.plan-old { font-size: 11px; color: var(--text-muted); text-decoration: line-through; margin-bottom: 12px; }
.plan-features { list-style: none; margin: 0 0 16px; flex: 1; }
.plan-features li {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.plan-features li::before { content: '✓'; color: var(--green-wa); font-weight: 700; flex-shrink: 0; }
.plan-card .btn { width: 100%; justify-content: center; font-size: 13px; margin-top: auto; }

.biz-note {
  max-width: 1160px; margin: 16px auto 0;
  background: #FFF3E0; border-radius: var(--radius-md);
  padding: 12px 16px; font-size: 13px; color: #b34700;
  display: flex; align-items: flex-start; gap: 10px;
}

/* === TRUST === */
.trust-section .inner { max-width: 960px; margin: 0 auto; }
.trust-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.trust-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 26px; color: var(--white);
}
.trust-title { font-size: 18px; font-weight: 700; color: var(--text); }
.trust-sub { font-size: 13px; color: var(--text-muted); }
.trust-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.trust-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-size: 13px; color: var(--text-muted);
}
.trust-pill .icon { color: var(--orange); }
.trust-consultant {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
}
.trust-avatar {
  width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  background: #e0eaf5; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #4a90d9;
}
.trust-avatar img { width: 100%; height: 100%; object-fit: cover; }
.trust-name { font-size: 15px; font-weight: 600; color: var(--text); }
.trust-role { font-size: 13px; color: var(--text-muted); }

/* === TIMELINE === */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 900px; margin: 0 auto;
  position: relative;
}
.timeline-steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 10%; right: 10%;
  height: 2px; background: var(--border);
  z-index: 0;
}
.tl-step { text-align: center; position: relative; z-index: 1; }
.tl-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}
.tl-step.done .tl-num { background: var(--green-wa); box-shadow: 0 0 0 2px var(--green-wa); }
.tl-label { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* === TESTIMONIALS === */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px; margin: 0 auto;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.testi-stars { color: var(--orange); font-size: 14px; margin-bottom: 8px; letter-spacing: 2px; }
.testi-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e0eaf5; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #4a90d9;
  overflow: hidden;
}
.testi-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-size: 13px; font-weight: 600; color: var(--text); }
.testi-loc  { font-size: 11px; color: var(--text-muted); }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q .icon { font-size: 18px; color: var(--orange); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { font-size: 14px; color: var(--text-muted); padding-bottom: 14px; display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* === CITIES === */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 1000px; margin: 0 auto;
}
.city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
}
.city-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); text-decoration: none; }
.city-card .icon { font-size: 22px; color: var(--orange); margin-bottom: 6px; }
.city-card span { font-size: 12px; color: var(--text-muted); display: block; }

/* === FOOTER === */
.site-footer { background: #0D1B2A; padding: 48px 24px 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1160px; margin: 0 auto 32px;
}
.footer-brand .logo-wrap img {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
  mix-blend-mode: screen; /* makes white bg invisible on dark footer */
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-col ul li a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
  flex-wrap: wrap; gap: 8px;
}

/* === FLOATING WHATSAPP === */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
}
.wa-float a {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-wa); color: var(--white);
  border-radius: 50px; padding: 12px 20px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.wa-float a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.45); text-decoration: none; }
.wa-float .wa-icon { font-size: 20px; }

/* === MOBILE STICKY CTA === */
.mobile-sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  gap: 10px;
}
.mobile-sticky-cta .btn { flex: 1; justify-content: center; font-size: 13px; padding: 10px 12px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .home-plans-grid { grid-template-columns: repeat(3, 1fr); }
  .biz-plans-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav ul, .site-nav .btn-orange { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open ul {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 12px; z-index: 100;
  }
  .stats-bar .inner { grid-template-columns: repeat(2, 1fr); }
  .home-plans-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-plans-grid  { grid-template-columns: 1fr 1fr; }
  .timeline-steps  { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .testi-grid      { grid-template-columns: 1fr; }
  .cities-grid     { grid-template-columns: repeat(3, 1fr); }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .wa-float { display: none; }  /* hidden on mobile — sticky bottom bar handles this */
  .mobile-sticky-cta { display: flex; }
}

@media (max-width: 480px) {
  .home-plans-grid { grid-template-columns: 1fr; }
  .biz-plans-grid  { grid-template-columns: 1fr; }
  .cities-grid     { grid-template-columns: repeat(2, 1fr); }
  .timeline-steps  { grid-template-columns: repeat(2, 1fr); }
  .hero-inner h1   { font-size: 26px; }
}


/* =============================================================
   BLOG — SINGLE POST
   ============================================================= */

.single-main { padding: 40px 0 64px; }

.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }

/* Category pills */
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-pill {
  display: inline-block;
  background: #FFF3E0;
  color: var(--orange);
  border: 1px solid rgba(255,102,0,0.25);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.cat-pill:hover { background: var(--orange); color: var(--white); text-decoration: none; }

/* Post title */
.post-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

/* Post meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Featured image */
.post-thumbnail {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-thumbnail img { width: 100%; height: auto; display: block; }

/* Article body */
.post-content,
.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2,
.entry-content h2 {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin: 36px 0 12px;
  letter-spacing: -0.3px;
}
.post-content h3,
.entry-content h3 {
  font-size: 18px; font-weight: 700;
  color: var(--text); margin: 28px 0 10px;
}
.post-content p,
.entry-content p { margin-bottom: 18px; }
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol {
  padding-left: 24px; margin-bottom: 18px;
}
.post-content li,
.entry-content li { margin-bottom: 8px; }
.post-content a,
.entry-content a { color: var(--orange); text-decoration: underline; }
.post-content a:hover,
.entry-content a:hover { color: var(--orange-dark); }
.post-content img,
.entry-content img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-md);
  margin: 16px 0;
}
.post-content blockquote,
.entry-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 12px 20px;
  margin: 24px 0;
  background: #FFF3E0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.post-content table,
.entry-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 14px;
}
.post-content th,
.post-content td,
.entry-content th,
.entry-content td {
  border: 1px solid var(--border);
  padding: 10px 12px; text-align: left;
}
.post-content th,
.entry-content th {
  background: var(--off-white);
  font-weight: 700;
}
.post-content tr:nth-child(even),
.entry-content tr:nth-child(even) { background: #fafafa; }

/* Inline CTA block inside article */
.inline-cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.inline-cta-text strong {
  display: block; font-size: 17px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.inline-cta-text p { font-size: 13px; color: rgba(255,255,255,0.85); margin: 0; }
.inline-cta-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* Tags */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 28px 0; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.tag-pill {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 12px;
  font-size: 12px; color: var(--text-muted);
  text-decoration: none;
}
.tag-pill:hover { border-color: var(--orange); color: var(--orange); text-decoration: none; }

/* Post nav (prev/next) */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav-prev, .post-nav-next {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.post-nav-next { text-align: right; }
.nav-label {
  display: block; font-size: 11px;
  font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.post-nav a {
  font-size: 13px; font-weight: 600;
  color: var(--text); line-height: 1.4;
}
.post-nav a:hover { color: var(--orange); text-decoration: none; }

/* =============================================================
   SIDEBAR (shared by single + archive)
   ============================================================= */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}

/* Sidebar CTA (lead form wrapper) */
.sidebar-cta { background: var(--off-white); }
.sidebar-cta h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sidebar-cta p  { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.sidebar-cta .unifi-lead-form-wrap {
  padding: 0 !important;
  background: transparent !important;
  max-width: 100% !important;
}
.sidebar-cta .unifi-lead-form-wrap h3 { display: none; }
.sidebar-cta .unifi-lead-form-wrap > p { display: none; }

/* Related / recent post list */
.related-list { list-style: none; }
.related-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.related-item:last-child { border-bottom: none; }
.related-thumb { flex-shrink: 0; width: 64px; height: 50px; border-radius: var(--radius-sm); overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; min-width: 0; }
.related-title {
  font-size: 13px; font-weight: 600;
  color: var(--text); line-height: 1.4;
  display: block; margin-bottom: 4px;
}
.related-title:hover { color: var(--orange); text-decoration: none; }
.related-date { font-size: 11px; color: var(--text-muted); }

/* City links in sidebar */
.city-links { list-style: none; }
.city-links li { border-bottom: 1px solid var(--border); }
.city-links li:last-child { border-bottom: none; }
.city-links a {
  display: block; padding: 8px 0;
  font-size: 13px; color: var(--text-muted);
}
.city-links a:hover { color: var(--orange); text-decoration: none; padding-left: 4px; transition: padding .1s; }

/* Category list in sidebar */
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: var(--text-muted);
}
.cat-list a:hover { color: var(--orange); text-decoration: none; }
.cat-count { color: var(--text-muted); font-size: 12px; }

/* WA sidebar widget */
.sidebar-wa { background: #f0fdf4; border-color: rgba(37,211,102,0.3); text-align: center; }
.wa-widget-icon { font-size: 32px; margin-bottom: 8px; }
.sidebar-wa h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sidebar-wa p  { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

/* =============================================================
   BLOG ARCHIVE / LISTING
   ============================================================= */

.archive-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}
.archive-hero h1 { font-size: 28px; font-weight: 800; color: var(--text); margin: 10px 0 6px; }
.archive-hero p  { font-size: 15px; color: var(--text-muted); }

.archive-main { padding: 40px 0 64px; }

.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

/* Post card grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card-thumb {
  display: block; aspect-ratio: 16/9; overflow: hidden;
  background: var(--off-white);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: var(--off-white);
}

.post-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin: 8px 0 10px;
  line-height: 1.4;
}
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--orange); }
.post-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.post-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.read-more {
  font-size: 13px; font-weight: 600;
  color: var(--orange); text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* Pagination */
.archive-pagination {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  background: var(--off-white); color: var(--text); border: 1px solid var(--border);
  text-decoration: none;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--orange); color: var(--white); border-color: var(--orange);
}
.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next { width: auto; padding: 0 14px; }

/* No posts */
.no-posts { text-align: center; padding: 60px 20px; }
.no-posts p { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-field {
  flex: 1; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
}
.search-field:focus { outline: none; border-color: var(--orange); }
.search-submit {
  background: var(--orange); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 14px; cursor: pointer;
}

/* =============================================================
   RESPONSIVE — BLOG
   ============================================================= */
@media (max-width: 1024px) {
  .single-layout  { grid-template-columns: 1fr 280px; gap: 28px; }
  .archive-layout { grid-template-columns: 1fr 260px; gap: 24px; }
}

@media (max-width: 768px) {
  .single-layout  { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .single-sidebar, .archive-sidebar { order: -1; }
  .posts-grid     { grid-template-columns: 1fr; }
  .post-nav       { grid-template-columns: 1fr; }
  .post-nav-next  { text-align: left; }
  .inline-cta     { flex-direction: column; }
}


/* =============================================================
   FOOTER LOGO — mix-blend-mode:screen makes white bg invisible
   on dark footer without needing a transparent PNG
   ============================================================= */
.footer-logo-wrap img.custom-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
  mix-blend-mode: screen;
}

/* Text fallback stays white on dark footer */
.footer-logo-wrap .logo-text-link .logo-text {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

/* =============================================================
   HERO — SINGLE APPLY NOW BUTTON (centred, wider)
   ============================================================= */
.hero-wa-btn {
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  gap: 10px;
}
.hero-wa-btn:hover {
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transform: translateY(-2px);
}

/* =============================================================
   PLAN CARD — Apply Now button (full green)
   ============================================================= */
.plan-card .btn-wa {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  gap: 6px;
  padding: 9px 12px;
}

/* =============================================================
   MOBILE STICKY — single full-width Apply Now
   ============================================================= */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    padding: 10px 16px;
  }
  .mobile-sticky-cta .btn {
    font-size: 14px;
    padding: 12px 16px;
    gap: 8px;
  }
}
