/*
Theme Name: WChat Blog
Theme URI: https://wchat.in/blog
Author: WChat
Author URI: https://wchat.in
Description: Official WChat Blog Theme — matches wchat.in exactly. Cream background, Baloo 2 + Nunito fonts, green #25d366 + orange #e65100 accents.
Version: 2.0.0
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: wchat-blog
Tags: blog, light, modern, saas, whatsapp
*/

/* =============================================
   CSS VARIABLES — match wchat.in exactly
   ============================================= */
:root {
  --green:        #25d366;
  --green-dark:   #128c7e;
  --green-light:  #43a047;
  --green-pale:   #e8f5e9;
  --orange:       #e65100;
  --orange-light: #ef6c00;
  --orange-pale:  #fff3e0;
  --yellow:       #f9a825;
  --cream:        #fffdf6;
  --dark:         #1a1a1a;
  --text:         #333333;
  --muted:        #777777;
  --white:        #ffffff;
  --radius:       18px;
  --shadow:       0 8px 32px rgba(37,211,102,0.10);
  --shadow-lg:    0 20px 60px rgba(37,211,102,0.15);
  --shadow-card:  0 4px 20px rgba(0,0,0,0.04);

  --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; overflow-x: hidden; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  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 match to wchat.in
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,253,246,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--green-pale);
  padding: 10px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(37,211,102,0.08);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(37,211,102,0.15);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

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

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0;
}

.site-logo__text .w    { color: var(--green); }
.site-logo__text .c    { color: var(--orange); }
.site-logo__text .rest { color: var(--dark); }

.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: 26px;
  align-items: center;
  list-style: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links .current-menu-item a::after { width: 100%; }
.nav-links a:hover,
.nav-links .current-menu-item a { color: var(--green-dark); }

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

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}

.btn-login:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--green);
  border-radius: 2px;
  transition: .3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 999;
  padding: 12px 5%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-bottom: 2px solid var(--green-pale);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--green-pale);
  transition: color .2s;
}

.mobile-nav a:last-child { border: none; }
.mobile-nav a:hover { color: var(--green-dark); }

/* =============================================
   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,211,102,0.3);
}
.btn--primary:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,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, #e8f5e9 0%, #fffdf6 50%, #fff3e0 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,211,102,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(230,81,0,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,211,102,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 wchat 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 wchat card style
   ============================================= */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}

 /* 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(18,140,126,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: #a8d8a8;
  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: #a8d8a8;
  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 match to wchat.in footer
   ============================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 60px 5% 30px;
  width: 100%;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto 50px;
}

.footer-brand__logo {
  margin-bottom: 12px;
}

.footer-brand__logo img { height: 48px; width: auto; }

.footer-brand__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.footer-brand__logo-text .w    { color: #6fcf7c; }
.footer-brand__logo-text .c    { color: #f4a261; }
.footer-brand__logo-text .rest { color: rgba(255,255,255,.9); }

.footer-brand__sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,.5);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s;
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 9px; }

.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color .2s;
}

.footer-links a:hover { color: #6fcf7c; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1160px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}

/* =============================================
   FLOATING WHATSAPP BUTTON — exact match
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1000;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  text-decoration: none;
  animation: wapulse 2.5s ease-in-out infinite;
  transition: transform .2s;
}

.wa-float:hover { transform: scale(1.15); color: #fff; }

@keyframes wapulse {
  0%,100% { box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 8px 40px rgba(37,211,102,0.8); }
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 92px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-dark); color: #fff; 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: 200;
  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-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 2px solid var(--green-pale);
    padding: 12px 5%;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 998;
    gap: 0;
  }
  .nav-links.open li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--green-pale);
    width: 100%;
  }
  .nav-links.open li:last-child a { border: none; }
  .nav-toggle { 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-grid { grid-template-columns: 1fr; }
  .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-float { bottom: 18px; right: 18px; }
}

@media (max-width: 900px) {
  .nav-actions .btn-login span { display: none; }
}

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