/* ============================================================
   SARWESHWAR INDUSTRIES — blog.css
   Full User-Side Blog Styling
   Color Scheme: #c62828 / #b71c1c / #0b2545 / #222
   ============================================================ */

:root {
  --si-red: #c62828;
  --si-red-dark: #b71c1c;
  --si-red-light: #ffebee;
  --si-navy: #0b2545;
  --si-text: #2c3e50;
  --si-text-muted: #666;
  --si-bg-light: #f8f9fa;
  --si-border: #e9ecef;
  --si-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  --si-card-hover: 0 12px 30px rgba(198, 40, 40, 0.15);
  --si-radius: 12px;
}

/* ── BLOG HERO / BANNER ── */
.blog-hero {
  background: linear-gradient(135deg, #0b2545 0%, #133b5c 50%, #b71c1c 100%);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.blog-hero__tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}
.blog-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ── SEARCH BAR ON BLOG HERO ── */
.blog-search-bar {
  display: flex;
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  padding: 5px 6px 5px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.blog-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: #222;
}
.blog-search-bar button {
  background: var(--si-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-search-bar button:hover {
  background: var(--si-red-dark);
}

/* ── BLOG CONTAINER & LAYOUT ── */
.blog-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ── CATEGORY PILLS & TAGS BAR ── */
.blog-filters-section {
  margin-bottom: 35px;
}
.blog-categories-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--si-border);
}
.blog-cat-pill {
  background: #fff;
  border: 1.5px solid var(--si-border);
  color: #555;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.blog-cat-pill:hover,
.blog-cat-pill.active {
  background: var(--si-red);
  border-color: var(--si-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}
.blog-cat-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
  color: inherit;
}
.blog-cat-pill.active .blog-cat-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── TAG CLOUD ── */
.blog-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.blog-tags-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-tag-chip {
  background: #f1f3f5;
  color: #495057;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-tag-chip:hover,
.blog-tag-chip.active {
  background: var(--si-red-light);
  color: var(--si-red);
  font-weight: 600;
}

/* ── FEATURED BLOG ARTICLE (HERO CARD) ── */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #fff;
  border-radius: var(--si-radius);
  overflow: hidden;
  box-shadow: var(--si-card-shadow);
  margin-bottom: 45px;
  border: 1px solid var(--si-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--si-card-hover);
}
.blog-featured-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #fdfdfd;
}
.blog-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-featured-card:hover .blog-featured-img-wrap img {
  transform: scale(1.05);
}
.blog-badge-featured {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(90deg, #b71c1c, #e67e22);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-featured-body {
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--si-text-muted);
  margin-bottom: 12px;
}
.blog-cat-badge {
  color: var(--si-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.blog-featured-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 14px;
}
.blog-featured-body h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-featured-body h2 a:hover {
  color: var(--si-red);
}
.blog-featured-body p {
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.blog-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--si-red);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  width: fit-content;
}
.blog-btn-read:hover {
  gap: 12px;
  color: var(--si-red-dark);
}

/* ── BLOG GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* ── BLOG CARD ── */
.blog-card {
  background: #fff;
  border-radius: var(--si-radius);
  overflow: hidden;
  box-shadow: var(--si-card-shadow);
  border: 1px solid var(--si-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--si-card-hover);
}
.blog-card__img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #fdfdfd;
  overflow: hidden;
}
.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.06);
}
.blog-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(198, 40, 40, 0.92);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.blog-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #888;
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card__title a:hover {
  color: var(--si-red);
}
.blog-card__excerpt {
  font-size: 13.5px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
  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;
  padding-top: 14px;
  border-top: 1px solid #f1f3f5;
  font-size: 13px;
}
.blog-card__author {
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card__author i {
  color: var(--si-red);
  font-size: 12px;
}

/* ── NO RESULTS / EMPTY STATE ── */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}
.blog-empty i {
  font-size: 52px;
  color: #ddd;
  margin-bottom: 16px;
}
.blog-empty h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 8px;
}
.blog-empty p {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}
.blog-empty button {
  background: var(--si-red);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   SINGLE BLOG POST DETAIL PAGE (blog-detail.html)
   ============================================================ */
.post-detail-container {
  max-width: 920px;
  margin: 30px auto 60px;
  padding: 0 20px;
}
.post-header {
  margin-bottom: 30px;
}
.post-header__category {
  display: inline-block;
  background: var(--si-red-light);
  color: var(--si-red);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 18px;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--si-border);
  border-bottom: 1px solid var(--si-border);
  font-size: 13.5px;
  color: #666;
}
.post-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-meta-left strong {
  color: #222;
}

/* ── FEATURED IMAGE IN SINGLE ARTICLE ── */
.post-featured-image {
  margin: 25px 0 35px;
  border-radius: var(--si-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  background: #fdfdfd;
}
.post-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* ── ARTICLE CONTENT TYPOGRAPHY ── */
.post-content {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #2c3e50;
}
.post-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin: 35px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--si-red-light);
}
.post-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin: 28px 0 12px;
}
.post-content p {
  margin-bottom: 20px;
}
.post-content ul, .post-content ol {
  margin: 20px 0 24px 24px;
}
.post-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}
.post-content blockquote {
  border-left: 4px solid var(--si-red);
  background: var(--si-red-light);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 17px;
  color: #333;
}
.post-content strong {
  color: #111;
}

/* ── TAGS & SHARE BAR AT ARTICLE BOTTOM ── */
.post-footer-bar {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid var(--si-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.post-tags-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tag-item {
  background: #f1f3f5;
  color: #495057;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.post-tag-item:hover {
  background: var(--si-red);
  color: #fff;
}

/* ── SOCIAL SHARE BUTTONS ── */
.post-share-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-share-label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
}
.btn-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}
.btn-share:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn-share--wa   { background: #25D366; }
.btn-share--fb   { background: #1877F2; }
.btn-share--tw   { background: #1DA1F2; }
.btn-share--copy { background: #495057; }

/* ── INQUIRY CTA BANNER IN BLOG ── */
.post-cta-banner {
  background: linear-gradient(135deg, #0b2545, #b71c1c);
  color: #fff;
  border-radius: var(--si-radius);
  padding: 35px 30px;
  margin: 45px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.post-cta-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 6px;
}
.post-cta-text p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.post-cta-btns {
  display: flex;
  gap: 12px;
}
.post-cta-btn-wa {
  background: #25D366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.post-cta-btn-wa:hover { background: #1ebc59; }
.post-cta-btn-contact {
  background: #fff;
  color: #111;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.post-cta-btn-contact:hover { background: #f0f0f0; }

/* ── RELATED ARTICLES ── */
.related-posts-section {
  margin-top: 50px;
}
.related-posts-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.related-posts-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--si-red);
}

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 860px) {
  .blog-hero h1 { font-size: 28px; }
  .blog-hero p { font-size: 14px; }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-img-wrap { min-height: 220px; }
  .blog-featured-body { padding: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-header h1 { font-size: 26px; }
  .post-meta-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .post-cta-banner { flex-direction: column; text-align: center; }
  .post-cta-btns { width: 100%; justify-content: center; }
  .post-footer-bar { flex-direction: column; align-items: flex-start; }
}
