:root {
  --bg-color: #000000;
  --bg-secondary: #0f172a;
  --bg-footer: #0a0a0a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-cyan: #38bdf8;
  /* New comfortable colors for black backgrounds */
  --accent-purple: #c084fc;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;

  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(3, 7, 18, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* Fluid Typography Scale */
  --font-h1: clamp(28px, 6vw, 44px);
  --font-h2: clamp(24px, 5vw, 34px);
  --font-h3: clamp(20px, 4vw, 26px);
  --font-h4: clamp(18px, 3vw, 22px);
  --font-body: clamp(16px, 2.5vw, 17px);
  --font-body-muted: clamp(15px, 2.2vw, 16px);
  --font-small: clamp(13px, 2vw, 14px);
  --font-button: 16px;
  --font-nav: clamp(16px, 2.5vw, 18px);
  --font-label: 14px;
  --font-input: 16px;
  --font-badge: 12px;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Mobile Responsive Media */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

html,
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Global Paragraph Typography for Maximum Readability */
p {
  font-size: var(--font-body);
  /* 18px for comfortable reading */
  line-height: 1.8;
  /* Relaxed line-height for breathability */
  color: var(--text-muted);
  /* Softer text color to reduce eye strain on dark backgrounds */
  margin-bottom: 1.5rem;
  /* Clear separation between paragraphs */
  letter-spacing: 0.2px;
  /* Slight letter spacing for legibility */
  font-weight: var(--weight-regular);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ==================================
   Navbar 
================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 2rem;
  background: transparent;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  background: rgba(0, 0, 0, 0.185);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  /* Pill shape */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 101;
}

/* Logo */

.logo-swipe {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
}

.logo-design {
  font-weight: 400;
  font-size: 1.5rem;
  color: #a1a1aa;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.site-logo {
  width: 200px;
  height: 53px;
  background-color: #fff;
  -webkit-mask-image: url('assets/Designswipe_logo.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-image: url('assets/Designswipe_logo.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left center;
  transition: transform 0.3s ease;
}



.footer-logo {
  width: 235px;
  height: 64px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a,
.nav-item-dropdown>span {
  font-size: var(--font-small);
  font-weight: var(--weight-medium);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-item-dropdown:hover>span,
.nav-links a.active {
  opacity: 0.8;
}

/* Dropdowns */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 1rem 0;
  /* Increase hit area for hover */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: #111827;
  transition: background 0.2s;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dropdown-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
}

.dropdown-text span.dt-title {
  font-weight: var(--weight-semibold);
  font-size: var(--font-small);
  line-height: 1.2;
  color: #111827;
}

.dropdown-text span.dt-desc {
  font-size: var(--font-small);
  color: #6b7280;
  text-transform: lowercase;
}

/* Button */
.btn-get-started {
  font-size: var(--font-button);
  font-weight: var(--weight-medium);
  background: #0b1c42;
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15), inset 0 0 8px rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-get-started:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 12px rgba(59, 130, 246, 0.2);
}

/* ==================================
   Main Content (Blog Grid Placeholder)
================================== */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--font-h1);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: var(--font-body);
  color: var(--text-muted);
}

.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-image {
  width: 100%;
  height: 200px;
  aspect-ratio: 16 / 9;
  background: #1e293b;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

/* ==================================
   Pagination
================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: var(--font-button);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .prev-page,
.pagination .next-page {
  padding: 0 1rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.pagination .prev-page:hover,
.pagination .next-page:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

/* ==================================
   Sidebar Layout
================================== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 130px;
  /* Offset for the sticky navbar */
  height: max-content;
  transform: scale(0.8);
  transform-origin: top right;
}

@media (max-width: 992px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: var(--font-h2);
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.popular-post-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
}

.popular-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.pp-cat {
  font-size: var(--font-small);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--weight-semibold);
  display: block;
  margin-bottom: 0.25rem;
}

.pp-content h4 {
  font-size: var(--font-h4);
  line-height: 1.4;
  font-weight: var(--weight-medium);
  margin: 0;
  color: var(--text-main);
  transition: color 0.2s;
}

.popular-post-item:hover .pp-content h4 {
  color: var(--primary);
}

.cta-widget {
  background: rgba(248, 155, 41, 0.05);
  border: 1px solid rgba(248, 155, 41, 0.2);
  color: var(--text-main);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.cta-widget h3 {
  font-size: var(--font-h3);
  font-weight: var(--weight-medium);
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.3;
}

.cta-widget p {
  font-size: var(--font-body-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.btn-widget-cta {
  display: inline-block;
  background: #F89B29;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: var(--font-button);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-widget-cta:hover {
  background: #e08920;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tag {
  font-size: var(--font-small);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: var(--font-h3);
  font-weight: var(--weight-semibold);
  margin-bottom: 0.75rem;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: var(--font-body-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
}

.author-info {
  font-size: var(--font-small);
}

.author-name {
  font-weight: var(--weight-semibold);
}

.post-date {
  color: var(--text-muted);
}

/* ==================================
   Article / Single Post Layout
================================== */
.article-main {
  width: 100%;
  padding-bottom: 6rem;
}

.post-image-container {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}



.post-featured-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  /* Add subtle scale animation if desired, but keeping it simple for now */
}

.post-content-container {
  max-width: 800px;
  margin: 40px auto 0;
  /* Content margin now that gradient is removed */
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.post-content-container.layout-with-sidebar {
  max-width: 1400px;
  margin-top: 40px;
}

.post-main-column {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.post-header {
  text-align: center;
  margin-bottom: 4rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-meta .tag {
  font-size: var(--font-small);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.5px;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-radius: 9999px;
  margin: 0;
  text-transform: uppercase;
}

.post-meta .date {
  color: var(--text-muted);
  font-size: var(--font-small);
}

.post-title {
  font-size: var(--font-h1);
  line-height: 1.15;
  font-weight: var(--weight-semibold);
  letter-spacing: -1px;
  margin-bottom: 2rem;
  color: #fff;
}

.author-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 400px;
  margin: 0 auto;
}

.author-block .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  /* Fallback avatar color */
}

.author-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.author-details .author-name {
  font-weight: var(--weight-semibold);
  font-size: var(--font-body-muted);
}

.author-details .author-role {
  color: var(--text-muted);
  font-size: var(--font-small);
}

.post-body {
  font-size: var(--font-body);
  line-height: 1.8;
  color: #cbd5e1;
  max-width: 100%;
}

.post-body h2 {
  font-size: var(--font-h2);
  color: #fff;
  margin: 3rem 0 1.5rem;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.75rem;
}

.post-body strong {
  color: #fff;
}

@media (max-width: 768px) {
  .post-body h2 {
    font-size: var(--font-h2);
  }

  .post-content-container {
    padding: 1rem;
    flex-direction: column;
    gap: 2rem;
  }

  .post-image-container {
    height: 40vh;
  }

  .blog-container {
    padding: 0 1rem 4rem;
  }
}

/* ==================================
   Footer 
================================== */
.site-footer {
  background: var(--bg-footer);
  padding: 5rem 2rem 0;
  position: relative;
  overflow: hidden;
}

.site-footer a:hover {
  color: var(--text-main);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.newsletter-content h2 {
  font-size: var(--font-h2);
  font-weight: var(--weight-semibold);
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  color: var(--text-muted);
  font-size: var(--font-body-muted);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper svg {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.input-wrapper input {
  background: #171717;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 8px;
  width: 300px;
  max-width: 100%;
  font-size: var(--font-input);
  outline: none;
  transition: border-color 0.3s ease;
}

.input-wrapper input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  background: var(--accent-cyan);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: var(--font-button);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

.footer-divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: var(--border-color);
}

.footer-middle {
  max-width: 1200px;
  margin: 4rem auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.footer-brand {
  flex: 1;
  max-width: 350px;
}

.footer-brand .logo-swipe {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
}

.logo-design {
  font-weight: 400;
  font-size: 1.5rem;
  color: #a1a1aa;
}

.logo {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: var(--font-small);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #171717;
  border-radius: 50%;
  color: var(--text-muted);
}

.social-links a:hover {
  background: #262626;
  color: #fff;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 3rem;
  flex: 1;
}

.footer-col h3 {
  font-size: var(--font-h3);
  font-weight: var(--weight-semibold);
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-link-group {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-nav);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-link-arrow {
  display: inline-block;
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

.footer-link-group:hover {
  color: var(--accent);
}

.footer-link-group:hover .footer-link-arrow {
  width: 12px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  color: var(--text-muted);
  font-size: var(--font-small);
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.watermark {
  position: absolute;
  bottom: -2vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-h1);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

/* ==================================
   Responsive 
================================== */
@media (max-width: 900px) {
  .footer-middle {
    flex-direction: column;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* nav-links display: none removed to allow mobile menu to render */

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-wrapper input {
    width: 100%;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Ensure no default tags exceed font-weight 600 */
b,
strong,
h1,
h2,
h3,
h4,
h5,
h6,
th {
  font-weight: var(--weight-semibold);
}

/* Subtle UI Highlights (10-15% coverage) using comfortable colors */
/* 1. Blockquotes - Amber accent */
.post-body blockquote {
  border-left: 4px solid var(--accent-amber);
  background: rgba(251, 191, 36, 0.05);
  /* very faint amber */
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* 2. Article inline links hover - Purple accent */
.post-body a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-light);
  transition: all 0.3s ease;
}

.post-body a:hover {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
  border-bottom-style: solid;
}

/* 3. List bullets - Emerald accent */
.post-body ul {
  list-style: none;
  padding-left: 1.5rem;
}

.post-body ul li {
  position: relative;
  margin-bottom: 0.75rem;
}

.post-body ul li::before {
  content: "•";
  color: var(--accent-emerald);
  position: absolute;
  left: -1rem;
  font-size: var(--font-h3);
  line-height: 1;
  top: 0;
}

/* 4. Tags hover - Rose accent */
.tag {
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(251, 113, 133, 0.15) !important;
  color: var(--accent-rose) !important;
  border-color: var(--accent-rose) !important;
}

/* Interaction Section Styles */
.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reaction-btn:active {
  transform: translateY(0);
}

.heart-icon {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.reaction-btn:hover .heart-icon {
  fill: #ef4444;
  stroke: #ef4444;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #3b82f6 !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

.comment-form button:hover {
  background: #2563eb !important;
  transform: translateY(-1px);
}

/* Custom Comments Section */
.custom-comments-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.comments-title {
  font-size: var(--font-h2);
  margin-bottom: 2rem;
  color: #fff;
}

.comment-form-container {
  margin-bottom: 2.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: var(--font-input);
  font-family: inherit;
  transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.submit-comment-btn {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: var(--font-body-muted);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.submit-comment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  animation: fadeIn 0.4s ease forwards;
}

.comment-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--font-body);
  color: #fff;
}

.comment-meta {
  display: flex;
  flex-direction: column;
}

.comment-author-name {
  font-weight: var(--weight-semibold);
  color: #fff;
  font-size: var(--font-body-muted);
}

.comment-date {
  font-size: var(--font-small);
  color: rgba(255, 255, 255, 0.5);
}

.comment-body {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
}

.reply-btn {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: var(--font-small);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.reply-btn:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Thread / Nested Comments */
.comment-replies {
  margin-top: 1.5rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.replying-to-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 8px;
  color: #60a5fa;
  font-size: var(--font-small);
}

.replying-to-indicator button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: var(--font-button);
}

.loading-comments {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness for Comments */
@media (max-width: 768px) {
  .custom-comments-section {
    padding: 1.5rem;
  }

  .comment-item {
    padding: 1rem;
  }

  .comment-replies {
    padding-left: 1rem;
  }
}


/* Mobile Navigation */
@media (max-width: 992px) {
  .site-header {
    padding: 1rem;
  }

  .navbar {
    padding: 0.5rem 1rem;
    border-radius: 16px;
  }

  .site-logo {
    width: 150px;
    height: 43px;
    transform: translateY(15px);
  }

  .mobile-menu-toggle {
    display: block;
    padding: 5px;
    min-width: 40px;
    min-height: 40px;
  }

  /* Premium Glassmorphism Full-Screen Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh;
    display: flex;
    z-index: 99;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Animated Menu Items */
  .nav-links>a,
  .nav-links .nav-item-dropdown>span {
    font-size: 1.4rem !important;
    /* Smaller font size */
    font-weight: 600 !important;
    letter-spacing: -0.5px;
    margin: 0.75rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active>a,
  .nav-links.active .nav-item-dropdown>span {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active>*:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active>*:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-links.active>*:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-links.active>*:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-links.active>*:nth-child(5) {
    transition-delay: 0.3s;
  }

  /* Premium Hamburger Toggle Animation */
  .mobile-menu-toggle {
    z-index: 101;
  }

  .mobile-menu-toggle svg line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle.active svg line:nth-child(1) {
    opacity: 0;
  }

  .mobile-menu-toggle.active svg line:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-toggle.active svg line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  .navbar .btn-get-started {
    display: none;
  }

  .nav-item-dropdown {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-item-dropdown {
    align-items: center;
    /* Center dropdown contents */
  }

  .nav-item-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    align-items: center;
  }

  .nav-item-dropdown .dropdown-item {
    font-size: 1.1rem !important;
  }

  .nav-item-dropdown.active .dropdown-menu {
    display: flex;
  }

  .dropdown-item {
    color: #fff;
  }

  .dropdown-text span.dt-title {
    color: #fff;
  }

  .dropdown-text span.dt-desc {
    color: #cbd5e1;
  }
}

/* ==================================
   Strict Table Styles
================================== */
.post-body table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.post-body th,
.post-body td {
  vertical-align: top;
  text-align: left;
  padding: 12px 16px;
  font-size: var(--font-body);
  line-height: 1.6;
  background: transparent;
}

.post-body th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: var(--weight-semibold);
  color: #ffffff;
}

.post-body td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.post-body tr:last-child td {
  border-bottom: none;
}