/* ============================================================
   COMMANDER ERP — Cloud Construction & Pavement Management Software
   Design system carried forward from the original build. Palette:
   trust-blue base, signal-orange action, verified-green outcome.
   ============================================================ */

:root {
  --blue-900: #0F2027;
  --blue-800: #16323D;
  --blue-700: #2C4A5E;
  --blue-500: #3E6B85;
  --blue-100: #E7EDEF;
  --blue-50: #F4F7F6;
  --hero-text: #D5E2F0;
  --footer-text: #AEBBCB;
  --footer-muted: #94A5B8;
  --ink-on-dark: #D8E2EC;
  --body-on-dark: #B8C6D6;
  --green-accent: #3F8C5A;
  --steel-500: #607D8B;

  --orange-700: #E68A00;
  --orange-600: #FF9F1C;
  --orange-100: #FFF3E0;

  --green-800: #1B5E20;
  --green-700: #2E7D32;
  --green-600: #3F8C5A;
  --green-100: #E8F5E9;

  --red-700: #B3152A;
  --red-600: #E71D36;
  --red-100: #FDE8EA;

  --white: #FFFFFF;
  --gray-50: #F4F7F6;
  --gray-100: #EDF1F0;
  --gray-200: #DDE3E2;
  --gray-400: #8A97A5;
  --ink-700: #455A64;
  --ink-900: #263238;

  --f-display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --f-body: 'Inter', -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 60, .06), 0 1px 1px rgba(15, 35, 60, .04);
  --shadow-md: 0 8px 24px rgba(15, 35, 60, .10);
  --shadow-lg: 0 20px 48px rgba(15, 35, 60, .16);
  --maxw: 1372px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--blue-900);
  letter-spacing: -.01em;
}

h2 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--blue-900);
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
  color: var(--ink-700);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

@media (max-width:768px) {
  section {
    padding: 56px 0;
  }
}

.section-tight {
  padding: 56px 0;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--orange-600);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.btn-cta {
  background: var(--orange-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(15, 32, 39, .12);
}

.btn-cta:hover {
  background: var(--orange-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
}

.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.btn-sm {
  padding: 11px 22px;
  font-size: .92rem;
}

.btn-ghost.btn-sm {
  padding: 11px 22px;
  font-size: .92rem;
  font-weight: 600;
}

.nav-portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-900);
  border-left: 1px solid var(--gray-300);
  margin-left: 14px;
  padding-left: 16px;
  padding-right: 4px;
  height: 32px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-portal-link:hover {
  color: var(--orange-600);
  transform: translateY(-1px);
}

.nav-portal-link svg {
  display: block;
  width: 30px;
  height: 30px;
}

/* ---------- site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-900);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo,
.brand img {
  height: 42px;
  max-height: 42px;
  width: auto;
  max-width: 175px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover .site-logo,
.brand:hover img {
  opacity: 0.92;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

@media (max-width: 768px) {

  .site-logo,
  .brand img {
    height: 36px;
    max-height: 36px;
    max-width: 150px;
  }
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-900);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-700);
  border-color: var(--orange-600);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-toggle {
  display: none;
}

.nav-header {
  display: none;
}

.nav-links-cta {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.nav-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width:1024px) {
  .site-header {
    backdrop-filter: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 101;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    padding: 12px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    padding-left: 12px;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ink-900);
    margin-left: auto;
  }

  .nav-close:hover {
    background: var(--gray-100);
  }

  .nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-header .brand {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--ink-900);
    padding: 0;
    transition: background .2s ease;
  }

  .nav-toggle:hover {
    background: var(--gray-100);
  }

  .nav-cta {
    display: none;
  }

  .nav-links-cta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links-cta .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: var(--white);
  padding: clamp(28px, 5.5vh, 82px) 0 clamp(24px, 4vh, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 1.3fr) minmax(520px, 0.7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: min(100%, calc(100vw - 200px));
  max-width: min(1500px, calc(100vw - 200px));
}

@media (max-width:1150px) {
  .hero {
    align-items: center;
    padding: clamp(28px, 6vh, 68px) 0 clamp(22px, 4vh, 56px);
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: clamp(24px, 3vw, 40px);
    width: min(100%, calc(100vw - 200px));
    max-width: min(1500px, calc(100vw - 200px));
  }
}

@media (max-width:900px) {
  .hero .container {
    gap: clamp(20px, 3vw, 32px);
  }
}

@media (max-width:600px) {
  .hero {
    padding: clamp(30px, 5vh, 50px) 0;
  }

  .hero .container {
    gap: clamp(16px, 2vw, 24px);
    width: min(100%, calc(100vw - 48px));
    max-width: min(1500px, calc(100vw - 48px));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    white-space: normal;
    text-align: center;
  }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 4.3vw, 6rem);
  max-width: 70ch;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-top: 18px;
}

.hero-home h1 {
  margin-top: 40px;
}

@media (max-width:768px) {
  .hero-home h1 {
    margin-top: 24px;
  }
}

@media (max-width:600px) {
  .hero-home h1 {
    margin-top: 18px;
  }
}

.hero-home h1 {
  font-size: clamp(2rem, 2.8vw, 4rem);
  max-width: 58ch;
  line-height: 1.12;
  letter-spacing: -.005em;
}

.hero p.lead {
  color: #D5E2F0;
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  max-width: 64ch;
  line-height: 1.6;
  margin-top: 18px;
}

.hero-home p.lead {
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-inner h1 {
  font-size: clamp(2rem, 2.8vw, 4rem);
  max-width: 58ch;
  line-height: 1.12;
  letter-spacing: -.005em;
}

.hero-actions {
  display: flex;
  gap: clamp(12px, 2.2vw, 18px);
  margin-top: clamp(26px, 3.5vh, 40px);
  flex-wrap: wrap;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-dashboard-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: block;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-dashboard-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (max-width: 1150px) {
  .hero-dashboard-img {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-dashboard-img {
    border-radius: 12px;
  }
}

.hero .container.hero-proof-row {
  display: block;
  margin-top: 0;
}

.hero-proof {
  margin-top: clamp(24px, 4vh, 44px);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: clamp(20px, 3.5vw, 40px);
  flex-wrap: wrap;
  width: 100%;
}

.hero-proof div {
  font-family: var(--f-mono);
}

.hero-proof strong {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--white);
  font-family: var(--f-display);
  line-height: 1.1;
}

.hero-proof span {
  font-size: clamp(1rem, 1.2vw, 0.5rem);
  color: #AEBBCB;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width:700px) {
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }
}

@media (max-width:420px) {
  .hero-proof {
    grid-template-columns: 1fr;
  }
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .18;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
}

.strata-divider {
  width: 100%;
  display: block;
  line-height: 0;
  background: linear-gradient(to bottom, #2b495d 0%, #2b495d 50%, transparent 50%, transparent 100%);
  margin-bottom: -2px;
  overflow: hidden;
}

.strata-divider svg {
  width: 100%;
  height: calc(100% + 2px);
  display: block;
  vertical-align: bottom;
}

.centerline {
  height: 0;
  border-top: 3px dashed var(--orange-600);
  opacity: .55;
  width: 64px;
  margin: 0 0 20px;
}

/* ---------- trust bar ---------- */
.trust-bar {
  background: var(--gray-50);
  padding: 34px 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-bar p {
  font-family: var(--f-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 20px;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: .75;
}

.logo-row span {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink-700);
  font-size: 1.05rem;
}

/* ---------- grid system ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width:1100px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:900px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:768px) {
  .grid-5 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }
}

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: 0 16px 36px rgba(15, 32, 39, .14);
  border-color: var(--blue-100);
  transform: translateY(-4px);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0f7ff;
  color: #1e3a5f;
  border: 1px solid #e0ecfb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.card:hover .icon {
  background: #fff7ed;
  color: var(--orange-600, #f5941e);
  border-color: #ffedd5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 148, 30, 0.2);
}

.card .icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  font-size: .94rem;
  margin-bottom: 0;
}

.card a.card-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-700);
}

/* ---------- section head ---------- */
.section-head {
  max-width: 1140px;
  width: 100%;
  margin-bottom: 34px;
  padding-left: 25px;
  padding-right: 25px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.22rem, 1.85vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 100%;
  padding-left: 5px;
  padding-right: 5px;
}

.section-head p,
.section-head .sub-title,
h2+p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- backgrounds ---------- */
.bg-tint {
  background: var(--gray-50);
}

.bg-blue-tint {
  background: var(--blue-50);
}

.bg-ink {
  background: var(--blue-900);
  color: #D8E2EC;
}

.bg-ink h2,
.bg-ink h3 {
  color: var(--white);
}

.bg-ink p {
  color: #B8C6D6;
}

/* ---------- stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width:900px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

.stat {
  border-left: 3px solid var(--green-700);
  padding-left: 18px;
}

.stat strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 2.1rem;
  color: var(--green-700);
  line-height: 1;
}

.stat span {
  font-size: .85rem;
  color: var(--ink-700);
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--gray-100);
  color: var(--ink-700);
}

.pill-blue {
  background: var(--gray-100);
  color: var(--blue-700);
}

.pill-orange {
  background: var(--orange-100);
  color: var(--orange-700);
}

.pill-green {
  background: var(--green-100);
  color: var(--green-800);
}

.pill-red {
  background: var(--red-100);
  color: var(--red-700);
}

/* ---------- testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 6px 18px rgba(15, 32, 39, .12);
}

.testimonial blockquote {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--blue-900);
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.4;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
}

.testimonial .who strong {
  display: block;
  font-size: .92rem;
}

.testimonial .who span {
  font-size: .8rem;
  color: var(--gray-400);
}

/* ---------- tables (All Pages & Blog Posts) ---------- */

/* Outer scroll wrappers should never have duplicate borders or backgrounds */
.table-wrap,
.table-responsive,
.article-body div[style*="overflow-x"],
.article-body div[style*="overflow"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 28px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Standalone tables and wrapped tables: SINGLE CLEAN CARD */
table,
.table-wrap table,
.article-body table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #374151;
}

/* Table Headers: Deep slate navy with vibrant orange accent bottom border */
table thead th,
table th,
.table-wrap th,
.table-responsive th,
.article-body table th,
.article-body table tr:first-child th,
.article-body table tr:first-child td[style*="font-weight:bold"],
.article-body table thead tr:first-child th {
  background: #1e2d3d !important;
  color: #ffffff !important;
  font-family: var(--f-display), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
  padding: 16px 20px !important;
  text-align: left !important;
  border: none !important;
  border-bottom: 4px solid #f5941e !important;
  vertical-align: middle !important;
}

/* Support rows with inline background */
table tr[style*="background"] th,
table tr[style*="background-color"] th,
.article-body table tr[style*="background"] th {
  background: #1e2d3d !important;
  color: #ffffff !important;
  border: none !important;
  border-bottom: 4px solid #f5941e !important;
}

/* Ensure any headings (h1-h4, p, strong) inside table headers inherit crisp white text */
table th h1,
table th h2,
table th h3,
table th h4,
table th p,
table th strong,
table th b,
table th span,
.article-body table th h1,
.article-body table th h2,
.article-body table th h3,
.article-body table th h4,
.article-body table th p {
  color: #ffffff !important;
  font-size: inherit !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
  display: inline-block;
}

/* Table body cells */
table td,
.table-wrap td,
.table-responsive td,
.article-body table td {
  padding: 16px 20px !important;
  text-align: left !important;
  border: none !important;
  border-bottom: 1px solid #f0f2f5 !important;
  border-right: 1px solid #f0f2f5 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: #374151 !important;
  vertical-align: middle !important;
  background-color: #ffffff !important;
}

table td:last-child,
.article-body table td:last-child {
  border-right: none !important;
}

/* Clean row hover highlight */
table tbody tr:hover td,
table tr:hover td,
.article-body table tr:hover td {
  background-color: #fafbfb !important;
}

/* Bold feature/label column (first column in data tables) */
table tbody td:first-child,
table tr td:first-child,
.article-body table tbody td:first-child,
.article-body table tr td:first-child,
.table-wrap table tbody td:first-child {
  font-weight: 700 !important;
  color: #111827 !important;
}

/* Pricing checkmarks */
td.check {
  color: var(--green-700) !important;
  font-weight: 700 !important;
  text-align: center !important;
  font-size: 1.1rem !important;
}

/* Rounded top corners for the header */
table thead tr:first-child th:first-child,
table tr:first-child th:first-child,
.article-body table tr:first-child th:first-child {
  border-top-left-radius: 9px !important;
}

table thead tr:first-child th:last-child,
table tr:first-child th:last-child,
.article-body table tr:first-child th:last-child {
  border-top-right-radius: 9px !important;
}

/* Rounded bottom corners for the last row */
table tr:last-child td,
.article-body table tr:last-child td {
  border-bottom: none !important;
}

table tr:last-child td:first-child,
.article-body table tr:last-child td:first-child {
  border-bottom-left-radius: 9px !important;
}

table tr:last-child td:last-child,
.article-body table tr:last-child td:last-child {
  border-bottom-right-radius: 9px !important;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.cta-banner p {
  color: #D5E2F0;
  margin-bottom: 0;
}

/* ---------- forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 18px 40px rgba(15, 32, 39, .12);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-size: .95rem;
  color: var(--ink-900);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width:600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--blue-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--orange-600);
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: .94rem;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-size: .82rem;
  color: var(--gray-400);
  padding: 18px 0 0;
}

.breadcrumb a {
  color: var(--blue-700);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ---------- how it works ---------- */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.steps-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex: none;
  width: 80px;
  height: 80px;
  background: var(--blue-800);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 8px;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  color: var(--blue-900);
  font-size: 1.05rem;
  margin-top: 0;
}

.step-content p {
  color: var(--ink-700);
  font-size: .94rem;
}

@media (max-width:900px) {
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-item {
    gap: 16px;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
}

@media (max-width:600px) {
  .step-item {
    gap: 14px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .step-content h3 {
    font-size: .95rem;
  }
}

/* ---------- footer ---------- */
footer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #16323d 0%, #0c1c22 60%, #071115 100%);
  color: #aebbcb;
  padding: 68px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--orange-600) 25%, #3E6B85 75%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 22px;
  width: fit-content;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-logo-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: none;
}

.footer-logo-badge img {
  height: auto;
  max-height: 66px;
  width: auto;
  max-width: 185px;
  display: block;
  object-fit: contain;
}

.footer-desc {
  color: #94a5b8;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 32ch;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #c4d1df;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item:hover {
  color: var(--orange-600);
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-600);
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aebbcb;
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
}

footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 20px;
  font-family: var(--f-body);
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--orange-600);
  border-radius: 2px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer ul li a {
  font-size: 0.92rem;
  color: #9fb2c8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer ul li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #8395a8;
}

.footer-trust-badges {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #9fb2c8;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #8395a8;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ---------- sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px;
  display: none;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}

@media (max-width:760px) {
  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }
}

.sticky-cta .btn {
  width: 100%;
}

/* ---------- utilities ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.flex {
  display: flex;
}

.gap-12 {
  gap: 12px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.blog-meta {
  font-family: var(--f-mono);
  font-size: .75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.pb-30 {
  padding-bottom: 30px;
}

/* ---------- dashboard mockup (Features page) ---------- */
.dashboard-frame {
  background: linear-gradient(180deg, var(--blue-800) 0%, var(--blue-900) 100%);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.dashboard-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-titlebar .dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dashboard-titlebar .brand-mini {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--orange-600);
  font-size: .95rem;
}

.dashboard-titlebar .view-label {
  font-size: .75rem;
  color: var(--footer-text);
}

.dashboard-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 20px;
}

.dashboard-filters .df-field {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 8px 14px;
}

.dashboard-filters .df-field span {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--footer-muted);
  margin-bottom: 2px;
}

.dashboard-filters .df-field strong {
  font-size: .85rem;
  color: var(--white);
  font-weight: 600;
}

.dashboard-goals-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-600);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 14px;
}

.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.goal-card {
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
}

.goal-card .g-label {
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.goal-card .g-pct {
  font-size: .68rem;
  opacity: .85;
}

.goal-card .g-val {
  font-family: var(--f-mono);
  font-weight: 700;
  text-align: right;
  margin-top: 6px;
  font-size: .95rem;
}

.goal-track {
  height: 5px;
  background: rgba(255, 255, 255, .28);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.goal-fill {
  height: 100%;
  background: var(--white);
  border-radius: 99px;
}

/* ---------- integrations ---------- */
.integration-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-900);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.integration-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 32, 39, 0.08);
  border-color: #cbd5e1;
}

.integration-card .i-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: all .2s ease;
}

.integration-card:hover .i-icon {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.integration-card .i-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.integration-card .i-soon {
  margin-left: auto;
  font-family: var(--f-body);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--orange-100);
  color: var(--orange-700);
  padding: 3px 8px;
  border-radius: 99px;
}

.integration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.integration-strip .integration-card {
  padding: 10px 16px;
  font-size: .88rem;
}

/* ---------- About Page Components ---------- */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: #AEBBCB;
  margin-bottom: 20px;
}

.breadcrumb-nav a {
  color: #AEBBCB;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-nav a:hover {
  color: var(--orange-600);
}

.breadcrumb-nav .sep {
  opacity: 0.4;
  font-size: 0.75rem;
}

.breadcrumb-nav .current {
  color: var(--white);
  font-weight: 600;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  position: relative;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-quote-card {
  border-left: 3px solid var(--orange-600);
  background: var(--gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-bottom: 16px;
  border-top: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  transition: all .2s ease;
}

.founder-quote-card:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
  border-left-color: var(--orange-600);
  transform: translateX(4px);
}

.founder-quote-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-900);
  margin: 0;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
}

.mission-vision-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all .25s ease;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mission-vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}

.mission-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mission-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.mission-icon-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mission-number {
  font-family: var(--f-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gray-200);
  line-height: 1;
}

.mission-vision-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--blue-900);
}

.mission-vision-card p {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink-700);
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}

.team-header {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 26px 28px 22px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-100);
}

.team-photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(15, 32, 39, 0.12);
  background: var(--gray-100);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-info h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--blue-900);
}

.team-info .team-role {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-700);
  background: var(--orange-100);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.team-body {
  padding: 24px 28px 28px;
  flex: 1;
}

.team-body p {
  color: var(--ink-700);
  font-size: 0.94rem;
  line-height: 1.68;
  margin: 0;
  text-align: justify;
}

.why-choose-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.why-choose-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}

.why-choose-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.why-choose-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--blue-900);
}

.why-choose-card p {
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-700);
  margin-bottom: 0;
}

/* ============================================================
   VIDEO SHOWCASE GRID (Watch Commander ERP in Action)
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-600);
}

.video-wrapper-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  background: var(--blue-900);
}

.video-wrapper-16x9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 20px 24px;
}

.video-card-body h3 {
  font-size: 1.15rem;
  color: var(--blue-900);
  margin: 0 0 8px;
}

.video-card-body p {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   FLOATING WHATSAPP ACTION BUTTON
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse-whatsapp 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--orange-600);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 32, 39, 0.12);
  padding: 0;
  outline: none;
}

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

.scroll-to-top:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.35);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

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

@media (max-width: 600px) {
  .floating-whatsapp {
    bottom: 74px;
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 22px;
    width: 42px;
    height: 42px;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
   BLOG SINGLE ARTICLE & SIDEBAR
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-900);
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  font-size: 1.65rem;
  color: var(--blue-900);
  margin: 36px 0 16px;
  line-height: 1.35;
}

.article-body h3 {
  font-size: 1.35rem;
  color: var(--blue-900);
  margin: 28px 0 12px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--orange-600);
  background: var(--blue-50);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--blue-900);
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 28px 0;
  width: 100%;
  height: auto;
}

/* Sidebar Widgets */
.sidebar-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.widget-card h4 {
  font-size: 1.12rem;
  color: var(--blue-900);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}

.category-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-nav-list li {
  margin-bottom: 8px;
}

.category-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-weight: 500;
  transition: all .2s ease;
}

.category-nav-list a:hover {
  background: var(--blue-50);
  color: var(--orange-600);
  transform: translateX(4px);
}

.recent-post-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}

.recent-post-info h5 {
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0 0 4px;
}

.recent-post-info h5 a {
  color: var(--blue-900);
  text-decoration: none;
  transition: color .2s ease;
}

.recent-post-info h5 a:hover {
  color: var(--orange-600);
}

.recent-post-date {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Social Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  margin: 28px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: opacity .2s ease;
}

.share-btn:hover {
  opacity: 0.88;
}

.share-btn.twitter {
  background: #1DA1F2;
}

.share-btn.facebook {
  background: #4267B2;
}

.share-btn.linkedin {
  background: #0077B5;
}

.share-btn.whatsapp {
  background: #25D366;
}

/* ============================================================
   AI ASSISTANT CHATBOX
   ============================================================ */
.ai-assistant-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.ai-chat-card {
  background: var(--blue-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 640px;
}

.ai-chat-header {
  background: var(--blue-800);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.ai-chat-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #4ade80;
}

.ai-chat-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.user {
  align-self: flex-end;
}

.ai-bubble {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ai-msg.bot .ai-bubble {
  background: var(--blue-800);
  color: var(--ink-on-dark);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-msg.user .ai-bubble {
  background: var(--orange-600);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}

.ai-prompt-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ink-on-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .2s ease;
}

.ai-prompt-chip:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: var(--white);
}

.ai-chat-input-bar {
  background: var(--blue-800);
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
}

.ai-chat-input-bar textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  resize: none;
  outline: none;
  min-height: 42px;
  max-height: 100px;
}

.ai-chat-input-bar textarea:focus {
  border-color: var(--orange-600);
}

.ai-send-btn {
  width: 42px;
  height: 42px;
  background: var(--orange-600);
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: var(--orange-700);
}

.ai-send-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
}

/* ============================================================
   USER ROLE PRICING COMPARISON TABLE
   ============================================================ */
.user-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .user-pricing-grid {
    grid-template-columns: 1fr;
  }
}

.user-plan-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.user-plan-card.featured {
  border-color: var(--orange-600);
  box-shadow: var(--shadow-md);
}

.user-plan-price {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1;
  margin: 16px 0 8px;
}

.user-plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-700);
  font-family: var(--f-body);
}

.user-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}

.user-feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-100);
}

.user-feature-list li.included {
  color: var(--ink-900);
}

.user-feature-list li.included::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 700;
}

.user-feature-list li.excluded {
  color: var(--gray-400);
  text-decoration: line-through;
}

.user-feature-list li.excluded::before {
  content: "✕";
  color: var(--red-600);
}

/* ============================================================
   TIERED PRICING PLANS & ANNUAL TOGGLE STYLES
   ============================================================ */
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 44px;
}

.pricing-toggle-pill {
  display: inline-flex;
  background: #091322;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.pricing-toggle-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
}

.pricing-toggle-btn:hover {
  color: #ffffff;
}

.pricing-toggle-btn.active {
  background: #e88024;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(232, 128, 36, 0.45);
}

.pricing-toggle-btn .badge-save {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 2px;
}

.pricing-toggle-btn.active .badge-save {
  background: rgba(0, 0, 0, 0.2);
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1320px) {
  .pricing-plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

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

@media (max-width: 600px) {
  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.pricing-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.pricing-plan-card.popular {
  border: 2px solid #e88024;
  box-shadow: 0 12px 32px rgba(232, 128, 36, 0.18);
}

.pricing-plan-card.popular:hover {
  box-shadow: 0 16px 40px rgba(232, 128, 36, 0.28);
}

.pricing-plan-card.dark {
  background: #0b1727;
  border: 1px solid #1e293b;
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: #e88024;
  color: #ffffff;
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(232, 128, 36, 0.4);
}

.pricing-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pricing-plan-title {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.2;
}

.pricing-plan-card.dark .pricing-plan-title {
  color: #ffffff;
}

.pricing-plan-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 18px;
  min-height: 38px;
}

.pricing-plan-card.dark .pricing-plan-subtitle {
  color: #94a3b8;
}

.pricing-price-wrap {
  margin-bottom: 22px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-price {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.pricing-plan-card.dark .pricing-price {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
}

.pricing-price .currency {
  font-size: 1.6rem;
  font-weight: 700;
}

.pricing-price .period {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
  font-family: var(--f-body);
}

.pricing-plan-card.dark .pricing-price .period {
  color: #94a3b8;
}

.pricing-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 5px;
  min-height: 18px;
}

.pricing-plan-card.dark .pricing-subtext {
  color: #94a3b8;
}

.pricing-specs-table {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  flex-grow: 1;
}

.pricing-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-spec-row:last-child {
  border-bottom: none;
}

.pricing-plan-card.dark .pricing-spec-row {
  border-bottom: 1px solid #1e293b;
}

.pricing-spec-label {
  color: #64748b;
  font-weight: 400;
}

.pricing-plan-card.dark .pricing-spec-label {
  color: #94a3b8;
}

.pricing-spec-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.pricing-plan-card.dark .pricing-spec-val {
  color: #ffffff;
}

.pricing-card-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.pricing-btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.pricing-btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.pricing-btn-dark {
  background: #0b1727;
  border: 1px solid #0b1727;
  color: #ffffff;
}

.pricing-btn-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
}

.pricing-btn-orange {
  background: #e88024;
  border: 1px solid #e88024;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(232, 128, 36, 0.35);
}

.pricing-btn-orange:hover {
  background: #cf6e1a;
  border-color: #cf6e1a;
  box-shadow: 0 6px 16px rgba(232, 128, 36, 0.45);
}


/* ---------- Comparison Section (Without vs With Commander ERP) ---------- */
.compare-section {
  padding: clamp(50px, 8vh, 90px) 0;
  position: relative;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 36px);
  align-items: stretch;
}

.compare-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.compare-card:hover {
  transform: translateY(-4px);
}

.compare-card-without {
  border: 1.5px solid #fee2e2;
  box-shadow: 0 12px 32px -8px rgba(220, 38, 38, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  background: linear-gradient(180deg, #ffffff 0%, #fffbfb 100%);
}

.compare-card-without:hover {
  box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.14);
}

.compare-card-with {
  border: 2px solid #10b981;
  box-shadow: 0 20px 44px -12px rgba(16, 185, 129, 0.22), 0 0 0 1px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, #ffffff 0%, #f7fef9 100%);
}

.compare-card-with:hover {
  box-shadow: 0 26px 52px -12px rgba(16, 185, 129, 0.3);
}

.compare-badge-pill {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.compare-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compare-icon-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.compare-icon-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.compare-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 99px;
}

.compare-tag-danger {
  background: #fee2e2;
  color: #991b1b;
}

.compare-tag-success {
  background: #dcfce7;
  color: #166534;
}

.compare-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink-900);
}

.compare-lead {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-700);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-800);
}

.compare-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-bullet-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.compare-bullet-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.compare-item-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 2px;
}

@media (max-width: 850px) {
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Responsive Blog Card Thumbnails (Full 16:9, No Cut-Off) ---------- */
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
  display: block;
}

.blog-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .blog-card-thumb img {
  transform: scale(1.03);
}

/* ================================================================
   BLOG PAGE — RESPONSIVE OVERRIDES
   Targets: blog.php, blog-category.php, blog-single.php
   ================================================================ */

/* ── Container horizontal padding on narrow screens ─────────────── */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
}

/* ── Blog hero section ───────────────────────────────────────────── */
.hero-inner h1 {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .hero-inner {
    padding-top: 56px;
    padding-bottom: 36px;
    text-align: center;
  }

  .hero-inner h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    line-height: 1.25;
  }

  .hero-inner .lead {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .hero-inner .pill {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .hero-inner h1 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }
}

/* ── Category filter pills ───────────────────────────────────────── */
.blog-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

@media (max-width: 600px) {
  .blog-filter-bar {
    gap: 8px;
    margin-bottom: 28px;
  }

  .blog-filter-bar .btn-sm {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* ── Blog grid ───────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Blog article card ───────────────────────────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  height: 100%;
}

.blog-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 600px) {
  .blog-card-body {
    padding: 16px 18px 20px;
  }

  .blog-card-body h3 {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin: 6px 0 10px !important;
  }

  .blog-card-body .blog-meta {
    font-size: 0.75rem;
  }
}

/* ── Thumbnail aspect ratio ──────────────────────────────────────── */
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .blog-card-thumb {
    aspect-ratio: 16 / 8;
  }
}

/* ── Pagination ──────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .blog-pagination {
    gap: 6px;
    margin-top: 32px;
  }

  .blog-pagination .btn-sm {
    min-width: 36px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

/* ── Blog section outer padding ─────────────────────────────────── */
@media (max-width: 768px) {
  .blog-section {
    padding: 28px 0 60px;
  }
}

@media (max-width: 480px) {
  .blog-section {
    padding: 20px 0 48px;
  }
}