/* ==========================================================================
   Blog Details & 2-Column Sticky Layout Styles
   ========================================================================== */

:root {
  --brand-navy: #2e2a65;
  --brand-navy-dark: #1b1842;
  --brand-navy-light: #f0f2ff;
  --text-main: #0a0d14;
  --text-muted: #525866;
  --border-color: #e5e7eb;
}

/* Fix for position: sticky to work properly */
html {
  overflow-x: clip !important;
  overflow-y: visible !important;
  height: auto !important;
}

body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  background-color: #f8fafc;
  font-family: "Montserrat", sans-serif !important;
  color: var(--text-main);
  background-image: none;
  position: relative;
}

.page-wrapper,
.main-wrapper,
.blog-details-section,
.padding-global,
.container-large {
  overflow: visible !important;
}

/* Main Container 2-Column Layout */
.blog-details-section {
  padding: 60px 0 100px;
}

.blog-two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: stretch;
  position: relative;
}

/* --- Left Column: Main Article Body --- */
.article-main-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(10, 13, 20, 0.04);
}

/* Breadcrumbs */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8c95a6;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-breadcrumbs a {
  color: #8c95a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: var(--brand-navy);
}

.article-breadcrumbs i {
  font-size: 0.7rem;
  color: #cbd5e1;
}

/* Article Header */
.article-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #343071;
  line-height: 1.25;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

/* Author & Meta Bar */
.article-author-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f4f9;
  margin-bottom: 28px;
}

.author-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--brand-navy);
  object-fit: cover;
  background: #f1f4f9;
}

.author-meta-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-meta-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-meta-sub span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  background: #0f172a;
  border: 1px solid;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* Article Prose Typography */
.article-prose {
  font-size: 1.03rem;
  line-height: 1.8;
  color: #374151;
}

.article-prose h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 44px 0 18px;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f4f9;
}

.article-prose h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 36px 0 14px;
  line-height: 1.35;
}

.article-prose p {
  margin: 0 0 20px;
}

.article-prose a {
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: underline;
}

.article-prose a:hover {
  color: #1a173e;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-prose li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Author Intro Quote Box */
.author-quote-card {
  background: #f8faff;
  border: 1px solid #dbe4f9;
  border-left: 4px solid var(--brand-navy);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 28px 0;
  font-style: italic;
  color: #1e293b;
}

/* Key Questions / Cards inside Article */
.article-checklist-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.article-checklist-card h4 {
  margin: 0 0 14px;
  color: var(--brand-navy);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-checklist-card ul {
  margin: 0;
  padding-left: 20px;
}

/* Red Flags Warning Box */
.warning-callout-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-left: 4px solid #ef4444;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 30px 0;
}

.warning-callout-box h4 {
  margin: 0 0 12px;
  color: #b91c1c;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-callout-box ul {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
}

.warning-callout-box li {
  margin-bottom: 10px;
}

/* FAQ Items */
.article-faq-wrap {
  margin-top: 36px;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-accordion-item.is-open {
  border-color: var(--brand-navy);
  box-shadow: 0 6px 20px rgba(46, 42, 101, 0.08);
}

.faq-accordion-header {
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f4f9;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-accordion-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--brand-navy);
  color: #ffffff;
}

.faq-accordion-body {
  padding: 0 22px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

/* --- Right Column: Sidebar (All Blogs & Widgets) --- */
.sidebar-sticky-column {
  height: 100%;
  position: relative;
}

.sidebar-sticky-inner {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 4px;
}

.sidebar-sticky-inner::-webkit-scrollbar {
  width: 4px;
}

.sidebar-sticky-inner::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

/* Common Sidebar Card */
.sidebar-widget-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(10, 13, 20, 0.04);
}

.sidebar-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f4f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-widget-title .widget-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--brand-navy-light);
  color: var(--brand-navy);
  padding: 3px 10px;
  border-radius: 20px;
}

/* "All Blogs" List Items in Sidebar */
.sidebar-blogs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-blog-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f4f9;
  transition: transform 0.2s ease;
}

.sidebar-blog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-blog-item:hover {
  transform: translateX(4px);
}

.sidebar-blog-thumb {
  width: 82px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.sidebar-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.sidebar-blog-item:hover .sidebar-blog-thumb img {
  transform: scale(1.1);
}

.sidebar-blog-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-blog-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8c95a6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sidebar-blog-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-blog-item:hover .sidebar-blog-title {
  color: var(--brand-navy);
}

/* View All Blogs Button */
.btn-view-all-blogs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 10px 16px;
  background: var(--brand-navy-light);
  color: var(--brand-navy);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-view-all-blogs:hover {
  background: var(--brand-navy);
  color: #ffffff;
}

/* Quick Inquiry / Advisory Sidebar Card */
.sidebar-advisory-card {
  background: linear-gradient(135deg, #2e2a65 0%, #1a173e 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(46, 42, 101, 0.25);
  position: relative;
  overflow: hidden;
}

.sidebar-advisory-card h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.3;
}

.sidebar-advisory-card p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0 0 20px;
}

.sidebar-advisory-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: #ffffff;
  color: var(--brand-navy);
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.sidebar-advisory-btn:hover {
  background: #f1f4f9;
  transform: translateY(-2px);
}

.sidebar-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.sidebar-call-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Table of Contents Widget */
.sidebar-toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-toc-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-toc-link:hover {
  color: var(--brand-navy);
  background: #f1f4f9;
  padding-left: 12px;
  font-weight: 600;
}

.sidebar-toc-link i {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Responsive */
@media screen and (max-width: 991px) {
  .blog-two-col-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-main-content {
    padding: 30px 22px;
  }

  .sidebar-sticky-column {
    height: auto;
  }

  .sidebar-sticky-inner {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }
}

@media screen and (max-width: 767px) {
  .blog-details-section {
    padding: 36px 0 60px;
  }

  .article-main-content {
    padding: 22px 16px;
  }

  .article-title {
    font-size: 1.6rem;
  }
}
