/* =========================================
   NARAYAN CABLES - Blog Page & Post Styles
   ========================================= */

/* ---- Simple Clean Blog Header ---- */
#simple-blog-header {
  background: var(--black-3);
  padding: 120px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.simple-header-inner {
  max-width: 600px;
  margin: 0 auto;
}

.simple-blog-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.simple-blog-subtitle {
  font-size: 15px;
  color: var(--white-50);
  margin-top: 14px;
}

/* ---- Blog Filters ---- */
#blog-filters {
  background: var(--black-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  margin-top: 84px;
  position: relative;
  z-index: 40;
}

.filters-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--white-70);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(227,30,36,0.35);
}

/* ---- Blog Grid Section ---- */
#blog-grid-section { background: var(--black-2); }

/* Search bar */
.blog-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blog-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 11px 16px;
  width: 320px;
}

.blog-search-wrap i { color: var(--white-50); font-size: 14px; }

.blog-search-wrap input {
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  outline: none;
  flex: 1;
  font-family: 'Outfit', sans-serif;
}

.blog-search-wrap input::placeholder { color: var(--white-50); }

.blog-count-label {
  font-size: 14px;
  color: var(--white-50);
}

.blog-count-label span { color: var(--red); font-weight: 700; }

/* ---- Blog Grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* ---- Blog Card ---- */
.blog-card {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  animation: cardReveal 0.5s ease forwards;
}

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.blog-card:hover {
  border-color: rgba(227,30,36,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

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

.blog-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

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


.blog-card-date {
  font-size: 11px;
  color: var(--white-50);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-date i { font-size: 10px; color: var(--red); }

.blog-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.blog-card-excerpt {
  font-size: 13px;
  color: var(--white-50);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
  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 rgba(255,255,255,0.05);
}

.blog-card-read {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.blog-card:hover .blog-card-read { gap: 8px; }

.blog-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(227,30,36,0.08);
  border: 1px solid rgba(227,30,36,0.15);
  border-radius: 10px;
  color: var(--red);
  font-weight: 600;
}

/* Empty state */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--white-50);
}

.blog-empty i { font-size: 52px; color: rgba(255,255,255,0.08); margin-bottom: 20px; display: block; }
.blog-empty h3 { font-family: 'Rajdhani', sans-serif; font-size: 24px; color: var(--white-70); margin-bottom: 8px; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 20px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-70);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.page-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.page-prev, .page-next { width: auto; padding: 0 16px; gap: 6px; }

/* ====================================================
   BLOG POST PAGE
   ==================================================== */

/* Simple Clean Single Post Header */
#simple-post-header {
  background: var(--black-3);
  padding: 125px 0 45px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.simple-post-inner {
  max-width: 860px;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.post-cat-badge {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.post-meta-item {
  font-size: 13px;
  color: var(--white-50);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta-item i { color: var(--red); font-size: 11px; }

.post-main-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
}

.post-excerpt-hero {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* Post content area */
#post-content-area { background: var(--black-2); }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: flex-start;
}

/* Blog post content typography */
.post-body {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 52px 48px;
}

/* Post Top Cover Image */
.post-top-cover {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--black-4);
}

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

.post-body h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(227,30,36,0.3);
}

.post-body h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--white);
  margin: 36px 0 14px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-body h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 28px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.post-body h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--white);
  margin: 30px 0 12px;
  line-height: 1.25;
}

.post-body h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--white-90);
  margin: 24px 0 10px;
}

.post-body p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 22px;
}

/* In-Article Images */
.post-inline-image {
  margin: 36px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--black-4);
}

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

.post-inline-image figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--white-50);
  background: var(--black-4);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Icon / Bullet Lists */
.post-icon-list {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.post-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--black-4);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--white-90);
  line-height: 1.6;
}

.post-icon-list li i {
  color: var(--red);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Callout Quote */
.post-callout-quote {
  margin: 36px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(227,30,36,0.1) 0%, rgba(227,30,36,0.03) 100%);
  border: 1px solid rgba(227,30,36,0.3);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.post-callout-quote .quote-icon {
  font-size: 24px;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.post-callout-quote p {
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Keywords */
.post-keywords {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.post-keywords h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 12px;
  font-weight: 600;
}

.post-keywords .tags { display: flex; gap: 8px; flex-wrap: wrap; }

.kw-tag {
  font-size: 12px;
  padding: 5px 14px;
  background: rgba(227,30,36,0.08);
  border: 1px solid rgba(227,30,36,0.2);
  border-radius: 20px;
  color: var(--red);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.kw-tag:hover { background: var(--red); color: var(--white); }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; }

.sidebar-card {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-head i { color: var(--red); }

.sidebar-card-body { padding: 16px 20px; }

/* Related posts in sidebar */
.related-mini {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: var(--transition);
}

.related-mini:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-mini:hover .r-title { color: var(--red); }

.related-mini img {
  width: 64px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.r-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r-date { font-size: 11px; color: var(--white-50); margin-top: 4px; }

/* TOC in sidebar */
.toc-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 13px;
  color: var(--white-50);
  transition: color 0.2s;
}

.toc-item:hover { color: var(--red); }
.toc-item i { font-size: 10px; color: var(--red); margin-top: 3px; }

/* Back button */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-50);
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-to-blog:hover { color: var(--red); }

/* Not found */
.post-not-found {
  text-align: center;
  padding: 100px 20px;
  color: var(--white-50);
}

.post-not-found i { font-size: 60px; color: rgba(255,255,255,0.08); margin-bottom: 24px; display: block; }
.post-not-found h2 { font-family: 'Rajdhani', sans-serif; font-size: 32px; color: var(--white-70); margin-bottom: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-search-bar { flex-direction: column; align-items: flex-start; }
  .blog-search-wrap { width: 100%; }
  .post-body { padding: 28px 20px; }
  #blog-hero { min-height: 50vh; }
}
