/* Premium blog presentation — restyles existing markup, does not add copy */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

body.ix-blog-page {
  font-family: Inter, system-ui, sans-serif;
  color: #334155;
  background: #fff;
}

body.ix-blog-page h1,
body.ix-blog-page h2,
body.ix-blog-page h3,
body.ix-blog-page h4,
body.ix-blog-page .ix-hero h1,
body.ix-blog-page .heading1 {
  font-family: Outfit, Inter, sans-serif;
  letter-spacing: -0.02em;
}

/* Listing */
.ix-listing {
  padding: 7.5rem 0 5rem;
  background: #fff;
}

.ix-listing-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ix-listing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e11d2b;
}

.ix-listing h1,
.ix-listing .heading1 {
  margin: 0.75rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #0f172a;
  text-align: left;
}

.ix-listing-lead {
  max-width: 40rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
}

#blog-list,
.ix-listing #blog-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0;
}

@media (min-width: 768px) {
  #blog-list,
  .ix-listing #blog-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#blog-list .col-md-6,
#blog-list .col-sm-12,
#blog-list article {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 0;
  float: none;
}

#blog-list .card,
.ix-post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.18);
  padding: 0;
  margin: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

#blog-list .card:hover,
.ix-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 43, 0.25);
  box-shadow: 0 18px 40px -20px rgba(225, 29, 43, 0.35);
}

#blog-list .card img, .ix-post-card img, #blog-list img.widhei {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* aspect-ratio: 16 / 10; */
    /* object-fit: cover; */
    object-position: center;
    border-radius: 0;
}

#blog-list .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

#blog-list .card-title,
.ix-post-card .card-title {
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blog-list .card-text,
.ix-post-card .card-text {
  margin-top: 0.6rem;
  font-size: 0.925rem;
  line-height: 1.65;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

#blog-list .btn,
.ix-post-card .btn,
.red-butn {
  align-self: flex-start;
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  background: #e11d2b !important;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  box-shadow: 0 8px 20px -10px rgba(225, 29, 43, 0.55);
  text-decoration: none !important;
}

#blog-list .btn:hover {
  background: #bd1520 !important;
}

.page-margin,
.pagi-removel {
  display: none !important;
}

.subbread,
.cg__welcomeSection {
  display: none !important;
}

/* Article hero */
body.ix-blog-page {
    padding-top: 4.15rem;
}

.ix-listing {
  padding-top: 2.5rem;
}

.ix-hero,
.tms-hero,
.hero-section {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 10%, rgba(220, 20, 20, 0.28), transparent 55%),
    #0a0a0a !important;
}

.ix-hero {
  padding: 3.5rem 0 2.75rem !important;
}

.ix-hero::before,
.tms-hero::before,
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  opacity: 0.4 !important;
}

.ix-hero > *,
.tms-hero > *,
.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-section .hero-title,
.tms-hero h1 {
  color: #fff !important;
}

.hero-section .meta-info,
.hero-section .meta-item,
.hero-section .meta-item span,
.hero-section p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.ix-hero h1 {
  color: #fff !important;
  font-weight: 700;
}

.ix-hero-subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
}

.ix-hero-meta .tag {
  background: #fff !important;
  color: #e11d2b !important;
}

.ix-breadcrumb,
.tms-breadcrumb {
  background: #f7f8fc !important;
  padding: 12px 0 !important;
  font-size: 13px !important;
  color: #6c6c8a !important;
  border-bottom: 1px solid #e2e4ef !important;
  margin-top: 0 !important;
}

.ix-breadcrumb a,
.tms-breadcrumb a {
  color: #0a2a5e !important;
  text-decoration: none !important;
}

.ix-breadcrumb a:hover,
.tms-breadcrumb a:hover {
  text-decoration: underline !important;
}

.ix-breadcrumb .sep,
.tms-breadcrumb .sep {
  margin: 0 7px !important;
  color: #aaa !important;
}

.ix-breadcrumb .container,
.tms-breadcrumb .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ix-blog-layout {
  padding: 3.25rem 0 5rem !important;
  background: #fff;
}

.ix-article h2,
.article-content h2,
.explainer-title {
  color: #0f172a !important;
  font-weight: 700;
}

.ix-article p,
.article-content p,
.tms-article p {
  color: #475569;
  line-height: 1.8;
}

.ix-article a,
.article-content a {
  color: #e11d2b;
}

.ix-featured-img img,
.blogMainimg img {
  border-radius: 1rem;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
}

.ix-answer,
.ix-callout,
.ix-callout {
  border-radius: 1rem !important;
  border-color: rgba(225, 29, 43, 0.18) !important;
}

.ix-toc,
.table-of-contents {
  border-radius: 1rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.25);
}

.ix-toc h5,
.toc-title {
  color: #e11d2b !important;
}

.ix-toc h5 i {
  color: #000 !important;
}

.ix-sidebar-card {
  background: #dc1414 !important;
}

.ix-cta-block,
.tms-cta-block,
.cta-card {
  background: #dc1414 !important;
}

.ix-cta-block p,
.tms-cta-block p,
.cta-description {
  color: #fff !important;
}

.ix-author-strip,
.tms-author-strip,
.author-section {
  display: flex !important;
  flex-direction: row;
  align-items: center !important;
  padding-left: 16px;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ix-author-avatar,
.tms-author-avatar,
.author-avatar {
  align-self: center !important;
  overflow: hidden;
  display: grid !important;
  place-items: center;
}

.ix-author-avatar i,
.ix-author-avatar i::before,
.tms-author-avatar i,
.tms-author-avatar i::before,
.author-avatar i,
.author-avatar i::before {
  display: block;
  line-height: 1;
  text-align: center;
}

.tms-hero {
  margin-top: 0;
}

/* FAQ / accordion polish */
.ix-accordion-btn,
.faq-item button {
  border-radius: 0.75rem;
}

/* Keep older bootstrap nav from showing under chrome */
body.ix-blog-page > .header,
body.ix-blog-page header.header {
  display: none;
}

body.ix-blog-page > footer#footer,
body.ix-blog-page footer#footer {
  display: none;
}

/* Detail pages — same layout as nvocc-tms-vs-forwarder-tms */
.ix-hero,
.tms-hero,
.hero-section {
  padding: 3.5rem 0 2.75rem !important;
}

.ix-hero .container-xl,
.ix-hero .container,
.tms-hero .container,
.hero-section .container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ix-hero-meta,
.tms-hero-meta,
.hero-section .meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ix-hero-meta span,
.tms-hero-meta span {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 13px;
}

.ix-hero-meta .tag,
.tms-hero-meta .tag {
  background: #fff !important;
  color: #dc1414 !important;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 30px;
}

.ix-hero h1,
.tms-hero h1,
.hero-section .hero-title {
  color: #fff !important;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.22;
  max-width: 820px;
}

.ix-hero-subtitle,
.tms-hero-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 17px;
  max-width: 680px;
  line-height: 1.7;
}

.ix-blog-layout {
  padding: 3.25rem 0 5rem !important;
  background: #fff;
}

.ix-blog-layout .container-xl {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ix-blog-layout .row,
.ix-blog-layout .row.g-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.ix-blog-layout .col-lg-8 {
  flex: 1 1 0;
  min-width: 0;
  max-width: 780px;
}

.ix-blog-layout .col-lg-4 {
  flex: 0 0 300px;
  width: 300px;
}

.blog-layout-wrapper {
  display: flex !important;
  gap: 40px;
  max-width: 80rem !important;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.blog-main-content {
  flex: 1;
  min-width: 0;
  max-width: 780px;
}

aside.table-of-contents {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.ix-sidebar {
  position: sticky;
  top: 90px;
}

.ix-featured-img {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.ix-featured-img img {
  width: 100%;
  display: block;
  border-radius: 1rem;
}

.ix-cta-block,
.tms-cta-block,
.cta-card {
  padding: 44px 40px !important;
  text-align: center;
  border-radius: 16px !important;
  margin: 50px 0;
}

.ix-cta-block h3,
.ix-cta-block h2,
.tms-cta-block h3,
.cta-title {
  color: #fff !important;
}

.ix-btn-sm,
.ix-cta-block .tms-btn,
.ix-sidebar-card .ix-btn-sm,
.tms-sidebar-card .tms-btn-sm {
  display: inline-block;
  background: #fff !important;
  color: #dc1414 !important;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none !important;
}

.tms-sidebar-card {
  background: #dc1414 !important;
  border-radius: 0.75rem;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
}

.tms-sidebar-card h4,
.ix-sidebar-card h5 {
  color: #fff !important;
}

.tms-sidebar-card p,
.ix-sidebar-card p {
  color: #fff !important;
}

.tms-toc-extra {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  padding: 22px;
  margin-bottom: 24px;
}

.tms-toc-extra h4 {
  color: #e11d2b !important;
}

@media (max-width: 991px) {
  .ix-blog-layout .row,
  .ix-blog-layout .row.g-5,
  .blog-layout-wrapper {
    flex-direction: column;
  }

  .ix-blog-layout .col-lg-4,
  .ix-blog-layout .col-lg-8,
  aside.table-of-contents {
    width: 100%;
    max-width: none;
    flex: none;
  }
}

/* Force every detail template to match first article (overrides Bootstrap + page CSS) */
body.ix-blog-page .ix-hero,
body.ix-blog-page .tms-hero,
body.ix-blog-page .hero-section {
  position: relative !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  padding: 3.5rem 0 2.75rem !important;
  background:
    radial-gradient(ellipse at 75% 10%, rgba(220, 20, 20, 0.28), transparent 55%),
    #0a0a0a !important;
}

body.ix-blog-page .hero-section .hero-title,
body.ix-blog-page .hero-section h1,
body.ix-blog-page .tms-hero h1,
body.ix-blog-page .tms-hero h1.hero-title,
body.ix-blog-page .ix-hero h1 {
  color: #fff !important;
  font-size: clamp(26px, 4vw, 44px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
}

body.ix-blog-page .hero-section .meta-info,
body.ix-blog-page .hero-section .meta-item,
body.ix-blog-page .hero-section .meta-item span,
body.ix-blog-page .hero-section .hero-content > p,
body.ix-blog-page .hero-section .hero-content > p a {
  color: rgba(255, 255, 255, 0.86) !important;
}

body.ix-blog-page .hero-section .hero-content > p a {
  color: #ffc9ce !important;
}

body.ix-blog-page .explainer-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #fff !important;
}

body.ix-blog-page .article-content {
  background: #fff !important;
}

body.ix-blog-page .blog-layout-wrapper {
  display: flex !important;
  align-items: flex-start !important;
  gap: 40px !important;
  max-width: 80rem !important;
  margin: 0 auto !important;
  padding: 3.25rem 1.25rem 5rem !important;
}

body.ix-blog-page .blog-main-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 780px !important;
}

body.ix-blog-page aside.table-of-contents {
  width: 300px !important;
  max-width: 300px !important;
  flex: 0 0 300px !important;
  position: sticky !important;
  top: 90px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

body.ix-blog-page .toc-title {
  color: #dc1414 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
}

body.ix-blog-page .cta-card,
body.ix-blog-page .ix-cta-block,
body.ix-blog-page .tms-cta-block {
  background: #dc1414 !important;
}

body.ix-blog-page .cta-title,
body.ix-blog-page .cta-description,
body.ix-blog-page .ix-cta-block p,
body.ix-blog-page .ix-cta-block h3,
body.ix-blog-page .tms-cta-block p,
body.ix-blog-page .tms-cta-block h3 {
  color: #fff !important;
}

body.ix-blog-page .cta-button {
  background: #fff !important;
  color: #dc1414 !important;
}

body.ix-blog-page .ix-blog-layout .row,
body.ix-blog-page .ix-detail-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 2.5rem !important;
  margin: 0 !important;
}

body.ix-blog-page .ix-blog-layout .col-lg-8,
body.ix-blog-page .ix-detail-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 780px !important;
  width: auto !important;
  padding: 0 !important;
  float: none !important;
}

body.ix-blog-page .ix-blog-layout .col-lg-4,
body.ix-blog-page .ix-detail-side {
  flex: 0 0 300px !important;
  width: 300px !important;
  max-width: 300px !important;
  padding: 0 !important;
  float: none !important;
}

body.ix-blog-page .container-xl {
  width: 100%;
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

@media (max-width: 991px) {
  body.ix-blog-page .blog-layout-wrapper,
  body.ix-blog-page .ix-blog-layout .row,
  body.ix-blog-page .ix-detail-grid {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  body.ix-blog-page .blog-main-content,
  body.ix-blog-page aside.table-of-contents,
  body.ix-blog-page .ix-blog-layout .col-lg-8,
  body.ix-blog-page .ix-blog-layout .col-lg-4,
  body.ix-blog-page .ix-detail-main,
  body.ix-blog-page .ix-detail-side {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
  }
}

/* Sidebar TOC — match first article, override Bootstrap lists */
body.ix-blog-page .ix-sidebar {
  position: sticky;
  top: 90px;
  width: 100%;
}

body.ix-blog-page .ix-toc,
body.ix-blog-page .tms-toc-extra,
body.ix-blog-page aside.table-of-contents .toc-title {
  box-sizing: border-box;
}

body.ix-blog-page .ix-toc,
body.ix-blog-page .tms-toc-extra {
  background: #f8f8f8 !important;
  border: 1px solid #e2e4ef !important;
  border-radius: 10px !important;
  padding: 22px !important;
  margin: 0 0 24px !important;
  overflow: hidden;
}

body.ix-blog-page .ix-toc h5,
body.ix-blog-page .ix-toc .toc-title,
body.ix-blog-page .tms-toc-extra h4,
body.ix-blog-page .toc-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #dc1414 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.ix-blog-page .ix-toc h5 i {
  color: #000 !important;
  font-size: 14px !important;
}

body.ix-blog-page .ix-toc ul,
body.ix-blog-page .ix-toc ul.toc-list,
body.ix-blog-page .tms-toc-extra ul,
body.ix-blog-page .toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.ix-blog-page .ix-toc ul li,
body.ix-blog-page .tms-toc-extra li,
body.ix-blog-page .toc-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e2e4ef !important;
}

body.ix-blog-page .ix-toc ul li:last-child,
body.ix-blog-page .tms-toc-extra li:last-child,
body.ix-blog-page .toc-list li:last-child {
  border-bottom: none !important;
}

body.ix-blog-page .ix-toc ul li a,
body.ix-blog-page .tms-toc-extra a,
body.ix-blog-page .toc-list a {
  display: block !important;
  padding: 9px 0 !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: #3d3d55 !important;
  text-decoration: none !important;
  border: none !important;
  border-left: none !important;
}

body.ix-blog-page .ix-toc ul li a:hover,
body.ix-blog-page .tms-toc-extra a:hover,
body.ix-blog-page .toc-list a:hover {
  color: #dc1414 !important;
  padding-left: 5px !important;
}

body.ix-blog-page .ix-toc ul ul {
  padding-left: 12px !important;
}

body.ix-blog-page .ix-sidebar-card {
  background: #dc1414 !important;
  border-radius: 10px !important;
  padding: 24px 20px !important;
  text-align: center !important;
  margin-bottom: 24px !important;
}

body.ix-blog-page .ix-sidebar-card h5,
body.ix-blog-page .ix-sidebar-card p {
  color: #fff !important;
}

body.ix-blog-page .ix-btn-sm {
  display: inline-block !important;
  background: #fff !important;
  color: #dc1414 !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
}
