/* ==========================================================================
   NETWOR STORE - BLOG MODERN & SEO STYLES
   Designed with Brand Colors (#1FA3A4, #1F9D39, #0F172A)
   ========================================================================== */

/* ---------- 1. BLOG HEADER & HERO SECTION ---------- */
.ns-blog-header {
  background: linear-gradient(135deg, #0F172A 0%, #0E3535 50%, #124A4B 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ns-blog-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 163, 164, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.ns-blog-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(31, 157, 57, 0.2);
  border: 1px solid rgba(31, 157, 57, 0.4);
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.ns-blog-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.ns-blog-title span {
  color: var(--primary-teal, #1FA3A4);
}

.ns-blog-subtitle {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- 2. CATEGORY PILLS FILTER BAR ---------- */
.ns-blog-filter-section {
  padding: 1.5rem 0;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 75px;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.ns-cat-pills-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.5rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  -webkit-overflow-scrolling: touch;
}

.ns-cat-pills-scroll::-webkit-scrollbar {
  height: 4px;
}

.ns-cat-pills-scroll::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.ns-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ns-cat-pill:hover,
.ns-cat-pill.is-active {
  background: var(--primary-teal, #1FA3A4);
  color: #FFFFFF !important;
  border-color: var(--primary-teal, #1FA3A4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 163, 164, 0.3);
}

/* ---------- 3. FEATURED HERO POST ---------- */
.ns-featured-post-hero {
  padding: 3rem 0;
  background: #F8FAFC;
}

.ns-featured-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  background: #FFFFFF;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ns-featured-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

.ns-featured-hero-media {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.ns-featured-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ns-featured-hero-card:hover .ns-featured-hero-media img {
  transform: scale(1.05);
}

.ns-featured-hero-body {
  padding: 3rem 3rem 3rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ns-post-tag-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ns-tag-latest {
  background: var(--primary-green, #1F9D39);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ns-tag-cat {
  background: rgba(31, 163, 164, 0.1);
  color: var(--primary-teal, #1FA3A4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.ns-featured-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  color: #0F172A;
}

.ns-featured-hero-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ns-featured-hero-title a:hover {
  color: var(--primary-teal, #1FA3A4);
}

.ns-post-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ns-post-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ns-featured-hero-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
}

.ns-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-teal, #1FA3A4);
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none !important;
  width: fit-content;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(31, 163, 164, 0.3);
}

.ns-read-more-btn:hover {
  background: #178384;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 163, 164, 0.4);
}

/* ---------- 4. BLOG GRID & MODERN POST CARDS ---------- */
.ns-blog-grid-section {
  padding: 3.5rem 0 5rem 0;
}

.ns-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ns-post-card {
  background: #FFFFFF;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ns-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  border-color: rgba(31, 163, 164, 0.3);
}

.ns-post-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F1F5F9;
}

.ns-post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ns-post-card:hover .ns-post-card-media img {
  transform: scale(1.08);
}

.ns-card-cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--primary-teal, #1FA3A4);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
}

.ns-post-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ns-post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.ns-meta-dot {
  width: 4px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 50%;
}

.ns-post-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.85rem 0;
  color: #0F172A;
}

.ns-post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ns-post-card-title a:hover {
  color: var(--primary-teal, #1FA3A4);
}

.ns-post-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748B;
  margin-bottom: 1.5rem;
}

.ns-post-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ns-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-teal, #1FA3A4);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.ns-card-link:hover {
  gap: 0.7rem;
  color: var(--primary-green, #1F9D39);
}

/* ---------- 5. COMMUNITY / HEALTH BANNER CTA ---------- */
.ns-blog-cta-box {
  margin-top: 4rem;
  background: linear-gradient(135deg, #1A2D2C 0%, #0F3A3B 100%);
  border-radius: 1.75rem;
  padding: 3rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 20px 40px -10px rgba(15, 34, 33, 0.3);
  position: relative;
  overflow: hidden;
}

.ns-blog-cta-box::before {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -50%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(31, 157, 57, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.ns-blog-cta-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: #FFFFFF;
}

.ns-blog-cta-content p {
  color: #CBD5E1;
  font-size: 1rem;
  margin: 0;
  max-width: 550px;
}

.ns-blog-cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.ns-cta-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.ns-cta-btn-wa:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
}

.ns-cta-btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: #0F172A !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.ns-cta-btn-store:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
}

/* ---------- 6. PAGINATION MODERN ---------- */
.ns-blog-pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.ns-blog-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ns-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0F172A;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ns-blog-pagination .page-numbers:hover,
.ns-blog-pagination .page-numbers.current {
  background: var(--primary-teal, #1FA3A4);
  color: #FFFFFF;
  border-color: var(--primary-teal, #1FA3A4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 163, 164, 0.3);
}

/* ---------- 7. SINGLE POST TEMPLATE ---------- */
.ns-single-post-hero {
  background: linear-gradient(135deg, #0F172A 0%, #133D3E 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 4rem 0;
  text-align: center;
}

.ns-single-post-breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.ns-single-post-breadcrumbs a {
  color: #FFFFFF;
  text-decoration: none;
}

.ns-single-post-breadcrumbs a:hover {
  text-decoration: underline;
}

.ns-single-post-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  color: #FFFFFF !important;
}

.ns-single-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94A3B8;
}

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

.ns-single-post-container {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.ns-single-post-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.ns-single-featured-media {
  margin-bottom: 3.5rem;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

.ns-single-featured-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Typography */
.ns-post-entry-body {
  font-size: 1.15rem;
  line-height: 1.95;
  color: #334155;
}

.ns-post-entry-body p {
  margin-bottom: 2rem;
}

.ns-post-entry-body h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.ns-post-entry-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.ns-post-entry-body ul,
.ns-post-entry-body ol {
  margin-bottom: 2rem;
  padding-left: 1.75rem;
}

.ns-post-entry-body li {
  margin-bottom: 0.65rem;
  line-height: 1.8;
}

.ns-post-entry-body blockquote {
  border-left: 4px solid var(--primary-teal, #1FA3A4);
  padding: 1.25rem 2rem;
  margin: 2.5rem 0;
  background: #F8FAFC;
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: #1E293B;
}

.ns-post-entry-body img {
  border-radius: 1.25rem;
  margin: 2.5rem auto;
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Post Footer & Social Share */
.ns-post-share-footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ns-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ns-post-tags a {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ns-post-tags a:hover {
  background: var(--primary-teal, #1FA3A4);
  color: #FFFFFF;
}

.ns-social-share-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ns-share-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  margin-right: 0.4rem;
}

.ns-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.ns-share-wa { background: #25D366; }
.ns-share-fb { background: #1877F2; }
.ns-share-x  { background: #0F1419; }

/* Previous / Next Post Navigation */
.ns-post-nav-wrapper {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px dashed #E2E8F0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ns-nav-card {
  padding: 1.5rem;
  background: #F8FAFC;
  border-radius: 1.25rem;
  border: 1px solid #E2E8F0;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.ns-nav-card:hover {
  background: #FFFFFF;
  border-color: var(--primary-teal, #1FA3A4);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ns-nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-teal, #1FA3A4);
  margin-bottom: 0.4rem;
}

.ns-nav-post-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}

/* Related Posts Section */
.ns-related-posts-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 2px solid #F1F5F9;
}

.ns-related-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---------- 8. RESPONSIVE QUERIES ---------- */
@media (max-width: 992px) {
  .ns-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ns-featured-hero-card {
    grid-template-columns: 1fr;
  }
  
  .ns-featured-hero-body {
    padding: 2rem;
  }
  
  .ns-single-post-title {
    font-size: 2.15rem;
  }
  
  .ns-blog-cta-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .ns-blog-cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .ns-blog-grid {
    grid-template-columns: 1fr;
  }
  
  .ns-blog-title {
    font-size: 1.85rem;
  }
  
  .ns-featured-hero-title {
    font-size: 1.5rem;
  }
  
  .ns-post-nav-wrapper {
    grid-template-columns: 1fr;
  }
  
  .ns-single-post-title {
    font-size: 1.65rem;
  }
}
