/* ===================================================
   SINGLE ARTICLE PAGE CSS — Insure4Me
   blog/show.blade.php  →  /blog/{slug}
   =================================================== */


/* ---- Article Header Hero ---- */
.article-header {
  background-image: url(../images/insuran4-inner-bg-img.webp) !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  padding: 64px 0 54px;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,33,40,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.article-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(12,37,67,0.6) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.article-header .container { position: relative; z-index: 2; }

.article-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}
.article-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color .2s;
}
.article-breadcrumb a:hover { color: #ffffff; text-decoration: underline; }
.article-breadcrumb .current { color: #ffffff; font-weight: 500; }
.article-breadcrumb .sep     { font-size: 0.75rem; margin: 0 4px; }


.article-cat-badge {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}
.article-read-time,
.article-date-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #ffffff;
}

.article-header-title {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 20px;
  max-width: 820px;
}

.article-author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e82128, #F18F20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.article-author-info strong {
  font-size: 0.87rem;
  font-weight: 700;
  color: #fff;
  display: block;
}
.article-author-info span {
  font-size: 0.76rem;
  color: #ffffff;
}

/* ---- Article Hero Image ---- */
.article-hero-image-wrap {
  background: #f8f9fc;
  padding: 40px 0 0;
}
.article-hero-image-inner {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(12,37,67,0.14);
  transform: translateY(-24px);
}
.article-hero-image-inner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

/* ---- Article Content Layout ---- */
.article-layout {
  background: #f8f9fc;
  padding: 0 0 70px;
}
.article-main-col { max-width: 100%; }

/* Article body typography */
.article-content {
  background: #fff;
  border-radius: 14px;
  padding: 44px 48px;
  box-shadow: 0 2px 20px rgba(12,37,67,0.07);
  font-size: 1.03rem;
  line-height: 1.82;
  color: #444;
}
.article-content h2 {
  font-size: 1.42rem;
  font-weight: 800;
  color: #0C2543;
  margin: 36px 0 14px;
  padding-top: 10px;
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #13325a;
  margin: 28px 0 10px;
}
.article-content p  { margin-bottom: 18px; }
.article-content ul,
.article-content ol { padding-left: 22px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 10px; max-width: 100%; margin: 18px 0; }
.article-content a  { color: #e82128; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #c91a20; }
.article-content blockquote {
  border-left: 4px solid #e82128;
  background: rgba(232,33,40,0.04);
  padding: 16px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: #444;
  font-style: italic;
}
.article-content strong { color: #0C2543; }

/* ---- Share Bar ---- */

.article-share-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0C2543;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  border: none;
  cursor: pointer;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.share-btn--facebook { background: #1877F2; color: #fff; }
.share-btn--whatsapp { background: #25D366; color: #fff; }
.share-btn--copy     { background: #f0f2f5; color: #333; }
.share-btn--copy.copied { background: #e82128; color: #fff; }

/* ---- Sidebar ---- */
.article-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: #fff;
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 2px 16px rgba(12,37,67,0.07);
}
.sidebar-widget-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0C2543;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sidebar-widget-title i { color: #e82128; }

/* Quote Widget */
.sidebar-quote-widget {
  background: linear-gradient(135deg, #151515 0%, #1f1f1f 100%);
  border-radius: 14px;
  padding: 28px 26px;
  text-align: center;
  box-shadow: 0 6px 28px rgba(12,37,67,0.18);
}
.sidebar-quote-widget h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.sidebar-quote-widget p {
  color: rgba(255,255,255,0.65);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
.sidebar-quote-btn {
  display: block;
  background: #e82128;
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
  margin-bottom: 10px;
}
.sidebar-quote-btn:hover { background: #c91a20; color: #fff; text-decoration: none; }
.sidebar-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color .2s;
}
.sidebar-phone-btn:hover { color: #fff; text-decoration: none; }

/* Recent posts in sidebar */
.sidebar-post-list { list-style: none; padding: 0; margin: 0; }
.sidebar-post-item:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-thumb {
  flex-shrink: 0;
  width: 66px; height: 66px;
  border-radius: 8px;
  overflow: hidden;
}
.sidebar-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.sidebar-post-item:hover .sidebar-post-thumb img { transform: scale(1.07); }
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0C2543;
  line-height: 1.35;
  margin-bottom: 5px;
  text-decoration: none;
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.sidebar-post-title:hover { color: #e82128; text-decoration: none; }
.sidebar-post-date {
  font-size: 0.74rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Related Articles ---- */
.related-articles {
  background: #f8f9fc;
  padding: 60px 0;
  border-top: 1px solid #edf0f4;
}
.related-articles-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0C2543;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-articles-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #e82128, transparent);
  border-radius: 2px;
}

.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 14px rgba(12,37,67,0.07);
  transition: transform .26s, box-shadow .26s;
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(12,37,67,0.13);
  text-decoration: none;
  color: inherit;
}
.related-card-img-wrap { aspect-ratio: 16 / 9; overflow: hidden; }
.related-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.related-card:hover .related-card-img-wrap img { transform: scale(1.06); }
.related-card-body { flex: 1; }
.related-card-date { font-size: 0.75rem; color: #aaa; margin-bottom: 8px; }
.related-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #0C2543;
  line-height: 1.38;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.related-card:hover .related-card-title { color: #e82128; }
.related-card-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e82128;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .article-sidebar { position: static; }
  .article-content { padding: 28px 22px; }
  
}
@media (max-width: 640px) {
  .article-header { padding: 44px 0 36px; }
  .article-header-title { font-size: 1.55rem; }
  .article-content { padding: 22px 18px; }
  
  .article-hero-image-inner { transform: none; border-radius: 0; }
}


/* ---- Table of Contents Widget ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
.toc-widget {
  background: #fdfdfd;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 24px;
  margin-bottom: 30px;
}
.toc-list {
  position: relative;
  padding-left: 10px;
}
.toc-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 14px;
  width: 2px;
  background: #f0f0f0;
}
.toc-item {
  margin-bottom: 14px;
}
.toc-link {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s;
  position: relative;
  z-index: 1;
}
.toc-bullet {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50px;
  background: #fff;
  border: 2px solid #ddd;
  transition: all .2s;
  flex-shrink: 0;
  margin-top: 5px;
}
.toc-link:hover {
  color: #e82128;
  text-decoration: none;
}
.toc-link:hover .toc-bullet {
  border-color: #e82128;
  background: #e82128;
}


/* ---- Article Heading Styles (Design Upgrade) ---- */
.article-content h2,
.article-content h3 {
  position: relative;
  padding-left: 18px;
  margin-top: 3.5rem !important;
  margin-bottom: 1.5rem !important;
  color: #0C2543;
  font-weight: 800;
}
.article-content h2::before,
.article-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5%;
  height: 90%;
  width: 5px;
  background-color: #e82128;
  border-radius: 4px;
}
