/* ============================================================
   blog.css — Magazine-minimalist blog design for Essence UAE
   Brand: #da3c05 (red-orange) | #0d1b3e (dark navy)
   Font: Inter (Google Fonts) / system-ui fallback
   ============================================================ */

/* ---------- 0. FONT IMPORT & ROOT VARIABLES ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand:        #da3c05;
  --brand-dark:   #b83204;
  --brand-light:  #fff3ef;
  --navy:         #0d1b3e;
  --navy-light:   #1a2a5e;
  --text:         #374151;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --border:       #e5e7eb;
  --bg-off:       #f9fafb;
  --bg-white:     #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.10);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-pill:  999px;
  --font:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:   all 0.25s ease;
}

/* ---------- 1. GLOBAL BLOG TYPOGRAPHY ---------- */
.blog-body-scope,
.blog-article,
.blogs-page-wrap,
.blog-detail-wrap {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
}

/* ---------- 2. CATEGORY PILL BADGES ---------- */
.blog-cat-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.blog-cat-pill.corporate-tax {
  background: rgba(218,60,5,0.12);
  color: var(--brand);
  border: 1px solid rgba(218,60,5,0.3);
}

.blog-cat-pill.vat {
  background: rgba(13,27,62,0.10);
  color: var(--navy);
  border: 1px solid rgba(13,27,62,0.25);
}

.blog-cat-pill.accounting {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.blog-cat-pill.compliance {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.blog-cat-pill.default {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

/* Hero-context pill (white outlined, for dark backgrounds) */
.blog-cat-pill.hero {
  background: rgba(218,60,5,0.18);
  color: #ff7a45;
  border: 1px solid rgba(218,60,5,0.45);
  font-size: 12px;
  padding: 5px 16px;
}

/* ---------- 3. BLOGS LISTING PAGE HERO — Magazine editorial style ---------- */
.blogs-page-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 52px 0 40px;
  position: relative;
}

.blogs-page-hero .hero-inner {
  max-width: 680px;
}

/* Eyebrow: "OUR BLOG ———" */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

.hero-line {
  display: block;
  height: 2px;
  width: 60px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.blogs-page-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.18;
}

.blogs-page-hero h1 .hero-accent {
  color: var(--brand);
}

.blogs-page-hero .hero-subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stats strong {
  color: var(--navy);
  font-weight: 700;
}

.hero-dot {
  color: var(--border);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Image label tag on cards */
.blog-card-img-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5,9,36,0.68);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  display: none; /* shown only when image loads */
}

/* ---------- 4. BLOG LISTING CARDS ---------- */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 991px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 575px) {
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d1d5db;
}

.blog-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a5e 50%, #2d1a5e 100%);
  flex-shrink: 0;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}

.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2a5e 60%, #da3c05 200%);
}

.blog-card-img-placeholder svg {
  opacity: 0.18;
  width: 40px;
  height: 40px;
  fill: #fff;
}

.blog-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title {
  color: var(--brand);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  flex-wrap: wrap;
}

.blog-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-meta-item i,
.blog-card-meta-item svg {
  font-size: 11px;
  opacity: 0.7;
}

.blog-card-read-link {
  margin-left: auto;
  color: var(--brand);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.blog-card-read-link:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

/* ---------- 5. CATEGORY FILTER PILLS (listing page) ---------- */
.blog-filter-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 32px 0 0;
}

.blog-filter-btn {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---------- 6. BLOG POST HERO ---------- */
.blog-post-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, var(--navy) 55%, #1a0a2e 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.blog-post-hero.has-image {
  padding: 0;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.blog-post-hero.has-image .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-hero.has-image .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,9,36,0.9) 0%, rgba(5,9,36,0.55) 60%, rgba(5,9,36,0.3) 100%);
}

.blog-post-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(218,60,5,0.13) 0%, transparent 70%);
  pointer-events: none;
}

.blog-post-hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0 64px;
  width: 100%;
}

.blog-post-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 18px;
}

.blog-post-hero .hero-updated {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Author bar in hero */
.blog-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.blog-author-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand), #ff6b35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.blog-author-meta {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.blog-author-meta strong {
  color: #fff;
  display: block;
  font-size: 0.92rem;
}

.blog-read-time-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 7. BREADCRUMB (blog context) ---------- */
.blog-breadcrumb-bar {
  background: var(--bg-off);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.blog-breadcrumb-bar .breadcrumb {
  margin-bottom: 0;
  font-size: 0.85rem;
  background: transparent;
  padding: 0;
}

.blog-breadcrumb-bar .breadcrumb-item a {
  color: var(--brand);
  text-decoration: none;
}

.blog-breadcrumb-bar .breadcrumb-item a:hover {
  color: var(--brand-dark);
}

.blog-breadcrumb-bar .breadcrumb-item.active {
  color: var(--text-muted);
}

/* ---------- 8. ARTICLE SECTION LAYOUT ---------- */
.blog-article-section {
  padding: 60px 0 80px;
  background: var(--bg-white);
}

/* ---------- 9. ARTICLE BODY ---------- */
.blog-article {
  font-family: var(--font);
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
}

.blog-article .lead-paragraph {
  font-size: 18.5px;
  line-height: 1.75;
  color: #1f2937;
  font-weight: 400;
  margin-bottom: 28px;
  border-left: 4px solid var(--brand);
  padding-left: 18px;
}

.blog-article h1 {
  font-family: var(--font);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 20px;
}

.blog-article h2 {
  font-family: var(--font);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin: 40px 0 16px;
  padding-top: 8px;
}

.blog-article h2:first-child {
  margin-top: 0;
}

.blog-article h3 {
  font-family: var(--font);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  margin: 28px 0 12px;
}

.blog-article h4 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.blog-article p {
  margin-bottom: 22px;
}

.blog-article ul,
.blog-article ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.blog-article li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.blog-article ul li::marker {
  color: var(--brand);
}

.blog-article blockquote {
  border-left: 4px solid var(--brand);
  background: var(--bg-off);
  margin: 28px 0;
  padding: 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #374151;
}

.blog-article blockquote p:last-child {
  margin-bottom: 0;
}

.blog-article a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.blog-article a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  display: block;
}

.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-article table th {
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.88rem;
}

.blog-article table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.blog-article table tr:nth-child(even) td {
  background: var(--bg-off);
}

/* Inline CTA box */
.blog-cta-inline {
  background: var(--bg-off);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.blog-cta-inline p {
  margin-bottom: 0;
}

.blog-cta-inline a {
  color: var(--brand);
  font-weight: 700;
}

/* Risk / highlight box */
.blog-highlight-box {
  background: #fff7f5;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 18px 0;
}

.blog-highlight-box .box-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
}

/* Calculator widget */
.blog-calculator-widget {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.blog-calculator-widget h3 {
  margin-top: 0 !important;
}

.blog-calculator-widget label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.blog-calculator-widget select,
.blog-calculator-widget input[type="number"] {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  margin-left: 6px;
}

.blog-calculator-widget button {
  margin-left: 12px;
  padding: 7px 18px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.blog-calculator-widget button:hover {
  background: var(--brand);
}

.blog-calculator-result {
  margin-top: 14px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

/* Author box */
.blog-author-box {
  margin-top: 32px;
  padding: 20px 24px;
  border-top: 2px solid var(--border);
  font-size: 14.5px;
  color: var(--text-muted);
}

.blog-author-box strong {
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

/* Related guides */
.blog-related-guides {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--bg-off);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.blog-related-guides h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
}

.blog-related-guides ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-related-guides ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.blog-related-guides ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-related-guides ul li a {
  color: var(--brand);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

.blog-related-guides ul li a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Share buttons */
.blog-share-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.blog-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.blog-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.blog-share-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: #fff;
}

.blog-share-btn.fb   { background: #3b5998; }
.blog-share-btn.tw   { background: #1da1f2; }
.blog-share-btn.wa   { background: #25d366; }
.blog-share-btn.li   { background: #0077b5; }

/* ---------- 10. SIDEBAR ---------- */
.blog-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-sticky-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a0839 100%);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-sticky-cta h5 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.sidebar-sticky-cta p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 20px;
  line-height: 1.65;
}

.btn-brand {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.btn-brand:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.btn-brand.d-block { display: block !important; margin-bottom: 10px; }

.btn-outline-w {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.btn-outline-w:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.btn-outline-w.d-block { display: block !important; }

/* Sidebar related posts */
.sidebar-related {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 24px;
}

.sidebar-related h5 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-related-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-related-item a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: block;
}

.sidebar-related-item a:hover {
  color: var(--brand);
}

.sidebar-related-item .rel-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- 11. POST NAVIGATION ---------- */
.blog-post-nav {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.post-nav-direction {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 4px;
}

.post-nav-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.post-nav-title:hover {
  color: var(--brand);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}

.post-nav-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- 12. HOMEPAGE BLOG SECTION ---------- */
.home-blog-section {
  background: var(--bg-white);
  padding: 72px 0;
}

.home-blog-section .section-eyebrow {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid rgba(218,60,5,0.2);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.home-blog-section .section-title {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.home-blog-section .section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.7;
}

.home-blog-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.home-blog-section .view-all-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-blog-section .view-all-link:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
  }
  .home-blog-section .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 13. DEADLINE TABLE (deadline blog page) ---------- */
.deadline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.deadline-table th {
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}

.deadline-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.deadline-table tr:nth-child(even) td {
  background: var(--bg-off);
}

.deadline-table .urgent {
  color: #dc3545;
  font-weight: 700;
}

/* ---------- 14. BLOGS LISTING PAGE WRAP ---------- */
.blogs-page-wrap {
  background: var(--bg-white);
  min-height: 60vh;
  padding-bottom: 80px;
}

.blogs-listing-container {
  padding-top: 48px;
}

/* No-posts message */
.blogs-empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

.blogs-empty-state h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

/* ---------- 15. RESPONSIVE UTILITIES ---------- */
@media (max-width: 991px) {
  .blog-post-hero .hero-inner {
    padding: 60px 0 48px;
  }

  .blog-post-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }

  .blog-article-section {
    padding: 40px 0 60px;
  }

  .blog-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .blog-post-hero .hero-inner {
    padding: 48px 0 36px;
  }

  .blog-post-hero h1 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
  }

  .blogs-page-hero {
    padding: 52px 0 42px;
  }

  .blogs-page-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .blog-article {
    font-size: 16px;
  }

  .blog-article .lead-paragraph {
    font-size: 17px;
  }

  .blog-article h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .home-blog-section {
    padding: 52px 0;
  }

  .blog-calculator-widget {
    padding: 18px 16px;
  }
}

@media (max-width: 575px) {
  .blog-author-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .blog-share-section {
    gap: 8px;
  }

  .blog-share-label {
    display: none;
  }

  .blog-post-nav {
    padding: 16px;
  }

  .sidebar-sticky-cta {
    padding: 22px 18px;
  }

  .blog-card-body {
    padding: 16px 18px 14px;
  }
}
