/**
 * MANEXT Blog System CSS
 * Estilos para el sistema de blog automatizado
 */

/* ===========================================
   VARIABLES
   =========================================== */
:root {
  --blog-primary: #d32f2f;
  --blog-dark: #1a1a1a;
  --blog-gray: #666;
  --blog-light: #f5f5f5;
  --blog-border: #e0e0e0;
  --blog-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --blog-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --blog-radius: 12px;
  --blog-transition: all 0.3s ease;
}

/* ===========================================
   BLOG SECTION LAYOUT
   =========================================== */
.blog-section {
  padding: 3rem 0 4rem;
  background: #fff;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.blog-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ===========================================
   ARTICLE CARDS
   =========================================== */
.blog-card {
  background: #fff;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  transition: var(--blog-transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--blog-shadow-hover);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: block;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blog-primary);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--blog-gray);
}

.blog-date,
.blog-read-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

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

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

.blog-card-excerpt {
  color: var(--blog-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blog-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}

.blog-read-more:hover {
  gap: 0.8rem;
}

.blog-read-more svg {
  transition: transform 0.2s ease;
}

.blog-read-more:hover svg {
  transform: translateX(3px);
}

/* ===========================================
   CATEGORY CARDS
   =========================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: white;
  border-radius: var(--blog-radius);
  padding: 1.5rem;
  text-decoration: none;
  border: 2px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--blog-transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-shadow-hover);
  border-color: var(--blog-border);
}

.category-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-card-content h3 {
  color: var(--blog-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.category-card-content p {
  color: var(--blog-gray);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.category-link {
  display: block;
  margin-top: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===========================================
   SIDEBAR
   =========================================== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--blog-light);
  border-radius: var(--blog-radius);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blog-border);
}

/* Search Widget */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--blog-primary);
}

.search-btn {
  background: var(--blog-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: #b71c1c;
}

/* Categories List */
.categories-list,
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li,
.category-list li {
  margin-bottom: 0.5rem;
}

.categories-list a,
.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  color: var(--blog-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--blog-transition);
  font-size: 0.95rem;
}

.categories-list a:hover,
.category-list a:hover,
.categories-list a.active,
.category-list a.active {
  background: white;
  color: var(--blog-primary);
}

/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-post {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.popular-post-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-post:hover .popular-post-image img {
  transform: scale(1.1);
}

.popular-post-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.popular-post-content h4 a {
  color: var(--blog-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--blog-primary) 0%, #b71c1c 100%);
  color: white;
}

.cta-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255,255,255,0.3);
}

.cta-widget p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.widget-cta-btn,
.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: white;
  color: var(--blog-primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--blog-transition);
  margin-bottom: 0.75rem;
}

.widget-cta-btn:hover,
.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-btn {
  background: #25D366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128C7E;
  color: white;
}

/* ===========================================
   PAGINATION
   =========================================== */
.blog-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--blog-border);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  color: var(--blog-dark);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--blog-transition);
}

.pagination-btn:hover:not(.disabled) {
  background: var(--blog-light);
  border-color: #ccc;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  color: var(--blog-dark);
  font-weight: 500;
  text-decoration: none;
  transition: var(--blog-transition);
}

.pagination-number:hover:not(.active) {
  background: var(--blog-light);
}

.pagination-number.active {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: white;
}

.pagination-ellipsis {
  color: var(--blog-gray);
  padding: 0 0.25rem;
}

/* ===========================================
   NO ARTICLES MESSAGE
   =========================================== */
.no-articles {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--blog-gray);
  font-size: 1.1rem;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 2rem 0 3rem;
  }

  .blog-main {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    flex-direction: row;
  }

  .blog-pagination {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .pagination-btn {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }

  .pagination-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-card-content {
    padding: 1.25rem;
  }

  .blog-card-title {
    font-size: 1.1rem;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

/* ===========================================
   ARTICLE PAGE - FAQ ACCORDION
   =========================================== */
.faq-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--blog-border);
}

.faq-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin-bottom: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--blog-light);
  border-radius: var(--blog-radius);
  overflow: hidden;
  border: 1px solid var(--blog-border);
  transition: var(--blog-transition);
}

.faq-item:hover {
  border-color: #ccc;
}

.faq-item.active {
  border-color: var(--blog-primary);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--blog-dark);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--blog-transition);
}

.faq-question:hover {
  background: rgba(0,0,0,0.02);
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  padding-right: 1rem;
  flex: 1;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blog-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--blog-gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-answer-content p {
  margin: 0;
}

/* ===========================================
   ARTICLE PAGE - TABLE OF CONTENTS
   =========================================== */
.toc-widget {
  background: white;
  border: 1px solid var(--blog-border);
}

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

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

.toc-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--blog-gray);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: var(--blog-transition);
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--blog-primary);
  background: var(--blog-light);
  border-left-color: var(--blog-primary);
}

/* ===========================================
   ARTICLE PAGE - PRODUCTS WIDGET
   =========================================== */
.products-widget {
  background: white;
  border: 1px solid var(--blog-border);
}

.product-mini-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-mini-card {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--blog-light);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--blog-transition);
}

.product-mini-card:hover {
  background: #e8e8e8;
  transform: translateX(3px);
}

.product-mini-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
}

.product-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-mini-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-mini-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blog-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-mini-price {
  font-size: 0.85rem;
  color: var(--blog-primary);
  font-weight: 600;
}

/* ===========================================
   ARTICLE PAGE - CONTACT WIDGET
   =========================================== */
.contact-widget {
  background: white;
  border: 1px solid var(--blog-border);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blog-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blog-primary);
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--blog-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blog-dark);
}

.contact-value a {
  color: var(--blog-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: var(--blog-primary);
}

/* ===========================================
   ARTICLE PAGE - COMPANY INFO WIDGET
   =========================================== */
.company-widget {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white;
}

.company-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255,255,255,0.2);
}

.company-description {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blog-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-badge {
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===========================================
   ARTICLE PAGE - RELATED ARTICLES
   =========================================== */
.related-section {
  margin: 3rem 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--blog-border);
}

.related-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: white;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  transition: var(--blog-transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--blog-shadow-hover);
}

.related-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.related-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blog-primary);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.related-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blog-dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.related-card-excerpt {
  font-size: 0.85rem;
  color: var(--blog-gray);
  line-height: 1.5;
  flex: 1;
}

.related-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--blog-border);
  font-size: 0.8rem;
  color: var(--blog-gray);
}

/* ===========================================
   ARTICLE PAGE - HIGHLIGHT BOXES
   =========================================== */
.highlight-box {
  padding: 1.5rem;
  border-radius: var(--blog-radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.highlight-box.info {
  background: #e3f2fd;
  border-color: #2196f3;
}

.highlight-box.warning {
  background: #fff3e0;
  border-color: #ff9800;
}

.highlight-box.success {
  background: #e8f5e9;
  border-color: #4caf50;
}

.highlight-box.danger {
  background: #ffebee;
  border-color: #f44336;
}

.highlight-box h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.highlight-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===========================================
   ARTICLE PAGE - AUTHOR BOX
   =========================================== */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--blog-light);
  border-radius: var(--blog-radius);
  margin: 2rem 0;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--blog-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

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

/* ===========================================
   ARTICLE PAGE - SHARE BUTTONS
   =========================================== */
.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--blog-border);
  margin-top: 2rem;
}

.share-label {
  font-weight: 600;
  color: var(--blog-dark);
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--blog-transition);
}

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

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: var(--blog-gray); }

/* ===========================================
   ARTICLE RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 768px) {
  .faq-question {
    padding: 1rem 1.25rem;
  }

  .faq-answer-content {
    padding: 0 1.25rem 1.25rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    margin: 0 auto;
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-stats {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   INTERNAL LINKS & INTERLINKING
   =========================================== */
.internal-link {
  color: var(--blog-primary, #d32f2f);
  text-decoration: none;
  border-bottom: 1px dotted var(--blog-primary, #d32f2f);
  transition: all 0.2s ease;
}

.internal-link:hover {
  border-bottom-style: solid;
  background: rgba(211, 47, 47, 0.05);
}

.internal-links-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--blog-primary, #d32f2f);
}

.internal-links-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.internal-links-box h4::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blog-primary, #d32f2f);
  border-radius: 50%;
}

.internal-links-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.internal-links-box li {
  margin: 0;
}

.internal-links-box li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: white;
  border: 1px solid transparent;
}

.internal-links-box li a:hover {
  color: var(--blog-primary, #d32f2f);
  border-color: var(--blog-primary, #d32f2f);
  transform: translateX(3px);
}

.internal-links-box li a::before {
  content: '→';
  color: var(--blog-primary, #d32f2f);
  font-weight: bold;
}

/* Related Cards Enhancement for Interlinking */
.related-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--blog-primary, #d32f2f);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.75rem;
  transition: gap 0.2s ease;
}

.related-card:hover .read-more {
  gap: 0.6rem;
}

/* Table of Contents Enhancement */
.table-of-contents {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blog-primary, #d32f2f);
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

.table-of-contents li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: all 0.2s ease;
}

.table-of-contents a:hover {
  color: var(--blog-primary, #d32f2f);
  padding-left: 0.5rem;
}

.table-of-contents a::before {
  content: '•';
  color: var(--blog-primary, #d32f2f);
}

/* Info Box Enhancement */
.info-box {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #1976d2;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #1976d2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.info-box-content h4 {
  color: #0d47a1;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-box-content p {
  color: #1565c0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .internal-links-box ul {
    grid-template-columns: 1fr;
  }

  .table-of-contents ul {
    columns: 1;
  }

  .info-box {
    flex-direction: column;
  }
}
