:root {
  /* Brand color system from theme.json settings */
  --ms-brand-primary: #1e870a;
  --ms-brand-primary-hover: #166408;
  --ms-brand-accent: #7d7d8c;
  --ms-text-primary: #0d141a;
  --ms-text-body: #2c3038;
  --ms-text-muted: #6b7280;
  --ms-surface: #ffffff;
  --ms-surface-soft: #f8fafc;
  --ms-border: #e2e8f0;
  --ms-container-width: 1240px;
  --ms-article-width: 740px;
  --ms-radius: 12px;
  --ms-transition: all 0.2s ease-in-out;
}

/* ===== 1. GENERAL & BREADCRUMBS ===== */
.ms-blog-shell {
  color: var(--ms-text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.65;
  background: var(--ms-surface);
  padding: 0;
  margin: 0;
}
.ms-blog-container {
  max-width: var(--ms-container-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(18px, 4vw, 40px);
  box-sizing: border-box;
}
.ms-blog-breadcrumbs {
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  color: var(--ms-text-muted);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ms-blog-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: var(--ms-transition);
}
.ms-blog-breadcrumbs a:hover {
  color: var(--ms-brand-primary);
  text-decoration: underline;
}
.ms-blog-breadcrumbs-sep {
  opacity: 0.5;
}
.ms-blog-breadcrumbs-current {
  color: var(--ms-text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

/* ===== 2. SINGLE POST DETAILS ===== */
.ms-blog-category-wrap {
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}
.ms-blog-category-link {
  display: inline-block;
  background-color: var(--ms-surface-soft);
  color: var(--ms-brand-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--ms-transition);
}
.ms-blog-category-link:hover {
  background-color: var(--ms-brand-primary);
  color: var(--ms-surface);
}
.ms-blog-post-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important;
  font-weight: 800;
  line-height: 1.1 !important;
  color: var(--ms-text-primary);
  letter-spacing: -0.03em;
  margin-top: 0 !important;
  margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
  text-align: left;
}
.ms-blog-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--ms-border);
}
.ms-blog-meta-author-col {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ms-blog-author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.ms-blog-meta-author-info {
  display: flex;
  flex-direction: column;
}
.ms-blog-meta-author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ms-text-primary);
  text-decoration: none;
}
.ms-blog-meta-author-name:hover {
  color: var(--ms-brand-primary);
  text-decoration: underline;
}
.ms-blog-meta-author-role {
  font-size: 0.8125rem;
  color: var(--ms-text-muted);
}
.ms-blog-meta-details-col {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--ms-text-muted);
  flex-wrap: wrap;
}
.ms-blog-meta-divider {
  opacity: 0.5;
}
.ms-blog-meta-dates {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ms-blog-meta-read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.ms-blog-clock-icon {
  opacity: 0.7;
}
.ms-blog-featured-image {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: var(--ms-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 20, 26, 0.05);
}
.ms-blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* ===== 3. THREE-COLUMN SYSTEM ===== */
.ms-blog-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, var(--ms-article-width)) 300px;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* A: Left Sidebar share + TOC */
.ms-blog-left-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.ms-blog-left-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ms-blog-left-sidebar .ms-blog-share-title {
  display: none; /* Hide wide share title */
}
.ms-blog-left-sidebar .ms-blog-share-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.ms-blog-left-sidebar .ms-blog-toc-container {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  margin: 0;
}
.ms-blog-left-sidebar .ms-blog-toc-toggle {
  display: none; /* No mobile toggle needed in left sidebar */
}
.ms-blog-left-sidebar .ms-blog-toc-wrapper {
  display: block !important;
  border-left: 2px solid var(--ms-border);
  padding-left: 15px;
}
.ms-blog-left-sidebar .ms-blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ms-blog-left-sidebar .ms-blog-toc-item {
  margin-bottom: 10px;
  line-height: 1.35;
}
.ms-blog-left-sidebar .ms-blog-toc-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ms-text-muted);
  text-decoration: none;
  transition: var(--ms-transition);
  display: inline-block;
  position: relative;
}
.ms-blog-left-sidebar .ms-blog-toc-link:hover {
  color: var(--ms-text-primary);
}
.ms-blog-left-sidebar .ms-blog-toc-item.ms-blog-toc-child {
  padding-left: 10px;
}
.ms-blog-left-sidebar .ms-blog-toc-item.ms-blog-toc-child .ms-blog-toc-link {
  font-size: 0.78rem;
}
.ms-blog-left-sidebar .ms-blog-toc-link.ms-blog-active {
  color: var(--ms-brand-primary);
  font-weight: 700;
}

/* TOC Bullet Highlight offsets */
.ms-blog-left-sidebar .ms-blog-toc-link.ms-blog-active::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ms-brand-primary);
}
.ms-blog-left-sidebar .ms-blog-toc-item.ms-blog-toc-child .ms-blog-toc-link.ms-blog-active::before {
  left: -29px;
}

/* B: Central content column */
.ms-blog-main-content {
  min-width: 0;
}

/* C: Right Sidebar CTA & Keyword tool */
.ms-blog-right-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.ms-blog-right-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Sidebar Ubersuggest Mock widget */
.ms-blog-keyword-widget {
  background: var(--ms-surface-soft);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}
.ms-blog-keyword-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--ms-text-primary);
}
.ms-blog-keyword-desc {
  font-size: 0.82rem;
  color: var(--ms-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.ms-blog-keyword-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ms-blog-keyword-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ms-border);
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  transition: var(--ms-transition);
}
.ms-blog-keyword-input:focus {
  border-color: var(--ms-brand-primary);
}
.ms-blog-keyword-btn {
  background: var(--ms-brand-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: var(--ms-transition);
}
.ms-blog-keyword-btn:hover {
  background: var(--ms-brand-primary-hover);
}

/* Right sidebar specific CTA styling adjustments */
.ms-blog-right-sidebar .ms-blog-cta-box {
  margin: 0;
  padding: 24px;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.ms-blog-right-sidebar .ms-blog-cta-content {
  flex: none;
}
.ms-blog-right-sidebar .ms-blog-cta-heading {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.ms-blog-right-sidebar .ms-blog-cta-list {
  grid-template-columns: 1fr;
  gap: 8px;
}
.ms-blog-right-sidebar .ms-blog-cta-item {
  font-size: 0.88rem;
}
.ms-blog-right-sidebar .ms-blog-cta-btn-link {
  display: block;
  width: 100%;
}

/* ===== 4. ARTICLE CONTENT TYPOGRAPHY ===== */
.ms-blog-article p {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.75;
  color: var(--ms-text-body);
  margin-top: 0;
  margin-bottom: 1.6em;
}
.ms-blog-article h2,
.ms-blog-article h3,
.ms-blog-article h4 {
  color: var(--ms-text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8em;
}
.ms-blog-article h2 {
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  margin-top: 2.2em;
  line-height: 1.25;
}
.ms-blog-article h3 {
  font-size: clamp(1.3125rem, 2vw, 1.625rem);
  margin-top: 1.8em;
  line-height: 1.3;
}
.ms-blog-article h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  margin-top: 1.5em;
  line-height: 1.4;
}
.ms-blog-article ul,
.ms-blog-article ol {
  margin-top: 0;
  margin-bottom: 1.6em;
  padding-left: 24px;
}
.ms-blog-article li {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  margin-bottom: 0.6em;
  line-height: 1.65;
}
.ms-blog-article ul {
  list-style-type: disc;
}
.ms-blog-article ul li::marker {
  color: var(--ms-brand-primary);
}
.ms-blog-article a {
  color: var(--ms-brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: var(--ms-transition);
}
.ms-blog-article a:hover {
  color: var(--ms-brand-primary-hover);
  text-decoration-color: var(--ms-brand-primary-hover);
}
.ms-blog-article blockquote {
  border-left: 4px solid var(--ms-brand-primary);
  padding: 12px 0 12px 24px;
  margin: 2em 0;
  background: var(--ms-surface-soft);
  border-radius: 0 var(--ms-radius) var(--ms-radius) 0;
}
.ms-blog-article blockquote p {
  font-size: clamp(1.1875rem, 1.5vw, 1.3125rem);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}
.ms-blog-article figure {
  margin: 2.5em 0;
}
.ms-blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ms-radius);
  display: block;
}
.ms-blog-article figcaption {
  font-size: 0.875rem;
  color: var(--ms-text-muted);
  text-align: center;
  margin-top: 10px;
}
.ms-blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5em 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ms-blog-article th,
.ms-blog-article td {
  padding: 14px 18px;
  border: 1px solid var(--ms-border);
  text-align: left;
}
.ms-blog-article th {
  background: var(--ms-surface-soft);
  color: var(--ms-text-primary);
  font-weight: 600;
}
.ms-blog-article tr:nth-child(even) {
  background: var(--ms-surface-soft);
}
.ms-blog-article pre {
  background: var(--ms-text-primary);
  color: #f8fafc;
  padding: 20px;
  border-radius: var(--ms-radius);
  overflow-x: auto;
  margin: 2em 0;
}
.ms-blog-article code {
  font-family: "IBM Plex Mono", SFMono-Regular, Consolas, Monaco, monospace;
  font-size: 0.9em;
}
.ms-blog-article :not(pre) > code {
  background: var(--ms-surface-soft);
  color: #cf2e2e;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* ===== 5. COMPONENT DESIGNS ===== */
/* Share toast notification styling */
.ms-blog-share {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ms-border);
  padding-top: 24px;
}
.ms-blog-share-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ms-text-muted);
  margin-top: 0;
  margin-bottom: 16px;
}
.ms-blog-share-buttons {
  display: flex;
  gap: 10px;
}
.ms-blog-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ms-surface-soft);
  color: var(--ms-text-muted);
  border: 1px solid var(--ms-border);
  cursor: pointer;
  transition: var(--ms-transition);
  padding: 0;
}
.ms-blog-share-btn:hover {
  background-color: var(--ms-brand-primary);
  color: var(--ms-surface);
  border-color: var(--ms-brand-primary);
}
.ms-blog-share-btn svg {
  display: block;
}
.ms-blog-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--ms-text-primary);
  color: var(--ms-surface);
  padding: 10px 18px;
  border-radius: var(--ms-radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 10000;
}
.ms-blog-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Reusable CTA Box */
.ms-blog-cta-box {
  background-color: var(--ms-text-primary);
  color: var(--ms-surface);
  border-radius: var(--ms-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.ms-blog-cta-content {
  flex: 1 1 500px;
}
.ms-blog-cta-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--ms-surface);
}
.ms-blog-cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
}
.ms-blog-cta-item {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}
.ms-blog-cta-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ms-brand-primary);
  font-weight: 800;
}
.ms-blog-cta-action {
  flex: 0 0 auto;
}
.ms-blog-cta-btn-link {
  display: inline-block;
  background-color: var(--ms-brand-primary);
  color: var(--ms-surface) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none !important;
  text-align: center;
  transition: var(--ms-transition);
  min-height: 44px;
  box-sizing: border-box;
}
.ms-blog-cta-btn-link:hover {
  background-color: var(--ms-brand-primary-hover);
}

/* Author Biography Box */
.ms-blog-author-box {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  background-color: var(--ms-surface-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.ms-blog-author-box-header {
  border-bottom: 1px solid var(--ms-border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.ms-blog-author-box-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ms-text-muted);
}
.ms-blog-author-box-body {
  display: flex;
  gap: 24px;
}
.ms-blog-author-box-photo-col {
  flex: 0 0 auto;
}
.ms-blog-author-box-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.ms-blog-author-box-details-col {
  flex: 1 1 0%;
}
.ms-blog-author-box-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ms-blog-author-box-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.ms-blog-author-box-name a {
  color: var(--ms-text-primary);
  text-decoration: none;
}
.ms-blog-author-box-name a:hover {
  color: var(--ms-brand-primary);
  text-decoration: underline;
}
.ms-blog-author-box-role {
  font-size: 0.85rem;
  color: var(--ms-text-muted);
  font-weight: 500;
}
.ms-blog-author-box-bio {
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.55;
  color: var(--ms-text-body);
}
.ms-blog-author-box-links {
  display: flex;
  gap: 12px;
}
.ms-blog-author-link {
  color: var(--ms-text-muted);
  transition: var(--ms-transition);
}
.ms-blog-author-link:hover {
  color: var(--ms-brand-primary);
}

/* Related Post Grid Section */
.ms-blog-related-title {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--ms-text-primary);
  margin-top: 0;
  margin-bottom: 24px;
}
.ms-blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ms-blog-related-card {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  overflow: hidden;
  background-color: var(--ms-surface);
  display: flex;
  flex-direction: column;
  transition: var(--ms-transition);
}
.ms-blog-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 20, 26, 0.08);
}
.ms-blog-related-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--ms-surface-soft);
}
.ms-blog-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-blog-related-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.ms-blog-related-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ms-brand-primary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.ms-blog-related-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 10px;
}
.ms-blog-related-card-title a {
  color: var(--ms-text-primary);
  text-decoration: none;
}
.ms-blog-related-card-title a:hover {
  color: var(--ms-brand-primary);
}
.ms-blog-related-excerpt {
  font-size: 0.875rem;
  color: var(--ms-text-body);
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.5;
}
.ms-blog-related-meta {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--ms-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ms-blog-related-divider {
  opacity: 0.5;
}

/* ===== 6. MAIN BLOG ARCHIVE LISTING PAGE ===== */
.ms-blogs-shell {
  background: var(--ms-surface);
  padding: 60px 0;
}
.ms-blogs-container {
  max-width: var(--ms-container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.ms-blogs-header {
  text-align: center;
  margin-bottom: 40px;
}
.ms-blogs-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--ms-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  margin-top: 0;
}
.ms-blogs-title-highlight {
  background: linear-gradient(120deg, rgba(30, 135, 10, 0.15) 0%, rgba(30, 135, 10, 0.15) 100%);
  background-repeat: no-repeat;
  background-size: 100% 32%;
  background-position: 0 88%;
  padding: 0 4px;
  display: inline-block;
}
.ms-blogs-subtitle {
  font-size: 1.15rem;
  color: var(--ms-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.ms-blogs-filters-bar {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--ms-border);
  padding-bottom: 15px;
}
.ms-blogs-filters-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px;
  scrollbar-width: none; /* Hide scrollbar for cleaner UI */
}
.ms-blogs-filters-scroll::-webkit-scrollbar {
  display: none;
}
.ms-blogs-filter-tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--ms-transition);
  border: 1px solid #cbd5e1;
}
.ms-blogs-filter-tag:hover {
  background: var(--ms-surface-soft);
  color: var(--ms-text-primary);
  border-color: #94a3b8;
}
.ms-blogs-filter-tag.active {
  background: var(--ms-brand-primary);
  color: #fff;
  border-color: var(--ms-brand-primary);
}
.ms-blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-bottom: 60px;
}
.ms-blog-card {
  background: var(--ms-surface);
  border-radius: var(--ms-radius);
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ms-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.ms-blog-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ms-surface-soft);
  overflow: hidden;
  position: relative;
}
.ms-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.ms-blog-card:hover .ms-blog-card-img {
  transform: scale(1.04);
}
.ms-blog-card-img-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
.ms-blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ms-blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.ms-blog-card-category {
  color: var(--ms-brand-primary);
}
.ms-blog-card-read-time {
  color: var(--ms-text-muted);
  font-weight: 500;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ms-blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 12px;
}
.ms-blog-card-title a {
  color: var(--ms-text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.ms-blog-card-title a:hover {
  color: var(--ms-brand-primary);
}
.ms-blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--ms-text-body);
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 24px;
  flex: 1;
}
.ms-blog-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--ms-border);
  padding-top: 16px;
}
.ms-blog-card-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ms-surface-soft);
  flex-shrink: 0;
}
.ms-blog-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ms-blog-card-author-info {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.4;
}
.ms-blog-card-author-name {
  font-weight: 700;
  color: var(--ms-text-primary);
  margin-bottom: 2px;
}
.ms-blog-card-author-details {
  color: var(--ms-text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}
.ms-blogs-pagination {
  text-align: center;
  margin-top: 50px;
}
.ms-blogs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--ms-border);
  margin: 0 4px;
  color: var(--ms-text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--ms-transition);
}
.ms-blogs-pagination .page-numbers:hover {
  background: var(--ms-surface-soft);
  border-color: var(--ms-brand-accent);
}
.ms-blogs-pagination .page-numbers.current {
  background: var(--ms-brand-primary);
  color: var(--ms-surface);
  border-color: var(--ms-brand-primary);
}
.ms-blogs-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}
.ms-blogs-pagination .page-numbers.prev,
.ms-blogs-pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
  gap: 6px;
}
.ms-blogs-pag-arrow {
  flex-shrink: 0;
}

/* ===== 7. RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1100px) {
  .ms-blog-layout {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }
  .ms-blog-left-sidebar {
    display: none; /* Hide left sidebar on smaller screens, layout becomes 2 columns */
  }
  .ms-blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ms-blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ms-blog-right-sidebar {
    position: static;
    width: 100%;
    margin-top: 30px;
  }
  .ms-blog-right-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 640px) {
  .ms-blogs-grid {
    grid-template-columns: 1fr;
  }
  .ms-blog-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ms-blog-meta-details-col {
    width: 100%;
    border-top: 1px dashed var(--ms-border);
    padding-top: 12px;
  }
  .ms-blog-related-grid {
    grid-template-columns: 1fr;
  }
  .ms-blog-author-box-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ms-blog-author-box-title-row {
    justify-content: center;
  }
  .ms-blog-author-box-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
