:root {
  --primary-blue: #041b31;
  --accent-red: #e31e24;
  --text-dark: #333333;
  --text-grey: #333333;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "DM Sans", sans-serif;
}

#detailBody {
  background: #fdfdfd;
  font-family: var(--font-body);
  color: var(--text-dark);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero-banner {
  background-color: var(--primary-blue);
  background-size: cover;
 
  background-position: center;
  position: relative;
  
  padding: 120px 0 80px;
  color: white;
  display: flex;
  align-items: center; /* Ensures content stays centered vertically if height changes */
}

#dynamicHero{
  background: #000;
}
/* The Overlay */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* Overlay sits at level 1 */
  background: linear-gradient(
    to right,
    rgba(10, 20, 35, 0.95) 0%,
    rgb(41 55 74 / 85%) 40%,
    rgb(255 255 255 / 15%) 100%
      /* Slightly lowered the end opacity for better image visibility */
  );
}

/* Keep Content Top - Target the content wrapper */
.hero-inner {
  position: relative;
  z-index: 10; 
  /* Higher than the ::before overlay */
}

.breadcrumb-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

#heroTitle {
  font-family: var(--font-heading) !important;
  font-size: clamp(34px, 5vw, 54px) !important;
  color: var(--accent-red) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  margin-bottom: 20px !important;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255);
  line-height: 1.7;
  max-width: 800px;
}

.hero-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255);
  margin-top: 30px;
}
.hero-meta span {
  margin: 0 10px;
  opacity: 0.3;
}

/* ── Article Content ──────────────────────────────────────────── */
#mainArticle {
  background: #fff;
  padding-right: 20px;
}

#mainArticle .article-meta {
  font-size: 12px;
  color: var(--accent-red);
  font-weight: 800;
  margin-bottom: 20px;
}

#mainArticle .article-title {
  font-family: var(--font-heading) !important;
      font-size: 29px !important;
    font-weight: 500;
  color: #111 !important;
  margin-bottom: 30px !important;
}

#mainArticle p {
 font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-grey);
  margin-bottom: 25px;
}

#mainArticle h3 {
  font-family: var(--font-heading) !important;
  font-size: 25px !important;
  color: #111 !important;
  margin: 25px 0 20px !important;
}

#mainArticle .article-quote {
  background: var(--primary-blue) !important;
  border-top: 4px solid var(--accent-red) !important;
  padding: 45px !important;
  margin: 40px 0 !important;
}
#mainArticle .article-quote p {
  color: #fff !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}
#mainArticle .quote-author {
  color: var(--accent-red) !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  margin-top: 20px !important;
  display: block;
}
.article-body  h2{
  font-family: var(--font-heading);
  font-size: 28px;
      color: #111 !important;
}

/*.article-body  img{*/
/*    width:300px;*/
/*    height:200px;*/
/*}*/
#mainArticle * {
    max-width: 100%;
    box-sizing: border-box;
}

.article-body table, .article-body th, .article-body td { border: 1px solid black; margin-bottom:20px;} .article-body td { padding: 10px 12px; text-align: left; vertical-align: top; }

/* ── Sidebar (Fixed/Sticky) ───────────────────────────────────── */
.sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.sidebar-widget {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 30px;
  margin-bottom: 20px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #111;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

/* TOC List */
.toc-list {
  list-style: none;
  padding: 0;
}
.toc-list li {
  margin-bottom: 12px;
}
.toc-list a {
  text-decoration: none;
  color: var(--text-grey);
  font-size: 15.5px;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: 0.3s;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--accent-red);
  border-left-color: var(--accent-red);
  font-weight: 600;
}

/* Help Widget */
.help-widget {
  background: var(--accent-red);
  border: none;
  color: white;
  padding: 40px 30px;
}
.help-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 15px;
}
.help-text {
     font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
}
.btn-help-outline {
  display: block;
  width: 100%;
  text-align: center;
  border: 1.5px solid #fff;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: 0.3s;
}
.btn-help-outline:hover {
  background: #fff;
  color: var(--accent-red);
}

/* Practice List */
.practice-list {
  list-style: none;
  padding: 0;
}
.practice-list li {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
 font-size: 15.5px;
  color: var(--text-grey);
}
.practice-list li:last-child {
  border-bottom: none;
}

/* ── Related Section ──────────────────────────────────────────── */
.related-section {
  margin-top: 80px;
  border-top: 1px solid #eee;
  padding-top: 60px;
}
.related-section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.rel-card {
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.rel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.rel-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.rel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rel-card-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(227, 30, 36, 0.85);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 6px 15px;
  letter-spacing: 1px;
}

.rel-card-body {
  padding: 25px;
}
.rel-card-date {
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.rel-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.rel-card-excerpt {
  font-size: 13px;
  color: var(--text-grey);
  line-height: 1.6;
  margin-bottom: 20px;
}
.rel-card-link {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {
  .sidebar-sticky {
    position: relative;
    top: 0;
    margin-top: 50px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 30px !important;
  }


  /* ── FIX: Editor-style article rendering ─────────────────────── */

.article-body {
  font-family: var(--font-body);
  color: var(--text-grey);
  font-size: 16px;
  line-height: 1.8;
}

/* Paragraphs */
.article-body p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
}

/* Headings */
.article-body h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  margin: 25px 0 15px;
  color: #111;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 22px 0 12px;
  color: #111;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin: 20px 0 10px;
  color: #111;
}

/* Bold / Italic fix */
.article-body strong,
.article-body b {
  font-weight: 700;
  color: #111;
}

.article-body em,
.article-body i {
  font-style: italic;
}

/* Lists */
.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-body li {
  margin-bottom: 6px;
}

/* Images */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

#mainArticle ul,
#mainArticle ol,
#mainArticle li,
.article-body ul,
.article-body ol,
.article-body li {
    font-size: 15.5px !important;
    line-height: 1.9 !important;
    color: var(--text-grey);
}

/* Blockquote (editor style) */
.article-body blockquote {
  background: var(--primary-blue);
  border-left: 4px solid var(--accent-red);
  padding: 30px;
  margin: 30px 0;
  color: #fff;
  font-size: 18px;
}

/* Links */
.article-body a {
  color: var(--accent-red);
  text-decoration: underline;
}
}


.article-body ul li{
  font-size: 15.5px !important;
}
.article-body ol li{
  font-size: 15.5px !important;
}

.article-body ol[type="a"] {
  list-style-type: lower-alpha !important;
  padding-left: 30px !important;
  margin-bottom: 18px !important;
}

.article-body ol[type="a"] > li {
  list-style-type: lower-alpha !important;
  display: list-item !important;
  margin-bottom: 8px !important;
}