/* ========================================
   BELMONT QA — ARTICLE STYLING
   Shopify-inspired layout
   Uses existing styles.css
======================================== */

.belmont-post {
  --post-blue: var(--primary, #2563eb);
  --post-navy: var(--navy, #102c59);
  --post-text: var(--text, #334155);
  --post-muted: #64748b;
  --post-border: #e5eaf1;

  background: #fff;
  color: var(--post-text);
  font-family: inherit;
}

.belmont-post *,
.belmont-post *::before,
.belmont-post *::after {
  box-sizing: border-box;
}

.belmont-post__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.belmont-post a {
  text-decoration: none;
}

/* BREADCRUMBS */

.belmont-post__breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 40px 0 65px;
  font-size: 13px;
  color: var(--post-muted);
}

.belmont-post__breadcrumb a {
  color: var(--post-blue);
  font-weight: 600;
}

/* ARTICLE HEADER */

.belmont-post__header {
  max-width: 900px;
  margin: 0 auto 55px;
  text-align: center;
}

.belmont-post__category {
  display: inline-block;
  color: var(--post-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.belmont-post__header h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.09;
  letter-spacing: -0.055em;
  color: var(--post-navy);
  font-weight: 750;
  margin: 0 0 26px;
}

.belmont-post__subtitle {
  max-width: 690px;
  margin: 0 auto 30px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--post-muted);
}

/* AUTHOR */

.belmont-post__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.belmont-post__author img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  padding: 5px;
  border: 1px solid var(--post-border);
  background: #fff;
}

.belmont-post__author div {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 3px;
}

.belmont-post__author strong {
  color: var(--post-navy);
  font-size: 14px;
}

.belmont-post__author span {
  color: var(--post-muted);
  font-size: 13px;
}

/* FEATURED GRAPHIC — NO STOCK IMAGES */

.belmont-post__visual {
  position: relative;
  height: clamp(300px, 42vw, 500px);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 75% 35%,
      rgba(72, 143, 255, 0.28),
      transparent 40%
    ),
    linear-gradient(135deg, #091a35 0%, #123a78 55%, #1f5ec6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 90px;
}

.belmont-post__visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.belmont-post__visual-content > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.8;
}

.belmont-post__visual-title {
  font-size: clamp(120px, 24vw, 280px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.1em;
  color: #fff;
  margin: 8px 0;
}

.belmont-post__visual-title span {
  color: #70adff;
}

.belmont-post__visual-content p {
  color: #dbeafe;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.01em;
  margin: 0;
}

.belmont-post__visual-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 450px;
  height: 450px;
  right: -140px;
  top: -170px;
}

.orbit-two {
  width: 650px;
  height: 650px;
  left: -280px;
  bottom: -400px;
}

/* READING LAYOUT */

.belmont-post__layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  justify-content: center;
  gap: 70px;
  align-items: start;
}

/* TABLE OF CONTENTS */

.belmont-post__toc {
  position: sticky;
  top: 110px;
}

.belmont-post__toc h2 {
  font-size: 14px;
  color: var(--post-navy);
  font-weight: 750;
  margin: 0 0 20px;
}

.belmont-post__toc nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  border-left: 1px solid var(--post-border);
}

.belmont-post__toc a {
  font-size: 13px;
  line-height: 1.4;
  color: var(--post-muted);
  padding-left: 16px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.belmont-post__toc a:hover,
.belmont-post__toc a.active {
  color: var(--post-blue);
  border-left-color: var(--post-blue);
}

/* ARTICLE CONTENT */

.belmont-post__content {
  min-width: 0;
  font-size: 18px;
  line-height: 1.85;
  color: var(--post-text);
}

.belmont-post__content section {
  scroll-margin-top: 110px;
}

.belmont-post__content p {
  margin: 0 0 26px;
}

.belmont-post__intro {
  font-size: 23px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--post-navy);
}

.belmont-post__content h2 {
  font-size: clamp(29px, 3.4vw, 39px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 750;
  color: var(--post-navy);
  margin: 70px 0 25px;
}

.belmont-post__content strong {
  color: var(--post-navy);
}

.belmont-post__content ol,
.belmont-post__content ul {
  padding-left: 25px;
  margin: 25px 0 35px;
}

.belmont-post__content li {
  padding-left: 5px;
  margin-bottom: 16px;
}

/* SUBTLE CALLOUT */

.belmont-post__callout {
  background: #f3f7ff;
  border-left: 3px solid var(--post-blue);
  padding: 24px 28px;
  margin: 35px 0;
  border-radius: 0 5px 5px 0;
}

.belmont-post__callout strong {
  color: var(--post-blue);
  display: block;
  margin-bottom: 8px;
}

.belmont-post__callout p {
  margin: 0;
  font-size: 17px;
}

/* QUOTE */

.belmont-post__quote {
  border-left: 3px solid var(--post-blue);
  padding: 8px 0 8px 25px;
  margin: 42px 0;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: var(--post-navy);
}

/* BOTTOM CTA */

.belmont-post__cta {
  max-width: 1000px;
  margin: 110px auto 0;
  padding: 65px 40px;
  text-align: center;
  background: #f0f5ff;
  border-radius: 8px;
}

.belmont-post__cta > div {
  max-width: 680px;
  margin: 0 auto;
}

.belmont-post__cta > div > span {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.4px;
  color: var(--post-blue);
}

.belmont-post__cta h2 {
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--post-navy);
  margin: 18px 0;
}

.belmont-post__cta p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--post-muted);
  margin: 0 0 27px;
}

.belmont-post__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 15px 24px;
  background: var(--post-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 5px;
  transition: opacity 0.2s;
}

.belmont-post__cta-button:hover {
  opacity: 0.88;
}

.belmont-post__back {
  text-align: center;
  padding: 40px 0 85px;
}

.belmont-post__back a {
  color: var(--post-blue);
  font-size: 14px;
  font-weight: 650;
}

.belmont-post__back a:hover {
  text-decoration: underline;
}

/* TABLET */

@media (max-width: 950px) {
  .belmont-post__layout {
    grid-template-columns: minmax(0, 720px);
    gap: 30px;
  }

  .belmont-post__toc {
    position: static;
  }

  .belmont-post__toc-inner {
    border: 1px solid var(--post-border);
    border-radius: 6px;
    padding: 22px;
  }

  .belmont-post__toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-left: none;
  }

  .belmont-post__toc a {
    border-left: none;
    padding: 0;
    margin: 0;
  }

  .belmont-post__visual {
    margin-bottom: 50px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .belmont-post__container {
    padding: 0 18px;
  }

  .belmont-post__breadcrumb {
    padding: 25px 0 42px;
  }

  .belmont-post__header {
    margin-bottom: 38px;
  }

  .belmont-post__header h1 {
    font-size: clamp(39px, 10vw, 55px);
  }

  .belmont-post__subtitle {
    font-size: 17px;
  }

  .belmont-post__visual {
    height: 280px;
    margin-bottom: 45px;
  }

  .belmont-post__visual-title {
    font-size: 130px;
  }

  .belmont-post__visual-content > span {
    font-size: 10px;
  }

  .belmont-post__visual-content p {
    font-size: 14px;
  }

  .belmont-post__toc nav {
    grid-template-columns: 1fr;
  }

  .belmont-post__content {
    font-size: 16px;
    line-height: 1.8;
  }

  .belmont-post__intro {
    font-size: 20px;
  }

  .belmont-post__content h2 {
    font-size: 29px;
    margin-top: 55px;
  }

  .belmont-post__quote {
    font-size: 23px;
  }

  .belmont-post__cta {
    margin-top: 65px;
    padding: 45px 22px;
  }

  .belmont-post__cta p {
    font-size: 15px;
  }

  .belmont-post__back {
    padding-bottom: 60px;
  }
}

/* Smaller AI article banner */

.belmont-post__visual {
  height: 260px;
  margin-bottom: 55px;
  border-radius: 8px;
}

.belmont-post__visual-title {
  font-size: 110px;
  margin: 5px 0;
  line-height: 1;
}

.belmont-post__visual-content > span {
  font-size: 10px;
  letter-spacing: 2px;
}

.belmont-post__visual-content p {
  font-size: 15px;
}

/* Mobile */

@media (max-width: 600px) {
  .belmont-post__visual {
    height: 190px;
    margin-bottom: 35px;
  }

  .belmont-post__visual-title {
    font-size: 75px;
  }

  .belmont-post__visual-content p {
    font-size: 12px;
  }
}

/* Improve article text readability */

.belmont-post__content {
  color: #475569;
}

.belmont-post__content p,
.belmont-post__content li {
  color: #475569;
  opacity: 1;
}

.belmont-post__content h2 {
  color: #102c59;
}

.belmont-post__intro {
  color: #18345c !important;
}

/* Belmont QA article sharing */

.article-share {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 24px 0 35px;
  font-family: inherit;
}

.article-share__button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border: 1px solid #2869e8;
  border-radius: 6px;
  background: #fff;
  color: #102c59;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.2s ease;
}

.article-share__button:hover,
.article-share__button[aria-expanded="true"] {
  background: #edf4ff;
}

.article-share__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 235px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(16, 44, 89, 0.14);
  z-index: 50;
}

.article-share__menu[hidden] {
  display: none;
}

.article-share__menu a,
.article-share__menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.article-share__menu a:hover,
.article-share__menu button:hover {
  background: #f0f5ff;
  color: #2869e8;
}

.share-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}

/* Share button inside article sidebar */

.belmont-post__toc .article-share {
  justify-content: flex-start;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #e5eaf1;
}

.belmont-post__toc .article-share__button {
  width: 100%;
  justify-content: space-between;
  font-size: 13px;
  padding: 11px 14px;
}

.belmont-post__toc .article-share__menu {
  left: 0;
  right: auto;
  transform: none;
  width: 235px;
  max-width: calc(100vw - 48px);
}

@media (max-width: 950px) {
  .belmont-post__toc .article-share {
    max-width: 250px;
  }
}

/* Ensure sidebar share links are clickable */

.belmont-post__toc {
  position: sticky;
  top: 110px;
  z-index: 20;
}

.belmont-post__toc .article-share {
  position: relative;
  z-index: 30;
}

.belmont-post__toc .article-share__menu {
  position: absolute;
  z-index: 100;
  pointer-events: auto;
}

.belmont-post__toc .article-share__menu a,
.belmont-post__toc .article-share__menu button {
  pointer-events: auto;
  cursor: pointer;
}

/* Fix Belmont Insights search bar */

.insights-page .insights-search,
.insights-page .insights-search:focus,
.insights-page .insights-search:active {
  background: #ffffff !important;
  color: #102c59 !important;
  -webkit-text-fill-color: #102c59;
  border: 1px solid #dce3ed;
  outline: none;
}

.insights-page .insights-search::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.insights-page .insights-search:focus {
  border-color: #2469e8;
  box-shadow: 0 0 0 3px rgba(36, 105, 232, 0.12);
}

.article-card[hidden] {
  display: none !important;
}

/* =====================================
   BELMONT INSIGHTS - TIGHTER SPACING
===================================== */

/* Paragraph spacing */
.belmont-post__content p {
  line-height: 1.65 !important;
  margin: 0 0 12px !important;
}

/* Space between article sections */
.belmont-post__content section {
  margin-bottom: 30px !important;
  padding-bottom: 0 !important;
}

/* Headings */
.belmont-post__content h2 {
  margin-top: 12px !important;
  margin-bottom: 14px !important;
  line-height: 1.3 !important;
}

/* Intro paragraphs */
.belmont-post__content .belmont-post__intro {
  margin-bottom: 14px !important;
}

/* Lists */
.belmont-post__content ol,
.belmont-post__content ul {
  margin-top: 10px !important;
  margin-bottom: 16px !important;
}

.belmont-post__content li {
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

/* Callouts and quotes */
.belmont-post__callout,
.belmont-post__quote {
  margin: 18px 0 !important;
}

/* Remove extra space after last paragraph */
.belmont-post__content section p:last-child {
  margin-bottom: 0 !important;
}
/* =========================================
   BELMONT INSIGHTS - MOBILE FIX
========================================= */

@media (max-width: 768px) {
  /* Reduce header spacing */
  .belmont-post__header {
    margin-bottom: 22px !important;
    padding-bottom: 0 !important;
  }

  /* Tighter introduction */
  .belmont-post__subtitle {
    font-size: 17px !important;
    line-height: 1.55 !important;
    margin: 14px 0 20px !important;
  }

  /* Author details */
  .belmont-post__author {
    margin: 15px 0 20px !important;
  }

  /* Remove excessive image spacing */
  .belmont-post__visual {
    margin: 20px 0 25px !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  .belmont-post__visual img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove unnecessary grid spacing */
  .belmont-post__layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
  }

  /* Compact table of contents */
  .belmont-post__toc {
    position: static !important;
    margin: 0 0 15px !important;
    padding: 0 !important;
  }

  .belmont-post__toc-inner {
    position: static !important;
    padding: 20px !important;
  }

  .belmont-post__toc nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 14px !important;
  }

  .belmont-post__toc nav a {
    margin: 0 !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* Article paragraphs */
  .belmont-post__content p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }

  /* Article sections */
  .belmont-post__content section {
    margin-bottom: 26px !important;
  }

  .belmont-post__content h2 {
    margin: 0 0 12px !important;
  }
}

/* BELMONT INSIGHTS - ARTICLE TITLES */

/* Apply on desktop, tablet and mobile */
.insights-page .articles-grid .article-card .article-card__body h3,
.insights-page .articles-grid .article-card:hover .article-card__body h3 {
  display: block !important;
  color: #102c59 !important;
  -webkit-text-fill-color: #102c59 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* =====================================
   BELMONT INSIGHTS - ARTICLE TYPOGRAPHY
===================================== */

/* Main article title */
.belmont-post__header h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* Subtitle underneath article title */
.belmont-post__subtitle {
  font-size: 18px;
  line-height: 1.55;
  max-width: 680px;
}

/* Main article text */
.belmont-post__content {
  font-size: 16px;
  line-height: 1.65;
}

/* Paragraphs */
.belmont-post__content p {
  font-size: 16px;
  line-height: 1.65 !important;
  margin-bottom: 14px !important;
}

/* Introduction */
.belmont-post__content .belmont-post__intro {
  font-size: 18px;
  line-height: 1.6 !important;
  font-weight: 500;
}

/* Section headings */
.belmont-post__content h2 {
  font-size: 27px;
  line-height: 1.3;
  margin: 28px 0 14px !important;
}

/* List text */
.belmont-post__content li {
  font-size: 16px;
  line-height: 1.6 !important;
}

/* Callout text */
.belmont-post__callout p {
  font-size: 15px;
}

/* Quotes */
.belmont-post__quote {
  font-size: 21px;
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .belmont-post__header h1 {
    font-size: 34px;
  }

  .belmont-post__subtitle {
    font-size: 16px !important;
  }

  .belmont-post__content,
  .belmont-post__content p,
  .belmont-post__content li {
    font-size: 15px !important;
  }

  .belmont-post__content .belmont-post__intro {
    font-size: 17px !important;
  }

  .belmont-post__content h2 {
    font-size: 23px !important;
  }

  .belmont-post__quote {
    font-size: 19px;
  }
}

/* =====================================
   BELMONT INSIGHTS - SMALLER TYPOGRAPHY
   Blog listing page only
===================================== */

/* Main page headings */
.insights-page h1 {
  font-size: clamp(32px, 4vw, 48px) !important;
  line-height: 1.2 !important;
}

.insights-page .insights-section h2 {
  font-size: clamp(25px, 3vw, 32px) !important;
  line-height: 1.3 !important;
}

/* Introductory descriptions */
.insights-page .insights-section__intro {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* Article card titles */
.insights-page .articles-grid .article-card h3 {
  font-size: 19px !important;
  line-height: 1.35 !important;
  margin: 12px 0 !important;
  color: #102c59 !important;
  -webkit-text-fill-color: #102c59 !important;
}

/* Article descriptions */
.insights-page .article-card__body p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
}

/* Category labels */
.insights-page .article-tag {
  font-size: 10px !important;
  letter-spacing: 0.8px;
}

/* Dates and reading times */
.insights-page .article-meta {
  font-size: 12px !important;
}

/* Read article links */
.insights-page .insights-link {
  font-size: 14px !important;
}

/* Filter buttons */
.insights-page .filter-button {
  font-size: 13px !important;
}

/* Search bar */
.insights-page .insights-search {
  font-size: 14px !important;
}

/* MOBILE */
@media (max-width: 768px) {
  .insights-page h1 {
    font-size: 30px !important;
  }

  .insights-page .insights-section h2 {
    font-size: 24px !important;
  }

  .insights-page .articles-grid .article-card h3 {
    font-size: 18px !important;
  }

  .insights-page .article-card__body p {
    font-size: 14px !important;
  }

  .insights-page .filter-button {
    font-size: 12px !important;
  }
}
/* Fix invisible article subheadings and spacing */
.belmont-post__content h3 {
  color: #102c59 !important;
  -webkit-text-fill-color: #102c59 !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.3;
  margin: 20px 0 8px !important;
  padding: 0 !important;
}

.belmont-post__content h3 + p {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  .belmont-post__content h3 {
    font-size: 18px !important;
    margin: 16px 0 6px !important;
  }
}
.insights-page .article-card .article-tag {
  align-self: flex-start;
  width: fit-content;
}
/* Consistent blog card images */
.insights-page .article-card .article-art {
  width: 100%;
  height: 190px !important;
  overflow: hidden;
  padding: 0 !important;
}

.insights-page .article-card .article-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Keep article cards aligned */
.insights-page .article-card {
  display: flex;
  flex-direction: column;
}

.insights-page .article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.insights-page .article-card .article-meta {
  margin-top: auto;
  padding-top: 16px;
}
/* Zoom the AI tools thumbnail only */
.article-card .article-art img[src*="ai-business-banner"] {
  transform: scale(1.8);
  object-fit: contain !important;
  object-position: center;
}

/* Prevent the zoomed image overflowing */
.article-card .article-art {
  overflow: hidden;
}
/* Featured insight image */
.insights-page .featured-art {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.insights-page .featured-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
