/* 
 * Knoxify Digital - Premium Light-First Agency Stylesheet
 * Refactored for visual balance: 75-80% Light / 20-25% Dark Contrast
 */

/* ==========================================================================
   BRAND TOKENS
   One orange hue, from tint to shade. The anchor is #F15A24 = rgb(241 90 36).
   Change a value here and every button, link, border, icon and glow that
   references it follows. Neutrals stay cool on purpose so orange is the only
   colour with a voice.
   ========================================================================== */
:root {
  /* ---- Orange ramp -------------------------------------------------- */
  --brand-50:  #FFF7ED;   /* Faintest wash - badge + section backgrounds */
  --brand-100: #FFEDD5;   /* Muted surface - icon chips, soft fills */
  --brand-200: #FED7AA;   /* Soft border on light surfaces */
  --brand-300: #FDBA74;   /* Hover accent on dark surfaces */
  --brand-400: #FB923C;   /* Accent on dark surfaces */
  --brand-500: #F97316;   /* Mid orange - glows, rings, gradient tail */
  --brand-600: #EA580C;   /* Secondary - gradient head, link hover */
  --brand-700: #F15A24;   /* PRIMARY - the anchor brand orange */
  --brand-800: #D94718;   /* Hover on solid fills */
  --brand-900: #B54A0F;   /* Active / pressed on solid fills */
  --brand-950: #7C2D12;   /* Deep orange ground for dark-section chips */

  /* ---- Semantic roles ---------------------------------------------- */
  --color-brand-primary:   var(--brand-700);  /* Buttons, links, active nav */
  --color-brand-secondary: var(--brand-600);  /* Gradient partner, link hover */
  --color-brand-accent:    var(--brand-400);  /* Highlight on dark sections */
  --color-brand-hover:     var(--brand-800);  /* Solid-fill hover */
  --color-brand-active:    var(--brand-900);  /* Solid-fill pressed */
  --color-brand-muted:     var(--brand-100);  /* Muted chip / tag surface */
  --color-brand-subtle:    var(--brand-50);   /* Background tint */
  --color-brand-border:    var(--brand-200);  /* Border on light surfaces */
  --color-brand-ring:      var(--brand-300);  /* Focus ring */

  /* Raw channels, for rgb(var(--x) / alpha) tints that stay in-hue */
  --brand-rgb-primary:   241 90 36;
  --brand-rgb-secondary: 217 71 24;
  --brand-rgb-accent:    255 112 67;

  /* ---- Gradients ---------------------------------------------------- */
  --gradient-brand:      linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  --gradient-brand-deep: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  --gradient-brand-soft: linear-gradient(135deg, var(--brand-50) 0%, #FFFFFF 55%, var(--brand-50) 100%);
  --gradient-brand-line: linear-gradient(90deg, transparent 0%, var(--brand-600) 50%, transparent 100%);
  --gradient-brand-dark: linear-gradient(135deg, #FFFFFF 20%, var(--brand-400) 100%);

  /* ---- Shadows ------------------------------------------------------ */
  --shadow-brand-sm: 0 4px 14px 0 rgb(var(--brand-rgb-primary) / 0.25);
  --shadow-brand-md: 0 8px 24px 0 rgb(var(--brand-rgb-primary) / 0.30);
  --shadow-brand-lg: 0 16px 40px -12px rgb(var(--brand-rgb-primary) / 0.35);

  /* ---- Neutrals ------------------------------------------------------ */
  --color-brand-dark: #050817;     /* Deep navy-black for dark contrast sections */
  --color-light-base: #F8FAFC;     /* Off-white base */
  --color-light-surface: #FFFFFF;  /* White card/panel base */
  --color-light-border: #E2E8F0;   /* Subtle border */
  --color-text-main: #0F172A;      /* Primary text (Slate 900) */
  --color-text-muted: #475569;     /* Secondary text (Slate 600) */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-primary);
}

/* Base Body Styles */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-light-base);
  color: var(--color-text-main);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--color-light-base);
  color: var(--color-text-main);
}

/* Reusable Theme Component Classes */
.section-light {
  background-color: var(--color-light-base);
  color: #0F172A;
  position: relative;
}

.section-dark {
  background-color: #050817;
  color: #F8FAFC;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.card-light {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-light:hover {
  border-color: var(--color-brand-border);
  box-shadow: 0 10px 25px -5px rgb(var(--brand-rgb-primary) / 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.card-dark {
  background: linear-gradient(180deg, rgba(21, 29, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-dark:hover {
  border-color: rgb(var(--brand-rgb-accent) / 0.45);
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background-image: var(--gradient-brand);
  background-color: var(--color-brand-primary); /* fallback if gradients are off */
  color: #FFFFFF;
  box-shadow: var(--shadow-brand-sm);
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-image: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 100%);
  background-color: var(--color-brand-hover);
  box-shadow: var(--shadow-brand-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-image: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  background-color: var(--color-brand-active);
  box-shadow: 0 2px 8px 0 rgb(var(--brand-rgb-primary) / 0.30);
  transform: translateY(0);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background-color: #FFFFFF;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: var(--color-brand-subtle);
  color: var(--color-brand-primary);
  border-color: var(--color-brand-border);
  transform: translateY(-1px);
}

.btn-secondary:active {
  background-color: var(--color-brand-muted);
  color: var(--color-brand-active);
  transform: translateY(0);
}

/* Grid & Layering Background Utility for Light Theme */
.bg-grid-pattern-light {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgb(var(--brand-rgb-primary) / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--brand-rgb-primary) / 0.05) 1px, transparent 1px);
}

.bg-dot-pattern-light {
  background-image: radial-gradient(rgb(var(--brand-rgb-primary) / 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Grid & Layering Background Utility for Dark Theme */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgb(var(--brand-rgb-accent) / 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --------------------------------------------------------------------------
   Text & surface gradients
   All built from the brand ramp, so a headline, a button and a divider all
   read as the same orange. The old .text-gradient-cyan / -blue names are kept
   as aliases so existing markup keeps working.
   -------------------------------------------------------------------------- */
.text-gradient-brand,
.text-gradient-ember,
.text-gradient-deep,
.text-gradient-cyan,
.text-gradient-blue {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* On light surfaces - primary orange into mid orange */
.text-gradient-brand {
  background-image: var(--gradient-brand);
}

/* On dark surfaces - white easing into the accent orange */
.text-gradient-ember,
.text-gradient-cyan {
  background-image: var(--gradient-brand-dark);
}

/* Deep, high-contrast variant for oversized display headings */
.text-gradient-deep,
.text-gradient-blue {
  background-image: var(--gradient-brand-deep);
}

/* Surface gradients - use these instead of hand-rolled from-/to- pairs */
.bg-gradient-brand {
  background-image: var(--gradient-brand);
}

.bg-gradient-brand-deep {
  background-image: var(--gradient-brand-deep);
}

.bg-gradient-brand-soft {
  background-image: var(--gradient-brand-soft);
}

/* 1px hairline that fades in from both edges - section + card top rules */
.divider-brand {
  height: 1px;
  border: 0;
  background-image: var(--gradient-brand-line);
}

/* Short solid accent bar under a section heading */
.accent-bar-brand {
  background-image: linear-gradient(90deg, var(--brand-700) 0%, var(--brand-500) 100%);
  border-radius: 9999px;
}

/* Glassmorphism Panels */
.glass-panel-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.glass-panel {
  background: rgba(21, 29, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #E2E8F0;
}

.glass-card {
  background: linear-gradient(180deg, rgba(21, 29, 42, 0.8) 0%, rgba(15, 23, 42, 0.5) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgb(var(--brand-rgb-accent) / 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgb(var(--brand-rgb-primary) / 0.28);
}

/* Animated Underline for Links */
.link-hover-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.link-hover-arrow svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-hover-arrow:hover svg {
  transform: translateX(4px);
}

/* Custom Hero Slider Control Progress Bar */
.slider-progress-bar {
  transition: width 0.1s linear;
}

/* Marquee Scrolling Animation for Technologies & Logos */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Reveal Animation Classes - Snappy entrance */
.reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ICON SYSTEM
   Every icon is inline SVG printed by includes/icons.php, so it inherits the
   current text colour. The rules below add the motion and colour behaviour.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand tiles - social & technology logos that light up in their own colour
   The --brand and --brand-rgb custom properties are set inline per logo by
   brand_style() in includes/icons.php.
   -------------------------------------------------------------------------- */
.brand-tile {
  --brand: #64748B;
  --brand-rgb: 100 116 139;
  position: relative;
  isolation: isolate;
  transition:
    color 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-tile svg {
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Soft coloured glow that fades in behind the logo */
.brand-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgb(var(--brand-rgb) / 0.12);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-tile:hover,
.brand-tile:focus-visible {
  color: var(--brand);
  border-color: rgb(var(--brand-rgb) / 0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -10px rgb(var(--brand-rgb) / 0.65);
  outline: none;
}

.brand-tile:hover::before,
.brand-tile:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.brand-tile:hover svg,
.brand-tile:focus-visible svg {
  transform: scale(1.14);
}

.brand-tile:active {
  transform: translateY(-1px) scale(0.97);
}

/* Force brand color state as default for premium cards */
.brand-tile-active {
  color: var(--brand) !important;
  border-color: rgb(var(--brand-rgb) / 0.55) !important;
  box-shadow: 0 4px 14px -4px rgb(var(--brand-rgb) / 0.3) !important;
}
.brand-tile-active::before {
  opacity: 1 !important;
  transform: scale(1) !important;
}
.brand-tile-active[data-brand="instagram"] {
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.brand-tile-active[data-brand="instagram"]::before {
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%) !important;
  opacity: 1 !important;
}

/* Instagram has no single flat colour, so its tile washes in the real gradient */
.brand-tile[data-brand="instagram"]:hover,
.brand-tile[data-brand="instagram"]:focus-visible {
  color: #FFFFFF;
  border-color: transparent;
}

.brand-tile[data-brand="instagram"]:hover::before,
.brand-tile[data-brand="instagram"]:focus-visible::before {
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%);
  opacity: 1;
}

/* Inline logo used in body text or beside a label (no tile around it) */
.brand-inline {
  --brand: #64748B;
  --brand-rgb: 100 116 139;
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-inline:hover,
.group:hover .brand-inline {
  color: var(--brand);
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   2. Icon badges - the rounded chip that carries a UI icon on cards
   -------------------------------------------------------------------------- */
.icon-badge {
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.icon-badge svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.group:hover .icon-badge,
.icon-badge:hover {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 10px 22px -10px rgb(var(--brand-rgb-primary) / 0.45);
}

.group:hover .icon-badge svg,
.icon-badge:hover svg {
  transform: scale(1.1) rotate(4deg);
}

/* Dark-section badges glow with the lighter accent orange */
.card-dark .icon-badge,
.group:hover .card-dark .icon-badge {
  box-shadow: none;
}

.group:hover .icon-badge.icon-badge-dark,
.icon-badge.icon-badge-dark:hover {
  box-shadow: 0 10px 24px -10px rgb(var(--brand-rgb-accent) / 0.55);
  border-color: rgb(var(--brand-rgb-accent) / 0.55);
}

/* --------------------------------------------------------------------------
   3. Draw-in - outline icons sketch themselves when scrolled into view
   Works because icons.php stamps pathLength="1" on every outline path, so one
   dash value fits every icon regardless of its real length.
   -------------------------------------------------------------------------- */
.icon-draw svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.icon-draw.is-drawn svg path {
  animation: icon-draw-in 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.icon-draw.is-drawn svg path:nth-child(2) { animation-delay: 0.06s; }
.icon-draw.is-drawn svg path:nth-child(3) { animation-delay: 0.12s; }

@keyframes icon-draw-in {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   4. Spotlight - a soft highlight that follows the cursor across a card
   assets/js/animations.js writes --mx / --my as the pointer moves.
   -------------------------------------------------------------------------- */
.spotlight-card {
  position: relative;
  isolation: isolate;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgb(var(--brand-rgb-accent) / 0.16),
    transparent 62%
  );
  transition: opacity 0.4s ease;
}

.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* Light-surface variant uses the deep primary orange instead of the accent */
.spotlight-card-light::after {
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgb(var(--brand-rgb-primary) / 0.09),
    transparent 62%
  );
}

/* --------------------------------------------------------------------------
   5. Marquee edge fade for the client logo strip
   -------------------------------------------------------------------------- */
.marquee-mask {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

/* --------------------------------------------------------------------------
   6. Small shared icon motions
   -------------------------------------------------------------------------- */

/* Arrow nudges right on hover (used on every "read more" style link) */
.icon-nudge {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .icon-nudge,
a:hover > .icon-nudge,
button:hover > .icon-nudge {
  transform: translateX(4px);
}

/* Chevron flip for accordions and dropdowns */
.icon-flip {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-open .icon-flip,
.icon-flip.rotate-180 {
  transform: rotate(180deg);
}

/* Gentle idle float, used sparingly on hero-level icons */
.icon-float {
  animation: icon-float 6s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Ticks inside feature lists pop slightly when their row is hovered */
.feature-row .icon-tick {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.feature-row:hover .icon-tick {
  transform: scale(1.2);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Never leave an icon half-drawn when motion is switched off */
  .icon-draw svg path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  .brand-tile:hover,
  .icon-badge:hover,
  .group:hover .icon-badge {
    transform: none !important;
  }
}

/* CTA Floating animation and micro-interactions */
@keyframes ctaFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: ctaFloat 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: ctaFloat 5s ease-in-out 2.5s infinite;
}

/* ==========================================================================
   Editorial Blog Detail Content Typography
   Rich styling for HTML content rendered from CKEditor / raw HTML
   ========================================================================== */
.article-content-body {
  color: #334155;
  font-size: 1.125rem;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
}

.article-content-body > *:first-child {
  margin-top: 0 !important;
}

.article-content-body > *:last-child {
  margin-bottom: 0 !important;
}

.article-content-body h1,
.article-content-body h2,
.article-content-body h3,
.article-content-body h4,
.article-content-body h5,
.article-content-body h6 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

.article-content-body h1 {
  font-size: 2.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.article-content-body h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.article-content-body h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content-body h4 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-content-body p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: #334155;
  text-align: justify;
  text-justify: inter-word;
}

.article-content-body strong,
.article-content-body b {
  color: #0f172a;
  font-weight: 700;
}

.article-content-body a {
  color: var(--color-brand-primary, #F15A24);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-content-body a:hover {
  color: var(--color-brand-secondary, #D94718);
}

.article-content-body ul {
  list-style-type: disc;
  padding-left: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.article-content-body ol {
  list-style-type: decimal;
  padding-left: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.article-content-body li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: #334155;
  text-align: justify;
  text-justify: inter-word;
}

.article-content-body blockquote {
  border-left: 4px solid var(--color-brand-primary, #F15A24);
  background: #FFF7ED;
  padding: 1.25rem 1.75rem;
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  color: #1e293b;
  margin: 2rem 0;
  text-align: justify;
  text-justify: inter-word;
}

.article-content-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-content-body pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin: 1.75rem 0;
  border: 1px solid #1e293b;
  text-align: left;
}

.article-content-body code {
  background: #f1f5f9;
  color: #ea580c;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-content-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ==========================================================================
   Editorial Blog Content - Structured & Responsive Tables
   Ensures tables from CKEditor and raw HTML are beautiful, clean, and mobile-friendly
   ========================================================================== */
.article-content-body figure.table,
.article-content-body .table-responsive {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 2.25rem 0 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.04);
  background: #ffffff;
}

/* Custom smooth scrollbar for horizontal table scrolling */
.article-content-body figure.table::-webkit-scrollbar,
.article-content-body .table-responsive::-webkit-scrollbar {
  height: 6px;
}

.article-content-body figure.table::-webkit-scrollbar-track,
.article-content-body .table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.article-content-body figure.table::-webkit-scrollbar-thumb,
.article-content-body .table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.article-content-body figure.table::-webkit-scrollbar-thumb:hover,
.article-content-body .table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Table element */
.article-content-body table {
  width: 100% !important;
  min-width: 580px; /* Prevents squished columns on mobile */
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: left !important;
}

/* Header Cells (th) */
.article-content-body th {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 1rem 1.25rem !important;
  border-top: none !important;
  border-bottom: 2px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-left: none !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.article-content-body th:last-child {
  border-right: none !important;
}

/* Data Cells (td) */
.article-content-body td {
  padding: 1rem 1.25rem !important;
  vertical-align: top !important; /* Multi-line comparisons stay neatly aligned */
  color: #334155 !important;
  border-top: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-right: 1px solid #f1f5f9 !important;
  border-left: none !important;
  text-align: left !important;
  line-height: 1.65 !important;
}

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

.article-content-body tr:last-child td {
  border-bottom: none !important;
}

/* Row zebra striping & hover highlighting */
.article-content-body tbody tr:nth-child(even),
.article-content-body tr:nth-child(even) td {
  background-color: #fafbfd;
}

.article-content-body tbody tr:hover td,
.article-content-body tr:hover td {
  background-color: #f1f5f9;
  transition: background-color 0.15s ease-in-out;
}

/* Bold accents in tables */
.article-content-body td strong,
.article-content-body td b {
  color: #0f172a;
}

/* Mobile swipe hint */
@media (max-width: 640px) {
  .article-content-body figure.table::after,
  .article-content-body .table-responsive::after {
    content: "↔ Swipe horizontally to view full table";
    display: block;
    text-align: right;
    font-size: 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.4rem 0.85rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    letter-spacing: 0.02em;
  }
}

.article-content-body img {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.article-content-body hr {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 2.5rem 0;
}


