/* Desktop container width adjustment (Between 1280px and 1920px) */
@media screen and (min-width: 1280px) and (max-width: 1920px) {
  .container {
    max-width: 1244px !important;
  }
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Animation & Scroll Effects */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

.kb-navbar.scrolled {
  box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, .45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom 1720px container for large screens (≥ 1800px) */
@media (min-width: 1800px) {

  /* Globally target Header and Footer containers */
  .kb-navbar .container,
  .kb-footer .container {
    max-width: 1720px !important;
  }

  /* Target specific KB content page sections */
  .kb-breadcrumb-bar .container,
  .kb-main-content.container {
    max-width: 1720px !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.kb-navbar {
  background-color: var(--color-black);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ── Logo: responsive sizing via .kb-logo ──────────────────
   Desktop (≥ 1200px) : width 140px, height auto
   LG  (992–1199px)  : width 130px
   MD  (768–991px)   : width 120px
   SM  (576–767px)   : width 110px
   XS  (< 576px)     : width  96px
   ──────────────────────────────────────────────────────── */
.kb-logo {
  width: 140px;
  height: auto;
  /* preserves aspect ratio */
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  /* never squash inside flexbox */
}

/* Navbar brand resets Bootstrap's forced img sizing */
.kb-navbar .navbar-brand img.kb-logo {

  width: auto;
  /* let height drive on navbar */
}

/* Footer logo: a touch larger so it reads against dark bg */
.kb-footer .footer-brand img.kb-logo {
  max-height: 44px;
  width: auto;
  margin-bottom: 1.5rem;
}


.kb-navbar .nav-link {
  color: #ccc !important;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: 0.4rem 0.75rem !important;
  transition: color var(--transition-fast);
}

.kb-navbar .nav-link:hover,
.kb-navbar .nav-link.active {
  color: var(--color-white) !important;
}

.kb-navbar .navbar-toggler {
  border-color: #444;
}

.kb-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* Knowledge Base Home button */
.btn-kb-home {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: 0.4rem 1rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-kb-home:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  color: var(--color-white);
}

/* ============================================================
   UNIFIED HERO & MODULES SECTION
   ============================================================ */
.kb-hero-modules-section {
  background-color: #000;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

/* ── TITLE / INTRO SUB-SECTION ── */
.title-section {
  padding-bottom: var(--space-xl);
  text-align: center;
  /* Added from original .hero-section */
  color: var(--color-white);
  /* Added from original .hero-section */
}

.title-section .hero-eyebrow {
  font-size: 2.5rem;
  line-height: 90px;
  color: var(--color-white);
  font-weight: 500;
  margin: 0px;
  text-transform: none;
  /* Removed uppercase as per spec */
  letter-spacing: normal;
}

.title-section h1 {
  font-size: 5.625rem;
  font-weight: 800;
  line-height: 90px;
  margin-bottom: 36px;
  color: var(--color-white);
  letter-spacing: -2%;
}

.title-section .hero-desc {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  line-height: 120%;
  letter-spacing: -2%;
}

/* ── MODULES GRID SUB-SECTION ── */
.module-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.module-section .row {
  --bs-gutter-x: 30px;
  --bs-gutter-y: 30px;
}

/* Module Card */
.module-card {
  background-color: #222222;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  height: 100%;
  min-height: 105px;
  /* taller cards as per image profile */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
}

/* Hover state: White background, black content, red elevation */
.module-card:hover {
  background-color: var(--color-white);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0px 8px 16px rgba(240, 73, 60, 0.5);
  /* red glow */
}

.module-card .module-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.module-card:hover .module-icon {
  transform: scale(1.08);
}

.module-card .module-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-card .module-label {
  font-size: 0.75rem;
  /* ~12px */
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-bottom: 2px;
  line-height: 1.2;
}

.module-card .module-name {

  color: var(--color-white);
  font-weight: 600;
  letter-spacing: -2%;
  font-size: 1.125rem;
  line-height: 1.375rem;
  margin-bottom: 0;
}

/* Text color inversion on hover */
.module-card:hover .module-label {
  color: #555;
}

.module-card:hover .module-name {
  color: #000;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  background-color: transparent;
  padding: var(--space-xl) 0;
  border: none;
}

.cta-box {
  background: var(--color-text) url(../images/cta-bg.png) no-repeat center center;
  border-radius: 12px;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-size: cover;
}

.cta-box:hover {
  transform: translateY(-2px);
}

.cta-box h2 {
  font-size: 2rem;
  line-height: 40px;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -2%;
}

.cta-box p {
  color: #6E6E73;
  font-size: 1.25rem;
  max-width: 600px;
  line-height: 30px;
  margin-bottom: 0;
  letter-spacing: -2%;
}

.btn-cta-start {
  background-color: #ff4d3d;
  /* Vibrant red from image */
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 77, 61, 0.3);
}

.btn-cta-start:hover {
  background-color: #ff3c2a;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 61, 0.4);
}

@media (max-width: 768px) {
  .cta-box {
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  .btn-cta-start {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ============================================================
   VIDEO TUTORIALS & SUPPORT CENTER CARDS
   ============================================================ */
.resources-section {
  background-color: transparent;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.resource-card {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.04);

}

.resource-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.resource-card h3 {
  font-size: 2.25rem;
  color: #000;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: -2%;
}

.resource-card .card-icon {
  width: 64px;
  height: 64px;
}

.resource-card p {
  color: #6E6E73;
  font-size: 1.25rem;
  line-height: 25px;
  margin-bottom: 2.5rem;
  flex-grow: 1;
  letter-spacing: -2%;
}

.btn-resource {
  background-color: #ff4d3d;
  /* Red from the screenshot */
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  align-self: flex-start;
  /* Correctly left-aligned as per screenshot */
  transition: all 0.3s ease;
  border: none;
}

.btn-resource:hover {
  background-color: #ff3c2a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 77, 61, 0.3);
}

@media (max-width: 991px) {
  .resource-card {
    padding: 2.5rem 1.5rem;
  }

  .resource-card h3 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   LATEST ARTICLES PAGE
   ============================================================ */
.articles-section {
  background-color: #fff;
  padding: 5rem 0;
}

.article-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-thumb {
  width: 100%;
  /* height: 220px; */
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #f0f0f0;
}

.article-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


/* ============================================================
   INSIGHTS & RESOURCES SECTION HEADER
   ============================================================ */
.insights-section {
  background-color: #fff;
  padding: 60px 0 86px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 3rem;
  color: #000;
  font-weight: 700;
  letter-spacing: -2%;
}

.section-header p {
  font-size: 2rem;
  color: #6E6E73;
  max-width: 954px;
  line-height: 40px;
}

.btn-view-all {
  background-color: #f14c3a;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.btn-view-all:hover {
  background-color: #d93d2d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(241, 76, 58, 0.3);
}




.article-card h4 {
  font-size: 1.4rem;
  color: #000;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
}

.article-card p {
  color: #6c757d;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Outline style button for articles, right-aligned */
.btn-read-more {
  border: 1px solid #6E6E73;
  color: #6E6E73;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 15px;

  border-radius: 8px;
  text-decoration: none;
  align-self: flex-end;
  /* Push to the right */
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  background-color: #f8f9fa;
  color: #000;
  border-color: #000;
}

/* ============================================================
   FOOTER
   ============================================================ */
.kb-footer {
  background-color: #111;
  color: #aaa;
  padding: 72px 0 24px;
  font-size: 0.95rem;
}



.footer-brand p {
  line-height: 1.7;
  max-width: 280px;
  margin-top: 20px;

  color: #d8d8d8;
  font-size: 1.125rem;
}

.footer-office .office-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #333;
}

.footer-office h6 {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 20px;
}

.footer-office p {
  color: #888888;
  line-height: 26px;
  font-size: 1.125rem;
}

.footer-divider {
  height: 1px;
  background-color: #999999;
  margin: 30px 0;
}

.footer-bottom {
  color: #d8d8d8;
  font-size: 1rem;
  height: 48px;
}

.kb-footer .footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.kb-footer .footer-bottom a.fw-bold {
  color: #fff;
}

.kb-footer .footer-bottom a:hover {
  color: #f14c3a;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-links a {
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #f14c3a;
  transform: translateY(-2px);
}

/* ============================================================
   UTILITY / HELPERS
   ============================================================ */

/* Section divider spacing */
.section-gap {
  padding: var(--space-2xl) 0;
}

/* Smooth scroll offset for sticky nav */
:target {
  scroll-margin-top: 70px;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   Bootstrap 5 container max-widths (reference):
     xs  < 576px  → 100% (no cap)
     sm  ≥ 576px  → 540px
     md  ≥ 768px  → 720px
     lg  ≥ 992px  → 960px
     xl  ≥ 1200px → 1140px
     xxl ≥ 1400px → 1320px
   Bootstrap's .container already applies these automatically.
   ============================================================ */

/* ── XXL  ≥ 1400px ── */
@media (min-width: 1400px) {
  /* Nothing extra needed – Bootstrap container caps at 1320px */
}

/* ── XL  ≥ 1200px ── */
@media (min-width: 1200px) {
  /* Nothing extra needed – Bootstrap container caps at 1140px */
}

/* ── LG  992px – 1199px ── */
@media (max-width: 1199.98px) {
  .hero-section {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  /* Logo */
  .kb-navbar .navbar-brand img.kb-logo {
    max-height: 36px;
  }

  .kb-footer .footer-brand img.kb-logo {
    max-height: 40px;
  }
}

/* ── MD  768px – 991px ── */
@media (max-width: 991.98px) {
  .cta-section .text-md-start {
    text-align: center !important;
  }

  .cta-section .d-flex {
    justify-content: center;
  }

  .kb-navbar .navbar-collapse {
    padding-bottom: 0.75rem;
  }

  /* Logo */
  .kb-navbar .navbar-brand img.kb-logo {
    max-height: 34px;
  }

  .kb-footer .footer-brand img.kb-logo {
    max-height: 38px;
  }
}

/* ── SM  576px – 767px ── */
@media (max-width: 767.98px) {
  .module-card .module-name {
    font-size: 0.72rem;
  }

  .resource-card {
    padding: var(--space-md);
  }

  .insights-section .section-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .article-card .article-thumb {
    height: 130px;
  }

  .kb-footer .footer-brand p {
    max-width: 100%;
  }

  .kb-footer .footer-offices {
    gap: 1.5rem;
  }

  /* Logo */
  .kb-navbar .navbar-brand img.kb-logo {
    max-height: 30px;
  }

  .kb-footer .footer-brand img.kb-logo {
    max-height: 34px;
  }
}

/* ── XS  < 576px ── */
@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: var(--space-lg) 0;
  }

  .btn-kb-home {
    font-size: 0.73rem;
    padding: 0.35rem 0.75rem;
  }

  /* Logo: smallest size on phones */
  .kb-navbar .navbar-brand img.kb-logo {
    max-height: 26px;
  }

  .kb-footer .footer-brand img.kb-logo {
    max-height: 30px;
  }

  /* Module cards: 1 per row on very small phones */
  .modules-section .col-sm-6 {
    flex: 0 0 auto;
    width: 100%;
  }

  /* Resource & article cards: full-width stack */
  .resources-section .row>[class*="col-"],
  .insights-section .row>[class*="col-"] {
    width: 100%;
  }

  /* Footer offices: stack cleanly */
  .kb-footer .row>[class*="col-"] {
    width: 100%;
  }

  /* CTA button centred */
  .cta-section {
    text-align: center;
  }

  .btn-cta-start {
    width: auto;
  }

  /* Social links row wrap */
  .social-links {
    justify-content: center;
  }

  /* Footer bottom: column layout */
  .kb-footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ============================================================
   Financial Accounting Page Styles 
   (Prefix "kb-" used to avoid conflicts with index.html)
   ============================================================ */

.kb-financial-main {
  background-color: var(--color-white);
}

/* Breadcrumb Bar */
.kb-breadcrumb-bar {
  background-color: var(--color-dark-alt);
  padding: 20px 0;
}

.kb-breadcrumb-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.kb-breadcrumb-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.63);
  /* #a1a1a1 */
  font-weight: 500;
  margin: 0;
}

.kb-breadcrumb-separator {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.kb-search-icon {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  line-height: 1;
}

.kb-search-input {
  padding: 10px 20px 10px 45px;
  width: 320px;
  border: none;
  font-size: 0.9375rem;
}

/* Sidebar Menu Treeview */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: flex-start;
  color: var(--color-text);
  padding: 8px 0;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  gap: 10px;
}

.sidebar-menu a:hover {
  color: var(--color-primary);
}

.sidebar-menu .has-children>a i.caret {
  margin-top: 3px;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.35);
  /* #a1a1a1 equivalent for light bg */
  transition: transform var(--transition-fast);
}

.sidebar-menu .has-children>a i.caret:before {
  font-weight: 600 !important;
}

.sidebar-menu .expanded>a {
  color: var(--color-black);
  font-weight: 700;
}

.sidebar-menu .expanded>a i.caret {
  transform: rotate(90deg);
  color: var(--color-primary);
}

.sub-menu {
  list-style: none;
  padding-left: 20px;
  margin: 4px 0 0 0;
  display: none;
}

.sidebar-menu .expanded>.sub-menu {
  display: block;
}

.sub-menu li {
  margin-bottom: 4px;
}

.sub-menu a {
  color: var(--color-text-light);
  padding: 6px 0;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px
}

.sub-menu .expanded>a {
  font-weight: 600;
  color: var(--color-black);
}

.customer-active {
  background-color: var(--color-light);
  border-radius: 6px;
  padding: 8px 12px !important;
  color: var(--color-black) !important;
  font-weight: 600 !important;
  margin-left: -12px;
  width: calc(100% + 12px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-active i {
  color: #999;
  font-size: 1rem;
  margin-top: 0;
}

/* Mobile Sidebar Specific Styles */
.kb-mobile-nav-toggle {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  padding: 14px 20px;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.kb-mobile-nav-toggle:hover,
.kb-mobile-nav-toggle:focus {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.kb-mobile-sidebar-body {
  border: 1px solid var(--color-light-alt);
  padding: 15px;
  margin-top: 10px;
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Reset mobile styling on desktop for unified sidebar */
@media (min-width: 992px) {
  .kb-mobile-sidebar-body {
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
  }
}

/* Domain Banner */
.kb-domain-banner {
  background-color: var(--color-black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-image: url('../images/cta-bg.png');
  /* Using available texture */
  background-size: cover;
  background-position: right bottom;
}

.kb-domain-banner-gradient {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.banner-content-z {
  z-index: 2;
}

.kb-domain-banner-icon-wrapper {
  width: 64px;
  height: 64px;
}

.banner-logo {
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.kb-domain-banner-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.kb-domain-banner-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kb-domain-banner-desc-col {
  padding-left: 80px;
  /* Align with text after icon */
}

@media (max-width: 768px) {
  .kb-domain-banner-desc-col {
    padding-left: 0;
  }
}

.kb-domain-banner-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  max-width: 85%;
}

/* Button Extends */
.btn-kb-brand {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: 0.9375rem;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  transition: all var(--transition-fast);
}

.btn-kb-brand:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
}

.kb-domain-banner .btn-kb-brand {
  padding: 12px 28px;
}

/* 4 Cards Grid - prefix: kb-section-card */
.kb-section-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-light-alt);
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.kb-section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.border-top-success {
  border-top: 4px solid #00B69B !important;
}

.border-top-info {
  border-top: 4px solid #00A3FF !important;
}

.border-top-warning {
  border-top: 4px solid #FFB800 !important;
}

.border-top-danger {
  border-top: 4px solid #D65C78 !important;
}

.kb-sc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.kb-sc-list li {
  width: 50%;
  margin-bottom: 20px;
  padding-right: 15px;
}

.kb-sc-list.single-col li {
  width: 100%;
}

.kb-sc-list a {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.2;
}

.kb-sc-list a:hover {
  color: var(--color-primary);
}

.kb-sc-list a i {
  color: #333;
  margin-right: 12px;
  font-size: 1rem;
  margin-top: 0;
}

.kb-sc-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 20px;
  color: var(--color-black);
  letter-spacing: -0.01em;
  border-bottom: 1px solid #efefef;
}

/* Section Headings */
.kb-section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.kb-faq-page .kb-section-heading,
.kb-video-tutorial-page .kb-section-heading {
  font-size: 2.25rem;
  line-height: 100%;
  letter-spacing: -2%;
}

.kb-section-desc {
  color: var(--color-text-light);
  font-size: 1.25rem;
  margin: 0;
  max-width: 850px;
  line-height: 120%;
}

.kb-video-tutorial-page .kb-section-desc {
  max-width: 100%;
}

.kb-release-notes-page .kb-section-desc {
  max-width: 100% !important;
  margin-bottom: 30px !important;
}

/* Buttons Nav */
.btn-icon-nav {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border-color: var(--color-border);
  color: #666;
  transition: all var(--transition-fast);
}

.btn-icon-nav i {
  font-weight: 800;
  -webkit-text-stroke: 1px;
}

.btn-icon-nav:hover {
  background-color: var(--color-light);
  color: var(--color-black);
  border-color: var(--color-border);
}

/* Video Card */
.kb-video-card {
  background: linear-gradient(to right, #53A469, #88CA9F);
  height: 240px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.kb-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(95, 186, 125, 0.25);
}

.video-content-z {
  z-index: 5;
}

.kb-video-label {
  display: flex !important;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.kb-video-label-icon {
  font-size: 1.125rem;
  margin-right: 8px;
}

.kb-video-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: 0;
}

.kb-video-play-layer {
  z-index: 10;
  pointer-events: none;
}

.kb-video-play-icon {
  font-size: 4rem;
  color: var(--color-white) !important;
  transition: transform var(--transition-base);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.kb-video-card:hover .kb-video-play-icon {
  transform: scale(1.1);
}

.kb-video-overlay {
  object-fit: contain;
  z-index: 2;
  opacity: 0.15;
  filter: grayscale(1) brightness(2);
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
}

.kb-video-overlay.overlay-right-middle {
  right: 0 !important;
  bottom: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  filter: none !important;
  width: 160px !important;
  height: 160px !important;
}

.kb-video-overlay.overlay-minus-right {
  right: -40px !important;
  bottom: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  filter: none !important;
  width: 220px !important;
  height: 220px !important;
  pointer-events: none;
}

/* Modal Styling */
.kb-video-modal .modal-content {
  background: #000;
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.kb-video-modal .modal-header {
  border: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.kb-video-modal .btn-close {
  filter: invert(1);
}

.video-ratio-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* FAQ Section Tabs */
.kb-faq-tabs-container {
  display: inline-flex;
  background-color: #f1f3f5;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.kb-btn-pill {
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  color: #444;
  background: transparent;
  transition: all var(--transition-fast);
}

.kb-btn-pill.active {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.kb-btn-pill:hover:not(.active) {
  color: var(--color-primary);
}

/* FAQ Accordion (prefix: kb-faq-accordion) */
.kb-faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #eeeeee;
  background: transparent;
}

.kb-faq-accordion .accordion-button {
  padding: 24px 0;
  background: transparent !important;
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: none !important;
  border: none !important;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kb-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-black);
  padding-bottom: 15px;
}

.kb-faq-accordion .accordion-body {
  padding: 0 0 24px 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 900px;
}

.kb-faq-accordion .accordion-button::after {
  background-image: none !important;
  content: "\F282";
  /* bi-chevron-down */
  font-family: "bootstrap-icons";
  color: #000;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  margin-left: 20px;
  flex-shrink: 0;
}

.kb-faq-accordion .accordion-button:not(.collapsed):after {
  content: "\F286";
  /* bi-chevron-up */
  color: var(--color-primary);
  border-color: #d9d9d9;
  background-color: transparent;
  transform: none;
}

/* Release Notes (prefix: kb-rn) */
.kb-rn-block:first-child {
  padding-top: 0px;
}

.kb-rn-block {
  padding: 30px 0;
}

.kb-rn-hr {
  border: 0;
  border-top: 1px solid #E5E5E5;
  margin: 0;
  opacity: 1;
}

.kb-rn-version {
  font-size: 1.375rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}

.kb-rn-date {
  font-size: 0.875rem;
  color: #6E6E73;
  margin-bottom: 24px;
  display: block;
}

.kb-rn-content {
  padding-left: 0;
  border-left: none;
  margin-top: 0;
}

.kb-rn-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #000;
}

.kb-rn-content h5:first-child {
  margin-top: 0;
}

.kb-rn-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-rn-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: #000;
  line-height: 1.6;
}

.kb-rn-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;
  font-weight: bold;
}

.kb-rn-upcoming-block {
  background-color: transparent;
  padding: 0;
  border: none;
  margin-top: 50px;
}

.kb-rn-upcoming-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}

.kb-rn-upcoming-desc {
  font-size: 0.875rem;
  color: #6E6E73;
  margin-bottom: 24px;
}

.kb-article-wrapper {
  color: var(--color-black);
}

.kb-doc-h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.kb-doc-h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 40px;
}

.kb-doc-h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 30px;
}

.kb-doc-p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

.kb-doc-img-container {
  /* border: 1px solid #eeeeee; */
  /* border-radius: 12px; */
  overflow: hidden;
  margin: 25px 0;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); */
}

.kb-doc-img {
  width: 100%;
  height: auto;
  display: block;
}

.kb-doc-list {
  padding-left: 20px;
  margin-bottom: 25px;
}

.kb-doc-list li {
  font-size: 0.9375rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.kb-doc-list li strong {
  color: #000;
}

/* In This Article / TOC */
.kb-article-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid #F3F4F6;
}

.kb-article-toc li {
  margin-bottom: 0;
}

.kb-article-toc a {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
  padding: 10px 20px;
  display: block;
  transition: all var(--transition-fast);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.kb-article-toc a:hover {
  color: var(--color-primary);
  background-color: #fafafa;
}

.kb-article-toc a.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background-color: #fdfdfd;
  font-weight: 600;
}

.kb-toc-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  margin-bottom: 20px;
}

/* Tutorial/FAQ cards in sidebar */
.kb-sidebar-card {
  background-color: #fcfcfc;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 15px;
  display: flex !important;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
  text-decoration: none !important;
  color: #444 !important;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.kb-sidebar-card:hover {
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #e0e0e0;
}

.kb-sidebar-card.tutorial-link-card {
  background-color: #fff5f5;
  border-color: #ffeaea;
}

.kb-sidebar-card i,
.kb-sidebar-card-icon {
  /* width: 24px; */
  /* height: 24px; */
  font-size: 1.25rem;
  color: var(--color-primary);
  object-fit: contain;
}

/* Content Tabs */
.kb-content-tabs {
  border-bottom: 1px solid #eeeeee;
  gap: 30px;
}

.kb-content-tabs .nav-link {
  border: none !important;
  padding: 12px 0 !important;
  color: #666 !important;
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  background: transparent !important;
  border-radius: 0 !important;
}

.kb-content-tabs .nav-link.active {
  color: var(--color-primary) !important;
}

.kb-content-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.kb-gap-44 {
  --bs-gutter-x: 44px;
  --bs-gutter-y: 44px;
}

/* Sidebar Container (Refined) */
@media (min-width: 992px) {
  .sidebar-aside {
    width: 310px !important;
    flex: 0 0 310px !important;
    max-width: 310px !important;
    border-right: 1px solid #D9D9D9;
    padding-top: 40px !important;
    padding-right: 35px !important;
    padding-bottom: 40px !important;
  }

  .content-aside {
    flex: 1 !important;
    width: calc(100% - 310px) !important;
    padding-top: 40px !important;
    padding-left: 45px !important;
    padding-bottom: 40px !important;
  }
}

@media (max-width: 991px) {
  .sidebar-aside {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    padding: 20px 0 !important;
  }

  .content-aside {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-top: 20px !important;
  }
}

/* Large Desktop / Laptop Scaling (Below 1480px) */
@media (max-width: 1480px) {
  .title-section h1 {
    font-size: 4.5rem !important;
  }

  .section-header h2 {
    font-size: 2.5rem !important;
  }

  .section-header p {
    font-size: 1.75rem !important;
  }

  .resource-card h3 {
    font-size: 2rem !important;
  }

  .resource-card p {
    font-size: 1.125rem !important;
  }

  .cta-box h2 {
    font-size: 1.75rem !important;
  }

  .cta-box p {
    font-size: 1.125rem !important;
  }

  .article-card h4 {
    font-size: 1.25rem !important;
  }

  .article-card p {
    font-size: 1.125rem !important;
  }
}

/* ============================================================
   RESPONSIVE DESIGN (Below 1280px)
   ============================================================ */

/* Intermediate Tablet & Laptop (Below 1280px) */
@media (max-width: 1280px) {
  .title-section h1 {
    font-size: 4.5rem !important;
    line-height: 1.1 !important;
  }

  .title-section .hero-eyebrow {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .title-section .hero-desc {
    font-size: 1.25rem !important;
    max-width: 90% !important;
  }

  .section-header h2 {
    font-size: 2.625rem !important;
  }

  .section-header p {
    font-size: 1.625rem !important;
    line-height: 1.3 !important;
  }
}

/* Tablet (991px and below) */
@media (max-width: 991px) {

  /* Banner adjustments */
  .kb-domain-banner {
    padding: 30px 20px !important;
  }

  .kb-domain-banner-title {
    font-size: 2rem !important;
  }

  /* Breadcrumb stack */
  .kb-breadcrumb-bar .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  .search-box,
  .kb-search-input {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Main headings */
  .kb-breadcrumb-title {
    font-size: 2rem !important;
  }

  /* Documentation grid / content */
  .kb-main-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Video/FAQ grids */
  .kb-video-tutorials .row,
  .kb-faq-section .row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
  }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {

  /* Index Page Hero */
  .title-section {
    padding-bottom: 40px !important;
  }

  .title-section h1 {
    font-size: 3rem !important;
    margin-bottom: 24px !important;
    line-height: 1.1 !important;
  }

  .title-section .hero-eyebrow {
    font-size: 1.5rem !important;
  }

  .title-section .hero-desc {
    font-size: 1.0625rem !important;
  }

  /* Page Headings */
  .kb-section-heading {
    font-size: 1.5rem !important;
  }

  .kb-faq-page .kb-section-heading,
  .kb-video-tutorial-page .kb-section-heading {
    font-size: 1.75rem !important;
  }

  /* Description text */
  .kb-section-desc {
    font-size: 1rem !important;
  }

  /* Domain Banner refinements */
  .kb-domain-banner-icon-wrapper {
    width: 44px !important;
    height: 44px !important;
    margin-right: 12px !important;
  }

  /* Resources Section (Index) */
  .section-header h2 {
    font-size: 2rem !important;
  }

  .section-header p {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
  }

  .module-name {
    font-size: 1.375rem !important;
  }

  .module-section .row {
    --bs-gutter-x: 10px !important;
    --bs-gutter-y: 10px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    height: auto !important;
    text-align: center !important;
    padding: 10px 0 !important;
  }

  .footer-divider {
    margin: 15px 0 !important;
  }

  .kb-footer .row.gy-5 {
    --bs-gutter-y: 2rem !important;
  }

  .footer-office .office-thumb,
  .footer-office h6 {
    margin-bottom: 10px !important;
  }

  /* List scaling in grid cards */
  .kb-sc-list li {
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  .kb-gap-44 {
    --bs-gutter-x: 24px !important;
    --bs-gutter-y: 24px !important;
  }
}

/* ============================================================
   WORDPRESS PAGINATION STYLING
   ============================================================ */
.navigation.pagination {
  margin-top: 2rem;
  display: block;
}

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.navigation.pagination .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
}

.navigation.pagination .nav-links .page-numbers:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.navigation.pagination .nav-links .page-numbers.current {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.navigation.pagination .nav-links .prev,
.navigation.pagination .nav-links .next {
  width: auto;
  padding: 0 15px;
}

.search-results {
  background-color: #ffffff;
}