/*
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.0.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; }
body {
  background: #111;
  font-family: 'Nunito', sans-serif;
  color: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.highlight { color: #F8DE5D; }
.section { padding: 0 16px; background-color: #172526; }

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  color: #fff;
}
.nav-left { display: flex; align-items: center; gap: 24px; }
.logo img { height: 90px; width: auto; object-fit: contain; }
.logo-text-fallback {
  font-size: 28px;
  font-weight: 800;
  color: #F8DE5D;
  letter-spacing: 1px;
}
.divider { width: 6px; height: 100px; background: #1ecb8b; border-radius: 4px; }
.info { display: flex; flex-direction: column; gap: 4px; font-size: 18px; text-align: left; }
.info .reg-no { font-size: 20px; letter-spacing: 2px; color: #F8DE5D; }
.info .upi { font-size: 13px; }
.info .upi span { font-weight: 700; color: #F8DE5D; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.login-btn {
  width: 200px; height: 50px;
  border: 0; border-radius: 74px;
  background: linear-gradient(180deg, #918F90 0%, #191718 81%, #252120 100%);
  color: #EDEBE7; font-size: 16px; font-weight: 600;
  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;
}
.login-btn:hover { transform: translateY(-1px); }
.hamburger {
  width: 52px; height: 52px; background: #fff; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; cursor: pointer;
}
.hamburger span { width: 28px; height: 3px; background: #000; border-radius: 2px; }
.menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transition: 0.3s; z-index: 99;
}
.mobile-menu {
  position: fixed; top: 80px; right: 30px; width: 240px;
  background: #162626; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 22px;
  transform: translateY(-20px); opacity: 0; visibility: hidden;
  transition: 0.3s; z-index: 100; border-radius: 12px;
}
.mobile-menu a { color: #fff; font-size: 20px; }
.mobile-menu a:hover { color: #F8DE5D; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-open .menu-overlay { opacity: 1; visibility: visible; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: #0f1e1e;
  padding: 14px 55px;
  font-size: 15px;
  color: #aaa;
  border-bottom: 1px solid #1e3333;
}
.breadcrumb-bar a { color: #F8DE5D; }
.breadcrumb-bar span { margin: 0 8px; color: #555; }

/* ===== BLOG HERO ===== */
.blog-hero {
  background: linear-gradient(135deg, #0f1e1e 0%, #172526 50%, #0d1a1a 100%);
  padding: 60px 55px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(30,203,139,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(248,222,93,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(248,222,93,0.12);
  border: 1px solid rgba(248,222,93,0.3);
  color: #F8DE5D; font-size: 14px; font-weight: 700;
  padding: 6px 18px; border-radius: 50px;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-size: 52px; font-weight: 800; color: #fff;
  line-height: 1.1; text-align: center; padding: 0;
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: 18px; color: #a8c4c4; max-width: 600px; margin: 0 auto;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  background: #0f1e1e;
  padding: 20px 55px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #1e3333;
}
.filter-label { font-size: 14px; color: #7a9999; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-right: 8px; }
.filter-tag {
  padding: 8px 20px; border-radius: 50px;
  border: 1px solid #2a4040; color: #ccc; font-size: 14px;
  cursor: pointer; transition: all 0.2s; background: transparent;
  font-family: 'Nunito', sans-serif; font-weight: 600;
}
.filter-tag:hover, .filter-tag.active {
  background: #F8DE5D; color: #000; border-color: #F8DE5D;
}
.search-wrap {
  margin-left: auto;
  position: relative;
}
.search-wrap form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap input {
  background: #1a2e2e; border: 1px solid #2a4040;
  border-radius: 50px; padding: 10px 20px 10px 42px;
  color: #fff; font-size: 14px; width: 240px;
  font-family: 'Nunito', sans-serif; outline: none; height: auto;
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: #1ecb8b; }
.search-wrap input::placeholder { color: #5a7a7a; }
.search-wrap i {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: #5a7a7a; font-size: 14px; pointer-events: none;
}

/* ===== MAIN LAYOUT ===== */
.blog-layout {
  background: #172526;
  padding: 50px 55px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

/* ===== POSTS GRID ===== */
.posts-grid { display: flex; flex-direction: column; gap: 40px; }

/* Featured Post */
.featured-post {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 480px; cursor: pointer;
  transition: transform 0.3s;
}
.featured-post:hover { transform: translateY(-4px); }
.featured-post img.bg-image {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.featured-post-fallback {
  width: 100%; height: 100%;
  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.2); }
.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.featured-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px;
}
.post-category {
  display: inline-block; padding: 5px 14px;
  border-radius: 50px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.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); }
.featured-content h2 {
  font-size: 32px; font-weight: 800; color: #fff;
  line-height: 1.2; padding: 0; margin-bottom: 12px;
  text-align: left;
}
.featured-content .post-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: #8aabab;
}
.featured-content .post-meta i { font-size: 12px; }
.featured-tag {
  position: absolute; top: 20px; left: 20px;
  background: #F8DE5D; color: #000;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; padding: 6px 16px; border-radius: 50px;
}

/* Post List */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-card {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 0; background: #0f1e1e;
  border-radius: 14px; overflow: hidden;
  border: 1px solid #1e3333;
  transition: all 0.3s; cursor: pointer;
}
.post-card:hover { border-color: #2a5050; transform: translateX(4px); }
.post-thumb-wrap {
  width: 180px;
  min-width: 180px;
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
}
.post-thumb {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-thumb { transform: scale(1.05); }
.post-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.post-thumb-fallback i { font-size: 40px; }
.post-body {
  padding: 20px 20px 20px 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.post-body h3 {
  font-size: 18px; font-weight: 700; color: #fff;
  line-height: 1.4; margin-bottom: 8px;
  text-align: left; margin-top: 0; padding: 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-body p {
  font-size: 14px; color: #7a9999; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: #4a7070; margin-top: 10px; flex-wrap: wrap;
}
.post-meta i { font-size: 11px; }
.read-time {
  margin-left: auto; background: rgba(248,222,93,0.1);
  color: #F8DE5D; padding: 3px 10px; border-radius: 50px;
  font-size: 11px; font-weight: 700;
}

/* Load More */
.load-more-wrap { text-align: center; margin-top: 10px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 40px; border-radius: 50px;
  border: 1px solid #2a5050; background: transparent;
  color: #F8DE5D; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: all 0.3s;
}
.load-more-btn:hover { background: #F8DE5D; color: #000; border-color: #F8DE5D; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget {
  background: #0f1e1e;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #1e3333;
}
.widget-title {
  font-size: 16px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 22px; padding-bottom: 12px;
  border-bottom: 2px solid #1ecb8b;
  display: flex; align-items: center; gap: 10px;
}
.widget-title i { color: #1ecb8b; }

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, #0d2a2a, #162e2e);
  border: 1px solid rgba(30,203,139,0.2);
  text-align: center;
}
.cta-widget .sebi-badge {
  display: inline-block; background: rgba(30,203,139,0.15);
  border: 1px solid rgba(30,203,139,0.3);
  color: #1ecb8b; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px;
}
.cta-widget h3 {
  font-size: 22px; font-weight: 800; color: #fff;
  line-height: 1.3; margin-bottom: 10px;
  text-align: center; padding: 0; margin-top: 0;
}
.cta-widget p { font-size: 14px; color: #8aabab; margin-bottom: 22px; }
.cta-btn {
  display: block; padding: 14px 20px;
  background: #F8DE5D; color: #000;
  border-radius: 50px; font-weight: 800; font-size: 15px;
  margin-bottom: 10px; transition: all 0.2s;
}
.cta-btn:hover { background: #f0d030; transform: translateY(-1px); }
.cta-btn-outline {
  display: block; padding: 12px 20px;
  border: 1px solid #2a5050; color: #8aabab;
  border-radius: 50px; font-weight: 600; font-size: 14px;
  transition: all 0.2s;
}
.cta-btn-outline:hover { border-color: #F8DE5D; color: #F8DE5D; }

/* Categories */
.category-list { display: flex; flex-direction: column; gap: 10px; }
.category-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid #1e3333; transition: all 0.2s; cursor: pointer;
}
.category-item:hover { border-color: #F8DE5D; background: rgba(248,222,93,0.05); }
.category-item-left { display: flex; align-items: center; gap: 10px; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; }
.category-item span { font-size: 14px; color: #ccc; font-weight: 600; }
.cat-count {
  background: #1e3333; color: #7a9999;
  font-size: 12px; padding: 3px 10px; border-radius: 50px;
}

/* Popular Posts */
.popular-list { display: flex; flex-direction: column; gap: 16px; }
.popular-item { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.popular-item:hover .pop-title { color: #F8DE5D; }
.pop-num {
  font-size: 28px; font-weight: 800; color: #1e3333;
  line-height: 1; min-width: 32px;
}
.pop-title {
  font-size: 14px; font-weight: 700; color: #bbb;
  line-height: 1.4; transition: color 0.2s;
}
.pop-date { font-size: 12px; color: #4a7070; margin-top: 4px; }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px; border-radius: 50px;
  border: 1px solid #1e3333; color: #7a9999;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.tag:hover { border-color: #1ecb8b; color: #1ecb8b; background: rgba(30,203,139,0.08); }

/* Newsletter Widget */
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input {
  background: #172526; border: 1px solid #2a4040;
  border-radius: 50px; padding: 12px 20px;
  color: #fff; font-size: 14px; width: 100%;
  font-family: 'Nunito', sans-serif; height: auto; outline: none;
}
.newsletter-form input::placeholder { color: #4a7070; }
.newsletter-btn {
  padding: 12px 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;
}
.newsletter-btn:hover { background: #17b07a; }

/* ===== PAGINATION ===== */
.blog-pagination {
  background: #172526; padding: 30px 55px 50px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.blog-pagination .page-numbers {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #2a4040; background: transparent;
  color: #ccc; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-family: 'Nunito', sans-serif;
}
.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 {
  width: auto; padding: 0 18px; border-radius: 50px;
}

/* ===== SINGLE POST ===== */
.single-post-wrap {
  background: #172526;
  padding: 50px 55px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}
.single-post-content {
  background: #0f1e1e;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #1e3333;
}
.single-post-content h1 {
  font-size: 36px; font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 20px;
}
.single-post-content h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 32px 0 16px; }
.single-post-content h3 { font-size: 20px; font-weight: 700; color: #F8DE5D; margin: 24px 0 12px; }
.single-post-content p { font-size: 16px; color: #b0c8c8; line-height: 1.8; margin-bottom: 20px; }
.single-post-content ul, .single-post-content ol { padding-left: 24px; margin-bottom: 20px; }
.single-post-content li { font-size: 16px; color: #b0c8c8; line-height: 1.8; margin-bottom: 8px; }
.single-post-content a { color: #1ecb8b; }
.single-post-content a:hover { color: #F8DE5D; }
.single-post-content img { border-radius: 12px; margin: 24px 0; }
.single-post-content blockquote {
  border-left: 4px solid #1ecb8b;
  padding: 16px 24px; margin: 24px 0;
  background: rgba(30,203,139,0.06);
  border-radius: 0 12px 12px 0;
  color: #8aabab; font-style: italic;
}
.post-featured-image {
  width: 100%; border-radius: 16px; margin-bottom: 32px;
  max-height: 420px; object-fit: cover;
}
.post-header-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid #1e3333;
}
.post-header-meta span { font-size: 14px; color: #6a9090; }
.post-header-meta i { color: #1ecb8b; font-size: 13px; margin-right: 5px; }
.post-tags-wrap { margin-top: 32px; padding-top: 28px; border-top: 1px solid #1e3333; }
.post-tags-wrap strong { font-size: 14px; color: #7a9999; display: block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== FOOTER ===== */
.footer { background: #111; border-top: 1px solid #1e2e2e; }
.footer-container {
  padding: 60px 55px 30px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.footer .logo-text-fallback { font-size: 32px; font-weight: 800; color: #F8DE5D; letter-spacing: 2px; }
.contact-row {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.contact-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: #aaa; transition: color 0.2s;
}
.contact-item:hover { color: #F8DE5D; }
.icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: #1a2e2e; display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; color: #1ecb8b;
}
.registration-info { text-align: center; }
.registration-one {
  font-size: 14px; color: #6a8a8a; line-height: 1.6; margin-bottom: 8px;
}
.registration-two { font-size: 13px; color: #4a6a6a; }
.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.06); border: 1px solid rgba(248,222,93,0.15);
  padding: 8px 24px; border-radius: 50px;
}
.upi-footer span { color: #F8DE5D; font-weight: 700; }
.footer-nav {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; justify-content: center;
  border-top: 1px solid #1e2e2e; padding-top: 24px; width: 100%;
}
.footer-nav a { font-size: 14px; color: #5a7a7a; transition: color 0.2s; }
.footer-nav a:hover { color: #F8DE5D; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .blog-layout,
  .single-post-wrap { grid-template-columns: 1fr; padding: 30px 24px; }
  .sidebar { display: none; }
  .blog-hero { padding: 40px 24px 32px; }
  .blog-hero h1 { font-size: 36px; }
  .filter-bar { padding: 16px 24px; }
  .blog-pagination { padding: 20px 24px 40px; }
}
@media (max-width: 768px) {
  .navbar { padding: 14px 16px; }
  .info { font-size: 14px; }
  .info .reg-no { font-size: 15px; }
  .login-btn { display: none; }
  .post-card { grid-template-columns: 120px 1fr; }
  .post-thumb-wrap { width: 120px; min-width: 120px; height: 110px; }
  .featured-post { height: 320px; }
  .featured-content h2 { font-size: 22px; }
  .breadcrumb-bar { padding: 12px 20px; }
  .footer-container { padding: 40px 20px 24px; }
  .footer-nav { gap: 16px; }
}

/* ===== COMMENT FORM & COMMENTS ===== */
#comments {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #1e3333;
}
#comments h2,
#reply-title {
  font-size: 22px; font-weight: 800; color: #fff;
  margin-bottom: 28px; padding: 0;
  display: flex; align-items: center; gap: 10px;
}
#reply-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 22px;
  background: #1ecb8b; border-radius: 2px;
}

/* Comment list */
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 20px; }
.comment-list .comment { background: #0f1e1e; border: 1px solid #1e3333; border-radius: 14px; padding: 24px; }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.comment-author { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.comment-author .avatar { border-radius: 50%; border: 2px solid #1e3333; }
.comment-author b { font-size: 15px; color: #fff; font-weight: 700; }
.comment-author b a { color: #fff; }
.comment-metadata { font-size: 12px; color: #4a7070; margin-top: 2px; }
.comment-metadata a { color: #4a7070; }
.comment-content p { font-size: 15px; color: #b0c8c8; line-height: 1.7; margin: 0; }
.comment-reply-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 13px; color: #1ecb8b; font-weight: 700;
  transition: color 0.2s;
}
.comment-reply-link:hover { color: #F8DE5D; }
.bypostauthor > .comment-body { border-left: 3px solid #1ecb8b; }

/* Comment Form */
#respond {
  background: #0f1e1e;
  border: 1px solid #1e3333;
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}
#respond .comment-notes { font-size: 14px; color: #5a7a7a; margin-bottom: 20px; }
#respond .comment-notes .required { color: #F8DE5D; }

.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url { display: flex; flex-direction: column; gap: 6px; }

.comment-form label {
  font-size: 13px; font-weight: 700; color: #7a9999;
  text-transform: uppercase; letter-spacing: 1px;
}
.comment-form .required { color: #F8DE5D; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  background: #172526;
  border: 1px solid #2a4040;
  border-radius: 10px;
  padding: 12px 18px;
  color: #fff;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: #1ecb8b;
  box-shadow: 0 0 0 3px rgba(30,203,139,0.1);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: #4a7070; }

.comment-form textarea#comment {
  min-height: 150px;
  resize: vertical;
  border-radius: 12px;
  line-height: 1.6;
}

/* Two-column name/email row */
.comment-form-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comment-form input[type="submit"],
#respond .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  background: #1ecb8b;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.comment-form input[type="submit"]:hover,
#respond .submit:hover {
  background: #17b07a;
  transform: translateY(-1px);
}

/* Cancel reply link */
#cancel-comment-reply-link {
  font-size: 13px; color: #5a7a7a; margin-left: 12px;
  transition: color 0.2s;
}
#cancel-comment-reply-link:hover { color: #ff7832; }

/* Logged-in-as notice */
#respond .logged-in-as { font-size: 14px; color: #5a7a7a; margin-bottom: 16px; }
#respond .logged-in-as a { color: #1ecb8b; }

/* No-comments message */
.no-comments { font-size: 16px; color: #5a7a7a; margin-bottom: 24px; }

/* Comment navigation */
.comment-navigation {
  display: flex; justify-content: space-between;
  margin: 20px 0; font-size: 14px; color: #5a7a7a;
}
.comment-navigation a { color: #1ecb8b; }

@media (max-width: 600px) {
  .comment-form-fields-row { grid-template-columns: 1fr; }
  #respond { padding: 20px; }
  .comment-list .children { padding-left: 14px; }
}




/* ===== NEW BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

/* Tablet */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== GRID CARD ===== */
.grid-card {
  display: flex;
  flex-direction: column;
  background: #0f1e1e;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1e3333;
  transition: all 0.3s ease;
  height: 100%;
  color: #fff;
}

.grid-card:hover {
  transform: translateY(-6px);
  border-color: #2a5050;
}

/* Image */
.grid-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
.grid-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.grid-body h3 {
  font-size: 18px;
  margin: 10px 0;
  line-height: 1.4;
}

.grid-body p {
  font-size: 14px;
  color: #7a9999;
  line-height: 1.5;
}

/* Meta */
.grid-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #4a7070;
  margin-top: 12px;
}

/* Category */
.grid-category {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #F8DE5D;
  color: #000;
  font-weight: 700;
}