/* ServerConsultant Blog Styles */

/* Admin Edit Button */
.admin-edit-btn {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--sc-accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 100;
}

.admin-edit-btn:hover {
  background: var(--sc-accent-blue-dark, #0051a2);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.admin-edit-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Global box-sizing for blog articles */
.blog-article *,
.blog-article *::before,
.blog-article *::after {
  box-sizing: border-box;
}

/* Ensure header/footer work properly on blog pages */
.sc-header {
  position: relative;
  z-index: 1000;
}

.sc-menu-toggle {
  position: relative;
  z-index: 1001;
  cursor: pointer;
}

/* Ensure mobile nav works */
.sc-nav {
  z-index: 999;
}

/* Ensure container is responsive */
.blog-article .sc-container {
  width: 100%;
  box-sizing: border-box;
  padding: 0 2rem;
}

.blog-article {
  padding-top: 2rem;
  min-height: 100vh;
  background: var(--sc-black);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--sc-dark-gray);
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: var(--sc-gray);
  font-size: 0.875rem;
}

.article-category {
  background: var(--sc-dark-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: var(--sc-white);
  font-weight: 500;
  border: 1px solid var(--sc-dark-gray);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;font-weight: 600;
  color: var(--sc-white);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--sc-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--sc-gray);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;font-weight: 600;
  color: var(--sc-white);
  margin: 3rem 0 1.5rem 0;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sc-white);
  margin: 2rem 0 1rem 0;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sc-white);
  margin: 1.5rem 0 0.75rem 0;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--sc-gray);
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: var(--sc-gray);
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content blockquote {
  border-left: 4px solid var(--sc-purple);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--sc-gray);
}

.article-content pre {
  background: var(--sc-black);
  color: var(--sc-gray);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid var(--sc-dark-gray);
}

.article-content code {
  background: var(--sc-black);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  color: var(--sc-light-blue);
  border: 1px solid var(--sc-dark-gray);
}

.article-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

.highlight-box,
.warning-box,
.success-box,
.performance-tip,
.cost-tip {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
  border: 1px solid;
}

.highlight-box {
  background: rgba(136, 120, 249, 0.1);
  border-color: var(--sc-purple);
}

.warning-box {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.success-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.performance-tip,
.cost-tip {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
}

.highlight-box h4,
.warning-box h4,
.success-box h4,
.performance-tip h4,
.cost-tip h4 {
  font-weight: 600;
  color: var(--sc-white);
  margin: 0 0 0.5rem 0;
}

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sc-dark-gray);
}

.author-bio {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sc-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-white);
  font-weight: 600;
}

.author-info h4 {
  font-weight: 600;
  color: var(--sc-white);
  margin: 0 0 0.25rem 0;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--sc-gray);
  margin: 0;
}

.related-articles {
  background: var(--sc-black);
  padding: 3rem 0;
  margin: 0;
  border-top: 1px solid var(--sc-dark-gray);
  width: 100%;
}

.related-articles h3 {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700; font-weight: 600;
  color: var(--sc-white);
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.related-card {
  background: var(--sc-dark-blue);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--sc-dark-gray);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--sc-purple);
}

.related-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sc-white);
  margin: 0 0 0.5rem 0;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--sc-gray);
  margin: 0 0 1rem 0;
}

.related-card a {
  color: var(--sc-purple);
  font-weight: 500;
  text-decoration: none;
}

.related-card a:hover {
  text-decoration: underline;
}

/* Tables */
.article-content .table-wrapper {
  display: block;
  margin: 2rem 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.table-wrapper table,
.db-comparison,
.dr-strategy-table,
.optimization-table {
  min-width: 600px;
  border-collapse: collapse;
  background: var(--sc-dark-blue);
  border-radius: 0.5rem;
  border: 1px solid var(--sc-dark-gray);
  display: table;
  table-layout: auto;
  margin: 0;
}

.db-comparison th,
.db-comparison td,
.dr-strategy-table th,
.dr-strategy-table td,
.optimization-table th,
.optimization-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sc-dark-gray);
  color: var(--sc-gray);
  white-space: nowrap;
}

.db-comparison th,
.dr-strategy-table th,
.optimization-table th {
  background: var(--sc-black);
  font-weight: 600;
  color: var(--sc-white);
}

.db-comparison tr:last-child td,
.dr-strategy-table tr:last-child td,
.optimization-table tr:last-child td {
  border-bottom: none;
}

/* Metrics */
.dr-metrics,
.cost-breakdown,
.performance-metrics,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.metric-card,
.cost-card,
.metric-box {
  background: var(--sc-dark-blue);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid var(--sc-dark-gray);
}

.metric-value,
.cost-percentage {
  font-size: 2rem;
  font-weight: 700; font-weight: 600;
  color: var(--sc-purple);
  margin-bottom: 0.5rem;
}

.metric-label,
.cost-category {
  font-size: 0.875rem;
  color: var(--sc-gray);
}

/* Special elements */
.savings-potential {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.savings-high {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.savings-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.savings-low {
  background: rgba(156, 163, 175, 0.2);
  color: var(--sc-gray);
}

.improvement {
  color: #10b981;
}

.degradation {
  color: #ef4444;
}

/* Query examples */
.query-example {
  background: var(--sc-black);
  border: 1px solid var(--sc-dark-gray);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.query-example h5 {
  font-weight: 600;
  color: var(--sc-white);
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
}

/* Checklists */
.security-checklist,
.dr-checklist {
  background: var(--sc-dark-blue);
  border: 1px solid var(--sc-dark-gray);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.security-checklist h4,
.dr-checklist h4 {
  font-weight: 600;
  color: var(--sc-white);
  margin: 0 0 1rem 0;
}

.security-checklist ul,
.dr-checklist ul {
  margin: 0;
  padding-left: 1.5rem;
}

.security-checklist li,
.dr-checklist li {
  margin-bottom: 0.5rem;
  color: var(--sc-gray);
}

/* Responsive */
@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .article-meta {
    font-size: 0.75rem;
    gap: 1rem;
  }
  
  .article-meta .article-author {
    font-size: 0.75rem;
  }
  
  .article-meta .author-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .db-comparison,
  .dr-strategy-table,
  .optimization-table {
    font-size: 0.875rem;
  }
  
  .metric-value,
  .cost-percentage {
    font-size: 1.5rem;
  }
}

/* Article Hero Section */
.article-hero {
  background: linear-gradient(135deg, var(--sc-black) 0%, #1a1a2e 100%);
  color: var(--sc-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(136, 120, 249, 0.1) 0%, transparent 50%);
}

.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.article-hero-content .article-category {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(136, 120, 249, 0.1);
  border: 1px solid var(--sc-purple);
  border-radius: 25px;
  color: var(--sc-purple);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.article-hero-content .article-category:hover {
  background: var(--sc-purple);
  color: var(--sc-white);
}

.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.article-hero .article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-author .author-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}

/* Article Body Layout */
.article-body {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Table of Contents */
.article-toc {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.toc-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-gray);
  margin-bottom: 1rem;
}

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

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

.toc-list a {
  color: var(--sc-gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--sc-purple);
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.share-buttons {
  background: var(--sc-dark-blue);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--sc-dark-gray);
}

.share-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--sc-white);
}

.share-links {
  display: flex;
  gap: 0.75rem;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--sc-black);
  border-radius: 50%;
  color: var(--sc-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--sc-dark-gray);
}

.share-link:hover {
  background: var(--sc-purple);
  color: var(--sc-white);
  border-color: var(--sc-purple);
}

/* Author Box */
.author-box {
  background: var(--sc-dark-blue);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--sc-dark-gray);
}

.author-card .author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}


.author-details h4 {
  margin: 0 0 0.25rem 0;
  color: var(--sc-white);
}

.author-details p {
  font-size: 0.875rem;
  color: var(--sc-gray);
  margin: 0;
}

.author-bio p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--sc-gray);
  margin: 0;
}

/* Case Study Styles */
.case-study {
  background: var(--sc-black);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--sc-dark-gray);
}

.case-study h4 {
  color: var(--sc-purple);
  margin: 0 0 1rem 0;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .article-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
  }
  
  .article-toc {
    position: relative;
    margin-bottom: 2rem;
    background: var(--sc-dark-blue);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--sc-dark-gray);
  }
  
  .article-sidebar {
    position: relative;
    margin-top: 3rem;
  }
}

@media (max-width: 1024px) {
  .article-body {
    padding: 2rem 1.5rem;
  }
  
  .article-content {
    font-size: 1.0625rem;
  }
  
  .article-title {
    font-size: 2.25rem;
  }
  
  .article-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem 0;
  }
  
  .article-content h3 {
    font-size: 1.375rem;
  }
}

@media (max-width: 768px) {
  .blog-article .sc-container {
    padding: 0 1rem;
  }
  
  /* Fix header/footer on mobile */
  .sc-header .sc-container,
  .sc-footer .sc-container {
    padding: 0 1rem;
  }
  
  /* Ensure mobile menu is clickable */
  .sc-menu-toggle {
    z-index: 9999 !important;
    position: relative !important;
    pointer-events: auto !important;
    display: block !important;
  }
  
  /* Ensure nav overlay works */
  .sc-nav.active {
    z-index: 9998 !important;
    position: fixed !important;
  }
  
  /* Fix header spacing */
  .blog-article {
    padding-top: 4rem;
  }
  
  .article-hero {
    padding: 2rem 0;
  }
  
  .article-hero-content {
    padding: 0 1rem;
  }
  
  .article-body {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  .article-content {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .article-title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
  }
  
  .article-excerpt {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
  }
  
  .article-content h4 {
    font-size: 1.125rem;
  }
  
  .article-content p,
  .article-content ul,
  .article-content ol {
    margin-bottom: 1.25rem;
  }
  
  .article-content pre {
    padding: 1rem;
    font-size: 0.8125rem;
    margin: 1.5rem -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .article-content blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
  }
  
  /* Hide TOC and sidebar on mobile */
  .article-toc,
  .article-sidebar {
    display: none;
  }
  
  /* Tables responsive */
  .article-content .table-wrapper {
    margin: 1.5rem 0;
    overflow-x: scroll !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  
  .table-wrapper table {
    width: auto !important;
    min-width: 700px !important;
  }
  
  .table-wrapper::-webkit-scrollbar {
    height: 8px;
  }
  
  .table-wrapper::-webkit-scrollbar-track {
    background: var(--sc-dark-gray);
  }
  
  .table-wrapper::-webkit-scrollbar-thumb {
    background: var(--sc-purple);
    border-radius: 4px;
  }
  
  .db-comparison th,
  .db-comparison td,
  .dr-strategy-table th,
  .dr-strategy-table td,
  .optimization-table th,
  .optimization-table td {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }
  
  /* Boxes and tips */
  .highlight-box,
  .warning-box,
  .success-box,
  .performance-tip,
  .cost-tip {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  /* Metrics grid */
  .dr-metrics,
  .cost-breakdown,
  .performance-metrics,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .metric-card,
  .cost-card,
  .metric-box {
    padding: 1rem;
  }
  
  .metric-value,
  .cost-percentage {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-article .sc-container {
    padding: 0 0.75rem;
  }
  
  /* Fix header/footer spacing on small screens */
  .sc-header .sc-container,
  .sc-footer .sc-container {
    padding: 0 0.75rem;
  }
  
  /* Ensure footer is visible */
  .sc-footer {
    margin-top: 3rem;
  }
  
  /* Table scroll indicator */
  .article-content .table-wrapper {
    margin: 1.5rem 0;
  }
  
  .table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, var(--sc-black));
    pointer-events: none;
    opacity: 0.8;
  }
  
  .article-hero {
    padding: 1.5rem 0;
  }
  
  .article-body {
    padding: 1rem 0.75rem;
  }
  
  .article-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .article-hero .article-meta {
    font-size: 0.8125rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .article-content {
    font-size: 0.9375rem;
  }
  
  .article-content h2 {
    font-size: 1.375rem;
  }
  
  .article-content h3 {
    font-size: 1.125rem;
  }
  
  .article-content h4 {
    font-size: 1rem;
  }
  
  /* Single column metrics on small mobile */
  .dr-metrics,
  .cost-breakdown,
  .performance-metrics,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  /* Related articles */
  .related-articles {
    padding: 2rem 0;
    margin: 0;
  }
  
  .related-grid {
    padding: 0 0.75rem;
    gap: 1.5rem;
  }
  
  .related-card {
    padding: 1rem;
  }
  
  .related-card h4 {
    font-size: 1rem;
  }
  
  .related-card p {
    font-size: 0.8125rem;
  }
}

/* Blog Post CTA */
.blog-post-cta {
  border-radius: 12px;
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Category-specific CTA colors */
.blog-post-cta.cta-security {
  background: linear-gradient(135deg, #8878f9 0%, #7060e9 100%);
  border: 1px solid #8878f9;
}

.blog-post-cta.cta-devops {
  background: linear-gradient(135deg, #79f7ab 0%, #47d37f 100%);
  border: 1px solid #79f7ab;
}

.blog-post-cta.cta-cloud-architecture {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border: 1px solid #60a5fa;
}

.blog-post-cta.cta-infrastructure {
  background: linear-gradient(135deg, #ea8f3f 0%, #f4a261 100%);
  border: 1px solid #ea8f3f;
}

.blog-post-cta.cta-database {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  border: 1px solid #a78bfa;
}

.blog-post-cta.cta-cost-optimization {
  background: linear-gradient(135deg, #f77979 0%, #ff6b6b 100%);
  border: 1px solid #f77979;
}

.blog-post-cta.cta-default {
  background: linear-gradient(135deg, #8878f9 0%, #6b5dd3 100%);
  border: 1px solid #8878f9;
}

.blog-post-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.blog-post-cta h2 {
  font-size: 2.5rem;
  font-weight: 700; font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-post-cta p {
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Override button colors for CTAs */
.blog-post-cta .sc-button-primary {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--sc-white);
  border: none;
}

.blog-post-cta .sc-button-primary:hover {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-post-cta .sc-button-secondary {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.8);
}

.blog-post-cta .sc-button-secondary:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--sc-white);
  border-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .blog-post-cta {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }
  
  .blog-post-cta h2 {
    font-size: 2rem;
  }
  
  .blog-post-cta p {
    font-size: 1.125rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem; /* optional spacing between avatar and button */
  }

  .read-more-btn {
    align-self: stretch; /* optional: make button take full width */
    text-align: center;
  }

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