/*
Theme Name: RA Harish Chandan
Theme URI: https://raharishchandan.com
Author: S Harish Chandan
Author URI: https://raharishchandan.com
Description: A professional dark-themed blog for SEBI Registered Research Analyst S Harish Chandan — featuring market analysis, investor education, and financial research.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: harish-chandan
Tags: dark, finance, blog, two-columns, right-sidebar, custom-colors, custom-logo, featured-images
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #0f1e1e;
  font-family: 'Nunito', sans-serif;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: 'Nunito', sans-serif; }
.highlight { color: #F8DE5D; }

/* ============================================================
   NAVBAR
   ============================================================ */
.section { background: #172526; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: #172526;
  position: relative;
  z-index: 50;
}
.nav-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 80px; width: auto; object-fit: contain; display: block; }
.logo-text-fallback { font-size: 26px; font-weight: 800; color: #F8DE5D; letter-spacing: 1px; }
.divider { width: 5px; height: 80px; background: #1ecb8b; border-radius: 4px; flex-shrink: 0; }
.info { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; min-width: 0; }
.info .name { font-weight: 700; color: #fff; }
.info .reg-no { font-size: 16px; letter-spacing: 2px; color: #F8DE5D; font-weight: 800; }
.info .upi { font-size: 12px; color: #8aabab; }
.info .upi span { font-weight: 700; color: #F8DE5D; }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.login-btn {
  padding: 0 28px; height: 46px; border: 0; border-radius: 50px;
  background: linear-gradient(180deg, #918F90 0%, #191718 81%, #252120 100%);
  color: #EDEBE7; font-size: 15px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0px -3px 3px 1px #FFF5DD1A inset, 2.5px -2px 3px 0px #7C6C5EBF inset;
  transition: transform 0.15s, opacity 0.15s; white-space: nowrap;
}
.login-btn:hover { transform: translateY(-1px); opacity: 0.9; }
.hamburger {
  width: 46px; height: 46px; background: #fff; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0;
  border: none; transition: transform 0.2s;
}
.hamburger:hover { transform: scale(1.08); }
.hamburger span { width: 22px; height: 2.5px; background: #111; border-radius: 2px; display: block; }

/* Mobile slide-in menu */
.menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: 0.3s; z-index: 98;
}
.mobile-menu {
  position: fixed; top: 0; right: 0;
  width: 280px; height: 100vh;
  background: #0d1e1e; border-left: 1px solid #1e3333;
  padding: 72px 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); opacity: 0; visibility: hidden;
  transition: 0.3s; z-index: 100;
}
.mobile-menu a {
  color: #bbb; font-size: 17px; font-weight: 600;
  padding: 12px 16px; border-radius: 10px; transition: all 0.2s; display: block;
}
.mobile-menu a:hover { color: #F8DE5D; background: rgba(248,222,93,0.06); }
.mobile-menu-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #1e3333; border: none; color: #fff;
  font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateX(0); }
.menu-open .menu-overlay { opacity: 1; visibility: visible; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: #0d1a1a; padding: 12px 40px;
  font-size: 14px; color: #4a7070;
  border-bottom: 1px solid #1a2e2e;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.breadcrumb-bar a { color: #F8DE5D; transition: opacity 0.2s; }
.breadcrumb-bar a:hover { opacity: 0.8; }
.breadcrumb-bar .sep { color: #2a4040; margin: 0 2px; }

/* ============================================================
   BLOG HERO
   ============================================================ */
.blog-hero {
  background: linear-gradient(135deg, #0d1a1a 0%, #172526 50%, #0a1616 100%);
  padding: 64px 40px 52px; text-align: center;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(30,203,139,0.1) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.blog-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(248,222,93,0.07) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(248,222,93,0.1); border: 1px solid rgba(248,222,93,0.25);
  color: #F8DE5D; font-size: 12px; font-weight: 800;
  padding: 6px 18px; border-radius: 50px;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.blog-hero h1 {
  font-size: 52px; font-weight: 800; color: #fff;
  line-height: 1.1; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.blog-hero p {
  font-size: 17px; color: #7aabab; max-width: 560px;
  margin: 0 auto; position: relative; z-index: 1; line-height: 1.7;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  background: #0d1a1a; padding: 16px 40px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; border-bottom: 1px solid #1a2e2e;
}
.filter-label {
  font-size: 12px; color: #4a7070; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  white-space: nowrap; margin-right: 4px;
}
.filter-tag {
  padding: 7px 18px; border-radius: 50px;
  border: 1px solid #1e3333; color: #9ababa; font-size: 13px;
  cursor: pointer; transition: all 0.2s; background: transparent;
  font-weight: 600; white-space: nowrap; display: inline-block;
}
.filter-tag:hover, .filter-tag.active { background: #F8DE5D; color: #000; border-color: #F8DE5D; }

/* Search box */
.search-wrap { margin-left: auto; position: relative; }
.search-wrap form { position: relative; display: flex; align-items: center; }
.search-wrap .si {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #4a7070; font-size: 13px; pointer-events: none; z-index: 2;
}
.search-wrap input[type="text"],
.search-wrap input[type="search"] {
  background: #142222; border: 1px solid #1e3333; border-radius: 50px;
  padding: 10px 18px 10px 38px; color: #fff; font-size: 14px;
  width: 220px; height: 40px; font-family: 'Nunito', sans-serif; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.search-wrap input:focus { border-color: #1ecb8b; box-shadow: 0 0 0 3px rgba(30,203,139,0.1); }
.search-wrap input::placeholder { color: #3a5a5a; }

/* ============================================================
   MAIN BLOG LAYOUT — 2 col: posts + sidebar
   ============================================================ */
.blog-layout {
  background: #0f1e1e; padding: 44px 40px;
  display: grid; grid-template-columns: 1fr 320px;
  gap: 44px; align-items: start;
}

/* ============================================================
   POSTS COLUMN
   ============================================================ */
.posts-grid { display: flex; flex-direction: column; gap: 36px; min-width: 0; }

/* ── Featured Hero Post ── */
.featured-post {
  position: relative; border-radius: 18px; overflow: hidden;
  height: 460px; display: block; color: inherit; transition: transform 0.3s;
}
.featured-post:hover { transform: translateY(-3px); }
.featured-post .bg-image {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  max-width: none !important; object-fit: cover !important; display: block;
}
.featured-post-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a4040, #0d2a2a);
  display: flex; align-items: center; justify-content: center;
}
.featured-post-fallback i { font-size: 80px; color: rgba(30,203,139,0.15); }
.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  z-index: 1;
}
.featured-tag {
  position: absolute; top: 20px; left: 20px;
  background: #F8DE5D; color: #000;
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2.5px; padding: 5px 16px; border-radius: 50px; z-index: 2;
}
.featured-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 36px; z-index: 2;
}
.featured-content h2 {
  font-size: 28px; font-weight: 800; color: #fff;
  line-height: 1.25; margin: 10px 0 14px;
}
.featured-content .post-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: #8aabab; flex-wrap: wrap;
}

/* Category badges */
.post-category {
  display: inline-block; padding: 4px 13px;
  border-radius: 50px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.cat-market   { background: rgba(248,222,93,0.15);  color: #F8DE5D;  border: 1px solid rgba(248,222,93,0.3); }
.cat-learn    { background: rgba(30,203,139,0.15);  color: #1ecb8b; border: 1px solid rgba(30,203,139,0.3); }
.cat-news     { background: rgba(255,120,50,0.15);  color: #ff7832; border: 1px solid rgba(255,120,50,0.3); }
.cat-research { background: rgba(170,100,255,0.15); color: #aa64ff; border: 1px solid rgba(170,100,255,0.3); }

/* ── DESKTOP: 2-column post grid ── */
.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Post card — vertical card for grid */
.post-card {
  display: flex; flex-direction: column;
  background: #0d1a1a; border-radius: 14px; overflow: hidden;
  border: 1px solid #1a2e2e;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer; text-decoration: none; color: inherit;
}
.post-card:hover {
  border-color: #1ecb8b; transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

/* Thumbnail — full width */
.post-thumb-wrap {
  width: 100%; height: 190px;
  overflow: hidden; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, #142828, #0a1a1a);
}
.post-thumb-wrap img.post-thumb {
  width: 100% !important; height: 100% !important;
  max-width: none !important; object-fit: cover !important;
  display: block !important; transition: transform 0.45s ease;
}
.post-card:hover .post-thumb-wrap img.post-thumb { transform: scale(1.06); }
.post-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.post-thumb-fallback i { font-size: 44px; color: #1ecb8b; opacity: 0.2; }

/* Card body */
.post-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; min-width: 0;
}
.post-body .post-category { font-size: 10px; padding: 3px 10px; align-self: flex-start; margin-bottom: 2px; }
.post-body h3 {
  font-size: 16px; font-weight: 700; color: #fff; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-body p.excerpt {
  font-size: 13px; color: #5a8080; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #3a6060; flex-wrap: wrap;
  margin-top: auto; padding-top: 12px; border-top: 1px solid #1a2e2e;
}
.post-meta i { font-size: 11px; margin-right: 3px; }
.read-time {
  margin-left: auto; background: rgba(248,222,93,0.08);
  color: #F8DE5D; padding: 2px 10px; border-radius: 50px;
  font-size: 10px; font-weight: 800; white-space: nowrap;
}

/* Load more */
.load-more-wrap { text-align: center; padding-top: 10px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 38px; border-radius: 50px;
  border: 1px solid #1e3333; background: transparent;
  color: #F8DE5D; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: all 0.25s; text-decoration: none;
}
.load-more-btn:hover { background: #F8DE5D; color: #000; border-color: #F8DE5D; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 24px; }
.sidebar-widget { background: #0d1a1a; border-radius: 14px; padding: 24px; border: 1px solid #1a2e2e; }
.widget-title {
  font-size: 13px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid #1ecb8b;
  display: flex; align-items: center; gap: 8px;
}
.widget-title i { color: #1ecb8b; }

/* CTA */
.cta-widget { background: linear-gradient(145deg, #0c2424, #142e2e); border: 1px solid rgba(30,203,139,0.18); text-align: center; }
.cta-widget .sebi-badge {
  display: inline-block; background: rgba(30,203,139,0.12); border: 1px solid rgba(30,203,139,0.28);
  color: #1ecb8b; font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 50px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
}
.cta-widget h3 { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.cta-widget p { font-size: 13px; color: #7aabab; margin-bottom: 20px; line-height: 1.6; }
.cta-btn {
  display: block; padding: 13px 20px; background: #F8DE5D; color: #000;
  border-radius: 50px; font-weight: 800; font-size: 14px;
  margin-bottom: 10px; transition: all 0.2s; text-align: center;
}
.cta-btn:hover { background: #f0d020; transform: translateY(-1px); }
.cta-btn-outline {
  display: block; padding: 11px 20px; border: 1px solid #1e3333; color: #7aabab;
  border-radius: 50px; font-weight: 600; font-size: 13px; transition: all 0.2s; text-align: center;
}
.cta-btn-outline:hover { border-color: #F8DE5D; color: #F8DE5D; }

/* Categories */
.category-list { display: flex; flex-direction: column; gap: 8px; }
.category-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-radius: 10px;
  border: 1px solid #1a2e2e; transition: all 0.2s;
  text-decoration: none; color: inherit;
}
.category-item:hover { border-color: #F8DE5D; background: rgba(248,222,93,0.04); }
.category-item-left { display: flex; align-items: center; gap: 10px; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.category-item span { font-size: 13px; color: #bbb; font-weight: 600; }
.cat-count { background: #1a2e2e; color: #5a7a7a; font-size: 11px; padding: 2px 10px; border-radius: 50px; }

/* Popular posts */
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; }
.popular-item:hover .pop-title { color: #F8DE5D; }
.pop-num { font-size: 24px; font-weight: 900; color: #1a2e2e; line-height: 1; min-width: 30px; }
.pop-title { font-size: 13px; font-weight: 700; color: #aaa; line-height: 1.45; transition: color 0.2s; }
.pop-date { font-size: 11px; color: #3a6060; margin-top: 3px; }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 13px; border-radius: 50px; border: 1px solid #1a2e2e;
  color: #5a8080; font-size: 12px; cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.tag:hover { border-color: #1ecb8b; color: #1ecb8b; background: rgba(30,203,139,0.07); }

/* Newsletter */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  background: #142222; border: 1px solid #1e3333;
  border-radius: 50px; padding: 11px 18px; color: #fff; font-size: 14px;
  width: 100%; font-family: 'Nunito', sans-serif; outline: none;
  transition: border-color 0.2s; -webkit-appearance: none; appearance: none;
}
.newsletter-form input:focus { border-color: #1ecb8b; }
.newsletter-form input::placeholder { color: #3a5a5a; }
.newsletter-btn {
  padding: 11px 20px; border-radius: 50px; background: #1ecb8b; color: #000;
  border: none; font-size: 14px; font-weight: 800; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: all 0.2s; width: 100%;
}
.newsletter-btn:hover { background: #17b07a; }

/* ============================================================
   PAGINATION
   ============================================================ */
.blog-pagination {
  background: #0f1e1e; padding: 28px 40px 48px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  min-width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #1e3333; background: transparent;
  color: #ccc; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s; padding: 0 10px; text-decoration: none;
}
.blog-pagination .page-numbers:hover { border-color: #F8DE5D; color: #F8DE5D; }
.blog-pagination .page-numbers.current { background: #F8DE5D; color: #000; border-color: #F8DE5D; }
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next { border-radius: 50px; padding: 0 20px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap {
  background: #0f1e1e; padding: 44px 40px;
  display: grid; grid-template-columns: 1fr 320px;
  gap: 44px; align-items: start;
}
.single-post-content {
  background: #0d1a1a; border-radius: 16px; padding: 40px;
  border: 1px solid #1a2e2e; min-width: 0;
}
.single-post-content h1 { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.single-post-content h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 32px 0 14px; }
.single-post-content h3 { font-size: 20px; font-weight: 700; color: #F8DE5D; margin: 24px 0 10px; }
.single-post-content h4 { font-size: 17px; font-weight: 700; color: #ccc; margin: 20px 0 8px; }
.single-post-content p { font-size: 16px; color: #a0c0c0; line-height: 1.85; margin-bottom: 18px; }
.single-post-content ul, .single-post-content ol { padding-left: 24px; margin-bottom: 18px; }
.single-post-content li { font-size: 16px; color: #a0c0c0; line-height: 1.8; margin-bottom: 6px; }
.single-post-content a { color: #1ecb8b; }
.single-post-content a:hover { color: #F8DE5D; }
.single-post-content img { border-radius: 12px; margin: 20px auto; max-width: 100% !important; height: auto !important; }
.single-post-content blockquote {
  border-left: 4px solid #1ecb8b; padding: 16px 22px; margin: 24px 0;
  background: rgba(30,203,139,0.05); border-radius: 0 12px 12px 0;
  color: #7aabab; font-style: italic; font-size: 16px; line-height: 1.7;
}
.single-post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.single-post-content th { background: #1a3030; color: #F8DE5D; padding: 10px 14px; text-align: left; }
.single-post-content td { padding: 10px 14px; border-bottom: 1px solid #1a2e2e; color: #a0c0c0; }
.single-post-content tr:hover td { background: rgba(30,203,139,0.04); }

.post-featured-image {
  width: 100% !important; height: auto !important;
  max-height: 420px; object-fit: cover;
  border-radius: 14px; margin-bottom: 28px; display: block;
}
.post-header-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 1px solid #1a2e2e;
}
.post-header-meta span { font-size: 13px; color: #4a7070; }
.post-header-meta i { color: #1ecb8b; font-size: 12px; margin-right: 4px; }
.post-tags-wrap { margin-top: 28px; padding-top: 24px; border-top: 1px solid #1a2e2e; }
.post-tags-wrap strong {
  font-size: 12px; color: #4a7070; display: block;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid #1a2e2e;
}
.post-nav-link {
  background: #0a1616; padding: 16px 18px;
  border-radius: 12px; border: 1px solid #1a2e2e;
  transition: border-color 0.2s; text-decoration: none; display: block;
}
.post-nav-link:hover { border-color: #1ecb8b; }
.post-nav-link .nav-label {
  color: #1ecb8b; font-size: 11px; font-weight: 800;
  margin-bottom: 6px; display: block;
  text-transform: uppercase; letter-spacing: 1px;
}
.post-nav-link .nav-title {
  font-weight: 700; color: #ccc; font-size: 14px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-nav-link.next-post { text-align: right; }

/* ============================================================
   COMMENTS
   ============================================================ */
#comments { margin-top: 44px; padding-top: 32px; border-top: 1px solid #1a2e2e; }
#comments > h2 {
  font-size: 20px; font-weight: 800; color: #fff;
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
#comments > h2::before {
  content: ''; display: inline-block; width: 4px; height: 20px;
  background: #1ecb8b; border-radius: 2px; flex-shrink: 0;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-direction: column; gap: 16px; }
.comment-list article { background: #0a1616; border: 1px solid #1a2e2e; border-radius: 12px; padding: 20px; }
.comment-list .children { list-style: none; padding-left: 24px; margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.comment-author.vcard { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author .avatar { border-radius: 50% !important; border: 2px solid #1a2e2e !important; width: 40px !important; height: 40px !important; flex-shrink: 0; }
.comment-author .fn { font-size: 14px; color: #fff; font-weight: 700; }
.comment-author .fn a { color: #fff; }
.comment-metadata { font-size: 11px; color: #3a6060; margin-top: 2px; }
.comment-metadata a { color: #3a6060; }
.comment-body .comment-content p { font-size: 14px; color: #9ababa; line-height: 1.7; margin: 0 0 8px; }
.reply { margin-top: 8px; }
.comment-reply-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #1ecb8b; font-weight: 700; transition: color 0.2s; }
.comment-reply-link:hover { color: #F8DE5D; }
.bypostauthor > article { border-left: 3px solid #1ecb8b; }
.no-comments { font-size: 14px; color: #3a6060; margin-bottom: 20px; }
.comment-navigation { display: flex; justify-content: space-between; margin: 16px 0; }
.comment-navigation a { color: #1ecb8b; font-size: 13px; }

#respond {
  background: #0a1616; border: 1px solid #1a2e2e;
  border-radius: 14px; padding: 28px; margin-top: 28px;
}
#respond #reply-title {
  font-size: 18px; font-weight: 800; color: #fff;
  margin-bottom: 6px; padding: 0;
  display: flex; align-items: center; gap: 10px;
}
#respond #reply-title::before {
  content: ''; display: inline-block; width: 4px; height: 18px;
  background: #1ecb8b; border-radius: 2px; flex-shrink: 0;
}
#cancel-comment-reply-link { font-size: 12px; color: #4a7070; font-weight: 400; margin-left: 10px; transition: color 0.2s; }
#cancel-comment-reply-link:hover { color: #ff7832; }
.comment-notes, #respond .logged-in-as { font-size: 13px; color: #4a6a6a; margin-bottom: 18px; line-height: 1.5; }
.comment-notes .required, .required-field-message .required { color: #F8DE5D; }
#respond .logged-in-as a { color: #1ecb8b; }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form-comment { display: flex; flex-direction: column; gap: 6px; }
.comment-form-author,
.comment-form-email,
.comment-form-url { display: flex; flex-direction: column; gap: 6px; }
.comment-form-author { grid-area: author; }
.comment-form-email  { grid-area: email; }
.comment-form-url    { grid-area: url; }
.comment-fields-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; grid-template-areas: "author email" "url url";
}
.comment-form label { font-size: 11px; font-weight: 800; color: #4a7070; text-transform: uppercase; letter-spacing: 1px; display: block; }
.comment-form .required { color: #F8DE5D; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea#comment {
  background: #111e1e !important; border: 1px solid #1a2e2e !important;
  border-radius: 10px !important; padding: 11px 16px !important;
  color: #fff !important; font-size: 14px !important;
  font-family: 'Nunito', sans-serif !important; outline: none !important;
  width: 100% !important; transition: border-color 0.2s, box-shadow 0.2s !important;
  -webkit-appearance: none; appearance: none; display: block;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea#comment:focus {
  border-color: #1ecb8b !important; box-shadow: 0 0 0 3px rgba(30,203,139,0.09) !important;
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: #2a4a4a !important; }
.comment-form textarea#comment { min-height: 150px !important; resize: vertical !important; border-radius: 10px !important; line-height: 1.6 !important; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #4a6a6a; }
.comment-form-cookies-consent input[type="checkbox"] { margin-top: 2px; accent-color: #1ecb8b; flex-shrink: 0; width: 15px; height: 15px; }
.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"], #respond .submit {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  padding: 12px 32px !important; border-radius: 50px !important; border: none !important;
  background: #1ecb8b !important; color: #000 !important; font-size: 14px !important;
  font-weight: 800 !important; font-family: 'Nunito', sans-serif !important; cursor: pointer !important;
  transition: background 0.2s, transform 0.15s !important;
}
.comment-form input[type="submit"]:hover, #respond .submit:hover { background: #17b07a !important; transform: translateY(-1px) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #080f0f; border-top: 1px solid #141e1e; }
.footer-container {
  padding: 56px 40px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.footer .logo-text-fallback { font-size: 28px; font-weight: 800; color: #F8DE5D; letter-spacing: 2px; }
.contact-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #8aabab; transition: color 0.2s; }
.contact-item:hover { color: #F8DE5D; }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; background: #121e1e; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #1ecb8b; flex-shrink: 0; }
.registration-info { max-width: 680px; }
.registration-one { font-size: 13px; color: #4a6a6a; line-height: 1.7; margin-bottom: 6px; }
.registration-two { font-size: 12px; color: #3a5a5a; }
.purple-text { color: #aa64ff; font-weight: 700; }
.odr-link { color: #1ecb8b; }
.odr-link:hover { color: #F8DE5D; }
.upi-footer { font-size: 13px; color: #4a6a6a; background: rgba(248,222,93,0.05); border: 1px solid rgba(248,222,93,0.12); padding: 7px 22px; border-radius: 50px; }
.upi-footer span { color: #F8DE5D; font-weight: 700; }
.footer-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; border-top: 1px solid #141e1e; padding-top: 22px; width: 100%; }
.footer-nav a { font-size: 13px; color: #3a5a5a; transition: color 0.2s; }
.footer-nav a:hover { color: #F8DE5D; }
.footer-copy { font-size: 12px; color: #2a3a3a; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: all 0.25s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ============================================================
   RESPONSIVE — TABLET (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .blog-layout, .single-post-wrap {
    grid-template-columns: 1fr; padding: 28px 24px; gap: 28px;
  }
  .sidebar { display: none; }
  .blog-hero { padding: 44px 24px 36px; }
  .blog-hero h1 { font-size: 38px; }
  .filter-bar { padding: 14px 24px; }
  .blog-pagination { padding: 20px 24px 36px; }
  .breadcrumb-bar { padding: 12px 24px; }
  .navbar { padding: 14px 24px; }
  /* Keep 2-col post grid on tablet */
  .post-list { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Navbar */
  .navbar { padding: 12px 16px; gap: 8px; }
  .login-btn { display: none; }
  .logo img { height: 54px; }
  .divider { height: 58px; }
  .info { font-size: 12px; gap: 1px; }
  .info .name { font-size: 12px; }
  .info .reg-no { font-size: 12px; letter-spacing: 1px; }
  .info .upi { display: none; }
  .hamburger { width: 40px; height: 40px; }
  .hamburger span { width: 18px; }

  /* Breadcrumb */
  .breadcrumb-bar { padding: 10px 16px; font-size: 12px; }

  /* Hero */
  .blog-hero { padding: 32px 16px 28px; }
  .blog-hero h1 { font-size: 24px; }
  .blog-hero p { font-size: 14px; }
  .blog-hero-badge { font-size: 10px; padding: 5px 14px; margin-bottom: 14px; }

  /* Filter bar */
  .filter-bar { padding: 12px 16px; gap: 8px; }
  .filter-label { display: none; }
  .filter-tag { font-size: 12px; padding: 6px 14px; }
  .search-wrap { margin-left: 0; width: 100%; flex-basis: 100%; }
  .search-wrap form { width: 100%; }
  .search-wrap input[type="text"],
  .search-wrap input[type="search"] { width: 100% !important; }

  /* Blog layout */
  .blog-layout, .single-post-wrap { padding: 16px; gap: 20px; }

  /* Posts: single column on mobile */
  .post-list { grid-template-columns: 1fr; gap: 14px; }

  /* Card: horizontal on mobile */
  .post-card { flex-direction: row; align-items: stretch; }
  .post-thumb-wrap { width: 110px; min-width: 110px; height: auto; min-height: 120px; }
  .post-body { padding: 13px 14px; gap: 6px; }
  .post-body h3 { font-size: 14px; -webkit-line-clamp: 3; }
  .post-body p.excerpt { display: none; }
  .post-meta { padding-top: 8px; }

  /* Featured */
  .featured-post { height: 260px; }
  .featured-content { padding: 16px 18px; }
  .featured-content h2 { font-size: 18px; margin-bottom: 8px; }
  .featured-content .post-meta { font-size: 11px; gap: 8px; }
  .featured-tag { font-size: 9px; padding: 4px 12px; }

  /* Pagination */
  .blog-pagination { padding: 16px 16px 28px; gap: 6px; }
  .blog-pagination .page-numbers { min-width: 36px; height: 36px; font-size: 13px; }

  /* Single post */
  .single-post-content { padding: 20px 16px; border-radius: 12px; }
  .single-post-content h1 { font-size: 22px; }
  .single-post-content h2 { font-size: 18px; }
  .single-post-content h3 { font-size: 16px; }
  .single-post-content p { font-size: 15px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next-post { text-align: left; }

  /* Comments */
  #respond { padding: 18px 16px; }
  .comment-fields-grid { grid-template-columns: 1fr; grid-template-areas: "author" "email" "url"; }
  .comment-list .children { padding-left: 12px; }
  .comment-list article { padding: 16px; }

  /* Footer */
  .footer-container { padding: 32px 16px 20px; gap: 18px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 4px; }
  .footer-nav { gap: 10px; }
  .footer-nav a { font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — TINY (≤380px)
   ============================================================ */
@media (max-width: 380px) {
  .divider { display: none; }
  .blog-hero h1 { font-size: 20px; }
  .post-card { flex-direction: column; }
  .post-thumb-wrap { width: 100%; min-width: unset; height: 160px; }
  .post-body p.excerpt { display: block; }
  .post-body h3 { -webkit-line-clamp: 2; }
}
