/* Page spacing for blogs.html */
.blogs-page {
  --Primary-Base: #881550;
  --Ink-Darker: #202325;
  --Ink-Base: #303437;
  --Ink-Light: #6c757d;
  --fs-h2: 32px;
  --fs-body: 14px;
  padding-top: 120px;
  overflow: visible !important;
}

.blogs-page .container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.blogs-page .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.blogs-page .row > * {
  padding-right: 12px;
  padding-left: 12px;
}

.blogs-page .align-items-center {
  align-items: center;
}

.blogs-page .col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.blogs-page .col-md-4,
.blogs-page .col-md-6,
.blogs-page .col-md-12,
.blogs-page .col-lg-3,
.blogs-page .col-lg-4,
.blogs-page .col-lg-6,
.blogs-page .col-lg-9 {
  flex: 0 0 auto;
  width: 100%;
}

.blogs-page .d-none {
  display: none;
}

.blogs-page .img-fluid {
  max-width: 100%;
  height: auto;
}

.blogs-page .pt-0 {
  padding-top: 0 !important;
}

.blogs-page .py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.blogs-page .bg-light {
  background-color: #f8f9fa !important;
}

.blogs-page .mb-3 {
  margin-bottom: 1rem !important;
}

.blogs-page .mb-4 {
  margin-bottom: 1.5rem !important;
}

.blogs-page .g-4 {
  row-gap: 1.5rem;
}

@media (min-width: 768px) {
  .blogs-page .col-md-4 {
    width: 33.333333%;
  }

  .blogs-page .col-md-6 {
    width: 50%;
  }

  .blogs-page .col-md-12 {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .blogs-page .col-lg-3 {
    width: 25%;
  }

  .blogs-page .col-lg-4 {
    width: 33.333333%;
  }

  .blogs-page .col-lg-6 {
    width: 50%;
  }

  .blogs-page .col-lg-9 {
    width: 75%;
  }

  .blogs-page .d-lg-block {
    display: block;
    margin-top: 20px;
  }
}

/* Highlight Case Study Section */
.case-study-highlight-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.case-study-highlight-section .case-study-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: transparent;
}

.case-study-highlight-section .case-study-image-wrapper {
  flex: 1.2;
  max-width: 55%;
  aspect-ratio: 604 / 540;
  border-radius: 20px;
  overflow: hidden;
}

.case-study-highlight-section .case-study-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s ease;
}

.case-study-highlight-section .case-study-card:hover .case-study-image-wrapper img {
  transform: scale(1.02);
}

.case-study-highlight-section .case-study-content {
  flex: 1;
}

.case-study-highlight-section .case-study-category {
  font-size: 14px;
  font-weight: 600;
  color: var(--Primary-Base, #881550);
  text-transform: capitalize;
  margin-bottom: 12px;
}

.case-study-highlight-section .tag-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid var(--Primary-Base, #881550);
  color: var(--Primary-Base, #881550);
  font-size: 13px;
  font-weight: 500;
  border-radius: 30px;
  margin-right: 10px;
  background: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.case-study-highlight-section .tag-badge:hover {
  background: var(--Primary-Base, #881550);
  color: #ffffff;
}

.case-study-highlight-section .case-study-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink-darker, #202325);
  margin-bottom: 16px;
}

.case-study-highlight-section .case-study-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-study-highlight-section .case-study-title a:hover {
  color: var(--Primary-Base, #881550);
}

.case-study-highlight-section .case-study-desc {
  font-size: var(--fs-body, 14px);
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 20px;
}

.case-study-highlight-section .case-study-date {
  font-size: 13px;
  color: #8292a6;
}

/* Sidebar lists inside Highlight Section */
.highlight-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-article-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.sidebar-article-item .img-mini {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-article-item .img-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar-article-item:hover .img-mini img {
  transform: scale(1.05);
}

.sidebar-article-content {
  flex: 1;
}

.sidebar-article-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--Primary-Base, #881550);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sidebar-article-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink-darker, #202325);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-title a {
  color: inherit;
}

.sidebar-article-title a:hover {
  color: var(--Primary-Base, #881550);
}

.sidebar-article-date {
  font-size: 11px;
  color: #8292a6;
}

/* Article Card Grid */
.articles-grid-section {
  padding-bottom: 80px;
  background-color: #ffffff;
}

/* Resource Tabs and Pagination Styles */
.resource-tabs-section {
  padding: 0px 0 40px 0;
  background-color: #ffffff;
}

.resource-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-bottom: 40px;
  border-bottom: 2px solid #eef1f4;
  padding-bottom: 0;
}

.tab-trigger {
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  color: #8292a6;
  user-select: none;
  padding: 12px 24px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-trigger:hover {
  color: var(--Primary-Base, #881550);
}

.tab-trigger.active {
  color: var(--Primary-Base, #881550);
  border-bottom-color: var(--Primary-Base, #881550);
}

/* Dropdown Filters */
.filters-row {
  margin-bottom: 40px;
}

.case-studies-filter-wrapper {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-select-wrapper {
  position: relative;
  min-width: 200px;
}

.filter-select {
  width: 100%;
  padding: 10px 40px 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-dark, #303437);
  background-color: #ffffff;
  border: 1.5px solid #c1c4c6;
  border-radius: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-base);
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--Primary-Base, #881550);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.select-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  color: #8292a6;
}

.filter-select:focus+.select-chevron svg {
  transform: rotate(180deg);
}

.select-chevron svg {
  transition: transform 0.3s ease;
}

/* Pagination Custom */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.pagination-custom {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
}

.pagination-custom .page-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e3e5e6;
  color: var(--c-ink-dark, #303437);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.pagination-custom .page-item a:hover {
  border-color: var(--Primary-Base, #881550);
  color: var(--Primary-Base, #881550);
  background-color: rgba(136, 21, 80, 0.05);
}

.pagination-custom .page-item.active a {
  background-color: var(--Primary-Base, #881550);
  border-color: var(--Primary-Base, #881550);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(136, 21, 80, 0.2);
}

.pagination-custom .page-item.disabled a {
  color: #c1c4c6;
  border-color: #e3e5e6;
  background-color: #f7f9fa;
  pointer-events: none;
}

.pagination-custom .page-item.prev a,
.pagination-custom .page-item.next a {
  width: auto;
  padding: 0 16px;
  border-radius: 20px;
  gap: 6px;
}

.resources-pagination {
  margin-top: 48px;
}

.resources-pagination nav {
  display: flex;
  justify-content: center;
}

.resources-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.resources-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dfe4ea;
  border-radius: 50%;
  background: #ffffff;
  color: var(--Ink-Base, #303437);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.resources-pagination .page-item:not(.disabled) .page-link:hover {
  border-color: var(--Primary-Base, #881550);
  color: var(--Primary-Base, #881550);
  box-shadow: 0 8px 18px rgba(136, 21, 80, 0.12);
}

.resources-pagination .page-item.active .page-link {
  border-color: var(--Primary-Base, #881550);
  background: var(--Primary-Base, #881550);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(136, 21, 80, 0.22);
}

.resources-pagination .page-item.disabled .page-link {
  color: #c8d0da;
  background: #f8fafc;
  cursor: default;
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .case-study-highlight-section {
    padding: 40px 16px;
  }

  .case-study-highlight-section .case-study-card {
    flex-direction: column;
    gap: 24px;
  }

  .case-study-highlight-section .case-study-image-wrapper {
    max-width: 100%;
  }

  .case-study-highlight-section .case-study-title {
    font-size: 22px;
  }

  .resource-tabs {
    gap: 30px;
  }

  .tab-trigger {
    font-size: 18px;
    padding: 10px 16px;
  }
}

@media (max-width: 767px) {
  .case-study-highlight-section {
    padding-top: 20px;
  }

  .resource-tabs-section {
    padding: 30px 16px;
  }

  .resource-tabs {
    gap: 16px;
  }

  .tab-trigger {
    font-size: 16px;
    padding: 8px 12px;
  }

  .case-studies-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select-wrapper {
    width: 100%;
  }
}

/* ==========================================================================
   CASE STUDY / BLOG DETAIL STYLES
   ========================================================================== */
.case-study-hero {
  position: relative;
  padding: 0px 0 80px 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(136, 21, 80, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden;
}

.case-study-hero__content {
  padding-right: 40px;
}

.case-study-hero__badge {
  font-size: 14px;
  font-weight: 700;
  color: var(--Primary-Base, #881550);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-study-hero__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 48px;
  color: var(--Ink-Darker, #131214);
  margin-bottom: 24px;
}

.case-study-hero__description {
  font-size: var(--fs-body);
  line-height: 26px;
  color: var(--Ink-Base, #303437);
  margin-bottom: 24px;
}

.case-study-hero__date {
  font-size: 14px;
  color: var(--Ink-Light, #6C757D);
  font-weight: 500;
}

.case-study-hero__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-study-hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
  .case-study-hero {
    padding: 0px 0 60px 0;
  }

  .case-study-hero__content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: left;
  }

  .case-study-hero__title {
    font-size: 30px;
    line-height: 40px;
  }
}

/* Case Study Content Section */
.case-study-detail-content-section {
  padding: 60px 0 100px 0;
  background-color: #ffffff;
}

.case-study-info-card {
  background-color: #f5f7f9;
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.info-group {
  margin-bottom: 20px;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--Primary-Base, #881550);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.info-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--Ink-Darker, #131214);
  margin-bottom: 16px;
  line-height: 34px;
}

.info-desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--Ink-Base, #303437);
  margin-bottom: 0;
}

.info-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.info-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 26px;
  color: var(--Ink-Base, #303437);
  margin-bottom: 12px;
}

.info-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  top: 0;
  color: var(--Ink-Base, #303437);
  font-weight: bold;
  font-size: 18px;
}

.info-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .case-study-detail-content-section {
    padding: 40px 0 60px 0;
  }

  .case-study-info-card {
    padding: 24px;
    border-radius: 16px;
  }

  .info-title {
    font-size: 20px;
    line-height: 28px;
  }

  .info-group {
    margin-bottom: 28px;
  }
}

/* Case Study Main Detail Section */
.case-study-main-detail-section {
  padding: 60px 0 100px 0;
  background-color: #ffffff;
}

.case-study-toc-wrapper {
  position: sticky;
  top: 120px;
  /* Offset for floating header */
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #eef1f4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.case-study-toc {
  background-color: #ffffff;
}

.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--Primary-Base, #881550);
  text-transform: capitalize;
  margin-bottom: 10px;
  padding-left: 12px;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc-sub-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.toc-item-h1>.toc-link {
  margin-left: 0;
  font-weight: 700;
}

.toc-item-h2>.toc-link {
  margin-left: 0;
  padding-left: 20px;
}

.toc-item-h3>.toc-link {
  font-size: 13px;
  margin-left: 0;
  padding-left: 32px;
  color: #000;
}

.toc-item-h4>.toc-link {
  font-size: 13px;
  margin-left: 0;
  padding-left: 44px;
  color: #000;
}

.toc-link:hover {
  color: var(--Primary-Base, #881550);
  background-color: rgba(136, 21, 80, 0.03);
}

.toc-link.active {
  color: var(--Primary-Base, #881550);
  font-weight: 700;
  background-color: rgba(136, 21, 80, 0.1);
  /* 10% opacity Rikkei Red background */
}

.case-study-article {
  padding-top: 20px;
  padding-left: 20px;
}

.case-study-article > *:first-child {
  margin-top: 0;
}

.article-section {
  margin-bottom: 60px;
}

.article-section:last-child {
  margin-bottom: 0;
}

.article-section h2,
.case-study-article h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--Ink-Darker, #131214);
  margin-top: 60px;
  margin-bottom: 20px;
  line-height: 38px;
  border-bottom: 1px solid #f1f3f5;
  padding-bottom: 12px;
  scroll-margin-top: 150px;
  /* Offset for scroll target */
}

.article-section h2:first-child,
.case-study-article h2:first-child {
  margin-top: 30px;
}

.article-section h3,
.case-study-article h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--Ink-Darker, #131214);
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 28px;
  scroll-margin-top: 150px;
  /* Offset for scroll target */
}

.case-study-article h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--Ink-Darker, #131214);
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 26px;
  scroll-margin-top: 150px;
}

.article-section p,
.article-section > div,
.case-study-article p,
.case-study-article > div {
  font-size: 16px;
  line-height: 30px;
  color: var(--Ink-Base, #303437);
  margin-bottom: 20px;
}

.article-section p br,
.article-section > div br,
.case-study-article p br,
.case-study-article > div br,
.case-study-article li br {
  display: block;
  content: "";
  margin-top: 6px;
}

.case-study-article [data-lark-html-role="root"] > div.ace-line:not(:has(> img:only-child)) {
  font-size: 16px;
  line-height: 30px;
  color: var(--Ink-Base, #303437);
  margin-bottom: 14px;
}

.case-study-article [data-lark-html-role="root"] > div.ace-line:last-child {
  margin-bottom: 0;
}

.case-study-article p:empty,
.case-study-article p:has(> br:only-child),
.case-study-article > div:empty,
.case-study-article > div:has(> br:only-child) {
  display: none;
}

.article-section ul,
.article-section ol,
.case-study-article ul,
.case-study-article ol {
  margin-top: 8px;
  margin-bottom: 24px;
  padding-left: 26px;
}

.article-section ul,
.case-study-article ul {
  list-style: disc;
}

.article-section ol,
.case-study-article ol {
  list-style: decimal;
}

.article-section ul ul,
.case-study-article ul ul {
  list-style: circle;
}

.article-section ol ol,
.case-study-article ol ol {
  list-style: lower-alpha;
}

.article-section ul li,
.article-section ol li,
.case-study-article ul li,
.case-study-article ol li {
  font-size: 16px;
  line-height: 28px;
  color: var(--Ink-Base, #303437);
  margin-bottom: 8px;
  padding-left: 2px;
}

.article-section ul li::marker,
.article-section ol li::marker,
.case-study-article ul li::marker,
.case-study-article ol li::marker {
  color: #7a8794;
  font-size: 0.8em;
  font-weight: 600;
}

.article-section li strong,
.case-study-article li strong {
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
}

.article-section li > div,
.case-study-article li > div {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

.article-section a,
.case-study-article a {
  color: var(--Primary-Base, #881550);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-section a:hover,
.case-study-article a:hover {
  color: #a91f24;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-section a strong,
.article-section a em,
.case-study-article a strong,
.case-study-article a em {
  color: inherit;
}

.case-study-article img,
.case-study-article figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 28px 0;
}

.case-study-article figure {
  margin: 32px 0;
}

.case-study-article figcaption {
  margin-top: -16px;
  font-size: 13px;
  line-height: 20px;
  color: #8292a6;
  text-align: center;
}

.case-study-article blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid #ff5a5f;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(48, 52, 55, 0.08);
  font-size: 16px;
  line-height: 30px;
  color: var(--Ink-Base, #303437);
}

.case-study-article blockquote > div {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

.case-study-article blockquote > div:last-child,
.case-study-article blockquote p:last-child {
  margin-bottom: 0;
}

.case-study-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  line-height: 24px;
}

.case-study-article th,
.case-study-article td {
  border: 1px solid #eef1f4;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.case-study-article th {
  font-weight: 700;
  color: var(--Ink-Darker, #131214);
  background: #f7f9fa;
}

/* KPI Cards Layout */
.kpi-cards-row {
  margin-top: 30px;
}

.kpi-card {
  background-color: rgba(136, 21, 80, 0.03);
  border: 1px solid rgba(136, 21, 80, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(136, 21, 80, 0.08);
}

.kpi-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--Primary-Base, #881550);
  margin-bottom: 8px;
}

.kpi-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--Ink-Base, #303437);
}

@media (max-width: 991px) {
  .case-study-main-detail-section {
    padding: 40px 0 60px 0;
  }

  .case-study-article {
    padding-left: 0;
  }

  .article-section h2,
  .case-study-article h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .article-section h3,
  .case-study-article h3 {
    font-size: 18px;
    line-height: 26px;
  }

}

/* Mobile TOC Drawer Styles */
.mobile-toc-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--Primary-Base, #881550);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(136, 21, 80, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.mobile-toc-toggle.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-toc-toggle:hover {
  background-color: #6c0f3f;
  box-shadow: 0 6px 16px rgba(136, 21, 80, 0.45);
  transform: translateY(-4px);
}

.mobile-toc-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.mobile-toc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.mobile-toc-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-toc-panel {
  position: absolute;
  bottom: 155px;
  right: 30px;
  width: 320px;
  max-width: calc(100vw - 60px);
  max-height: min(60vh, 400px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(15px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-toc-overlay.active .mobile-toc-panel {
  transform: translateY(0) scale(1);
}

.mobile-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eaeaea;
  font-size: 16px;
  font-weight: 700;
  color: var(--Ink-Darker, #1a1a1a);
}

.mobile-toc-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888888;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-toc-close:hover {
  background-color: #f5f5f5;
  color: var(--Primary-Base, #881550);
}

.mobile-toc-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.mobile-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.mobile-toc-list li {
  border-bottom: 1px solid #f5f5f5;
}

.mobile-toc-list li:last-child {
  border-bottom: none;
}

.mobile-toc-list a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: #4a4a4a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-toc-list a:hover,
.mobile-toc-list a.active {
  color: var(--Primary-Base, #881550);
  background-color: #fdf5f5;
  padding-left: 20px;
  font-weight: 600;
}

.mobile-toc-list .toc-item-h1 a {
  font-weight: 700;
}

.mobile-toc-list .toc-item-h2 a {
  padding-left: 24px;
  font-weight: 600;
}

.mobile-toc-list .toc-item-h3 a {
  padding-left: 36px;
  font-size: 13px;
}

.mobile-toc-list .toc-item-h4 a {
  padding-left: 48px;
  font-size: 13px;
}

.mobile-toc-list .toc-item-h2 a:hover,
.mobile-toc-list .toc-item-h2 a.active {
  padding-left: 28px;
}

.mobile-toc-list .toc-item-h3 a:hover,
.mobile-toc-list .toc-item-h3 a.active {
  padding-left: 40px;
}

.mobile-toc-list .toc-item-h4 a:hover,
.mobile-toc-list .toc-item-h4 a.active {
  padding-left: 52px;
}

@media (max-width: 991.98px) {
  .mobile-toc-toggle {
    display: flex;
  }
}

@media (max-width: 575.98px) {
  .mobile-toc-toggle {
    bottom: 85px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .mobile-toc-panel {
    bottom: 140px;
    right: 20px;
    max-width: calc(100vw - 40px);
  }
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--Primary-Base, #881550);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(136, 21, 80, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: #6c0f3f;
  box-shadow: 0 6px 16px rgba(136, 21, 80, 0.4);
  transform: translateY(-4px);
}

.scroll-to-top svg {
  transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Active Nav Links styling */
.navbar__menu a.active,
.drawer__nav a.active {
  color: #881550 !important;
}

/* Blogs Page and Detail Page Layout Classes */
.blogs-container {
  max-width: 1320px;
  margin: 0 auto;
  margin-top: 15px;
  padding: 0 40px;
}

.blogs-section-header {
  margin-bottom: 24px;
}

.blogs-section-title {
  font-size: var(--fs-h2, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: #202325;
  margin-bottom: 0;
}

.blogs-filters-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.articles-list-header {
  margin-bottom: 24px;
}

.articles-list-title {
  margin: 0;
  color: var(--Ink-Darker, #202325);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-list-title {
    font-size: 20px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Article Card Styles - Small cards for regular blog listings */
.article-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.article-card .img-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.6;
}

.article-card .img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .img-thumb img {
  transform: scale(1.05);
}

.article-card .img-thumb .thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 18, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card .img-thumb .thumb-overlay span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.article-card .img-thumb .thumb-overlay a {
  text-decoration: none;
}

.article-card:hover .img-thumb .thumb-overlay {
  opacity: 1;
}

.article-card .article-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--Primary-Base, #881550);
  text-transform: capitalize;
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 0 20px;
}

.article-card .article-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink-darker, #202325);
  margin-bottom: 12px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
  padding: 0 20px;
}

.article-card .article-title a {
  color: inherit;
  text-decoration: none;
}

.article-card .article-title a:hover {
  color: var(--Primary-Base, #881550);
}

.article-card .article-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #6c7275;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 62px;
  padding: 0 20px;
}

.article-card .article-date {
  font-size: 13px;
  color: #8292a6;
  padding: 0 20px 20px;
  margin-top: auto;
}

/* Pricing Card inline styles extracted to classes */
.pricing-card__offer--empty {
  height: 21px;
}

.pricing-card__offer--desc {
  min-height: 63px;
}

/* Related articles section header */
.related-articles-section-title {
  font-size: var(--fs-h2, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--Ink-Darker, #131214);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .blogs-page {
    --fs-h2: 24px;
    --fs-body: 13px;
  }

  .blogs-container {
    padding: 0 0;
  }
}
