/* ==========================================================================
   Garden Sansar - Blog Archive & Single Post Stylesheet
   ========================================================================== */

/* Page Background & Wrapper */
.blog-archive-page,
.single-post-page {
  background-color: #ffffff;
  color: #1f2937;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Hero / Header & Breadcrumb
   -------------------------------------------------------------------------- */
.blog-hero-section {
  width: 100%;
  padding: 48px 20px 36px;
  background: linear-gradient(180deg, #f0f7f2 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #e5ede7;
}

.blog-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 14px;
}

.blog-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
  color: #15803d;
}

.blog-breadcrumb .sep {
  color: #94a3b8;
  font-size: 12px;
}

.blog-breadcrumb .current {
  color: #15803d;
  font-weight: 600;
}

.blog-hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: #14532d;
  letter-spacing: -1px;
  margin: 0 0 24px;
  line-height: 1.15;
}

/* --------------------------------------------------------------------------
   Search Bar (Pill Shaped)
   -------------------------------------------------------------------------- */
.blog-search-wrap {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.blog-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  background: #ffffff;
  border: 1.5px solid #166534;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.08);
  transition: all 0.25s ease;
}

.blog-search-box:focus-within {
  border-color: #15803d;
  box-shadow: 0 6px 22px rgba(21, 128, 61, 0.16);
  transform: translateY(-1px);
}

.blog-search-icon {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s;
}

.blog-search-box:focus-within .blog-search-icon {
  color: #15803d;
}

.blog-search-input {
  width: 100%;
  height: 100%;
  padding: 0 48px 0 52px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #1f2937;
  border-radius: 9999px;
  outline: none;
}

.blog-search-input::placeholder {
  color: #94a3b8;
}

.blog-search-clear {
  position: absolute;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.blog-search-clear:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Active Search Info */
.blog-search-feedback {
  display: none;
  margin-top: 18px;
  font-size: 15px;
  color: #475569;
}

.blog-search-feedback span {
  font-weight: 700;
  color: #15803d;
}

.blog-search-feedback a {
  margin-left: 8px;
  color: #15803d;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Main Container & Section Common
   -------------------------------------------------------------------------- */
.blog-main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.blog-section {
  margin-bottom: 70px;
}

.blog-section-title {
  font-size: 26px;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  display: none; /* Keep clean like reference */
}

/* --------------------------------------------------------------------------
   Post Cards Meta (Author Avatar, Date, Reading Time)
   -------------------------------------------------------------------------- */
.post-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #64748b;
}

.post-meta-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-meta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 1.5px solid #dcfce7;
  flex-shrink: 0;
}

.post-meta-author-name {
  font-weight: 600;
  color: #1f2937;
}

.post-meta-dot {
  color: #94a3b8;
  font-weight: bold;
}

.post-meta-date {
  color: #64748b;
}

.post-meta-readtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 500;
}

.post-meta-readtime svg {
  width: 17px;
  height: 17px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Buttons ("Read More →")
   -------------------------------------------------------------------------- */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: #ffffff;
  color: #166534;
  border: 1.5px solid #166534;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-read-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-read-more:hover {
  background: #166534;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 101, 52, 0.2);
}

.btn-read-more:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Section 1: Popular Post (Hero Card)
   -------------------------------------------------------------------------- */
.popular-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.popular-media-wrap {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.popular-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.popular-post-card:hover .popular-media-wrap img {
  transform: scale(1.03);
}

.popular-content-wrap {
  padding: 24px 4px 10px;
}

.popular-post-title {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 12px 0 16px;
  transition: color 0.2s ease;
}

.popular-post-title a {
  text-decoration: none;
  color: inherit;
}

.popular-post-title a:hover {
  color: #15803d;
}

.popular-post-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Section 2: Featured Posts (2-Column Grid)
   -------------------------------------------------------------------------- */
.featured-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.featured-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.featured-media-wrap {
  width: 100%;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.featured-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-post-card:hover .featured-media-wrap img {
  transform: scale(1.04);
}

.featured-content-wrap {
  padding: 20px 4px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-post-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 10px 0 14px;
  transition: color 0.2s;
}

.featured-post-title a {
  text-decoration: none;
  color: inherit;
}

.featured-post-title a:hover {
  color: #15803d;
}

.featured-post-excerpt {
  font-size: 15.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Section 3: Recent Posts (3-Column Grid)
   -------------------------------------------------------------------------- */
.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.recent-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

.recent-media-wrap {
  width: 100%;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.recent-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recent-post-card:hover .recent-media-wrap img {
  transform: scale(1.05);
}

.recent-content-wrap {
  padding: 18px 4px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recent-post-title {
  font-size: 18.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 8px 0 12px;
  transition: color 0.2s;
}

.recent-post-title a {
  text-decoration: none;
  color: inherit;
}

.recent-post-title a:hover {
  color: #15803d;
}

.recent-post-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.recent-content-wrap .btn-read-more {
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Search Filter Mode Grid (When active)
   -------------------------------------------------------------------------- */
.search-results-section {
  display: none;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px dashed #cbd5e1;
  margin: 20px 0;
}

.blog-empty-state svg {
  width: 52px;
  height: 52px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.blog-empty-state h3 {
  font-size: 22px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 8px;
}

.blog-empty-state p {
  color: #64748b;
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   Hiring Callout Strip (Consistent with Garden Sewa)
   -------------------------------------------------------------------------- */
.blog-hiring-banner {
  background: linear-gradient(135deg, #09261a 0%, #061d13 100%);
  border-radius: 24px;
  padding: 44px 48px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
}

.blog-hiring-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
}

.blog-hiring-content p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

.blog-hiring-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 9999px;
  border: 1.5px solid #4ade80;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.blog-hiring-btn:hover {
  background: #4ade80;
  color: #052e16;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.3);
}

/* ==========================================================================
   Single Post Specific Styles (single.php)
   ========================================================================== */
.single-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

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

.single-category-badge {
  display: inline-block;
  padding: 5px 14px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.single-post-main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 28px;
}

.single-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.single-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #bbf7d0;
}

.single-author-details {
  display: flex;
  flex-direction: column;
}

.single-author-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.single-publish-meta {
  font-size: 13.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Social Share Strip */
.single-share-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-share-strip span {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.share-btn svg {
  width: 17px;
  height: 17px;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.share-wa:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.share-btn.share-fb:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.share-btn.share-tw:hover {
  background: #0f1419;
  color: #ffffff;
  border-color: #0f1419;
}

.share-btn.share-li:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.share-btn.share-copy:hover {
  background: #166534;
  color: #ffffff;
  border-color: #166534;
}

/* Single Featured Image */
.single-featured-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 36px;
  background: #f8fafc;
}

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

/* Single Body Typography */
.single-article-body {
  font-size: 17.5px;
  line-height: 1.85;
  color: #334155;
}

.single-article-body p {
  margin: 0 0 24px;
}

.single-article-body .lead-intro {
  font-size: 20px;
  line-height: 1.75;
  color: #1e293b;
  font-weight: 500;
  background: #f0fdf4;
  padding: 20px 24px;
  border-left: 4px solid #16a34a;
  border-radius: 0 12px 12px 0;
  margin-bottom: 32px;
}

.single-article-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: #14532d;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.single-article-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: #166534;
  margin: 32px 0 14px;
  line-height: 1.35;
}

.single-article-body ul,
.single-article-body ol {
  margin: 0 0 28px 20px;
  padding: 0;
}

.single-article-body li {
  margin-bottom: 12px;
  padding-left: 6px;
}

.single-article-body strong {
  color: #0f172a;
}

.single-article-body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  background: #f8fafc;
  border-left: 4px solid #15803d;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 18px;
  color: #1e293b;
}

/* Author Bio Card */
.single-author-bio-card {
  margin: 50px 0 40px;
  padding: 28px 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.single-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #bbf7d0;
  flex-shrink: 0;
}

.single-bio-text h4 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.single-bio-text p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.related-posts-title {
  font-size: 24px;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 28px;
}

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

.related-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.related-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-post-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-post-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 8px;
}

.related-post-card a {
  text-decoration: none;
  color: inherit;
}

.related-post-card a:hover h4 {
  color: #15803d;
}

/* Toast Notice (Copy Link) */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .featured-posts-grid {
    gap: 24px;
  }
  .recent-posts-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-main-content {
    padding: 36px 16px 60px;
  }
  .popular-media-wrap {
    height: 300px;
  }
  .featured-posts-grid {
    grid-template-columns: 1fr;
  }
  .featured-media-wrap {
    height: 280px;
  }
  .recent-posts-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  .blog-hiring-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .blog-hiring-content p {
    margin: 0 auto;
  }
  .single-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .single-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-hero-section {
    padding: 36px 16px 24px;
  }
  .blog-hero-title {
    font-size: 32px;
  }
  .post-meta-strip {
    font-size: 13px;
  }
  .popular-media-wrap {
    height: 230px;
  }
  .featured-media-wrap {
    height: 210px;
  }
  .recent-media-wrap {
    height: 190px;
  }
  .btn-read-more {
    width: 100%;
  }
}
