/* =====================================================
   BLOG WRAPPER
===================================================== */
/*
Source - https://stackoverflow.com/a/20341542
Posted by Isius, modified by community. See post 'Timeline' for change history
Retrieved 2026-02-16, License - CC BY-SA 4.0
*/

.fill {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden
}
.fill img {
    flex-shrink: 0;
    max-width: 100%;
    max-height: 100%
}

.wrapper {
  width: 92%;
  max-width: 1160px;
  margin: 0 auto;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
  gap: 3.5rem; 
}

/* =====================================================
   MAIN ARTICLE
===================================================== */

.blog-main {
  padding: 0;
}

/* -----------------------------------------------------
   HERO IMAGE (Balanced, Not Dominating)
----------------------------------------------------- */

.blog-hero-wrapper {
  margin-bottom: 1rem;
}

.blog-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

/* -----------------------------------------------------
   TITLE
----------------------------------------------------- */

.blog-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: #000;
  margin-bottom: 1rem;
  letter-spacing: -0.6px;
}

/* -----------------------------------------------------
   RELATED INLINE
----------------------------------------------------- */

.related-inline {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.related-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.related-link {
  text-decoration: none;
  color: #000;
  opacity: 0.6;
}

.related-link:hover {
  opacity: 1;
}

.related-separator {
  margin: 0 0.4rem;
  opacity: 0.3;
}

/* =====================================================
   ARTICLE BODY
===================================================== */

.article-body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.75;
  color: #000;
  max-width: 720px;
}

/* Headings */

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
  margin-left: 1.4rem;
  margin-bottom: 1.4rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}



.article-body blockquote {
  border-left: 3px solid #000;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  opacity: 0.8;
}

/* =====================================================
   SIDEBAR (Clean, Divided, No Heavy Cards)
===================================================== */

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding-left: 2rem;
  border-left: 1px solid #eaeaea;
}

.sidebar-card {
  padding: 1.6rem 0;
  border-bottom: 1px solid #eaeaea;
}

.sidebar-card:last-child {
  border-bottom: none;
}

.sidebar-card h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  letter-spacing: 0.3px;
}

.category-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #000;
  border-radius: 5px;
}

.sidebar-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.75;
}

/* =====================================================
   BREADCRUMB
===================================================== */

.breadcrumb-section {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.breadcrumb {
  font-size: 0.85rem;
}

.breadcrumb a {
  text-decoration: none;
  color: #000;
  opacity: 0.6;
}

.breadcrumb .current {
  font-weight: 500;
  opacity: 1;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .blog-sidebar {
    position: relative;
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .wrapper {
    width: 94%;
  }

  .blog-hero-image {
    max-height: 240px;
  }

  .article-body {
    line-height: 1.7;
  }
}


/* ===============================
   RELATED ARTICLES SECTION
================================= */

.related-section {
  margin-top: 100px;
  margin-bottom: 80px;
}

.related-header {
  text-align: center;
  margin-bottom: 50px;
}

.related-header h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

.related-header p {
  color: #6b7280;
  font-size: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.related-card {
  display: block;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.related-image img {
  width: 100%;
  height: 190px;
}

.related-content {
  padding: 20px;
}

.related-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 15px;
}

.related-read {
  font-size: 14px;
  font-weight: 500;
  color: #2c7be5;
}


table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
td, th {
    border: 1px solid #ddd;
    padding: 8px;
}


tr:nth-child(even){background-color: #f2f2f2;}

tr:hover {background-color: #ddd;}

th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;

}