.blog-list {
  margin-top: 30px;
}

.blog-post-item {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

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

.post-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: bold;
}

/* Post meta header */
.post-meta-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  font-size: 0.95em;
  color: var(--color-text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  color: var(--color-primary);
  font-size: 0.9em;
}

.meta-separator {
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* Blog layout with sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-top: 40px;
}

.blog-main-content {
  min-width: 0;
}

/* Sidebar */
.blog-sidebar {
  align-self: start;
}

/* Sidebar Author Card */
.sidebar-author-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.sidebar-author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
  margin-bottom: 15px;
}

.sidebar-author-name {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px 0;
}

.sidebar-author-bio {
  font-size: 0.9em;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.sidebar-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.sidebar-author-link:hover {
  background: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.sidebar-author-link i {
  font-size: 1.1em;
}

/* Audio Player */
.audio-player-container {
  margin: 30px 0 40px;
}

/* Toggle Button */
.audio-toggle-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1em;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.audio-toggle-button:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.audio-toggle-button:hover .audio-icon {
  color: white;
}

.audio-toggle-button:hover .audio-toggle-chevron {
  color: white;
}

.audio-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.audio-toggle-text {
  flex: 1;
  text-align: left;
}

.audio-toggle-chevron {
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
  font-size: 0.9em;
}

.audio-toggle-button[aria-expanded="true"] .audio-toggle-chevron {
  transform: rotate(180deg);
}

/* Player Card (Collapsible) */
.audio-player-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
  border: 2px solid var(--color-primary);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
  margin-top: -2px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="dark"] .audio-player-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #0a1929 100%);
  border-color: var(--color-primary);
}

[data-theme="dark"] .audio-toggle-button {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}

.audio-player-content {
  flex: 1;
  min-width: 0;
}

.audio-player-header {
  margin-bottom: 15px;
}

.audio-player-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 5px 0;
}

.audio-player-subtitle {
  font-size: 0.9em;
  color: var(--color-text-muted);
  margin: 0;
}

.audio-player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.audio-btn-primary {
  background: var(--color-primary);
  color: white;
}

.audio-btn-primary:hover {
  background: #00b8e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

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

.audio-btn i {
  font-size: 1em;
}

.audio-progress-container {
  flex: 1;
  min-width: 200px;
}

.audio-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.audio-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .audio-progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

.audio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #00b8e6 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-speed-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-speed-label {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--color-text);
}

.audio-speed-select {
  padding: 6px 12px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-speed-select:hover {
  border-color: var(--color-primary);
}

.audio-speed-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

@media (max-width: 768px) {
  .audio-toggle-button {
    padding: 12px 16px;
    font-size: 0.95em;
  }

  .audio-icon {
    width: 20px;
    height: 20px;
  }

  .audio-player-card {
    padding: 20px;
  }

  .audio-player-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .audio-btn {
    width: 100%;
    justify-content: center;
  }

  .audio-progress-container {
    width: 100%;
  }

  .audio-speed-controls {
    justify-content: space-between;
  }
}

/* Info Boxes for Blog Content */
.info-box-warning {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.info-box-warning strong {
  color: #e65100;
}

[data-theme="dark"] .info-box-warning {
  background: rgba(255, 152, 0, 0.15);
  border-left-color: #ff9800;
}

[data-theme="dark"] .info-box-warning strong {
  color: #ffb74d;
}

.info-box-info {
  background: #e3f2fd;
  border-left: 4px solid #1e88e5;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.info-box-info strong {
  color: #0d47a1;
}

[data-theme="dark"] .info-box-info {
  background: rgba(30, 136, 229, 0.15);
  border-left-color: #1e88e5;
}

[data-theme="dark"] .info-box-info strong {
  color: #64b5f6;
}

.info-box-success {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.info-box-success strong {
  color: #1b5e20;
}

[data-theme="dark"] .info-box-success {
  background: rgba(76, 175, 80, 0.15);
  border-left-color: #4caf50;
}

[data-theme="dark"] .info-box-success strong {
  color: #81c784;
}

/* Sidebar Tags Card */
.sidebar-tags-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.sidebar-tags-card:first-of-type {
  margin-top: 0;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 15px 0;
}

.sidebar-section-title i {
  color: var(--color-primary);
}

.sidebar-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-primary-dim);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-tag:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

/* Categories styling (distinct from tags) */
.sidebar-category {
  background: var(--color-bg);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--color-text);
}

.sidebar-category:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  border-color: var(--color-primary);
  color: white;
}

/* Sidebar Share Card */
.sidebar-share-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn-success {
  background: #4caf50 !important;
}

.share-twitter {
  background: #1DA1F2;
}

.share-twitter:hover {
  background: #1a8cd8;
}

.share-linkedin {
  background: #0077B5;
}

.share-linkedin:hover {
  background: #006399;
}

.share-facebook {
  background: #1877F2;
}

.share-facebook:hover {
  background: #145dbf;
}

.share-copy {
  background: #6c757d;
}

.share-copy:hover {
  background: #5a6268;
}

.share-email {
  background: #EA4335;
}

.share-email:hover {
  background: #c53929;
}

.share-print {
  background: #34A853;
}

.share-print:hover {
  background: #2d8f47;
}

/* Callout boxes with dark mode support */
.warning-box,
.info-box,
.success-box {
  padding: 15px 15px 15px 50px;
  margin: 20px 0;
  border-radius: 8px;
  position: relative;
}

.warning-box::before,
.info-box::before,
.success-box::before {
  position: absolute;
  left: 15px;
  top: 15px;
  font-size: 1.5em;
}

.warning-box {
  background: #fff8e1;
  border-left: 4px solid #ffa000;
  color: #4a3600;
}

[data-theme="dark"] .warning-box {
  background: #3d3000;
  border-left: 4px solid #ffa000;
  color: #ffe082;
}

.info-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #0d47a1;
}

[data-theme="dark"] .info-box {
  background: #1a2332;
  border-left: 4px solid #2196f3;
  color: #90caf9;
}

.success-box {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #1b5e20;
}

[data-theme="dark"] .success-box {
  background: #1b2e1f;
  border-left: 4px solid #66bb6a;
  color: #a5d6a7;
}

/* Impact grid and boxes */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.impact-box {
  padding: 20px;
  border-radius: 8px;
}

.impact-box h3 {
  margin-top: 0 !important;
  margin-bottom: 10px;
}

.impact-box p {
  margin-bottom: 0;
}

.impact-danger {
  background: #ffebee;
  border-left: 4px solid #e53935;
  color: #b71c1c;
}

[data-theme="dark"] .impact-danger {
  background: #2e1a1a;
  border-left: 4px solid #ef5350;
  color: #ffb3ba;
}

[data-theme="dark"] .impact-danger h3 {
  color: #ff8a95;
}

.impact-warning {
  background: #fff3e0;
  border-left: 4px solid #fb8c00;
  color: #e65100;
}

[data-theme="dark"] .impact-warning {
  background: #3d2800;
  border-left: 4px solid #ff9800;
  color: #ffcc80;
}

/* Quote highlight */
.quote-highlight {
  text-align: center;
  padding: 30px 20px;
  margin: 40px 0;
  background: linear-gradient(135deg, #1e88e5 0%, #0277bd 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.quote-highlight p {
  font-size: 1.5em;
  line-height: 1.6;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .quote-highlight {
  background: linear-gradient(135deg, #1e88e5 0%, #0277bd 100%);
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
}

[data-theme="dark"] .quote-highlight {
  background: linear-gradient(135deg, #1565c0 0%, #01579b 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Mermaid diagram styling */
.mermaid {
  background: transparent;
  text-align: center;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Code blocks in blog posts */
.content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 4px solid #00d4ff;
}

.content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

/* Tables in blog posts */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--color-bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.content table th {
  background: var(--color-primary);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.content table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.content table td:first-child {
  white-space: nowrap;
}

.content table tr:last-child td {
  border-bottom: none;
}

/* CTA Box - Call to Action styling with theme support */
.cta-box {
  background: linear-gradient(135deg, #1e3a5f 0%, #0a1929 100%);
  border-left: 4px solid var(--color-primary);
  padding: 30px;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.cta-box h3 {
  color: var(--color-primary);
  margin-top: 0;
  font-size: 1.5em;
}

.cta-box p {
  color: #e0e6ed;
  line-height: 1.7;
}

.cta-box p:first-of-type {
  font-size: 1.1em;
}

.cta-box ul {
  color: #e0e6ed;
  line-height: 2;
  padding-left: 20px;
}

.cta-box ul li {
  margin-bottom: 8px;
}

.cta-box-button-wrapper {
  margin-top: 25px;
  text-align: center;
}

.cta-box-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.cta-box-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
  background: linear-gradient(135deg, #00b8e6 0%, var(--color-primary) 100%);
}

.cta-box-footer {
  color: #8b949e;
  margin-top: 20px;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.95em;
  font-style: italic;
}

/* Light mode adjustments */
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.2);
}

[data-theme="light"] .cta-box p,
[data-theme="light"] .cta-box ul {
  color: #1a237e;
}

[data-theme="light"] .cta-box-footer {
  color: #546e7a;
}

/* Styled divs with inline styles will inherit proper colors */
.content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-text);
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
  .blog-post-item {
    margin-bottom: 30px;
    padding-bottom: 15px;
  }
  
  .post-title {
    font-size: 1.3em;
  }
  
  .post-meta {
    font-size: 0.85em;
  }
  
  .mermaid {
    padding: 10px;
    font-size: 0.8em;
  }
  
  .content table {
    font-size: 0.9em;
  }
  
  .content table th,
  .content table td {
    padding: 8px;
  }
  
  .quote-highlight {
    padding: 20px 15px;
    margin: 30px 0;
  }
  
  .quote-highlight p {
    font-size: 1.2em;
  }
  
  /* Stack blog layout on mobile */
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-sidebar {
    position: static;
    order: 2;
  }
  
  .sidebar-author-avatar {
    width: 80px;
    height: 80px;
  }
  
  .post-meta-header {
    flex-direction: column;
    gap: 6px;
  }
  
  .meta-separator {
    display: none;
  }
}

/* Blog List Page Styles */
.blog-list-header {
  position: relative;
  text-align: center;
  margin: 40px 0 60px;
  padding: 0 20px;
}

.blog-list-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: var(--color-text);
}

.blog-list-subtitle {
  font-size: 1.1em;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* RSS Subscribe Icon Button */
.rss-icon-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.rss-icon-btn:hover {
  transform: translateY(-2px) rotate(15deg);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
  background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
}

.rss-icon-btn i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Blog Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* Blog Card */
.blog-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
  border-color: var(--color-primary);
}

/* Blog Card Header/Image */
.blog-card-header {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

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

.blog-card-gradient {
  background: linear-gradient(135deg, #1e88e5 0%, #0277bd 50%, #00acc1 100%);
  position: relative;
}

.blog-card-gradient::after {
  content: '📝';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4em;
  opacity: 0.3;
}

/* Blog Card Content */
.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Blog Card Tags */
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary-dim);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: lowercase;
}

/* Blog Card Title */
.blog-card-title {
  font-size: 1.4em;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

/* Blog Card Meta */
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85em;
  color: var(--color-text-muted);
}

.blog-card-author,
.blog-card-date,
.blog-card-reading-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-meta i {
  color: var(--color-primary);
  font-size: 0.9em;
}

/* Blog Card Summary */
.blog-card-summary {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog Card Link */
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.blog-card-link:hover {
  gap: 12px;
  color: var(--color-text);
}

.blog-card-link i {
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

.blog-card-link:hover i {
  transform: translateX(3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-list-title {
    font-size: 2em;
  }
  
  .blog-list-subtitle {
    font-size: 1em;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blog-card-header {
    height: 180px;
  }
  
  .blog-card-content {
    padding: 20px;
  }
  
  .blog-card-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Print Styles */
@media print {
  /* Hide elements that shouldn't print */
  header, 
  footer, 
  nav,
  .blog-sidebar,
  .search-overlay,
  .theme-toggle,
  .mobile-menu-toggle,
  .referral-banner,
  .post-nav,
  .share-buttons {
    display: none !important;
  }
  
  /* Reset layout for printing */
  .blog-layout {
    display: block;
    grid-template-columns: 1fr;
  }
  
  .blog-main-content {
    max-width: 100%;
  }
  
  /* Optimize text for printing */
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .page-title {
    font-size: 24pt;
    margin-bottom: 10pt;
    page-break-after: avoid;
  }
  
  .post-meta-header {
    font-size: 10pt;
    margin-bottom: 20pt;
    page-break-after: avoid;
  }
  
  /* Print author info at top */
  .content::before {
    content: "Author: Josue Negron | E3 Cyber Security";
    display: block;
    font-size: 11pt;
    font-weight: 600;
    margin-bottom: 15pt;
    padding-bottom: 10pt;
    border-bottom: 2px solid #000;
  }
  
  /* Better heading breaks */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  /* Keep code blocks together */
  pre, code, .mermaid {
    page-break-inside: avoid;
    background: #f5f5f5 !important;
    border: 1px solid #ddd;
  }
  
  /* Keep tables together */
  table {
    page-break-inside: avoid;
    border-collapse: collapse;
  }
  
  table th,
  table td {
    border: 1px solid #000;
    padding: 8pt;
  }
  
  /* Callout boxes */
  .warning-box,
  .info-box,
  .success-box {
    page-break-inside: avoid;
    border: 2px solid #000;
    padding: 10pt;
    margin: 10pt 0;
  }
  
  /* Links */
  a {
    color: #000;
    text-decoration: underline;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }
  
  /* Images */
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
  
  /* Add page numbers */
  @page {
    margin: 2cm;
    
    @bottom-right {
      content: "Page " counter(page) " of " counter(pages);
      font-size: 9pt;
    }
  }
}

/* Taxonomy Page Styles */
.taxonomy-header {
  position: relative;
  text-align: center;
  margin: 40px 0 60px;
  padding: 0 20px;
}

.taxonomy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.5em;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.taxonomy-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: var(--color-text);
  text-transform: capitalize;
}

.taxonomy-subtitle {
  font-size: 1.1em;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .taxonomy-header {
    margin: 30px 0 40px;
  }

  .taxonomy-badge {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    margin-bottom: 15px;
  }

  .taxonomy-title {
    font-size: 2em;
  }

  .taxonomy-subtitle {
    font-size: 1em;
  }
}

/* Tags Cloud (Terms List Page) */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px 0;
  padding: 20px;
  justify-content: center;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  font-size: calc(0.9rem + (var(--tag-count) * 0.1rem));
  font-weight: 500;
}

.tag-cloud-item:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.tag-name {
  text-transform: capitalize;
}

.tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--color-primary-dim);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-cloud-item:hover .tag-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

@media (max-width: 768px) {
  .tags-cloud {
    gap: 10px;
    padding: 10px;
  }

  .tag-cloud-item {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
