/*
Theme Name: wp-eb
Theme URI: https://engineerbabu.com/wp-eb
Author: EngineerBabu Blog
Author URI: https://engineerbabu.com/blog/
Description: A modern, performant, Gutenberg-first WordPress theme compatible with Yoast, caching plugins, and custom post types. Pixel-perfect header and footer with responsive blog layouts.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: engineerbabu.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio,
*/

/* ------------------------------
   Design tokens
--------------------------------*/
:root {
  --max-width: 87.5rem;
  --content-width: 87.5rem;

  --color-bg: #ffffff;
  --color-surface: #f8fafc; /* slate-50 */
  --color-elevated: #ffffff;
  --color-text: #0f172a; /* slate-900 */
  --color-muted: #64748b; /* slate-500 */
  --color-border: #e2e8f0; /* slate-200 */
  --color-primary: #2E29FF; /* blue-500 */
  --color-primary-600: #0803d1; /* blue-600 */
  --color-primary-700: #0d08bf; /* blue-700 */
  --color-accent: #22c55e; /* green-500 */
  --color-warning: #f59e0b; /* amber-500 */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 0.0625rem 0.125rem rgba(0,0,0,.04);
  --shadow-md: 0 0.375rem 1.125rem rgba(2, 132, 199, .12);
  --shadow-lg: 0 1.125rem 3rem rgba(2, 132, 199, .18);
  --gap-1: 0.5rem;
  --gap-2: 0.75rem;
  --gap-3: 1rem;
  --gap-4: 1.5rem;
  --gap-5: 2rem;
  --gap-6: 2.5rem;
}

/* ------------------------------
   CSS reset / base
--------------------------------*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-600); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--color-text); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.button, .wp-block-button__link, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.button:hover, .wp-block-button__link:hover, .wp-element-button:hover { background: var(--color-primary-600); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ------------------------------
   Header - EngineerBabu Style
--------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #E0E0E0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Branding Section */
.branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.branding .site-title {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #3333FF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.branding .site-title:hover {
  color: #3333FF;
  text-decoration: none;
}

.brand-text {
  font-weight: 700;
  color: #3333FF;
}

.brand-reg {
  font-size: 0.875rem;
  color: #666;
  font-weight: 400;
  vertical-align: super;
  margin-left: 0.125rem;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
table {
    border-collapse: collapse;
	width:100%;
}
td, th {
    border: 1px solid #ccc;
    padding: 0.75rem;
}
.primary-menu li {
  position: relative;
}

.primary-menu a {
  color: #333333;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.primary-menu a:hover {
  color: #3333FF;
  text-decoration: none;
}

.primary-menu .current-menu-item > a {
  color: #3333FF;
  font-weight: 600;
}

.dropdown-arrow {
  font-size: 0.75rem;
  color: #666;
  transition: transform 0.2s ease, color 0.2s ease;
}

.primary-menu a:hover .dropdown-arrow {
  color: #3333FF;
  transform: translateY(0.0625rem);
}

/* Sub-menu styles */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  min-width: 12.5rem;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.625rem);
  transition: all 0.2s ease;
  z-index: 100;
}

.primary-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu li {
  margin: 0;
}

.primary-menu .sub-menu a {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #333333;
  border-radius: 0;
}

.primary-menu .sub-menu a:hover {
  background: #F8F9FA;
  color: #3333FF;
}

/* CTA Button */
.header-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #3333FF;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5625rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0.125rem 0.5rem rgba(51, 51, 255, 0.2);
}

.cta-button:hover {
  background: #2A2AE6;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.25rem 0.75rem rgba(51, 51, 255, 0.3);
}

.cta-icon {
  font-size: 0.875rem;
  font-weight: 700;
}

.cta-text {
  font-weight: 600;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: #333333;
  border-radius: 0.0625rem;
  transition: all 0.3s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* Responsive Design */
@media (max-width: 64rem) {
  .header-inner {
    padding: 0 1.25rem;
  }
  
  .primary-nav {
    position: relative;
  }
  
  .primary-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-top: none;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1.25rem);
    transition: all 0.3s ease;
  }
  
  .primary-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .primary-menu li {
    width: 100%;
    border-bottom: 1px solid #F0F0F0;
  }
  
  .primary-menu li:last-child {
    border-bottom: none;
  }
  
  .primary-menu a {
    padding: 1rem 0;
    font-size: 1.125rem;
    width: 100%;
    justify-content: space-between;
  }
  
  .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #F8F9FA;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
  }
  
  .primary-menu .sub-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-cta {
    margin-left: auto;
    margin-right: 1rem;
  }
  
  .cta-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 48rem) {
  .header-inner {
    height: 4.375rem;
    padding: 0 1rem;
  }
  
  .branding .site-title {
    font-size: 1.25rem;
  }
  
  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .cta-text {
    display: none;
  }
  
  .cta-icon {
    font-size: 1rem;
  }
}

/* Additional mobile optimizations */
@media (max-width: 30rem) {
  .header-inner {
    padding: 0 0.75rem;
  }
  
  .branding .site-title {
    font-size: 1.125rem;
  }
  
  .brand-reg {
    font-size: 0.75rem;
  }
  
  .cta-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .primary-menu {
    padding: 1rem;
  }
  
  .primary-menu a {
    font-size: 1rem;
    padding: 0.875rem 0;
  }
}

/* Focus states for accessibility */
.menu-toggle:focus,
.cta-button:focus,
.primary-menu a:focus {
  outline: 0.125rem solid #3333FF;
  outline-offset: 0.125rem;
}

/* Loading states */
body.loading {
  overflow: hidden;
}

body.loaded .site-header {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ------------------------------
   EngineerBabu Homepage Sections
--------------------------------*/

/* Latest Post Hero Section */
.latest-post-section {
  padding: 7rem 0 4rem 0;
  background: #F3F3F6;
  position: relative;
}

.latest-post-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.latest-post-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
}

.latest-post-image img {
  width: 100%;
  height: revert-layer;
  display: block;
  transition: transform 0.3s ease;
}

.latest-post-image:hover img {
  transform: scale(1.02);
}

.latest-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.latest-post-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2E29FF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(27, 78, 255, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
}

.latest-post-read-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.latest-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
  margin: 0 0 2rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

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

.latest-post-title a:hover {
  color: #2E29FF;
}

.latest-post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.latest-post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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


.latest-post-author-info {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.latest-post-author-name {
  line-height: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.latest-post-author-role {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Stay Informed Section */
.stay-informed-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.stay-informed-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 1.5rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

/* Blog Filter Tabs */
.blog-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  /* border-bottom: 1px solid #E2E8F0; */
  padding-bottom: 1rem;
}

.blog-filter-tab {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #718096;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.blog-filter-tab:hover {
  color: #1A202C;
}

.blog-filter-tab.active {
  color: #1A202C;
  font-weight: 600;
}

.blog-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #2E29FF;
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-post-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E2E8F0;
}

.blog-post-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.blog-post-image {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

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

.blog-post-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-post-content {
  padding: 1.5rem;
}

.blog-post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.blog-post-category {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post-separator {
  color: #A0AEC0;
  font-weight: 600;
}

.blog-post-read-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A202C;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

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

.blog-post-title a:hover {
  color: #2E29FF;
}

.blog-post-excerpt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  color: #4A5568;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.blog-post-author-info {
  flex: 1;
}

.blog-post-author-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2D3748;
  line-height: 1.25rem;
  margin: 0rem;
}

.blog-post-author-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: #718096;
  margin: 0;
}

/* Loading States */
.blog-loading {
  text-align: center;
  padding: 3rem 0;
  color: #718096;
}

.blog-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #E2E8F0;
  border-top: 2px solid #2E29FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.blog-no-posts {
  text-align: center;
  padding: 3rem 0;
  color: #718096;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

/* Load More Button */
.blog-load-more-section {
  text-align: center;
  margin-top: 3rem;
}

.blog-load-more-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: #2E29FF;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.blog-load-more-button:hover {
  background-color: #0d3bcc;
  transform: translateY(-0.125rem);
}

.blog-load-more-button:disabled {
  background-color: #A0AEC0;
  cursor: not-allowed;
  transform: none;
}

.blog-load-more-text {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-load-more-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.blog-load-more-button:hover .blog-load-more-arrow {
  transform: translateX(0.25rem);
}

/* Responsive Design for Blog Filter */
@media (max-width: 48rem) {
  .blog-filter-tabs {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stay-informed-title {
    font-size: 2rem;
  }
	.responsive-table { overflow-x: auto; width: 40rem;}
}

@media (max-width: 30rem) {
  .blog-filter-tabs {
    gap: 0.75rem;
  }
  .responsive-table { overflow-x: auto; width: 23rem;}

  .blog-filter-tab {
    font-size: 0.875rem;
  }
  
  .blog-post-content {
    padding: 1rem;
  }
  
  .stay-informed-title {
    font-size: 1.75rem;
  }
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-tab {
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  padding: 0.75rem 0;
  position: relative;
  transition: all 0.2s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.filter-tab:hover {
  color: #111827;
}

.filter-tab.active {
  color: #111827;
  font-weight: 600;
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.125rem;
  background: #2E29FF;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.post-card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.post-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.12);
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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


.post-card-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2E29FF;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.post-card-read-time {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

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

.post-card-title a:hover {
  color: #2E29FF;
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-card-author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.post-card-author-info {
  flex: 1;
}

.post-card-author-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.post-card-author-role {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 3rem;
}

.load-more-button {
  background: #2E29FF;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.load-more-button:hover {
  background: #1d4ed8;
  transform: translateY(-0.0625rem);
}

.load-more-text {
  font-weight: 600;
}

.load-more-arrow {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Loading States */
.loading-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.75rem 1.25rem;
  color: #6b7280;
}

.loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.1875rem solid #e5e7eb;
  border-top: 0.1875rem solid #2E29FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.75rem 1.25rem;
  color: #6b7280;
  font-size: 1.125rem;
}

/* Responsive Design for Homepage */
@media (max-width: 64rem) {
  .latest-post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    /* text-align: center; */
  }
  
  .latest-post-title {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  }
  
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .filter-tabs {
    gap: 2rem;
  }
}

@media (max-width: 48rem) {
  .latest-post-section {
    padding: 5rem 0 3rem 0;
  }
  
  .latest-post-title {
    font-size: 1.75rem;
  }
  
  .stay-informed-title {
    font-size: 2rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .filter-tabs {
    gap: 1.5rem;
  }
  
  .filter-tab {
    font-size: 1rem;
  }
  
  .post-card-content {
    padding: 1.25rem;
  }
  
  .post-card-title {
  font-size: 1.125rem;
  }
  .sidebar-widget.toc-widget { display: none;}
}

@media (max-width: 30rem) {
  .latest-post-title {
    font-size: 1.5rem;
  }
  
  .latest-post-category {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }
  
  .latest-post-read-time {
    font-size: 0.75rem;
  }
  
  .latest-post-author-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .latest-post-author-name {
    font-size: 0.875rem;
  }
  
  .latest-post-author-role {
    font-size: 0.75rem;
  }
  
  .stay-informed-title {
    font-size: 1.75rem;
  }
  
  .filter-tabs {
    gap: 1rem;
  }
  
  .filter-tab {
    font-size: 0.875rem;
  }
  
  .post-card-content {
    padding: 1rem;
  }
}












/* ------------------------------
   EngineerBabu Footer
--------------------------------*/
.engineerbabu-footer {
  background: #2E29FF;
  color: #ffffff;
  margin-top: 0;
}

.footer-content {
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-about {
  max-width: 25rem;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-about-text {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.social-media {
  display: flex;
  margin-top: 1.5rem;
  gap: 16px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.5rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-details a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: #e0f2fe;
}

.eb-footer {
  text-align: center;
  height: 12rem;
}

.eb-footer p.eb-text {
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  font-style: normal;
  font-weight: 600;
  font-size: 10.75rem;
  line-height: 11.25rem;
  background: linear-gradient(180deg, #FFFFFF 27.16%, rgba(255, 255, 255, 0) 78.45%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  opacity: 0.5;
}

.eb-footer p.eb-text:hover {
    transition: .3s ease-in-out;
    font-family: "Space Grotesk", sans-serif;
    cursor: pointer;
    font-style: normal;
    font-weight: 600;
    font-size: 10.75rem;
    line-height: 11.25rem;
    background: linear-gradient(180deg, #FFFFFF 39.16%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
    opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-copyright {
  color: #ffffff;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social span {
  text-transform: uppercase;
  color: #4BFFED;
  font-size: 0.8rem;
}

.social-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-0.125rem);
}

/* Responsive Footer */
@media (max-width: 64rem) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .eb-footer p.eb-text, .eb-footer p.eb-text:hover  { font-size: 7.75rem; line-height: 12.25rem;}
  
  .footer-about {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 48rem) {
  .footer-content {
    padding: 3rem 1.5rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .eb-footer p.eb-text, .eb-footer p.eb-text:hover  { font-size: 6.75rem; line-height: 12.25rem;}
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 30rem) {
  .footer-content {
    padding: 2rem 1rem;
  }
  .eb-footer { text-align: center; height: 6rem;}
  .eb-footer p.eb-text, .eb-footer p.eb-text:hover { font-size: 3rem;line-height: 6.25rem;}

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-title {
    font-size: 0.875rem;
  }
  
  .footer-about-text {
    font-size: 0.9375rem;
  }
  
  .footer-links a,
  .contact-details a {
    font-size: 0.875rem;
  }
}

/* ------------------------------
   Home / Archive grid
--------------------------------*/



.post-card { background: var(--color-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post-card__media { position: relative; aspect-ratio: 16/10; background: #eef2f7; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 1rem; display: grid; gap: 0.75rem; }
.post-card__cats { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.post-card__cat { font-size: 0.75rem; padding: 0.375rem 0.625rem; background: #f1f5f9; border-radius: 999px; color: var(--color-muted); border: 1px solid var(--color-border); }
.post-card__title { font-size: 1.25rem; }
.post-card__meta { color: var(--color-muted); font-size: 0.875rem; }

.pagination { display: flex; gap: 0.5rem; justify-content: center; align-items: center; margin: 1.25rem 0 2.5rem; }
.pagination .page-numbers { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 0.5rem; color: var(--color-text); }
.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ------------------------------
   Single post
--------------------------------*/
.single-hero { position: relative; background: #0b1220; color: #fff; }
.single-hero .hero-media { position: relative; aspect-ratio: 16/7; overflow: hidden; }
.single-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); }
.single-hero .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1)); }
.single-hero .hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 0; }
.single-hero .hero-inner { color: #fff; }

.single-meta { display: flex; gap: 0.875rem; flex-wrap: wrap; color: #d1d5db; font-size: 0.875rem; margin-top: 0.625rem; }
.share-icons { display: flex; gap: 0.625rem; align-items: center; }
.share-icons a { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 0.5rem; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.share-icons a:hover { background: rgba(255,255,255,.18); text-decoration: none; }

.entry { max-width: var(--content-width); margin: 2rem auto; }
.entry p { font-size: 1.125rem; color: var(--color-text); }
.entry blockquote { border-left: 0.25rem solid var(--color-primary); padding-left: 1rem; color: var(--color-muted); }

.author-box { display: grid; grid-template-columns: 4rem 1fr; gap: 0.875rem; padding: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-elevated); }

.related-posts { margin: 2.5rem 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 64rem) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .related-grid { grid-template-columns: 1fr; } }

/* ------------------------------
   Gutenberg / content width
--------------------------------*/
.alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.wp-block { max-width: var(--content-width); }
.wp-block[data-align="wide"] { max-width: calc(var(--content-width) + 200px); }
.wp-block[data-align="full"] { max-width: none; }

/* ------------------------------
   Blog Page Styles
--------------------------------*/

/* Blog Hero Section */
.blog-hero-section {
  padding: 4rem 0 2rem;
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
}

.blog-hero-content {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
}

.blog-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
}

.blog-hero-subtitle {
  font-size: 1.25rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* Blog Filter Section */
.blog-filter-section {
  padding: 2rem 0;
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
}

.blog-filter-tabs {
  display: flex;
  gap: 3rem;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto 1.5rem auto;
}

.blog-filter-tab {
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  padding: 0.75rem 0;
  position: relative;
  transition: all 0.2s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.blog-filter-tab:hover {
  color: #111827;
}

.blog-filter-tab.active {
  color: #111827;
  font-weight: 600;
}

.blog-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.125rem;
  background: #1E3A8A;
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 3rem 0 4rem;
  background: #F9FAFB;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-post-card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.12);
}

.blog-post-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

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


.blog-post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-post-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1E3A8A;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.blog-post-separator {
  color: #9CA3AF;
  font-size: 0.75rem;
}

.blog-post-read-time {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.blog-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

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

.blog-post-title a:hover {
  color: #1E3A8A;
}

.blog-post-excerpt {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.blog-post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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


.blog-post-author-info {
  flex: 1;
}

.blog-post-author-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 0rem;
}

.blog-post-author-title {
  font-size: 0.75rem;
  color: #6B7280;
}

/* Blog Pagination */
.blog-pagination-section {
  padding: 2rem 0 4rem;
  background: #F9FAFB;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  color: #6B7280;
  text-decoration: none;
  margin: 0 0.25rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.blog-pagination .page-numbers:hover {
  background: #F3F4F6;
  color: #111827;
  text-decoration: none;
}

.blog-pagination .page-numbers.current {
  background: #1E3A8A;
  color: #ffffff;
  border-color: #1E3A8A;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding: 0 1rem;
  font-size: 0.875rem;
}

/* Loading States */
.loading-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.75rem 1.25rem;
  color: #6B7280;
}

.loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.1875rem solid #E5E7EB;
  border-top: 0.1875rem solid #1E3A8A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* No Posts Message */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.75rem 1.25rem;
  color: #6B7280;
  font-size: 1.125rem;
}

/* Responsive Design for Blog Page */
@media (max-width: 64rem) {
  .blog-hero-title {
    font-size: 2.5rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .blog-filter-tabs {
    gap: 2rem;
  }
}

@media (max-width: 48rem) {
  .blog-hero-section {
    padding: 3rem 0 1.5rem;
  }
  
  .blog-hero-title {
    font-size: 2rem;
  }
  
  .blog-hero-subtitle {
    font-size: 1.125rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .blog-filter-tabs {
    gap: 1.5rem;
  }
  
  .blog-filter-tab {
    font-size: 1rem;
  }
  
  .blog-post-content {
    padding: 1.25rem;
  }
  
  .blog-post-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 30rem) {
  .blog-hero-title {
    font-size: 1.75rem;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-hero-subtitle {
    font-size: 1rem;
  }
  
  .blog-filter-tabs {
    gap: 1rem;
  }
  
  .blog-filter-tab {
    font-size: 0.875rem;
  }
  
  .blog-post-content {
    padding: 1rem;
  }
}

/* ------------------------------
   Single Post Page Styles
--------------------------------*/

/* Single Post Hero Section */
.single-post-hero {
  background: linear-gradient(179.54deg, #F8F8FC 0.42%, #EEF2FD 83.6%);
  padding: 7rem 0 4rem 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
}

.latest-post-section::after, .single-post-hero::after, .single-post-body::after {
  content: '';
  background-image: url(https://supersourcing.com/therighthire/wp-content/uploads/2024/01/custom-border.svg);
  background-position: center;
  position: absolute;
  bottom: 0;
  background-size: contain;
  width: 100%;
  height: 4px;
  flex-shrink: 0;
  background-repeat: no-repeat;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.single-post-content {
  display: flex;
  flex-direction: column;
    gap: 1.5rem;
  }
  
.single-post-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Post Meta */
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.single-post-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2E29FF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(27, 78, 255, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
}

.single-post-separator {
  color: #6b7280;
  font-size: 0.75rem;
}

.single-post-read-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Post Title */
.single-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

/* Publication Date */
.single-post-date {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
}

.single-post-date time {
  color: inherit;
  text-decoration: none;
}

/* Author Information */
.single-post-author {
  display: flex;
  align-items: center;
    gap: 1rem;
  margin-top: 0.5rem;
}

.single-post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.single-post-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25rem;
}

.single-post-author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.25rem;
}

.single-post-author-role {
    font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Feature Image */
.single-post-feature {
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-post-feature-image {
  width: 100%;
  height: 335px;
  max-width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
  /* transition: transform 0.3s ease; */
}


/* Post Content Section */
.single-post-body {
  position: relative;
  padding: 4rem 0;
  background: #ffffff;
}

.single-post-content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: 2rem;
}

/* Ensure sidebar widgets (TOC/CTA) never exceed the column width */
.single-post-sidebar,
.single-post-sidebar .sidebar-widget {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.single-post-layout-content {
  max-width: 60rem;
}

.single-post-article {
  line-height: 1.7;
}

.single-post-content-text {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 2rem;
}

.single-post-content-text h2 {
    font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

.single-post-content-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 1.5rem 0 0.75rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

.single-post-content-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.single-post-content-text ul,
.single-post-content-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.single-post-content-text li {
  margin-bottom: 0.5rem;
}

.single-post-content-text blockquote {
  border-left: 0.25rem solid #2E29FF;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.single-post-content-text code {
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #2E29FF;
}

.single-post-content-text pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.single-post-content-text pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Sidebar */
.single-post-sidebar {
  display: flex;
    flex-direction: column;
  gap: 1rem;
  height: fit-content;
}

/* Keep sticky but within column; width handled by JS to match parent */
.single-post-sidebar { position: sticky; top: 2rem; }

/* Extra safety: keep TOC/CTA aligned */
.sidebar-widget.toc-widget,
.sidebar-widget.cta-widget {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0px 8.22727px 52.6545px rgba(40, 95, 245, 0.08);
}
.sidebar-widget.cta-widget{padding: 0 !important;}
.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

.toc-nav {
  margin: 0;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0rem;
}

.toc-list a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.toc-list a:hover {
  color: #2E29FF;
}
.toc-link:focus {
  outline: 0rem solid transparent !important;
  outline-offset: 0rem;
}

.cta-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.cta-banner h4 {
    font-size: 1rem;
  font-weight: 600;
  color: #0c4a6e;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.cta-button {
  background: #2E29FF;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.cta-button:hover {
  background: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-0.0625rem);
}

/* Post Tags */
.single-post-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Author Box */
.post-author-box {
  background: #1e6bff;
  border-radius: 1rem;
  padding: 2rem;
  margin: 3rem 0;
  color: #ffffff;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-img {
  flex-shrink: 0;
}

.author-avatar-img {
  width: 4.625rem;
  height: 4.625rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.author-details {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.author-title {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 500;
}

.author-details-header {
  display: flex;
  align-items: center;
  margin: 0 0 1rem 0;
  gap: 1rem;
}
.author-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 0;
}

.author-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.tags-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  background: #f1f5f9;
  color: #2E29FF;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-item a {
  color: inherit;
  text-decoration: none;
}

.tag-item:hover {
  background: #2E29FF;
  color: #ffffff;
}

.tag-item:hover a {
  color: inherit;
}

/* Related Posts */
.single-post-related {
  padding: 4rem 0;
  background: #F7F9FC;
}

.related-posts-title {
    font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 2rem 0;
  font-family: 'Space Grotesk', sans-serif;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.related-post-card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.related-post-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.12);
}

.related-post-image {
  aspect-ratio: 18/10;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

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


.related-post-content {
    padding: 1.25rem;
  }
  
.related-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.related-post-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2E29FF;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.related-post-separator {
  color: #9ca3af;
  font-size: 0.75rem;
}

.related-post-read-time {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.related-post-title {
    font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.75rem 0;
  line-height: 1.4;
}

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

.related-post-title a:hover {
  color: #2E29FF;
}

.related-post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.related-post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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


.related-post-author-info {
  flex: 1;
}

.related-post-author-name {
  font-weight: 600;
  color: #111827;
  font-size: 1.125rem;
  line-height: 1.25rem;
  margin-bottom: 0rem;
}

.related-post-author-role {
  font-size: 0.875rem;
  color: #6b7280;
}


/* Page Links (Pagination within post) */
.page-links {
  margin: 2rem 0;
  text-align: center;
}

.page-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: #f1f5f9;
  color: #2E29FF;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-links a:hover {
  background: #2E29FF;
  color: #ffffff;
}

/* Responsive Design for Single Post */
@media (max-width: 64rem) {
  .single-post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .single-post-header {
    gap: 1rem;
    align-items: flex-start;
  }
  .single-post-title {
    font-size: 2rem;
  }
  
  .single-post-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
}

@media (max-width: 75rem) {
  .single-post-feature-image {
    width: 100%;
    height: auto;
    aspect-ratio: 595 / 335;
  }
}

@media (max-width: 48rem) {
  .single-post-hero {
    padding: 5rem 0 2rem;
    min-height: auto;
  }
  
  .single-post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .author-details-header {
    text-align: left;
    gap: 0;
  }

  .author-img img {
    width: 75% !important;
    height: 75% !important;
    object-fit: scale-down;
  }
  
  .single-post-feature {
    order: 2;
  }
  
  .single-post-content {
    order: 1;
  }
  
  .single-post-feature-image {
    width: 100%;
    height: auto;
    aspect-ratio: 595 / 335;
  }
  
  .single-post-title {
    font-size: 1.75rem;
  }
  
  .single-post-content-text {
    font-size: 1rem;
  }
  
  .single-post-content-text h2 {
    font-size: 1.5rem;
  }
  
  .single-post-content-text h3 {
    font-size: 1.25rem;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .single-post-meta {
    justify-content: center;
  }
  
  .single-post-author {
    justify-content: center;
  }
  
}

@media (max-width: 30rem) {
  .single-post-title {
    font-size: 1.5rem;
  }

  .latest-post-image img {
    width: 100%;
    height: auto !important;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .single-post-category {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .single-post-read-time {
    font-size: 0.75rem;
  }
  
  .single-post-author-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .single-post-author-name {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .single-post-author-role {
    font-size: 0.75rem;
  }
  
  /* Author Box Mobile */
  .post-author-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .author-img {
    align-self: center;
  }
  
  .author-avatar-img {
    width: 4rem;
    height: 4rem;
  }
  
  .author-name {
    font-size: 1.25rem;
  }
  
  .author-title {
    font-size: 0.875rem;
  }
  
  .author-bio {
    font-size: 0.875rem;
    text-align: justify;
  }
  
}

/* ------------------------------
   Utilities
--------------------------------*/
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.hide { display: none; }