/* ==============================================================================
   SINGLE BLOG POST ARTICLE STYLESHEET (Following Policy Pages Dark / Light Balance)
   nmirshad.com
   Background: #f0eee9 (Warm Light Paper - matching Policy Pages design standard)
   Content Card: Clean typography, high contrast, sticky sidebar, author bio & also read
   ============================================================================== */

body.blog-single-body {
  background-color: #f0eee9 !important;
  color: #111111 !important;
  font-family: 'Poppins', sans-serif !important;
  margin: 0;
  padding: 0;
  line-height: 1.75;
}

body.blog-dynamic-loading .blog-article-wrapper {
  visibility: hidden;
}

/* Keep the native pointer available if the custom cursor script is unavailable. */
body.blog-single-body {
  cursor: auto !important;
}
body.blog-single-body a,
body.blog-single-body button,
body.blog-single-body [role="button"] {
  cursor: pointer !important;
}

/* Page Container Grid */
.blog-article-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 20px 80px 20px;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  position: relative;
}

@media (max-width: 992px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  body.blog-single-body {
    padding-top: 66px !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Desktop sticky header hidden on mobile */
  .site-sticky-header.policy-page-header,
  .site-sticky-header.blog-page-header,
  .site-sticky-header {
    display: none !important;
  }

  /* Mobile Top Bar */
  .mobile-top-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 66px !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 180, 0, 0.2) !important;
    padding: 0 20px !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
  }

  .mobile-top-bar .mobile-logo-link {
    display: flex !important;
    align-items: center !important;
  }

  .mobile-top-bar .mobile-logo-img {
    height: 32px !important;
    width: auto !important;
    display: block !important;
    max-width: 140px !important;
  }

  .mobile-top-bar .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    color: #ffb400 !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 6px !important;
  }

  .blog-article-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 20px 60px 20px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .blog-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 40px !important;
  }

  .blog-main-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .blog-sidebar-sticky {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .blog-article-title {
    font-size: 26px !important;
    letter-spacing: -0.5px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .blog-content-body,
  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .blog-content-body img,
  .entry-content img {
    max-width: 100% !important;
    height: auto !important;
  }

  .blog-author-box {
    padding: 20px !important;
    margin: 35px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .also-read-section {
    margin-top: 40px !important;
    padding-top: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .also-read-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }
}

/* Breadcrumb & Navigation */
.blog-breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: #666;
}
.blog-breadcrumb a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.blog-breadcrumb a:hover {
  color: #d99800;
}
.blog-breadcrumb span.sep {
  margin: 0 8px;
  color: #999;
}

/* Article Header */
.blog-article-header {
  margin-bottom: 30px;
}
.blog-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.blog-cat-pill {
  background: #ffb400;
  color: #000000;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.blog-subcat-pill {
  background: #e5e2da;
  color: #222222;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}
.blog-date-pill {
  font-size: 13px;
  color: #666666;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Title: 40px, font-weight: 400 (matches policy-main-heading) */
.blog-article-title {
  font-size: 38px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #000000 !important;
  margin: 0 0 24px 0 !important;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .blog-article-title {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
  }
}

/* Featured Image */
.blog-featured-media {
  margin-bottom: 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}
.blog-featured-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Body Typography (inherits policy clean reading standard) */
.blog-content-body {
  font-size: 16px;
  line-height: 1.85;
  color: #111111 !important;
}

.blog-content-body * {
  color: inherit;
}

.blog-content-body h1,
.blog-content-body h2,
.blog-content-body h3,
.blog-content-body h4,
.blog-content-body h5,
.blog-content-body h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-heading {
  font-family: 'Poppins', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #000000 !important;
  margin-top: 36px !important;
  margin-bottom: 16px !important;
}

.blog-content-body p,
.entry-content p,
.wp-block-paragraph {
  font-size: 16px !important;
  line-height: 1.85 !important;
  margin-bottom: 20px !important;
  color: #1a1a1a !important;
}

.blog-content-body strong,
.blog-content-body b,
.entry-content strong,
.entry-content b {
  color: #000000 !important;
  font-weight: 700 !important;
}

.blog-content-body em,
.blog-content-body i,
.entry-content em,
.entry-content i {
  color: #222222 !important;
}

.blog-content-body ul,
.blog-content-body ol,
.entry-content ul,
.entry-content ol,
.wp-block-list {
  padding-left: 26px !important;
  margin-bottom: 24px !important;
  color: #1a1a1a !important;
}

.blog-content-body li,
.entry-content li {
  font-size: 16px !important;
  line-height: 1.8 !important;
  margin-bottom: 12px !important;
  color: #1a1a1a !important;
}

.blog-content-body li strong,
.entry-content li strong {
  color: #000000 !important;
}

.blog-content-body blockquote,
.entry-content blockquote,
.wp-block-quote {
  background: #ffffff !important;
  border-left: 4px solid #ffb400 !important;
  margin: 30px 0 !important;
  padding: 20px 24px !important;
  border-radius: 4px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.blog-content-body blockquote p,
.entry-content blockquote p {
  font-size: 16px !important;
  font-style: italic !important;
  color: #222222 !important;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
}

.blog-content-body a,
.entry-content a {
  color: #000000 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-color: #ffb400 !important;
  text-underline-offset: 3px !important;
}

.blog-content-body a:hover,
.entry-content a:hover {
  color: #d99800 !important;
}

.blog-content-body img,
.entry-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 24px 0 !important;
}

/* ==========================================================================
   AUTHOR SECTION — redesigned with label, name, social icons
   ========================================================================== */
.blog-author-box {
  background: #ffffff;
  border: 1px solid #e2ded5;
  border-left: 5px solid #ffb400;
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 50px;
  margin-bottom: 50px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.blog-author-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #ffb400;
  flex-shrink: 0;
}
/* "About the Author" label */
.blog-author-label {
  font-size: 20px;
  font-weight: 400;
  color: #888888;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
/* Author name */
.blog-author-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
  margin-top: 0;
}
/* Social icons row */
.blog-author-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.blog-author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f5f3ef;
  border: 1px solid #e2ded5;
  color: #333333;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.blog-author-socials a:hover {
  background: #ffb400;
  color: #000000;
  border-color: #ffb400;
}
/* Bio paragraph */
.blog-author-info p {
  font-size: 14px;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 0;
}
.blog-author-info p a {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline;
}
.blog-author-info p a:hover {
  color: #d99800;
}
@media (max-width: 640px) {
  .blog-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
  }
  .blog-author-socials {
    justify-content: center;
  }
  .blog-author-img {
    width: 90px;
    height: 90px;
  }
}

/* ==========================================================================
   STICKY SIDEBAR (Right side, sticky up to end of blog content)
   ========================================================================== */
.blog-sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2ded5;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.sidebar-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid #ffb400;
}

/* Category list */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f7f5f0;
  border-radius: 6px;
  color: #111111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-cat-list li a:hover {
  background: #ffb400;
  color: #000000;
}

/* Latest 3 blogs (only titles) */
.sidebar-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-recent-list li a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #111111;
  text-decoration: none;
  border-left: 3px solid #ffb400;
  padding-left: 10px;
  transition: color 0.2s, transform 0.2s;
}
.sidebar-recent-list li a:hover {
  color: #d99800;
  transform: translateX(3px);
}

/* Sidebar Poster & CTA Button */
.sidebar-poster-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
  background: #000000;
  color: #f0eee9;
  border: 1px solid rgba(255, 180, 0, 0.3);
}
.sidebar-poster-card img {
  width: 100%;
  height: auto;
  display: block;
}
.sidebar-poster-content {
  padding: 20px;
}
.sidebar-poster-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #f0eee9;
  margin-bottom: 8px;
}
.sidebar-poster-content p {
  font-size: 12px;
  color: rgba(240, 238, 233, 0.7);
  margin-bottom: 16px;
}
.sidebar-cta-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 18px;
  background: #ffb400;
  color: #000000;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  transition: background 0.2s;
}
.sidebar-cta-btn:hover {
  background: #e09f00;
}

/* ==========================================================================
   "ALSO READ" RELATED BLOGS SECTION (3 cards at the end)
   ========================================================================== */
.also-read-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #dcd7cb;
}
.also-read-heading {
  font-size: 26px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 24px;
}
.also-read-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 850px) {
  .also-read-grid {
    grid-template-columns: 1fr;
  }
}
.also-read-card {
  background: #ffffff;
  border: 1px solid #e2ded5;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.also-read-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.also-read-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.also-read-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.also-read-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.also-read-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.also-read-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.also-read-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.also-read-title a {
  color: #000000;
  text-decoration: none;
}
.also-read-title a:hover {
  color: #d99800;
}
.also-read-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #ffb400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .also-read-heading {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.25 !important;
  }

  .policy-footer-section {
    text-align: center !important;
    padding: 50px 0 25px 0 !important;
  }

  .policy-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  .policy-footer-brand-col {
    padding-right: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .policy-footer-logo-img {
    margin: 0 auto 16px auto !important;
    display: block !important;
  }

  .policy-footer-bio {
    text-align: center !important;
    max-width: 340px !important;
    margin: 0 auto 18px auto !important;
  }

  .policy-footer-socials {
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .policy-footer-col {
    text-align: center !important;
    width: 100% !important;
  }

  .policy-footer-col .footer-col-title {
    text-align: center !important;
    margin-bottom: 14px !important;
  }

  .policy-footer-col ul {
    text-align: center !important;
  }

  .policy-footer-col ul li {
    text-align: center !important;
  }

  .policy-footer-col ul li a {
    text-align: center !important;
    display: inline-block !important;
  }

  .policy-footer-copyright {
    text-align: center !important;
  }
}

