/* Nithya Gastro — professional blog listing */

.ng_blog_intro {
  background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
  border: 1px solid #e3e9f7;
  padding: 2rem 2rem 1.75rem;
}

.ng_blog_eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #132573);
  margin-bottom: 0.5rem;
}

.ng_blog_intro_text {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
}

.ng_blog_stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ng_blog_stats div {
  background: #fff;
  border: 1px solid #e3e9f7;
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
}

.ng_blog_stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent, #132573);
  line-height: 1.2;
}

.ng_blog_stats span {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ng_blog_featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e9f7;
  box-shadow: 0 12px 40px rgba(19, 37, 115, 0.08);
}

.ng_blog_featured_media {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
}

.ng_blog_featured_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ng_blog_featured_media:hover img {
  transform: scale(1.04);
}

.ng_blog_badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent, #132573);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.ng_blog_featured_body {
  padding: 2rem 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ng_blog_featured_title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.ng_blog_featured_title a {
  color: inherit;
  text-decoration: none;
}

.ng_blog_featured_title a:hover {
  color: var(--accent, #132573);
}

.ng_blog_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.ng_blog_meta i {
  color: var(--accent, #132573);
  margin-right: 0.35rem;
}

.ng_blog_excerpt {
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ng_blog_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ng_blog_filter {
  border: 1px solid #d7dff0;
  background: #fff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ng_blog_filter:hover,
.ng_blog_filter.active {
  background: var(--accent, #132573);
  border-color: var(--accent, #132573);
  color: #fff;
}

.ng_blog_card {
  height: 100%;
  background: #fff;
  border: 1px solid #e3e9f7;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ng_blog_card:hover {
  box-shadow: 0 14px 36px rgba(19, 37, 115, 0.1);
  transform: translateY(-4px);
}

.ng_blog_card_media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ng_blog_card_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ng_blog_card:hover .ng_blog_card_media img {
  transform: scale(1.05);
}

.ng_blog_card_body {
  padding: 1.25rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ng_blog_card_body .ng_blog_meta {
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.ng_blog_cat {
  background: #eef3ff;
  color: var(--accent, #132573);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.ng_blog_date {
  font-size: 0.82rem;
}

.ng_blog_card_title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.ng_blog_card_title a {
  color: inherit;
  text-decoration: none;
}

.ng_blog_card_title a:hover {
  color: var(--accent, #132573);
}

.ng_blog_read_link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent, #132573);
  text-decoration: none;
  font-size: 0.95rem;
}

.ng_blog_read_link i {
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}

.ng_blog_read_link:hover i {
  transform: translateX(4px);
}

.ng_blog_cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--accent, #132573) 0%, #1e3a9a 100%);
  color: #fff;
}

.ng_blog_cta h3 {
  color: #fff;
  font-size: 1.35rem;
}

.ng_blog_cta p {
  color: rgba(255, 255, 255, 0.88);
}

/* Beat theme .cs_post_details p { margin-bottom: 40px } so CMS spacing shows on live pages */
.cs_post_details.cs_style_1 .cms-article-content p,
.cs_post_details.cs_style_1 .cms-article-content li,
.cms-article-content p,
.cms-article-content li {
  line-height: var(--cms-line-height, 1.55) !important;
  margin-bottom: var(--cms-para-gap, 18px) !important;
}

.cms-article-content ul,
.cms-article-content ol {
  margin: 0 0 var(--cms-para-gap, 18px) 0;
  padding-left: 1.5rem;
}

.cms-article-content ul {
  list-style: disc;
}

.cms-article-content ol {
  list-style: decimal;
}

.cms-article-content li {
  margin-bottom: 0.4em !important;
  color: #334155;
}

.cms-article-content li:last-child {
  margin-bottom: 0 !important;
}

.cms-article-content h1,
.cms-article-content h2,
.cms-article-content h3 {
  color: #132573;
  font-weight: 700;
  line-height: 1.3 !important;
  margin-top: 1.25rem !important;
}

.cms-article-content h1 {
  font-size: 1.75rem !important;
  margin-bottom: 0.75rem !important;
  border-bottom: 2px solid #dbeafe;
  padding-bottom: 0.35rem;
}

.cms-article-content h2 {
  font-size: 1.4rem !important;
  margin-bottom: 0.65rem !important;
}

.cms-article-content h3 {
  font-size: 1.15rem !important;
  margin-bottom: 0.5rem !important;
}

.cms-article-content p {
  font-size: 1rem;
  color: #334155;
}

.cs_post_details.cs_style_1 .cms-article-content [data-section-gap="0"],
.cs_post_details.cs_style_1 .cms-article-content .cms-sec-gap-0,
.cms-article-content [data-section-gap="0"],
.cms-article-content .cms-sec-gap-0 { margin-bottom: 0 !important; }
.cs_post_details.cs_style_1 .cms-article-content [data-section-gap="8"],
.cs_post_details.cs_style_1 .cms-article-content .cms-sec-gap-8,
.cms-article-content [data-section-gap="8"],
.cms-article-content .cms-sec-gap-8 { margin-bottom: 8px !important; }
.cs_post_details.cs_style_1 .cms-article-content [data-section-gap="16"],
.cs_post_details.cs_style_1 .cms-article-content .cms-sec-gap-16,
.cms-article-content [data-section-gap="16"],
.cms-article-content .cms-sec-gap-16 { margin-bottom: 16px !important; }
.cs_post_details.cs_style_1 .cms-article-content [data-section-gap="24"],
.cs_post_details.cs_style_1 .cms-article-content .cms-sec-gap-24,
.cms-article-content [data-section-gap="24"],
.cms-article-content .cms-sec-gap-24 { margin-bottom: 24px !important; }
.cs_post_details.cs_style_1 .cms-article-content [data-section-gap="32"],
.cs_post_details.cs_style_1 .cms-article-content .cms-sec-gap-32,
.cms-article-content [data-section-gap="32"],
.cms-article-content .cms-sec-gap-32 { margin-bottom: 32px !important; }
.cs_post_details.cs_style_1 .cms-article-content [data-section-gap="48"],
.cs_post_details.cs_style_1 .cms-article-content .cms-sec-gap-48,
.cms-article-content [data-section-gap="48"],
.cms-article-content .cms-sec-gap-48 { margin-bottom: 48px !important; }

.cs_post_details.cs_style_1 .cms-article-content .cms-inline-space,
.cms-article-content .cms-inline-space {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.cs_post_details.cs_style_1 .cms-article-content .cms-inline-space[data-inline-gap="0"],
.cms-article-content .cms-inline-space[data-inline-gap="0"],
.cms-article-content .cms-inline-gap-0 { margin-bottom: 0 !important; }
.cs_post_details.cs_style_1 .cms-article-content .cms-inline-space[data-inline-gap="8"],
.cms-article-content .cms-inline-space[data-inline-gap="8"],
.cms-article-content .cms-inline-gap-8 { display: inline-block; margin-bottom: 8px !important; }
.cs_post_details.cs_style_1 .cms-article-content .cms-inline-space[data-inline-gap="16"],
.cms-article-content .cms-inline-space[data-inline-gap="16"],
.cms-article-content .cms-inline-gap-16 { display: inline-block; margin-bottom: 16px !important; }
.cs_post_details.cs_style_1 .cms-article-content .cms-inline-space[data-inline-gap="24"],
.cms-article-content .cms-inline-space[data-inline-gap="24"],
.cms-article-content .cms-inline-gap-24 { display: inline-block; margin-bottom: 24px !important; }
.cs_post_details.cs_style_1 .cms-article-content .cms-inline-space[data-inline-gap="32"],
.cms-article-content .cms-inline-space[data-inline-gap="32"],
.cms-article-content .cms-inline-gap-32 { display: inline-block; margin-bottom: 32px !important; }
.cs_post_details.cs_style_1 .cms-article-content .cms-inline-space[data-inline-gap="48"],
.cms-article-content .cms-inline-space[data-inline-gap="48"],
.cms-article-content .cms-inline-gap-48 { display: inline-block; margin-bottom: 48px !important; }

.cms-article-content p:last-child,
.cms-article-content li:last-child {
  margin-bottom: 0 !important;
}

.cms-article-content blockquote {
  line-height: var(--cms-line-height, 1.55) !important;
  margin-bottom: calc(var(--cms-para-gap, 18px) + 6px) !important;
}

/* Final section: clearer break before closing heading */
.cms-article-content h2:last-of-type {
  margin-top: 2.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.cms-article-content h2:last-of-type ~ p {
  margin-bottom: calc(var(--cms-para-gap, 18px) * 0.85) !important;
}

.cms-article-content h2:last-of-type ~ p:last-of-type {
  margin-bottom: 0 !important;
}

.cms-article-footer {
  margin-top: 2rem;
}

.cs_post_details.cs_style_1 .cms-article-footer blockquote,
.cs_post_details.cs_style_1 .cms-article-disclaimer {
  margin-top: 0;
  margin-bottom: 40px;
}

.cs_post_details.cs_style_1 .cms-article-disclaimer img {
  flex-shrink: 0;
  width: 48px;
  height: auto;
}

@media (max-width: 575px) {
  .cs_post_details.cs_style_1 .cms-article-disclaimer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 17px;
    padding: 22px;
  }
}

@media (max-width: 991px) {
  .ng_blog_featured {
    grid-template-columns: 1fr;
  }

  .ng_blog_featured_media {
    min-height: 220px;
  }

  .ng_blog_featured_body {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {
  .ng_blog_intro,
  .ng_blog_cta {
    padding: 1.25rem;
  }

  .ng_blog_stats {
    grid-template-columns: 1fr;
  }
}
