/* Blog — Mobile First, Tongseng Pak Atmo */

/* Inner pages: navbar always solid */
.navbar.navbar-inner-page {
  background: rgba(26, 20, 16, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Blog hero / page header */
.blog-hero {
  padding: 6.5rem 0 2.5rem;
  background: linear-gradient(135deg, var(--black-elegant), var(--brown-dark));
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.12), transparent 50%);
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.blog-hero-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

/* Breadcrumb */
.blog-breadcrumb {
  padding: 0.85rem 0 0;
  font-size: 0.85rem;
}

.blog-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.blog-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
}

.blog-breadcrumb li + li::before {
  content: "/";
  color: rgba(201, 162, 39, 0.5);
  margin-right: 0.15rem;
}

.blog-breadcrumb a {
  color: var(--gold-light);
}

.blog-breadcrumb a:hover {
  color: var(--gold);
}

.blog-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

.blog-hero-sm {
  padding: 5.5rem 0 1rem;
}

@media (min-width: 768px) {
  .blog-hero-sm {
    padding: 6.5rem 0 1.5rem;
  }
}

/* Blog listing */
.blog-section {
  padding: 2.5rem 0 4rem;
}

.blog-preview-section .blog-card h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 0.65rem;
}

.blog-preview-section .blog-card h3 a {
  color: var(--brown-dark);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  color: var(--text-muted);
  transition: all var(--transition);
}

.blog-tag:hover,
.blog-tag.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown-dark);
}

/* Post card — mobile: 1 col */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-meta i {
  color: var(--gold-dark);
  font-size: 0.7rem;
}

.blog-card h2 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.blog-card h2 a {
  color: var(--brown-dark);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--gold-dark);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-read-more:hover {
  color: var(--gold);
}

.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

/* Single article */
.article-wrap {
  padding: 2rem 0 4rem;
}

.article-header {
  margin-bottom: 1.75rem;
}

.article-header h1 {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cream-dark);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta i {
  color: var(--gold-dark);
}

.article-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.article-featured-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin: 1.5rem 0 0.75rem;
  color: var(--brown-mid);
}

.article-content p {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.15rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content a {
  font-weight: 600;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--brown-mid);
  box-shadow: var(--shadow);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
}

/* Sidebar */
.blog-sidebar {
  margin-top: 2.5rem;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cream-dark);
}

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

.sidebar-links li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.sidebar-links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

.sidebar-links a:hover {
  color: var(--gold-dark);
}

.sidebar-links small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--brown-dark), var(--black-elegant));
  color: var(--white);
  text-align: center;
}

.sidebar-cta h3 {
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.2);
}

.sidebar-cta p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

/* Related posts */
.related-posts {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--cream-dark);
  margin-top: 2rem;
}

.related-posts h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 1.25rem;
}

/* Homepage blog preview */
.blog-preview-section {
  background: var(--white);
}

/* Tablet+ */
@media (min-width: 768px) {
  .blog-hero {
    padding: 7.5rem 0 3rem;
  }

  .blog-section {
    padding: 3rem 0 5rem;
  }

  .blog-card-body {
    padding: 1.5rem;
  }

  .article-wrap {
    padding: 2.5rem 0 5rem;
  }

  .blog-sidebar {
    margin-top: 0;
    position: sticky;
    top: 90px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .blog-hero {
    padding: 8rem 0 3.5rem;
  }

  .article-content {
    font-size: 1.05rem;
  }
}
