/* General body and typography */
body {
  background-color: #f9f9f6;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* Article main container */
.article-container {
  max-width: 850px;
  margin: auto;
  padding: 2rem 1.5rem; /* tighter sides for mobile */
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  color: #666;
}

/* Article hero */
.article-hero {
  text-align: center;
}

.article-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.article-meta-description {
  background-color: #f0f4f8;
  padding: 1rem 1.25rem; /* Slightly wider horizontal padding */
  margin: 1rem 0 1.5rem 0;
  border-left: 4px solid #0077cc;
  font-style: italic;
  color: #444;
  border-radius: 5px;

  /* Added for better text flow and mobile friendliness */
  line-height: 1.5;
  font-size: 1rem;
  max-width: 800px; /* limit width for readability on wide screens */
  word-wrap: break-word; /* wrap long words or URLs */
}


/* Article metadata */
.article-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.2rem;
}



.article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
  background-color: #f0f0f0; /* fallback color */
}



/* Article content */
.article-content {
  font-size: 1rem;
}

.article-content h2 {
  margin-top: 2rem;
  color: #003366;
}

.article-content p {
  margin: 1rem 0;
  text-align: justify;
}

.article-content a {
  color: #0077cc;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

/* Social share buttons */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.social-share a,
.social-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.social-share a:hover,
.social-share button:hover {
  transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .article-container {
    max-width: 100%;
    padding: 1rem;
    border-radius: 0; /* Optional: less rounding on mobile */
  }

  .article-hero h1 {
    font-size: 1.5rem;
  }

  .article-meta-description {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    max-width: 100%;
  }

.article-hero img {
  height: 200px;
  object-fit: cover;
}


  .article-content {
    font-size: 0.95rem;
  }

  .article-content h2 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
  }

  .social-share {
    font-size: 0.9rem;
    gap: 8px;
  }
}


/* === Related and More Articles Sections === */
.related-articles,
.more-articles {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.link-list {
  margin-top: 1rem;
}

.link-list h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  color: #003366;
}

/* === Grid Layout === */
.link-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.link-list li {
  margin: 0;
}

/* === Article Link === */
.article-link-with-image {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  background-color: #fafafa;
  position: relative;
}

.article-link-with-image:hover,
.article-link-with-image:focus {
  background-color: #f0f0f0;
}

/* === Thumbnail Image === */
.article-link-with-image img.thumb-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* === Title + Badge === */
.article-link-with-image span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0070f3;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* === 🔥 Badge Styles === */
.thumb-badge {
  font-size: 0.75rem;
  color: #cc0000 !important;         /* 🔴 Red text */
  background-color: #fff1f0;         /* 🔴 Soft red background */
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  transition: background-color 0.2s ease;
}

.thumb-badge:hover {
  background-color: #ffe0dd;         /* 🔴 Subtle hover */
}

/* === Mobile Optimizations === */
@media (max-width: 600px) {
  .related-articles,
  .more-articles {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .link-list h2 {
    font-size: 1.1rem;
    padding-left: 0.25rem;
  }

  .article-link-with-image {
    padding: 0.4rem;
    gap: 0.5rem;
  }

  .article-link-with-image img.thumb-img {
    width: 40px;
    height: 40px;
  }

  .article-link-with-image span {
    font-size: 0.9rem;
    gap: 4px;
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .link-list ul {
    grid-template-columns: 1fr !important;
  }

  .thumb-badge {
    font-size: 0.7rem;
    padding: 1px 5px;
    margin-right: 4px;
  }
}

/* === Ultra-small screen tweak (Optional) === */
@media (max-width: 400px) {
  .article-link-with-image {
    padding: 0.25rem;
  }
}



/* ========== Shimmer Base ========== */
/* Shimmer Base */
.shimmer {
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

/* Shimmer Animation */
.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(to right, transparent 0%, #e0e0e0 50%, transparent 100%);
  animation: shimmerMove 1.2s infinite;
}

@keyframes shimmerMove {
  0% {
    left: -150px;
  }
  100% {
    left: 100%;
  }
}

/* Sizes for Shimmer Blocks */
.shimmer-title {
  height: 2.5rem;
  width: 70%;
  margin: 1rem 0;
}

.shimmer-meta {
  height: 1.2rem;
  width: 40%;
  margin-bottom: 1.2rem;
}

.shimmer-image {
  height: 280px;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.shimmer-desc {
  height: 1.5rem;
  width: 80%;
  margin-bottom: 1.2rem;
}

.shimmer-line {
  height: 1rem;
  width: 100%;
  margin-bottom: 0.8rem;
}

.shimmer-line.short {
  width: 70%;
}
