/* ============================================================
   BLOG DETAIL
   ============================================================ */

.blog-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.blog-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #999;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  margin-bottom: 35px;
}

.blog-detail .back-link:hover {
  color: #1a1a1a;
}

.blog-detail .back-link i {
  font-size: 1.1rem;
}

.blog-detail .post-header {
  margin-bottom: 36px;
}

.blog-detail .post-header h1 {
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #1a1a1a;
}

.blog-detail .post-header .post-meta-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: #888;
}

.blog-detail .post-header .post-meta-detail .tag {
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.blog-detail .post-header .post-meta-detail .tag.featured {
  background: #1a1a1a;
}
.blog-detail .post-header .post-meta-detail .tag.planning {
  background: #2c3e50;
}
.blog-detail .post-header .post-meta-detail .tag.essential {
  background: #8e44ad;
}

.blog-detail .post-featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 36px;
  background: #f5f5f5;
}

.blog-detail .post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  background: #f0f0f0;
  border-radius: 30px;
  padding: 5px;
  border: 1px solid #e0e0e0;
}

.post-lang-toggle button {
  background: transparent;
  border: none;
  padding: 8px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  color: #999;
}

.post-lang-toggle button.active {
  background: #1a1a1a;
  color: #fff;
}

.post-lang-toggle button:hover:not(.active) {
  color: #1a1a1a;
}

.post-content-lang {
  display: none;
  animation: fadeContent 0.4s ease;
}

.post-content-lang.active {
  display: block;
}

@keyframes fadeContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-body {
  font-size: 1.15rem;
  line-height: 2;
  color: #333;
}

.post-body h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.post-body h4:first-child {
  margin-top: 0;
}

.post-body ul {
  padding-left: 28px;
  margin: 12px 0 18px;
}

.post-body ul li {
  margin-bottom: 8px;
  list-style: disc;
  font-size: 1.1rem;
  line-height: 1.9;
}

.post-body p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.9;
}

.post-body strong {
  font-weight: 600;
  color: #1a1a1a;
}

.post-body .highlight-box {
  background: #f8f6f0;
  border-left: 4px solid #c6a43b;
  padding: 18px 24px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body .featured-tip {
  background: #1a1a1a;
  color: #fff;
  padding: 22px 28px;
  border-radius: 12px;
  margin: 28px 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-body .featured-tip strong {
  color: #c6a43b;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
}

.post-body table thead {
  background: #1a1a1a;
  color: #fff;
}

.post-body table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.post-body table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.7;
}

.post-body table tr:last-child td {
  border-bottom: none;
}

.post-body table tr:nth-child(even) td {
  background: #fafafa;
}

.post-body table td strong {
  font-weight: 600;
  color: #1a1a1a;
}

.related-posts {
  margin-top: 70px;
  padding-top: 45px;
  border-top: 1px solid #eee;
}

.related-posts h4 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.related-item {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.related-item:hover {
  border-color: #c6a43b;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.related-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.related-item .related-info {
  padding: 16px 20px;
}

.related-item .related-info h5 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.related-item .related-info span {
  font-size: 0.85rem;
  color: #999;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
  .blog-detail .post-header h1 {
    font-size: 2.2rem;
  }

  .post-body {
    font-size: 1.05rem;
  }

  .post-body p {
    font-size: 1rem;
  }

  .post-body ul li {
    font-size: 1rem;
  }

  .post-body table {
    font-size: 0.88rem;
  }

  .post-body table td {
    font-size: 0.85rem;
  }

  .post-body table th {
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .blog-detail {
    padding: 30px 0 50px;
  }

  .blog-detail .post-header h1 {
    font-size: 1.8rem;
  }

  .blog-detail .post-header .post-meta-detail {
    font-size: 0.85rem;
    gap: 14px;
  }

  .blog-detail .post-header .post-meta-detail .tag {
    font-size: 0.7rem;
    padding: 3px 12px;
  }

  .post-body {
    font-size: 0.98rem;
  }

  .post-body p {
    font-size: 0.95rem;
  }

  .post-body h4 {
    font-size: 1.15rem;
  }

  .post-body ul li {
    font-size: 0.95rem;
  }

  .post-body table {
    font-size: 0.82rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .post-body table th,
  .post-body table td {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .post-body .featured-tip {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .post-body .highlight-box {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .post-lang-toggle button {
    font-size: 0.7rem;
    padding: 6px 16px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .related-item .related-info h5 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-detail {
    padding: 20px 0 40px;
  }

  .blog-detail .post-header h1 {
    font-size: 1.5rem;
  }

  .blog-detail .post-header .post-meta-detail {
    font-size: 0.75rem;
    gap: 10px;
  }

  .blog-detail .post-header .post-meta-detail .tag {
    font-size: 0.6rem;
    padding: 2px 10px;
  }

  .blog-detail .back-link {
    font-size: 0.85rem;
  }

  .post-body {
    font-size: 0.9rem;
  }

  .post-body p {
    font-size: 0.88rem;
  }

  .post-body h4 {
    font-size: 1.05rem;
  }

  .post-body ul li {
    font-size: 0.88rem;
  }

  .post-body ul {
    padding-left: 20px;
  }

  .post-body table {
    font-size: 0.72rem;
  }

  .post-body table th,
  .post-body table td {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .post-body .featured-tip {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-radius: 8px;
  }

  .post-body .highlight-box {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .post-lang-toggle {
    padding: 4px;
    gap: 6px;
  }

  .post-lang-toggle button {
    font-size: 0.6rem;
    padding: 5px 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-item .related-info {
    padding: 12px 14px;
  }

  .related-item .related-info h5 {
    font-size: 0.85rem;
  }

  .related-item .related-info span {
    font-size: 0.75rem;
  }

  .related-posts {
    margin-top: 40px;
    padding-top: 30px;
  }

  .related-posts h4 {
    font-size: 1rem;
  }
}