﻿/* Blog styles adapted from template_base/style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.blog-body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: #333;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #127a6b;
}

.blog-list-header {
  padding: 70px 0 40px;
  background: linear-gradient(135deg, #eef9f6 0%, #dff3ec 100%);
  text-align: center;
}

.blog-list-header h1 {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 10px;
}

.blog-list-header p {
  max-width: 760px;
  margin: 0 auto;
  color: #666;
}

.article-header {
  padding: 60px 0;
  background: linear-gradient(135deg, #eef9f6 0%, #dff3ec 100%);
}

.article-header-content {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-category-badge {
  display: inline-block;
  background: #127a6b;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.article-header .article-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-name,
.article-date {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.article-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #666;
}

.article-hero-image {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
}

.article-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 80px 0;
  background: white;
}

.article-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.table-of-contents {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 15px;
  margin-bottom: 30px;
  border-left: 4px solid #127a6b;
}

.table-of-contents h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.toc-list a:hover {
  color: #127a6b;
}

.sidebar-banner {
  background: linear-gradient(135deg, #127a6b, #1f9a86);
  color: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
}

.sidebar-banner .banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sidebar-banner p {
  margin-bottom: 5px;
}

.banner-btn {
  background: white;
  color: #127a6b;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 5px;
}

.article-main {
  max-width: 760px;
}

.article-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-top-actions {
  margin-bottom: 18px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #127a6b;
  font-weight: 600;
  border: 1px solid #b8ddd5;
  background: #eef9f6;
  border-radius: 999px;
  padding: 8px 14px;
}

.article-back-link:hover {
  background: #dff3ec;
}

.article-text h2,
.article-text h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #127a6b;
}

.article-text p,
.article-text ul,
.article-text ol,
.article-text li,
.article-text table {
  margin-bottom: 20px;
}

.article-text strong {
  color: #127a6b;
  font-weight: 600;
}

.article-text a {
  color: #0f6a5d;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.article-text a:hover {
  color: #127a6b;
}

.article-text img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 560px;
  margin: 24px auto;
  border-radius: 14px;
  object-fit: contain;
}

.article-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.article-text th,
.article-text td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dddddd;
}

.article-text th {
  background-color: #127a6b;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-text tr:nth-of-type(even) {
  background-color: #f8f9fa;
}

.article-text tr:last-of-type td {
  border-bottom: none;
}

.article-text tr:hover {
  background-color: #dff3ec;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.author-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.author-avatar-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details h3 {
  font-size: 1rem;
  color: #777;
  margin-bottom: 4px;
}

.author-details h4 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.author-details p {
  color: #555;
  margin-bottom: 14px;
}

.author-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: #127a6b;
  font-size: 0.92rem;
}

.related-articles {
  padding: 70px 0;
  background: white;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f1f1;
}

.blog-card {
  border: 1px solid #dfe7e5;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: #b8d9d2;
  box-shadow: 0 16px 34px rgba(18, 122, 107, 0.18);
}

.blog-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card-link:focus-visible {
  outline: 3px solid rgba(18, 122, 107, 0.35);
  outline-offset: 3px;
  border-radius: 15px;
}

.related-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.related-content {
  padding: 24px;
}

.related-content h3 {
  margin-bottom: 10px;
}

.related-content p {
  color: #666;
  margin-bottom: 12px;
}

.list-meta {
  font-size: 0.88rem;
  color: #8b8b8b;
}

.related-link {
  color: #127a6b;
  text-decoration: none;
  font-weight: 600;
}

.blog-card .related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card .related-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.blog-card:hover .related-link::after {
  transform: translateX(4px);
}

.cta-card {
  grid-column: span 3;
}

.empty-state {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 16px;
  background: #eef9f6;
  border: 1px solid #c6e6dc;
  text-align: center;
}

.footer {
  padding: 60px 0;
  background: #127a6b;
  color: white;
  text-align: center;
}

.footer-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-content h3 a {
  color: white;
  text-decoration: none;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .table-of-contents {
    margin-bottom: 30px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .article-header {
    padding: 44px 0;
  }

  .article-header .article-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .article-hero-image img {
    height: 250px;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

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

  .cta-card {
    grid-column: span 1;
  }
}

