﻿
:root {
  /* Palette */
  --color-dark-blue: #001844;
  --color-brand-blue: #00a0db;
  --color-navy: #162356;
  --color-white: #fff;
  /* Mockup Specific Colors */
  --color-hero-bg: #111827; /* Dark slate/black for hero */
  --color-body-bg: #f9fafb;
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  /* Badge Colors */
  --badge-tech-bg: #e0f2fe;
  --badge-tech-text: #0284c7;
  --badge-dev-bg: #f3e8ff;
  --badge-dev-text: #9333ea;
  --badge-design-bg: #ffedd5;
  --badge-design-text: #c2410c;
  --badge-sec-bg: #dcfce7;
  --badge-sec-text: #166534;
  --badge-biz-bg: #d1fae5;
  --badge-biz-text: #065f46;
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Global Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}


a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Utilities --- */

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.w-full {
  width: 100%;
}

/* =========================================
           PART 1: BLOG LIST PAGE UI
           ========================================= */

/* 1.1 Navigation */
.site-nav {
  background-color: var(--color-hero-bg);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: #3b82f6;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: #9ca3af;
  font-size: 15px;
  font-weight: 500;
}

  .nav-link:hover, .nav-link.active {
    color: #fff;
  }

.nav-btn {
  background-color: var(--color-brand-blue);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

  .nav-btn:hover {
    background-color: #0284c7;
  }

/* 1.2 Hero Section */
.list-hero {
  background-color: var(--color-hero-bg);
  padding: 60px 0 160px; /* Large bottom padding for overlapping card */
  position: relative;
  color: #fff;
}

.hero-meta {
  color: var(--color-brand-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: #9ca3af;
  max-width: 600px;
  margin-bottom: 40px;
}

.search-bar {
  position: relative;
  max-width: 500px;
}

.search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 20px 14px 48px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  outline: none;
}

  .search-input:focus {
    border-color: var(--color-brand-blue);
  }

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

/* 1.3 Featured Card (Overlapping) */
.featured-wrapper {
  margin-top: -100px; /* Pull up to overlap hero */
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.featured-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  overflow: hidden;
  /* Updated Height */
  min-height: 300px;
}

.featured-img-col {
  flex: 1.2;
  position: relative;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge-float {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #0ea5e9;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-content-col {
  flex: 1;
  padding: 30px; /* Reduced padding for compact look */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.f-badge {
  display: inline-block;
  background: var(--badge-tech-bg);
  color: var(--badge-tech-text);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px; /* Reduced margin */
}

.f-title {
  font-size: 24px; /* Reduced font size */
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px; /* Reduced margin */
  line-height: 1.3;
}

.f-desc {
  color: #6b7280;
  margin-bottom: 20px; /* Reduced margin */
  font-size: 15px; /* Slightly smaller text */
}

.f-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px; /* Reduced margin */
}

.f-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.f-meta div {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.f-meta span {
  font-size: 12px;
  color: #9ca3af;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-brand-blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  width: fit-content;
}

  .btn-primary:hover {
    background-color: #0284c7;
  }

/* 1.4 Main Content Grid */
.list-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 80px;
}

/* Left: Article List */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #4b5563;
  font-size: 14px;
  background: #fff;
}

.article-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

  .article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

.article-img-wrapper {
  width: 240px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-badge-abs {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.bg-featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--color-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.bg-purple {
  background-color: #9333ea;
}

.bg-orange {
  background-color: #f97316;
}

.bg-green {
  background-color: #10b981;
}

.bg-blue {
  background-color: #0ea5e9;
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ac-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ac-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ac-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}

.ac-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.ac-meta {
  font-size: 12px;
  color: #6b7280;
}

.ac-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

  .page-btn.active {
    background: var(--color-brand-blue);
    color: #fff;
    border-color: var(--color-brand-blue);
  }

/* Right Sidebar */
.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #4b5563;
}

  .cat-list li:last-child {
    border-bottom: none;
  }

.cat-count {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #6b7280;
}

.sidebar-widget .year {
  display: block;
}

  .sidebar-widget .year strong {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    color: #4b5563;
  }

  .sidebar-widget .year a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
    width: 100%;
  }

.trending-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.trending-num {
  font-size: 24px;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1;
}

.trending-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.4;
}

.trending-content span {
  font-size: 12px;
  color: #9ca3af;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  color: #4b5563;
}

.newsletter-widget {
  background: #0ea5e9;
  color: #fff;
  text-align: center;
}

.nl-input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
  font-size: 14px;
}

.nl-btn {
  width: 100%;
  background: #fff;
  color: #0ea5e9;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* 1.5 Footer */
.site-footer {
  background: #0f172a;
  color: #9ca3af;
  padding: 60px 0 20px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

/* --- UI Separator --- */
.ui-separator {
  padding: 40px;
  background: #e5e7eb;
  text-align: center;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 2px;
  border-top: 4px dashed #9ca3af;
  border-bottom: 4px dashed #9ca3af;
  margin: 0;
}

/* =========================================
           PART 2: EXISTING BLOG DETAILS PAGE UI
           (Renaming classes slightly where conflict potential exists, 
           but mostly scoping within .blog-details-view)
           ========================================= */

/* [Preserving your previous styles for the details section] */
.blog-heading-section {
  padding: clamp(60px, 8vw, 120px) 0;
  width: 100%;
  background: #f5f6f4;
  margin-bottom: clamp(60px, 8vw, 120px);
}

.blog-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.blog-header-content {
  flex: 1;
  max-width: 600px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #dcfce7;
  color: #166534;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}
.blog-tag:nth-child(1) {
  background-color: #dcfce7;
  color: #166534;
}

.blog-tag:nth-child(2) {
  background-color: #e0f2fe;
  color: #075985;
}

.blog-tag:nth-child(3) {
  background-color: #fef3c7;
  color: #92400e;
}

.blog-tag:nth-child(4) {
  background-color: #ede9fe;
  color: #5b21b6;
}
.blog-tag::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23166534'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 8V3c0-1.105.895-2 2-2z' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.blog-title {
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 30px;
}

.blog-author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  font-size: 18px;
}

  .blog-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

.blog-author-info {
  display: flex;
  flex-direction: column;
}

.blog-author-name {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 16px;
}

.blog-author-role {
  font-size: 14px;
  color: #64748b;
}

.blog-publish-info {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #64748b;
  font-size: 14px;
}

.blog-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-icon {
  width: 18px;
  height: 18px;
  stroke: #64748b;
}

.blog-header-image-wrapper {
  flex: 1;
  position: relative;
}

.blog-featured-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-main);
  display: block;
  object-fit: cover;
  max-height: 400px;
}

.blog-content-section {
  padding-bottom: 80px;
  width: 100%;
}

.blog-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  padding-bottom: 60px;
}

.blog-sidebar-left {
  width: 250px;
  position: sticky;
  top: 20px;
  flex-shrink: 0;
  background: #f8faff;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 10px;
}

.blog-toc-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-dark-blue);
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-toc-link {
  display: block;
  padding: 8px 16px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.blog-toc-link:hover {
  color: var(--color-brand-blue);
  background-color: rgba(0, 160, 219, 0.05);
}

.blog-toc-link.active {
  background-color: #192f56;
  color: #fff;
  font-weight: 500;
  opacity: 0.8;
}

.current .blog-toc-link.active {
  opacity: 1;
}

.current .blog-toc-link.active {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.blog-article {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

  .blog-article p {
    margin-bottom: 24px;
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
  }

  .blog-article h2 {
    font-size: 24px;
    color: var(--color-navy);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    scroll-margin-top: 20px;
  }

.blog-article-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  display: block;
}

.author-bio-card {
  background-color: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  padding: 32px;
  margin-top: 60px;
  width: 100%;
}

.author-bio-header {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  position: relative;
}
.author-bio-avatar img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.author-bio-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 4px;
}

.author-bio-role {
  font-size: 14px;
  color: var(--color-teal-text);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.author-bio-description {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

.author-certs-section {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 24px;
}

.author-certs-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
}

  .author-certs-title svg {
    width: 16px;
    height: 16px;
    color: var(--color-brand-blue);
  }

.cert-swiper {
  width: 100%;
  padding: 0 20px 30px !important;
  position: relative;
}

.cert-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.cert-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.cert-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
}

.cert-next, .cert-prev {
  width: 24px !important;
  height: 24px !important;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

  .cert-next:after, .cert-prev:after {
    font-size: 10px !important;
    color: #64748b;
    font-weight: 800;
  }

.cert-pagination .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
  width: 6px;
  height: 6px;
}

.cert-pagination .swiper-pagination-bullet-active {
  background: var(--color-brand-blue);
  width: 16px;
  border-radius: 4px;
}

.blog-sidebar-right {
  width: 280px;
  position: sticky;
  top: 20px;
  flex-shrink: 0;
}

.blog-cta-card {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.blog-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-cta-text {
  font-size: 14px;
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.5;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #9333ea;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s;
  margin-bottom: 12px;
}

  .blog-cta-btn:hover {
    background-color: #7e22ce;
  }

.blog-cta-arrow {
  margin-left: 8px;
  width: 16px;
  height: 16px;
}

.testimonial-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, rgba(248,250,255,1) 0%, rgba(243,232,255,0.2) 100%);
  width: 100%;
  position: relative;
}

.testimonial-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 16px;
}

.testimonial-subtitle {
  font-size: 16px;
  color: #64748b;
}

.swiper {
  width: 100%;
  padding: 20px 10px 60px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.5);
  cursor: grab;
}

  .testimonial-card:active {
    cursor: grabbing;
  }

.testimonial-swiper .swiper-slide-active .testimonial-card {
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  border-color: transparent;
  transform: scale(1.02);
}

.rating-stars {
  color: #fbbf24;
  margin-bottom: 20px;
  display: flex;
  gap: 4px;
}

.quote-icon {
  color: #c4b5fd;
  margin-bottom: 16px;
  display: inline-block;
}

  .quote-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
  }

.testimonial-text {
  font-size: 16px;
  color: #475569;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 32px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.author-info span {
  font-size: 13px;
  color: #94a3b8;
  display: block;
}

.testimonial-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: #8b5cf6;
  width: 24px;
  border-radius: 5px;
}

.testimonial-swiper .swiper-button-next, .testimonial-swiper .swiper-button-prev {
  color: #64748b;
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

  .testimonial-swiper .swiper-button-next:hover, .testimonial-swiper .swiper-button-prev:hover {
    background-color: var(--color-brand-blue);
    color: #fff;
  }

  .testimonial-swiper .swiper-button-next:after, .testimonial-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
  }

.related-articles-section {
  padding: 80px 0;
  background-color: var(--color-white);
  border-top: 1px solid #e2e8f0;
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.related-title {
  font-size: 30px;
  font-weight: 700;
  color: #1e293b;
}

.related-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

  .related-view-all:hover {
    gap: 10px;
    text-decoration: underline;
  }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

  .related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
  }

.related-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-thumb {
  transform: scale(1.05);
}

.related-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 12px;
  line-height: 1.4;
}

.related-card-desc {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.related-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.related-icon {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
}

.blog-list-page-main {
  margin-top: 80px;
}
.ns-richblog-block {
  margin-block: 60px;
}
/* Responsive */
@media (min-width: 1025px) {
  .blog-sidebar-left .sticky-left .sticky-wrapper, .blog-sidebar-right .sticky-right .sticky-wrapper {
    padding-bottom: 50px;
  }
}

@media (max-width: 1024px) {
  .blog-list-page-main {
    margin-top: 40px;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  .blog-content-wrapper {
    flex-direction: column;
  }

  .blog-sidebar-left {
    width: 100%;
    position: static;
    margin-bottom: 30px;
    border-bottom: none;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  }

  .blog-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .blog-toc-link {
    background: #f8faff;
    border: 1px solid #e2e8f0;
  }

  .blog-sidebar-right {
    width: 100%;
    position: static;
    margin-top: 40px;
  }

  .blog-cta-card {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-bio-card {
    margin-top: 40px;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-img-col {
    height: 250px;
    flex: none;
  }

  .featured-content-col {
    padding: 24px;
  }

  .featured-wrapper {
    margin-top: -60px;
  }

  .list-hero {
    padding-bottom: 100px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  /* Simplified mobile nav */
  .article-card {
    flex-direction: column;
  }

  .article-img-wrapper {
    width: 100%;
    height: 200px;
  }

  .blog-heading-section, .blog-content-section, .testimonial-section, .related-articles-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .blog-header-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .blog-header-content {
    max-width: 100%;
    order: 1;
  }

  .blog-header-image-wrapper {
    width: 100%;
    order: 2;
  }

  .blog-featured-img {
    max-height: 250px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-header {
    flex-direction: row;
    align-items: center;
    margin-bottom: 24px;
  }

  .related-title {
    font-size: 24px;
  }

  .testimonial-swiper .swiper-button-next, .testimonial-swiper .swiper-button-prev, .cert-swiper .swiper-button-next, .cert-swiper .swiper-button-prev {
    display: none;
  }

  .author-bio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-bio-card {
    padding: 24px;
  }

  .hero-title {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.rich-blog .mobile-bottom-links {
    display: none !important;
}