/*
Theme Name: TezzSoft Blog
Theme URI: https://www.tezzsoft.com/blog
Author: TezzSoft
Author URI: https://www.tezzsoft.com
Description: Official TezzSoft Blog Theme — matches tezzsoft.com's design system (Baloo 2 + Nunito fonts (matching wchat.in/blog), blue #2563EB + cyan #06B6D4 accents). Magazine-style listing, reading progress bar, table of contents, sticky sidebar and scroll-reveal animations.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
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: tezzsoft-blog
Tags: blog, light, modern, business, software
*/

/* =============================================
   CSS VARIABLES — TezzSoft brand palette
   (variable names kept from the base theme; values
   remapped to tezzsoft.com's blue/cyan system)
   ============================================= */
:root {
  --green:        #2563EB;  /* primary blue   (tezzsoft --p)  */
  --green-dark:   #1d4ed8;  /* primary dark   (tezzsoft --pd) */
  --green-light:  #3b82f6;  /* primary light */
  --green-pale:   #eff6ff;  /* pale blue background */
  --orange:       #06B6D4;  /* accent cyan    (tezzsoft --acc) */
  --orange-light: #22d3ee;  /* accent cyan light */
  --orange-pale:  #ecfeff;  /* pale cyan background */
  --yellow:       #f59e0b;  /* highlight amber */
  --cream:        #F8FAFC;  /* page background (tezzsoft --bg) */
  --dark:         #0F172A;  /* heading/navy    (tezzsoft --p2) */
  --text:         #1e293b;
  --muted:        #64748b;
  --white:        #ffffff;
  --radius:       14px;
  --shadow:       0 8px 32px rgba(37,99,235,0.10);
  --shadow-lg:    0 20px 60px rgba(37,99,235,0.15);
  --shadow-card:  0 4px 20px rgba(15,23,42,0.05);

  --font-heading: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  width: 100%;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-pale); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 10px; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}

/* =============================================
   HEADER — exact port of tezzsoft.com's real nav
   ============================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
  transition: box-shadow .3s;
}
#nav.up { box-shadow: 0 2px 20px rgba(37,99,235,.10); }

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--dark);
  letter-spacing: -.5px;
}

.site-logo img { height: 48px; width: auto; }

.site-logo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
}

.site-logo__badge {
  font-size: 0.62rem;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* Main nav links */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links .current-menu-item a { color: var(--green); }

/* Header action buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-demo {
  background: var(--green);
  color: #fff !important;
  padding: .52rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-demo:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-ghost {
  font-size: .88rem;
  font-weight: 600;
  color: var(--green);
  padding: .52rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--green-pale-border, #dbeafe);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.btn-ghost:hover { background: var(--green-pale); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* Mobile nav (flat list) */
.mob-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding: 20px 5vw;
  flex-direction: column;
  gap: 4px;
  z-index: 199;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  padding: 11px 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.mob-nav .btn-demo { margin-top: 8px; text-align: center; border: none; }

/* ── NAV DROPDOWN (Services / Products mega-menu) ── */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 6px; }
.nav-caret { font-size: .6rem; transition: transform .25s; color: var(--muted); }
.has-dropdown:hover .nav-caret,
.has-dropdown.open .nav-caret { transform: rotate(180deg); color: var(--green); }

.nav-dropdown {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 24px 48px rgba(15,23,42,.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 150;
  padding: 36px 5vw;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }

.nav-dropdown-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 28px;
}
.nd-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.nd-item:hover { background: var(--cream); transform: translateX(3px); }
.nd-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--green-pale);
  border: 1px solid var(--green-pale-border, #dbeafe);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background .2s, color .2s;
}
.nd-item:hover .nd-ico { background: var(--green); color: #fff; }
.nd-text { display: flex; flex-direction: column; gap: 2px; }
.nd-text strong { font-family: var(--font-heading); font-weight: 700; font-size: .88rem; color: var(--dark); }
.nd-text small { font-size: .76rem; color: var(--muted); line-height: 1.4; }

.nav-dropdown-footer {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nd-viewall { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: var(--green); text-decoration: none; transition: gap .2s; }
.nd-viewall:hover { gap: 12px; }
.nd-viewall i { font-size: .78rem; }

@media (max-width: 1100px) {
  .nav-dropdown-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE NAV ACCORDION (Services / Products) ── */
.mob-accordion { border-bottom: 1px solid var(--border-color, #e2e8f0); }
.mob-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 11px 0;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
}
.mob-acc-toggle i { font-size: .7rem; color: var(--muted); transition: transform .25s; }
.mob-acc-toggle.open i { transform: rotate(180deg); }
.mob-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  display: flex;
  flex-direction: column;
}
.mob-acc-panel.open { max-height: 520px; overflow-y: auto; }
.mob-acc-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 9px 6px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: none !important;
}
.mob-acc-panel a i { width: 16px; text-align: center; color: var(--green); font-size: .82rem; }
.mob-acc-panel a:hover { color: var(--green); }
.mob-acc-viewall { font-weight: 700 !important; color: var(--green) !important; padding-top: 10px !important; margin-top: 4px; border-top: 1px solid var(--border-color, #e2e8f0); }

/* =============================================
   SHARED BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all .25s;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.btn--primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
  color: #fff;
}

.btn--orange {
  background: #fff;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn--orange:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}
.btn--dark:hover {
  background: #333;
  transform: translateY(-2px);
  color: #fff;
}

/* Section tag pills */
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag.orange-tag { background: var(--orange-pale); color: var(--orange); }

/* =============================================
   BLOG HERO
   ============================================= */
.blog-hero {
  min-height: 340px;
  background: linear-gradient(135deg, #dbeafe 0%, #F8FAFC 50%, #ecfeff 100%);
  padding: 120px 5% 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-hero::before {
  content: '';
  position: absolute; top: -80px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 12px;
}

.blog-hero__title .hi { color: var(--green); }
.blog-hero__title .ho { color: var(--orange); }

.blog-hero__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Search form */
.blog-search {
  max-width: 460px;
  margin: 0 auto;
}

.blog-search__form {
  display: flex;
  gap: 0;
  background: #fff;
  border: 2px solid var(--green-pale);
  border-radius: 50px;
  padding: 4px 4px 4px 20px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  transition: border-color .2s;
}

.blog-search__form:focus-within {
  border-color: var(--green);
}

.blog-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
}

.blog-search__input::placeholder { color: var(--muted); }

.blog-search__btn {
  padding: 9px 22px;
  font-size: 0.85rem;
  border-radius: 50px;
}

/* =============================================
   CATEGORY FILTER BAR
   ============================================= */
.category-bar {
  background: #fff;
  border-top: 2px solid var(--green-pale);
  border-bottom: 2px solid var(--green-pale);
  padding: 14px 5%;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-bar__inner {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
  border: 2px solid var(--green-pale);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* =============================================
   MAIN BLOG LAYOUT
   ============================================= */
.blog-main {
  padding: 50px 5%;
  background: var(--cream);
}

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

/* =============================================
   POST CARDS — match tezz service cards style
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.posts-grid--regular {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 24px;
}

/* Base post card */
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: var(--shadow-card);
  transition: all .3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Featured layout */
.post-card--featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.post-card__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--green-pale);
}

.post-card--featured .post-card__thumbnail {
  aspect-ratio: auto;
  min-height: 280px;
}

.post-card__thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.post-card:hover .post-card__thumbnail img {
  transform: scale(1.05);
}

.post-card__thumbnail-placeholder {
  width: 100%; height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--green-pale), var(--orange-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.post-card__cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 50px;
}

.post-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card--featured .post-card__body {
  padding: 30px;
  justify-content: center;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.post-card__date,
.post-card__read-time {
  font-size: 0.77rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color .2s;
}

.post-card--featured .post-card__title {
  font-size: 1.55rem;
}

.post-card:hover .post-card__title { color: var(--green-dark); }

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-card__author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card__author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.post-card__author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
}

.post-card__read-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.post-card:hover .post-card__read-more { gap: 8px; }

/* =============================================
   SIDEBAR — matches tezz card style
   ============================================= */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}

/* Table of Contents — fixed height, scrolls internally past that */
#tableOfContents {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--green-pale) transparent;
}
#tableOfContents::-webkit-scrollbar { width: 5px; }
#tableOfContents::-webkit-scrollbar-track { background: transparent; }
#tableOfContents::-webkit-scrollbar-thumb { background: var(--green-pale); border-radius: 10px; }
#tableOfContents::-webkit-scrollbar-thumb:hover { background: var(--green-light); }

 /* Mobile & Tablet: Hide TOC */
@media (max-width: 991px) {
    #tocWidget {
        display: none !important;
    }
}

.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--green-pale);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s;
}

.sidebar-widget:hover {
  border-color: var(--green);
}

.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}

/* CTA widget */
.sidebar-cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-color: transparent;
  text-align: center;
  color: #fff;
}

.sidebar-cta:hover { border-color: transparent; }

.sidebar-cta__icon { font-size: 2.5rem; margin-bottom: 10px; }

.sidebar-cta__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-cta__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
}

.sidebar-cta .sidebar-widget__title {
  color: rgba(255,255,255,.8);
  border-bottom-color: rgba(255,255,255,.2);
}

.sidebar-cta .btn--white {
  background: #fff;
  color: var(--green-dark);
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
}

.sidebar-cta .btn--white:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
  color: var(--green-dark);
}

/* Recent posts */
.recent-posts { list-style: none; }

.recent-posts li {
  padding: 10px 0;
  border-bottom: 1px solid var(--green-pale);
}

.recent-posts li:last-child { border: none; padding-bottom: 0; }
.recent-posts li:first-child { padding-top: 0; }

.recent-posts a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 3px;
  transition: color .2s;
}

.recent-posts a:hover { color: var(--green-dark); }

.recent-posts__date {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Tags cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags-cloud a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--green-pale);
  border: 1.5px solid transparent;
  padding: 4px 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: all .2s;
}

.tags-cloud a:hover {
  background: var(--green);
  color: #fff;
}

/* Stats widget */
.stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-mini {
  text-align: center;
  padding: 10px;
  background: var(--green-pale);
  border-radius: 10px;
}

.stat-mini__num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.stat-mini__num.orange { color: var(--orange); }

.stat-mini__label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 2px;
}


 
/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid var(--green-pale);
  color: var(--muted);
  background: #fff;
  text-decoration: none;
  transition: all .2s;
  font-family: var(--font-body);
}

.pagination a:hover {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-pale);
}

.pagination .current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post { background: var(--cream); }
.single-post-main { padding-top: 100px; padding-bottom: 50px;   }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 10px 0 18px;
  max-width: 1160px;
  margin: 0 auto;
  overflow: hidden;
}
 
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs .sep { color: #ccc; flex-shrink: 0; }
.breadcrumbs .current {
  color: var(--text);
  font-weight: 600;
  /* Truncate long post titles in breadcrumb */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 500px;
}
 
/* Mobile: shorten breadcrumb even more */
@media (max-width: 480px) {
  .breadcrumbs { font-size: 0.72rem; gap: 3px; }
  .breadcrumbs .current { max-width: 250px; }
}
/* Post header */
.post-header { margin-bottom: 24px; }

.post-header__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.post-header__cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1.5px solid var(--green);
  padding: 4px 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: all .2s;
}

.post-header__cat:hover {
  background: var(--green);
  color: #fff;
}

.post-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 2px solid var(--green-pale);
  border-bottom: 2px solid var(--green-pale);
}

.post-header__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-header__author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.post-header__author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.post-header__author-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
}

.post-header__author-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.post-header__stat {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Featured image */
.post-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--green-pale);
  border: 2px solid var(--green-pale);
  /* No fixed aspect-ratio so image shows at its natural height */
  line-height: 0;
}
 
.post-featured-image img {
  width: 100%;
  height: auto;           /* Natural height — never crops */
  display: block;
  object-fit: unset;      /* Override any inherited cover */
}

/* Post content */
.post-content {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 .9rem;
  color: var(--dark);
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--green-pale);
}

.post-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 .7rem;
  color: var(--dark);
}

.post-content p { margin-bottom: 1.2rem; color: var(--text); }

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text);
}

.post-content li { margin-bottom: .4rem; }

.post-content a {
  color: var(--green-dark);
  border-bottom: 1.5px solid rgba(29,78,216,0.3);
  text-decoration: none;
  transition: border-color .2s;
  font-weight: 600;
}

.post-content a:hover { border-color: var(--green-dark); }

.post-content blockquote {
  margin: 2rem 0;
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  background: var(--green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  margin: 0;
}

.post-content pre {
  background: var(--dark);
  color: #93c5fd;
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  position: relative;
}

.post-content code {
  font-size: 0.875em;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: .15em .4em;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
}

.post-content pre code {
  background: none;
  color: #93c5fd;
  padding: 0;
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem auto;
  border: 2px solid var(--green-pale);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.post-content th {
  background: var(--green-pale);
  color: var(--dark);
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--green);
}

.post-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--green-pale);
  color: var(--text);
}

.post-content tr:last-child td { border-bottom: none; }

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--green-pale);
}

/* Share buttons */
.post-share {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-share__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  border: 2px solid var(--green-pale);
  color: var(--muted);
  font-family: var(--font-body);
}

.share-btn:hover { border-color: var(--green); color: var(--green-dark); }
.share-btn--whatsapp:hover { background: var(--green); color: #fff; border-color: var(--green); }
.share-btn--twitter:hover  { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-btn--linkedin:hover { background: #0077b5; color: #fff; border-color: #0077b5; }

/* Author bio */
.author-bio {
  margin-top: 28px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--green-pale);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .2s;
}

.author-bio:hover { border-color: var(--green); }

.author-bio__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-bio__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.author-bio__role {
  font-size: 0.8rem;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.author-bio__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

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

.related-posts__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-section {
  margin-top: 40px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 2px solid var(--green-pale);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.comment-list { list-style: none; }

.comment {
  padding: 18px;
  border: 2px solid var(--green-pale);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.comment-author-name { font-weight: 700; color: var(--dark); font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--muted); }
.comment-body p { font-size: 0.9rem; margin-top: 8px; }

.comment-form-wrap { margin-top: 28px; }

.comment-form-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  display: block;
  margin-bottom: 16px;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-group input,
.form-group textarea {
  background: var(--cream);
  border: 2px solid var(--green-pale);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color .2s, background .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: #fff;
}

.form-group textarea { min-height: 110px; resize: vertical; }

/* =============================================
   FOOTER — exact port of tezzsoft.com's real footer
   ============================================= */
footer#contact {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 60px 5vw 28px;
  color: #94a3b8;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 28px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

.footer-about {
  font-size: .87rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.soc {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: #fff;
  font-weight: 700;
  transition: background .2s;
  text-decoration: none;
}
.soc:hover { background: var(--green); }

.footer-col h4 { color: #e2e8f0; font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: .85rem; color: #64748b; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; margin: 0; }

.fb-links { display: flex; gap: 1.5rem; }
.fb-links a { font-size: .8rem; color: #475569; text-decoration: none; }
.fb-links a:hover { color: var(--orange); }

/* Floating WhatsApp — kept in WhatsApp's own green */
.wa {
  position: fixed;
  bottom: 85px; right: 12px;
  z-index: 999;
  width: 54px; height: 54px;
  background: #22C55E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,197,94,.5);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
}
.wa:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(34,197,94,.6); color: #fff; }
.wa-tip {
  position: absolute;
  right: 62px;
  background: var(--dark);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.wa:hover .wa-tip { opacity: 1; }

/* Back to top */
.btt {
  position: fixed;
  bottom: 154px; right: 12px;
  z-index: 999;
  width: 45px; height: 45px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  cursor: pointer;
}
.btt.on { opacity: 1; pointer-events: all; }
.btt:hover { transform: translateY(-3px); }

/* =============================================
   READING PROGRESS BAR
   ============================================= */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  z-index: 1001;
  transition: width .1s linear;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp   { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }

.reveal { opacity:0; transform:translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* =============================================
   404 PAGE
   ============================================= */
.page-404 {
  text-align: center;
  padding: 80px 0;
}

.page-404__emoji { font-size: 4rem; margin-bottom: 16px; }

/* =============================================
   WORDPRESS DEFAULTS
   ============================================= */
.alignleft  { float:left; margin-right:1.5rem; margin-bottom:1rem; }
.alignright { float:right; margin-left:1.5rem; margin-bottom:1rem; }
.aligncenter { text-align:center; margin:1rem auto; }

.wp-caption {
  background: #fff;
  border: 2px solid var(--green-pale);
  border-radius: 10px;
  padding: 6px;
}

.wp-caption-text {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

.screen-reader-text {
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0;
  position:absolute; width:1px; word-wrap:normal;
}

/* Gutenberg */
.wp-block-quote {
  border-left: 4px solid var(--green);
  padding: 14px 20px;
  background: var(--green-pale);
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .blog-layout,
  .single-layout { grid-template-columns: 1fr; }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__thumbnail { min-height: auto; aspect-ratio: 16/7; }

  .related-posts__grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; }
}

@media (max-width: 768px) {
  .comment-form .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .posts-grid--regular { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .blog-hero { padding: 100px 5% 50px; }
  .blog-search__form { flex-direction: column; border-radius: var(--radius); padding: 12px 16px; }
  .blog-search__btn { border-radius: 50px; width: 100%; justify-content: center; margin-top:15px; }
  .wa { bottom: 75px; right: 10px; }
  .btt { bottom: 135px; right: 10px; }
}

/* Admin bar */
.admin-bar #nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #nav { top: 46px; } }
