/* ============================================
   SHALAM WELLNESS — blog.css
   Public Blog Listing & Full Article Page
   ============================================ */

.blog-hero {
  background: var(--navy);
  padding: 136px 0 68px;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(0, 168, 181, 0.22), transparent 55%);
  pointer-events: none;
}

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

.blog-hero .section-title {
  color: #fff;
  margin-bottom: 14px;
}

.blog-hero .section-sub {
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  margin: 0 auto;
}

/* CONTROLS BAR */
.blog-main {
  background: var(--off-white, #f7fafc);
  padding: 48px 0 92px;
  min-height: 60vh;
}

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.cat-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-search {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  min-width: 200px;
  background: #fff;
}

.blog-sort {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

/* BLOG GRID — IMAGE-FIRST CARDS */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(26, 42, 94, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(26, 42, 94, 0.11);
}

.blog-card-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), #0c5f6b);
  position: relative;
}

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

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

.blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26, 42, 94, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  line-height: 1.32;
  color: var(--navy);
  margin: 0 0 10px;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--teal);
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: auto;
}

.blog-read-more:hover {
  gap: 10px;
}

.blog-empty {
  text-align: center;
  padding: 64px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.blog-empty h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin-bottom: 8px;
}

/* SINGLE POST PAGE */
.post-page-main {
  padding: 120px 0 88px;
  background: #fff;
  min-height: 75vh;
}

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

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
}

.post-header {
  margin-bottom: 28px;
}

.post-category-badge {
  display: inline-block;
  background: rgba(0, 168, 181, 0.12);
  color: #007d87;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 16px;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: #64748b;
}

.post-cover-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 16px 40px rgba(26, 42, 94, 0.1);
  background: #f1f5f9;
}

.post-cover-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #2d3748;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2,
.post-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin: 32px 0 14px;
  line-height: 1.3;
}

.post-content blockquote {
  border-left: 4px solid var(--teal);
  background: #f4fbfb;
  padding: 16px 22px;
  margin: 26px 0;
  border-radius: 0 10px 10px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--navy);
}

.post-content ul,
.post-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-share-bar {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.post-share-btns {
  display: flex;
  gap: 10px;
}

.share-btn {
  background: #f1f5f9;
  color: var(--navy);
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  background: #e2e8f0;
}

.post-cta-box {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--navy), #103b5c);
  color: #fff;
  padding: 36px 32px;
  border-radius: 16px;
  text-align: center;
}

.post-cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 10px;
}

.post-cta-box p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-sort-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search,
  .blog-sort {
    width: 100%;
  }
}
