/*
Theme Name: Krypton
Theme URI: https://github.com/bishowshrestha9/krypton_theme
Author: Bishow Shrestha
Author URI: https://github.com/bishowshrestha9
Description: A high-performance, modern custom WordPress theme tailored for supplement reviews, health & wellness guides, and affiliate marketing.
Version: 1.1.38
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krypton
Tags: blog, e-commerce, custom-colors, grid-layout, two-columns, full-width-template
*/

/* ==========================================================================
   1. Local Typography Engine (Inter & Montserrat - Self-Hosted WOFF2)
   ========================================================================== */

/* Inter (Variable Font: 100 to 900) - Latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter (Variable Font: 100 to 900) - Latin-Ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat (Variable Font: 100 to 900) - Latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat (Variable Font: 100 to 900) - Latin-Ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fallback Metric Overrides: Matches system Arial to exact Inter & Montserrat dimensions to eliminate CLS & FOUT */
@font-face {
  font-family: 'Inter-Fallback';
  src: local('Arial'), local('Helvetica');
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

@font-face {
  font-family: 'Montserrat-Fallback';
  src: local('Arial'), local('Helvetica');
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* ==========================================================================
   2. Design Tokens & CSS Custom Properties
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --color-primary: #6EA590;
  --color-primary-hover: #5a8c79;
  --color-primary-active: #4a7464;
  --color-primary-light: #eef6f3;
  --color-primary-muted: rgba(110, 165, 144, 0.15);

  /* Hyperlink Blue Palette */
  --color-link: #2563EB;
  --color-link-hover: #1D4ED8;
  --color-link-active: #1E40AF;
  --color-link-light: #EFF6FF;

  /* Secondary & Accent Accents */
  --color-accent: #E07A5F;
  --color-accent-hover: #c9654c;
  --color-accent-light: #fdf2ef;
  --color-rating-star: #F5A623;
  --color-badge-popular: #2A9D8F;

  /* Status Colors */
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-danger: #D32F2F;
  --color-danger-bg: #FFEBEE;
  --color-warning: #ED6C02;
  --color-warning-bg: #FFF4E5;

  /* Typography Colors */
  --color-text-main: #333333;
  --color-text-heading: #1B2421;
  --color-text-muted: #64748B;
  --color-text-subtle: #94A3B8;
  --color-text-inverse: #FFFFFF;

  /* Backgrounds & Surfaces */
  --color-bg-body: #F8F9FA;
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-elevated: #FFFFFF;
  --color-bg-subtle: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;

  /* Typography Stack with Layout Shift (CLS) Eliminating Metric Fallbacks */
  --font-family-sans: 'Inter', 'Inter-Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-heading: 'Montserrat', 'Montserrat-Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Font Sizes (Scale) */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1.125rem; /* 18px (increased from 16px) */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout Containers */
  --container-max-width: 1240px;
  --container-narrow-width: 860px;
  --container-padding: 1.5rem;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(27, 36, 33, 0.04), 0 1px 3px rgba(27, 36, 33, 0.06);
  --shadow-md: 0 4px 14px rgba(27, 36, 33, 0.08), 0 1px 4px rgba(27, 36, 33, 0.04);
  --shadow-lg: 0 12px 28px rgba(27, 36, 33, 0.1), 0 3px 8px rgba(27, 36, 33, 0.05);
  --shadow-card-hover: 0 16px 36px rgba(110, 165, 144, 0.16), 0 4px 10px rgba(27, 36, 33, 0.06);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. Modern CSS Reset & Box-Sizing Rules
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-normal);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Site & Main Containers - prevent horizontal spillover */
#page,
.site-wrapper,
.krypton-site-wrapper,
#content,
.site-content,
.site-main,
.krypton-single-post-wrapper,
.krypton-single-post {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Media Elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form Elements Reset */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* List Reset */
ul,
ol {
  list-style-position: inside;
}

/* Links */
a {
  color: var(--color-link, #2563EB);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover, #1D4ED8);
  text-decoration: underline;
}

/* ==========================================================================
   4. Typography (Montserrat & Inter Hierarchy)
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Montserrat', var(--font-family-heading), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

h1, .h1 {
  font-size: clamp(2rem, 4vw + 1rem, var(--font-size-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-size: clamp(1.625rem, 2.5vw + 1rem, var(--font-size-3xl));
  font-weight: 700;
}

h3, .h3 {
  font-size: clamp(1.25rem, 1.5vw + 1rem, var(--font-size-2xl));
  font-weight: 700;
}

h4, .h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

h5, .h5 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

h6, .h6 {
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

p {
  font-family: 'Inter', var(--font-family-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 1.125rem; /* 18px (increased from 16px) */
  font-weight: 400;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

strong,
b,
th {
  font-family: var(--font-family-heading);
  font-weight: 600;
  color: var(--color-text-heading);
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-main);
}

/* ==========================================================================
   5. Base Layout & Structural Containers
   ========================================================================== */
.krypton-site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  padding: var(--space-10) 0;
}

.krypton-container,
.krypton-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.krypton-container-narrow {
  max-width: var(--container-narrow-width);
}

/* ==========================================================================
   Header, Announcement Bar & Navigation (Matched to Design Reference)
   ========================================================================== */

/* Top Announcement Bar */
.krypton-top-announcement-bar {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13.5px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.krypton-top-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-announcement-text {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-family-sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Main Header Container (Sticky) */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0;
}

.krypton-site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  box-sizing: border-box;
}

/* Site Branding & Logo */
.site-branding {
  display: flex;
  align-items: center;
  justify-self: start;
  flex-shrink: 0;
}

.krypton-site-logo {
  font-family: var(--font-family-heading);
  font-size: 23px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  letter-spacing: -0.015em;
  line-height: 1;
  transition: color var(--transition-fast);
}

.krypton-site-logo:hover {
  color: var(--color-primary);
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.custom-logo-link img {
  max-height: 36px;
  width: auto;
  display: block;
}

/* Primary Navigation Menu (Strict Horizontal & Centered) */
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 0 auto;
}

.krypton-primary-menu-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation ul,
.main-navigation .krypton-primary-menu-nav,
.main-navigation .menu,
.krypton-primary-menu-container > ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.25vw, 1.5rem);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li,
.main-navigation .page_item,
.main-navigation .menu-item {
  display: inline-flex !important;
  align-items: center !important;
  position: relative;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation a,
.main-navigation .page_item a,
.main-navigation .menu-item a {
  font-family: var(--font-family-sans);
  font-size: 15px;
  font-weight: 500;
  color: #2b2b2b;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              color 0.2s ease,
              box-shadow 0.24s ease;
  will-change: transform, background-color;
}

.main-navigation a:hover,
.main-navigation .page_item a:hover,
.main-navigation .menu-item a:hover {
  color: var(--color-primary);
  background-color: rgba(110, 165, 144, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(110, 165, 144, 0.14);
}

.main-navigation a:active,
.main-navigation .page_item a:active,
.main-navigation .menu-item a:active {
  transform: translateY(0);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--color-primary);
  background-color: rgba(110, 165, 144, 0.08);
  font-weight: 600;
}

.main-navigation .current-menu-item > a:hover,
.main-navigation .current_page_item > a:hover {
  background-color: rgba(110, 165, 144, 0.18);
  transform: translateY(-2px);
}

/* Dropdown Sub-menus */
.main-navigation ul ul,
.krypton-primary-menu-nav .sub-menu,
.main-navigation .children {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 210px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) 0 !important;
  list-style: none !important;
  display: none !important;
  flex-direction: column !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 110;
}

/* Transparent bridge so moving cursor between menu item and dropdown never drops hover */
.main-navigation ul ul::before,
.krypton-primary-menu-nav .sub-menu::before,
.main-navigation .children::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  display: block;
}

.main-navigation li:hover > ul,
.main-navigation li:hover > .sub-menu,
.main-navigation li:hover > .children {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul ul li,
.krypton-primary-menu-nav .sub-menu li,
.main-navigation .children li {
  display: block !important;
  width: 100%;
}

.main-navigation ul ul a,
.krypton-primary-menu-nav .sub-menu a,
.main-navigation .children a {
  padding: 9px 18px;
  display: block;
  font-size: 14px;
  color: #333333;
  border-radius: 8px;
  margin: 2px 8px;
  background-color: transparent;
  transform: scale(1);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.22s ease,
              color 0.2s ease,
              padding-left 0.22s ease;
}

.main-navigation ul ul a:hover,
.krypton-primary-menu-nav .sub-menu a:hover,
.main-navigation .children a:hover {
  background-color: rgba(110, 165, 144, 0.12);
  color: var(--color-primary-hover);
  transform: scale(1.03) translateX(4px);
}

/* Utility Actions: Header Search Form & Controls */
.krypton-header-utility-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  margin-left: 0;
  flex-shrink: 0;
}

.krypton-header-search-form {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.krypton-header-search-box {
  display: flex;
  align-items: center;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
  padding: 3px 5px 3px 14px;
  width: 220px;
  position: relative;
  transition: width 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.22s ease,
              background-color 0.22s ease,
              box-shadow 0.24s ease;
}

.krypton-header-search-box:hover {
  border-color: #CBD5E1;
  background-color: #FFFFFF;
}

.krypton-header-search-box:focus-within {
  width: 260px;
  border-color: var(--color-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(110, 165, 144, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.krypton-header-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family-sans);
  font-size: 13.5px;
  color: #1F2937;
  padding: 5px 6px 5px 0;
}

.krypton-header-search-input::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

.krypton-header-search-input::-webkit-search-decoration,
.krypton-header-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.krypton-header-search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transform: scale(1);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.2s ease,
              box-shadow 0.2s ease;
}

.krypton-header-search-submit-btn:hover {
  background-color: var(--color-primary-hover, #5a8c79);
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(110, 165, 144, 0.35);
}

.krypton-header-search-submit-btn:active {
  transform: scale(0.96);
}

.krypton-header-search-submit-btn .krypton-search-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* Fallback Search Trigger (if reused) */
.krypton-search-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 8px;
  color: #111111;
  cursor: pointer;
  text-decoration: none;
  border-radius: 50%;
  transform: scale(1);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.24s ease,
              color 0.2s ease,
              box-shadow 0.24s ease;
}

.krypton-search-trigger-btn:hover {
  color: var(--color-primary);
  background-color: rgba(110, 165, 144, 0.12);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(110, 165, 144, 0.12);
}

.krypton-search-trigger-btn:active {
  transform: scale(0.96);
}

.krypton-search-trigger-btn .krypton-search-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* ==========================================================================
   4.1 Mobile Navigation & Hamburger Menu Component
   ========================================================================== */

/* Hamburger Toggle Button - hidden by default on desktop */
.krypton-mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  color: #111827;
  transition: all var(--transition-fast);
  z-index: 102;
  box-sizing: border-box;
  flex-shrink: 0;
}

.krypton-mobile-menu-toggle:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
}

.krypton-mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 3-line Animated Hamburger Icon - 100% Mathematically Aligned */
.krypton-burger-box {
  width: 20px;
  height: 14px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative;
  box-sizing: border-box;
}

.krypton-burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #111827;
  border-radius: 2px;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.2s ease,
              background-color 0.2s ease;
  transform-origin: center;
}

/* Morph into perfect "X" when active */
.krypton-mobile-menu-toggle.is-active {
  border-color: #CBD5E1;
  background-color: #F1F5F9;
}

.krypton-mobile-menu-toggle.is-active .krypton-burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.krypton-mobile-menu-toggle.is-active .krypton-burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.krypton-mobile-menu-toggle.is-active .krypton-burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer Panel */
.krypton-mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background-color: #FFFFFF;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.14);
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s;
  box-sizing: border-box;
}

.krypton-mobile-nav-drawer.is-open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Mobile Backdrop Overlay */
.krypton-mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.krypton-mobile-backdrop.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.is-mobile-menu-open {
  overflow: hidden !important;
}

/* Offset for WordPress Admin Bar if logged in */
body.admin-bar .krypton-mobile-nav-drawer,
body.admin-bar .krypton-mobile-backdrop {
  top: 46px;
  height: calc(100vh - 46px);
  height: calc(100dvh - 46px);
}

@media (min-width: 783px) {
  body.admin-bar .krypton-mobile-nav-drawer,
  body.admin-bar .krypton-mobile-backdrop {
    top: 32px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
  }
}

/* Drawer Inner Layout */
.krypton-mobile-nav-inner {
  padding: 68px 24px 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Drawer Close Button */
.krypton-mobile-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background-color: #F8FAFC;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.krypton-mobile-drawer-close:hover {
  background-color: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

/* Mobile Search Inside Drawer */
.krypton-mobile-search-wrapper {
  margin-bottom: 4px;
}

.krypton-mobile-search-form {
  display: flex;
  align-items: center;
  position: relative;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.krypton-mobile-search-form:focus-within {
  border-color: var(--color-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(110, 165, 144, 0.18);
}

.krypton-mobile-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family-sans);
  font-size: 14px;
  color: #1E293B;
  padding: 4px 0;
}

.krypton-mobile-search-input::placeholder {
  color: #94A3B8;
  font-size: 13.5px;
}

.krypton-mobile-search-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}

.krypton-mobile-search-btn:hover {
  background-color: var(--color-primary-hover, #5a8c79);
}

/* Mobile Navigation Menu Links */
.krypton-mobile-menu-nav,
.krypton-mobile-menu-container > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.krypton-mobile-menu-nav li,
.krypton-mobile-menu-container li {
  margin: 0;
  padding: 0;
  position: relative;
}

.krypton-mobile-menu-nav li a,
.krypton-mobile-menu-container li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--font-family-heading);
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.krypton-mobile-menu-nav li a:hover,
.krypton-mobile-menu-container li a:hover,
.krypton-mobile-menu-nav li.current-menu-item > a,
.krypton-mobile-menu-container li.current-menu-item > a,
.krypton-mobile-menu-nav li.current_page_item > a,
.krypton-mobile-menu-container li.current_page_item > a {
  background-color: rgba(110, 165, 144, 0.12);
  color: var(--color-primary);
}

/* Sub-menus in Mobile Navigation */
.krypton-mobile-menu-nav ul.sub-menu,
.krypton-mobile-menu-container ul.children {
  list-style: none;
  margin: 4px 0 8px 12px;
  padding-left: 12px;
  border-left: 2px solid #E2E8F0;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.menu-item-has-children.sub-menu-open > ul.sub-menu,
.page_item_has_children.sub-menu-open > ul.children {
  display: flex !important;
}

.krypton-mobile-menu-nav ul.sub-menu li a,
.krypton-mobile-menu-container ul.children li a {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748B;
  padding: 8px 12px;
}

.krypton-mobile-menu-nav ul.sub-menu li a:hover,
.krypton-mobile-menu-container ul.children li a:hover {
  color: var(--color-primary);
  background-color: rgba(110, 165, 144, 0.08);
}

.krypton-sub-menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  position: absolute;
  right: 6px;
  top: 7px;
  border-radius: 6px;
  z-index: 2;
}

.krypton-sub-menu-toggle:hover {
  color: var(--color-primary);
  background-color: rgba(110, 165, 144, 0.1);
}

.menu-item-has-children.sub-menu-open > .krypton-sub-menu-toggle svg,
.page_item_has_children.sub-menu-open > .krypton-sub-menu-toggle svg {
  transform: rotate(180deg);
}

/* Responsive Breakpoint for Mobile & Tablet Nav (<= 1024px) */
@media (max-width: 1024px) {
  .site-header {
    padding: 13px 0;
  }

  .krypton-site-header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
  }

  /* Hide Desktop Horizontal Navigation */
  .main-navigation,
  .krypton-main-navigation {
    display: none !important;
  }

  /* Show Hamburger Button */
  .krypton-mobile-menu-toggle {
    display: inline-flex !important;
  }

  /* Enable Mobile Drawer & Backdrop */
  .krypton-mobile-nav-drawer,
  .krypton-mobile-backdrop {
    display: block !important;
  }

  /* Utility Actions on Tablet/Mobile */
  .krypton-header-utility-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .krypton-header-search-box {
    width: 175px;
  }

  .krypton-header-search-box:focus-within {
    width: 210px;
  }
}

@media (max-width: 768px) {
  /* On phone/small tablet screens, hide wide desktop search input to give logo and burger full room */
  .krypton-header-utility-actions .krypton-header-search-form {
    display: none !important;
  }
}

/* ==========================================================================
   5. Modern Footer (Black Background, Balanced Width & Social Media Icons)
   ========================================================================== */
.site-footer {
  background-color: #0A0A0A;
  color: #9CA3AF;
  padding: 60px 0 36px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: hidden;
}

.krypton-footer-container-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: clamp(20px, 3vw, 36px);
  padding-right: clamp(20px, 3vw, 36px);
  box-sizing: border-box;
  width: 100%;
}

/* Top Row: Headline, Pill CTA & Mission Statement */
.krypton-footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.krypton-footer-top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.krypton-footer-headline {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

.krypton-footer-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #FFFFFF;
  color: #111827;
  padding: 10px 12px 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.krypton-footer-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background-color: #F8FAFC;
  color: #111827;
}

.krypton-pill-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #111827;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.krypton-pill-btn-icon svg {
  stroke: #FFFFFF;
}

.krypton-footer-top-right {
  max-width: 460px;
  text-align: left;
  padding-top: 10px;
}

.krypton-footer-mission-statement {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.68;
  color: #9CA3AF;
  margin: 0;
  text-align: left;
}

/* Subtle Divider Rule - Equal Spacing Across Rows */
.krypton-footer-divider-rule {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
  margin: 38px 0;
}

/* Bottom Grid Layout - Proportional 4-Column Navigation */
.krypton-footer-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.15fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.krypton-footer-col-heading {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.krypton-footer-contact-details,
.krypton-footer-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.krypton-footer-contact-details li {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #9CA3AF;
}

.krypton-contact-lbl {
  color: #6B7280;
  margin-right: 4px;
}

.krypton-contact-val {
  color: #E5E7EB;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-contact-val:hover {
  color: #FFFFFF;
}

.krypton-footer-nav-menu a {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13.5px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.krypton-footer-nav-menu a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

/* Social Link with Vector Icons */
.krypton-footer-social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.krypton-footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #9CA3AF;
  transition: color var(--transition-fast);
}

.krypton-footer-social-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.krypton-footer-social-link:hover .krypton-footer-social-icon {
  color: #FFFFFF;
}

/* Sticky Go To Top Button with Animated Rotating Circle Ring */
.krypton-footer-scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #1F2937;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.krypton-footer-scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.krypton-footer-scroll-top-btn:hover {
  background-color: #374151;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* Rotating SVG Circle Ring */
.krypton-scroll-top-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: krypton-circle-spin 8s linear infinite;
  transform-origin: center;
}

.krypton-scroll-top-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
}

.krypton-scroll-top-rotating-ring {
  fill: none;
  stroke: var(--color-primary, #6EA590);
  stroke-width: 2.2;
  stroke-dasharray: 24 16 32 16;
  stroke-linecap: round;
}

.krypton-footer-scroll-top-btn:hover .krypton-scroll-top-circle-svg {
  animation-duration: 3.5s;
}

.krypton-footer-scroll-top-btn:hover .krypton-scroll-top-rotating-ring {
  stroke: #FFFFFF;
}

.krypton-scroll-top-arrow {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-fast);
}

.krypton-footer-scroll-top-btn:hover .krypton-scroll-top-arrow {
  transform: translateY(-2px);
}

@keyframes krypton-circle-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Bottom Legal Bar Divider - Equal Spacing Across Rows */
.krypton-footer-bottom-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
  margin: 36px 0 24px;
}

.krypton-footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  width: 100%;
  box-sizing: border-box;
  padding-right: 70px; /* Clearance for fixed scroll-to-top button */
}

.krypton-footer-copyright-text {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6B7280;
  margin: 0;
  line-height: 1.6;
  white-space: normal; /* Normal wrap prevents expanding sideways */
  flex: 1 1 480px;
  max-width: 620px;
}

.krypton-footer-legal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 1.8vw, 24px);
  flex-shrink: 0;
}

.krypton-footer-legal-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(14px, 1.8vw, 24px);
}

.krypton-footer-legal-nav li {
  margin: 0;
  padding: 0;
}

.krypton-footer-legal-nav a {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #9CA3AF;
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.krypton-footer-legal-nav a:hover {
  color: #FFFFFF;
}

/* Responsive Footer Queries */
@media (max-width: 960px) {
  .site-footer {
    padding: 44px 0 28px;
  }

  .krypton-footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .krypton-footer-top-right {
    text-align: left;
    max-width: 100%;
    padding-top: 0;
  }

  .krypton-footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .krypton-footer-divider-rule,
  .krypton-footer-bottom-divider {
    margin: 28px 0;
  }

  .krypton-footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-right: 60px;
  }

  .krypton-footer-copyright-text {
    white-space: normal;
    font-size: 12px;
    max-width: 100%;
  }

  .krypton-footer-legal-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .krypton-footer-legal-nav ul {
    flex-wrap: wrap;
    gap: 16px;
  }

  .krypton-footer-legal-nav a {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .krypton-footer-scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 36px 0 24px;
  }

  .krypton-footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .krypton-footer-divider-rule,
  .krypton-footer-bottom-divider {
    margin: 24px 0;
  }
}

/* ==========================================================================
   6. Affiliate Marketing & Supplement Review Components
   ========================================================================== */

/* Affiliate Disclosure Banner */
.krypton-affiliate-disclosure {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.krypton-affiliate-disclosure strong {
  color: var(--color-text-main);
}

/* Review / Product Card Component */
.krypton-product-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.krypton-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

/* Top Choice Ribbon Badge */
.krypton-product-badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.krypton-product-badge.gold {
  background-color: var(--color-rating-star);
}

/* Star Rating Element */
.krypton-star-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-rating-star);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.krypton-star-rating .krypton-rating-score {
  font-family: var(--font-family-heading);
  color: var(--color-text-heading);
  margin-left: var(--space-2);
}

/* Pros and Cons Split Grid */
.krypton-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

@media (min-width: 640px) {
  .krypton-pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.krypton-pros-box,
.krypton-cons-box {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.krypton-pros-box {
  background-color: var(--color-success-bg);
  border-color: rgba(46, 125, 50, 0.2);
}

.krypton-pros-box h4 {
  color: var(--color-success);
  margin-top: 0;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.krypton-cons-box {
  background-color: var(--color-danger-bg);
  border-color: rgba(211, 47, 47, 0.2);
}

.krypton-cons-box h4 {
  color: var(--color-danger);
  margin-top: 0;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.krypton-pros-box ul,
.krypton-cons-box ul {
  list-style: none;
}

.krypton-pros-box li,
.krypton-cons-box li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.krypton-pros-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.krypton-cons-box li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 700;
}

/* Call To Action Buttons */
.krypton-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-base);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
}

.krypton-btn-primary,
.krypton-btn-affiliate {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 14px rgba(110, 165, 144, 0.35);
}

.krypton-btn-primary:hover,
.krypton-btn-affiliate:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(110, 165, 144, 0.45);
}

.krypton-btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.krypton-btn-secondary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.krypton-btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
}

.krypton-btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224, 122, 95, 0.4);
}

.krypton-btn-block {
  display: flex;
  width: 100%;
}

/* Comparison Table */
.krypton-comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
  margin: var(--space-8) 0;
}

.krypton-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.krypton-comparison-table th {
  background-color: var(--color-bg-subtle);
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-heading);
  border-bottom: 2px solid var(--color-border);
}

.krypton-comparison-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

.krypton-comparison-table tr:last-child td {
  border-bottom: none;
}

.krypton-comparison-table tr:hover td {
  background-color: var(--color-primary-light);
}

/* ==========================================================================
   7. WordPress Core Class Compatibility
   ========================================================================== */
.alignwide {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.aligncenter,
div.aligncenter,
figure.aligncenter {
  display: table;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  clear: both;
}

img.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  clear: both;
}

.alignleft {
  float: left;
  margin-right: var(--space-6);
  margin-bottom: var(--space-4);
}

.alignright {
  float: right;
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.wp-caption {
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   8. Front Page Hero Section (Two-Column Layout)
   ========================================================================== */
.krypton-hero-section {
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(ellipse 65% 55% at 78% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(99, 102, 241, 0.035) 0%, transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3rem;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.krypton-hero-container-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  width: 100%;
}

/* Left Column: Typography, Search & Features */
.krypton-hero-left-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  padding-top: 1.5rem;
  padding-bottom: 0;
  transform: none;
}

/* Trust Badge Pill Above Headline */
.krypton-hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ECFDF5;
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 4px 14px 4px 5px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  width: fit-content;
  transition: all var(--transition-fast, 0.2s ease);
}

.krypton-hero-badge-pill:hover {
  background-color: #E6FAF0;
  border-color: rgba(16, 185, 129, 0.45);
}

.krypton-hero-badge-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.krypton-hero-badge-icon {
  display: block;
}

.krypton-hero-badge-text {
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 600;
  color: #065F46;
  letter-spacing: 0.01em;
}

.krypton-hero-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: clamp(2.35rem, 3.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111827;
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.krypton-hero-subheadline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  font-weight: 400;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 2rem;
  max-width: 530px;
}

/* Customized Search Bar */
.krypton-hero-search-wrapper {
  margin-bottom: 2.25rem;
  max-width: 520px;
  width: 100%;
}

.krypton-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.krypton-search-input-wrapper {
  position: relative;
  flex: 1;
}

.krypton-search-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.krypton-search-field-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  background-color: #FFFFFF;
  padding: 0 16px 0 48px;
  font-family: var(--font-family-sans);
  font-size: 15px;
  color: #1F2937;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.krypton-search-field-input::placeholder {
  color: #9CA3AF;
}

.krypton-search-field-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(110, 165, 144, 0.2);
}

.krypton-search-submit-btn {
  height: 52px;
  padding: 0 28px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-family-heading);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.krypton-search-submit-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(110, 165, 144, 0.35);
}

/* Feature Row & Badges */
.krypton-hero-features-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.krypton-hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 90px;
}

.krypton-feature-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  transition: all var(--transition-normal);
}

.krypton-hero-feature-item:hover .krypton-feature-icon-circle {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(110, 165, 144, 0.2);
}

.krypton-feature-label {
  font-family: var(--font-family-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.35;
  max-width: 110px;
}

.krypton-hero-feature-divider {
  width: 1px;
  height: 36px;
  background-color: #E2E8F0;
  flex-shrink: 0;
}

/* Right Column: 3D Coverflow Product Reviews Carousel */
.krypton-hero-carousel-column {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.krypton-coverflow-carousel {
  --cf-card: clamp(210px, 22vw, 270px);
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: 0;
  position: relative;
  user-select: none;
}

.krypton-cf-carousel-stage {
  position: relative;
  width: 100%;
}

.krypton-cf-carousel-frame {
  cursor: grab;
  overflow: hidden;
  padding: 1.5rem 0 2rem;
  outline: none;
  touch-action: pan-y;
  position: relative;
  width: 100%;
}

.krypton-cf-carousel-frame:active {
  cursor: grabbing;
}

.krypton-cf-cards-ring {
  position: relative;
  height: var(--cf-card);
  transform-style: preserve-3d;
  width: 100%;
}

.krypton-cf-card-item {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cf-card);
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  will-change: transform, opacity;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.krypton-cf-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background-color: #F1F5F9;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  box-shadow: none;
}

.krypton-cf-card-item.is-center .krypton-cf-card-inner {
  border: 2.5px solid var(--color-primary);
  box-shadow: none;
}

.krypton-cf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.krypton-cf-card-item:hover .krypton-cf-card-img {
  transform: scale(1.05);
}

.krypton-cf-card-badge-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-family: var(--font-family-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  pointer-events: none;
}

/* Navigation Chevrons */
.krypton-cf-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  box-shadow: none;
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  padding: 0;
}

.krypton-cf-nav-prev {
  left: 4px;
}

.krypton-cf-nav-next {
  right: 4px;
}

.krypton-cf-nav-btn:hover {
  background: #FFFFFF;
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: none;
}

/* Caption Container Box */
.krypton-cf-caption-box {
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: none;
  margin-top: 0.75rem;
  transition: all 0.3s ease;
}

.krypton-cf-meta-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.krypton-cf-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
}

.krypton-cf-stars-symbol {
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 1px;
}

.krypton-cf-rating-score {
  font-weight: 700;
  color: #111827;
}

.krypton-cf-review-count {
  color: #6B7280;
  font-size: 13px;
}

.krypton-cf-price-pill {
  display: inline-flex;
  align-items: center;
  background: #ECFDF5;
  color: #047857;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 14.5px;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}

.krypton-cf-product-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 10px 0;
}

.krypton-cf-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-cf-product-title a:hover {
  color: var(--color-primary);
}

.krypton-cf-product-verdict {
  font-family: var(--font-family-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #4B5563;
  margin: 0 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-cf-caption-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F3F4F6;
  padding-top: 16px;
}

.krypton-cf-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-primary, #10B981);
  color: #FFFFFF !important;
  font-family: var(--font-family-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.krypton-cf-read-more-btn svg {
  transition: transform var(--transition-fast);
}

.krypton-cf-read-more-btn:hover {
  background-color: var(--color-primary-dark, #059669);
  transform: translateY(-1px);
  box-shadow: none;
}

.krypton-cf-read-more-btn:hover svg {
  transform: translateX(4px);
}

.krypton-cf-pagination-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.krypton-cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: #D1D5DB;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.krypton-cf-dot:hover {
  background-color: #9CA3AF;
}

.krypton-cf-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background-color: var(--color-primary);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .krypton-hero-section {
    height: auto;
    min-height: auto;
    padding: 3rem 0;
  }

  .krypton-hero-container-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .krypton-hero-left-column {
    padding-bottom: 0;
    transform: none;
    text-align: left;
    align-items: flex-start;
  }

  .krypton-hero-subheadline {
    margin-left: 0;
    margin-right: 0;
  }

  .krypton-hero-search-wrapper {
    margin-left: 0;
    margin-right: 0;
  }

  .krypton-hero-carousel-column {
    justify-content: center;
  }

  .krypton-coverflow-carousel {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .krypton-hero-section {
    padding: 2.5rem 0;
  }

  .krypton-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .krypton-search-submit-btn {
    width: 100%;
  }

  .krypton-hero-features-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .krypton-hero-feature-divider {
    display: none;
  }

  .krypton-coverflow-carousel {
    --cf-card: clamp(140px, 42vw, 190px);
  }

  .krypton-cf-caption-box {
    padding: 16px 18px;
  }

  .krypton-cf-product-title {
    font-size: 1.05rem;
  }

  .krypton-cf-caption-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .krypton-cf-read-more-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   8.5. Full Body Width 70px Trending Marquee Banner
   ========================================================================== */
.krypton-trending-marquee-wrapper {
  position: relative;
  width: 100%;
  height: 70px;
  min-height: 70px;
  max-height: 70px;
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.krypton-trending-marquee-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem 0 1.5rem;
  height: 100%;
  background: linear-gradient(90deg, #FFFFFF 85%, rgba(255, 255, 255, 0));
  z-index: 10;
  flex-shrink: 0;
}

.krypton-trending-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #DC2626;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 13px;
  border-radius: 9999px;
  white-space: nowrap;
}

.krypton-trending-flame-icon {
  color: #EF4444;
  fill: #FEE2E2;
  flex-shrink: 0;
}

.krypton-trending-marquee-track-container {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 30px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 30px), transparent 100%);
}

.krypton-trending-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: kryptonMarqueeScroll 30s linear infinite;
}

.krypton-trending-marquee-wrapper:hover .krypton-trending-marquee-track {
  animation-play-state: paused;
}

@keyframes kryptonMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.krypton-marquee-cat-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  margin-right: 12px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  color: #334155;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast, 0.2s ease);
}

.krypton-marquee-cat-item:hover {
  background-color: #FFFFFF;
  border-color: var(--color-primary, #6EA590);
  color: var(--color-primary, #6EA590);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.krypton-marquee-cat-name {
  font-weight: 500;
  color: inherit;
}

/* ==========================================================================
   9. Clinical Categories Section (Matched to Reference Design)
   ========================================================================== */
.krypton-categories-section {
  background-color: #FFFFFF;
  padding: 2.25rem 0 2.5rem;
}

.krypton-categories-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.75rem;
  gap: 1.5rem;
}

.krypton-header-title-group {
  flex-shrink: 0;
}

.krypton-categories-section-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif !important;
  font-size: clamp(1.85rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
  color: #111827;
  margin: 0;
  letter-spacing: -0.025em;
}

.krypton-categories-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', var(--font-family-sans), sans-serif !important;
  font-size: 13.5px;
  font-weight: 500;
  color: #222222;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.krypton-categories-view-all-link:hover {
  color: var(--color-primary, #6EA590);
  text-decoration: none;
  transform: translateX(2px);
}

/* 4-Column Responsive Grid */
.krypton-clinical-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Individual Category Card (Centered Content) */
.krypton-clinical-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 32px 22px 28px;
  text-decoration: none;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
}

/* Highlighted (First Card) & Hover State (Soft Sage Tint) */
.krypton-clinical-category-card.is-highlighted {
  background-color: #F2F7F5;
  border-color: #D4E7DF;
}

.krypton-clinical-category-card:hover {
  background-color: #F2F7F5;
  border-color: #CDE3D9;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(110, 165, 144, 0.12);
}

/* Circular Icon/Avatar Wrapper */
.krypton-category-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: #E6EFF0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin: 0 auto 20px auto;
  overflow: hidden;
  transition: transform var(--transition-normal), background-color var(--transition-normal);
  flex-shrink: 0;
}

.krypton-category-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.krypton-clinical-category-card:hover .krypton-category-icon-wrapper {
  transform: scale(1.06);
}

.krypton-category-svg {
  width: 28px;
  height: 28px;
  display: block;
  stroke: var(--color-primary);
}

.krypton-category-custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Icon & Category Name Only Layout */
.krypton-clinical-category-card.is-icon-style {
  padding: 26px 18px 22px;
  justify-content: center;
}

.krypton-clinical-category-card.is-icon-style .krypton-category-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: #EBF4F0;
  border: 1px solid #D6E8E0;
  margin: 0 auto 16px auto;
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.krypton-clinical-category-card.is-icon-style:hover .krypton-category-icon-wrapper {
  transform: scale(1.08);
  background-color: #E2EFE9;
  border-color: #BEDACE;
}

.krypton-clinical-category-card.is-icon-style .krypton-category-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: #111827;
}

.krypton-clinical-category-card.is-icon-style:hover .krypton-category-card-title {
  color: var(--color-primary-active, #4A7A68);
}

/* Category Title (Montserrat SemiBold) */
.krypton-category-card-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif !important;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 12px 0;
  text-align: center;
  transition: color var(--transition-fast);
}

.krypton-clinical-category-card:hover .krypton-category-card-title {
  color: var(--color-primary-active);
}

/* Category Description (Inter Regular) */
.krypton-category-card-description {
  font-family: 'Inter', var(--font-family-sans), sans-serif !important;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #555555;
  margin: 0 0 20px 0;
  text-align: center;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Card Footer & Read More Button */
.krypton-category-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 4px;
}

.krypton-category-read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: #F0F6F3;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(110, 165, 144, 0.25);
  transition: all var(--transition-normal);
}

.krypton-clinical-category-card:hover .krypton-category-read-more-btn {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(110, 165, 144, 0.28);
}

.krypton-clinical-category-card.is-highlighted .krypton-category-read-more-btn {
  background-color: #E3EDE8;
  border-color: rgba(110, 165, 144, 0.35);
}

/* Fallback for legacy action arrow */
.krypton-category-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.krypton-category-action-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #111827;
}

.krypton-clinical-category-card:hover .krypton-category-action-arrow {
  transform: translateX(4px);
}

.krypton-clinical-category-card:hover .krypton-category-action-arrow svg {
  stroke: var(--color-primary);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .krypton-clinical-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .krypton-categories-section {
    padding: 1.75rem 0 2rem;
  }

  .krypton-clinical-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .krypton-clinical-category-card {
    padding: 12px 6px 10px;
    border-radius: 12px;
  }

  .krypton-clinical-category-card.is-icon-style {
    padding: 14px 6px 12px;
  }

  .krypton-clinical-category-card.is-icon-style .krypton-category-icon-wrapper {
    width: 44px;
    height: 44px;
    margin: 0 auto 6px auto;
  }

  .krypton-clinical-category-card.is-icon-style .krypton-category-svg {
    width: 22px;
    height: 22px;
  }

  .krypton-clinical-category-card.is-icon-style .krypton-category-card-title {
    margin: 0;
  }

  .krypton-category-icon-wrapper {
    width: 38px;
    height: 38px;
    margin: 0 auto 8px auto;
  }

  .krypton-category-svg {
    width: 18px;
    height: 18px;
  }

  .krypton-category-card-title {
    font-size: 0.75rem !important;
    line-height: 1.25;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .krypton-category-card-description {
    display: none !important;
  }

  .krypton-category-card-footer {
    margin-top: 4px;
  }

  .krypton-category-read-more-btn {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .krypton-categories-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .krypton-categories-trending-container {
    width: 100%;
    justify-content: flex-start;
    margin: 4px 0 6px 0;
  }

  .krypton-trending-pills-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .krypton-trending-pills-list::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================================
   10. Category Archive Page & Sidebar Layout (Figma Match)
   ========================================================================== */
.krypton-category-page-wrapper {
  background-color: #FAFAFA;
  padding: 44px 0 80px 0;
  min-height: 70vh;
}

.krypton-category-page-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Category Sidebar */
.krypton-category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.krypton-category-mobile-toggle-btn {
  display: none !important;
}

.krypton-category-sidebar-collapsible {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Category Search Input */
.krypton-category-search-widget {
  margin-bottom: 4px;
}

.krypton-category-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.krypton-category-search-field {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 16px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 14px;
  color: #1F2937;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.krypton-category-search-field::placeholder {
  color: #9CA3AF;
}

.krypton-category-search-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(110, 165, 144, 0.18);
}

.krypton-category-search-icon {
  position: absolute;
  right: 14px;
  color: #9CA3AF;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Widget Cards */
.krypton-category-widget-card {
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.krypton-category-widget-title,
p.krypton-category-widget-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #111827;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.01em;
}

.krypton-category-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.krypton-category-widget-item {
  margin: 0;
  padding: 0;
}

.krypton-category-widget-link {
  display: block;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #64748B;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.krypton-category-widget-link:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.krypton-category-widget-item.is-active > .krypton-category-widget-link {
  color: #111827;
  font-weight: 600;
}

.krypton-category-widget-item.is-parent-active > .krypton-category-widget-link {
  color: #111827;
  font-weight: 600;
}

/* Hierarchical Subcategories in Sidebar */
.krypton-category-children-list {
  list-style: none;
  margin: 6px 0 4px 12px;
  padding: 0 0 0 10px;
  border-left: 2px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.krypton-category-child-item {
  margin: 0;
  padding: 0;
}

.krypton-category-child-item .krypton-category-widget-link {
  font-size: 12.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
}

.krypton-category-child-item .krypton-category-child-bullet {
  color: #94A3B8;
  font-size: 11px;
  line-height: 1;
}

.krypton-category-child-item.is-active .krypton-category-widget-link {
  color: var(--color-primary);
  font-weight: 600;
}

.krypton-category-child-item.is-active .krypton-category-child-bullet {
  color: var(--color-primary);
}

/* Category Breadcrumb Navigation */
.krypton-category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.krypton-category-breadcrumb a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s ease;
}

.krypton-category-breadcrumb a:hover {
  color: var(--color-primary);
}

.krypton-category-breadcrumb-sep {
  color: #CBD5E1;
  font-size: 0.75rem;
}

.krypton-category-breadcrumb-current {
  color: #0F172A;
  font-weight: 600;
}

/* Subcategories Pill Bar */
.krypton-subcategories-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 20px 0;
  flex-wrap: wrap;
}

.krypton-subcategories-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.krypton-subcategory-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.krypton-subcategory-pill:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF !important;
}

.krypton-subcategory-pill .krypton-sub-count {
  font-size: 0.75rem;
  opacity: 0.75;
}

.krypton-category-no-match-message {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13px;
  color: #94A3B8;
  margin: 8px 0 0 0;
}

/* Category Main Content */
.krypton-category-main-content {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.krypton-category-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 16px;
}

.krypton-category-heading-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.krypton-category-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.krypton-category-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background-color: var(--color-primary-light, #EEF6F3);
  color: var(--color-primary-hover, #5A8C79);
  border: 1px solid rgba(110, 165, 144, 0.3);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.krypton-category-archive-desc,
.category-archive-desc,
.krypton-category-archive-desc p,
.category-archive-desc p,
.krypton-category-archive-desc div,
.category-archive-desc div,
.krypton-category-archive-desc span:not([class*="badge"]),
.category-archive-desc span:not([class*="badge"]) {
  font-family: 'Inter', var(--font-family-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 1.0625rem !important; /* 17px (exactly +2px from the 15px reference image) */
  font-weight: 400 !important;
  line-height: 1.62 !important; /* Tight, crisp line height matching reference image */
  color: #1E293B !important; /* Deep slate / charcoal for crisp readability */
}

.krypton-category-archive-desc,
.category-archive-desc {
  margin: 4px 0 20px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.krypton-category-archive-desc p,
.category-archive-desc p {
  margin: 0 0 14px 0 !important;
}

.krypton-category-archive-desc p:last-child,
.category-archive-desc p:last-child {
  margin-bottom: 0 !important;
}

.krypton-category-archive-desc a,
.category-archive-desc a {
  color: var(--color-link, #2563EB) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-fast, 0.2s ease);
}

.krypton-category-archive-desc a:hover,
.category-archive-desc a:hover {
  color: var(--color-link-hover, #1D4ED8) !important;
  text-decoration: underline !important;
}

/* Category Switcher Dropdown */
.krypton-category-dropdown-wrapper {
  flex-shrink: 0;
}

.krypton-custom-select-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.krypton-category-quick-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4B5563;
  padding: 6px 26px 6px 8px;
  cursor: pointer;
  outline: none;
}

.krypton-category-quick-select:hover {
  color: var(--color-primary);
}

.krypton-select-chevron-icon {
  position: absolute;
  right: 6px;
  color: #6B7280;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.krypton-category-header-divider {
  border: 0;
  height: 1px;
  background-color: #E5E7EB;
  margin: 0 0 32px 0;
}

/* Articles 3-Column Grid */
.krypton-category-articles-grid,
.krypton-category-posts-grid,
.category-articles-grid,
.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  width: 100%;
  box-sizing: border-box;
}

.krypton-category-post-card,
.krypton-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.krypton-post-card-media-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-subtle, #f1f5f9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.krypton-post-card-media-wrapper.has-thumbnail {
  background-color: #FFFFFF !important;
}

.krypton-category-post-card:hover .krypton-post-card-media-wrapper {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.krypton-post-card-media-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.krypton-post-card-thumbnail,
.krypton-post-card-media-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

/* Supplement Bottle Graphic Fallback */
.krypton-post-card-bottle-fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-fallback-bottle {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.krypton-bottle-cap {
  width: 32px;
  height: 10px;
  background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 100%);
  border-radius: 3px 3px 0 0;
  border: 1px solid #94A3B8;
}

.krypton-bottle-body {
  width: 58px;
  height: 80px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.krypton-bottle-label {
  width: 100%;
  height: 52px;
  background: #1E293B;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.krypton-bottle-icon {
  color: var(--color-primary);
  display: flex;
}

.krypton-bottle-icon svg {
  stroke: var(--color-primary);
}

.krypton-bottle-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 7px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Post Card Content */
.krypton-post-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.krypton-post-card-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 14px 0 10px 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-post-card-title a {
  color: #111827;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-post-card-title a:hover {
  color: var(--color-primary);
}

.krypton-post-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13px;
  color: #718096;
  margin-top: auto;
}

.krypton-post-card-author {
  color: #718096;
  font-weight: 400;
}

.krypton-post-card-date {
  color: #718096;
  font-weight: 400;
}

/* ==========================================================================
   Global Pagination Styles (All over the site)
   ========================================================================== */
.krypton-category-pagination-wrapper,
.krypton-pagination-wrapper,
.krypton-pagination-wrapper {
  margin: 3.5rem 0 2rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  clear: both;
}

.navigation.krypton-pagination,
nav.krypton-pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation.krypton-pagination .screen-reader-text,
nav.krypton-pagination .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-family: var(--font-family-sans, 'Inter', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s ease);
  user-select: none;
  line-height: 1;
  box-sizing: border-box;
}

/* Hover state for clickable links */
a.page-numbers:hover {
  background-color: var(--color-primary-light, #EEF6F3);
  border-color: var(--color-primary, #6EA590);
  color: var(--color-primary-hover, #5A8C79);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(110, 165, 144, 0.2);
}

/* Current / Active Page Number */
.page-numbers.current,
span.page-numbers.current,
span.page-numbers[aria-current="page"] {
  background-color: var(--color-primary, #6EA590) !important;
  border-color: var(--color-primary, #6EA590) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  cursor: default;
  box-shadow: 0 3px 10px rgba(110, 165, 144, 0.35);
}

/* Next and Previous Buttons */
.page-numbers.prev,
.page-numbers.next {
  padding: 0 16px;
  font-weight: 600;
  background-color: #F8FAFC;
  border-color: #E2E8F0;
  color: #475569;
  gap: 8px;
}

.page-numbers.prev svg,
.page-numbers.next svg {
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform var(--transition-fast, 0.2s ease);
}

.page-numbers.prev:hover {
  background-color: var(--color-primary, #6EA590);
  border-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
  transform: translateX(-2px);
  box-shadow: 0 3px 10px rgba(110, 165, 144, 0.25);
}

.page-numbers.prev:hover svg {
  transform: translateX(-2px);
}

.page-numbers.next:hover {
  background-color: var(--color-primary, #6EA590);
  border-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
  transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(110, 165, 144, 0.25);
}

.page-numbers.next:hover svg {
  transform: translateX(2px);
}

/* Dots (...) */
.page-numbers.dots {
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: default;
  padding: 0 8px;
  min-width: auto;
}

/* Single Post Internal Pagination (wp_link_pages) */
.page-links {
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid #E2E8F0;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  background: #FFFFFF;
}

.page-links .post-page-numbers.current {
  background-color: var(--color-primary, #6EA590);
  border-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .krypton-category-pagination-wrapper,
  .krypton-pagination-wrapper {
    margin: 2.5rem 0 1.5rem 0;
  }

  .nav-links {
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-md, 8px);
  }

  .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.875rem;
  }

  .page-numbers.prev,
  .page-numbers.next {
    padding: 0 10px;
  }
}

/* Category Empty State */
.krypton-category-empty-state {
  text-align: center;
  padding: 56px 24px;
  background-color: #FFFFFF;
  border: 1px dashed #E2E8F0;
  border-radius: 12px;
}

.krypton-empty-state-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.krypton-empty-state-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.krypton-empty-state-text {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 14px;
  color: #64748B;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive Breakpoints for Category Archive */
@media (max-width: 960px) {
  .krypton-category-page-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .krypton-category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 4px;
  }

  .krypton-category-mobile-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    background-color: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    outline: none;
  }

  .krypton-category-mobile-toggle-btn:hover,
  .krypton-category-mobile-toggle-btn:focus-visible {
    border-color: var(--color-primary);
    background-color: #F8FAFC;
  }

  .krypton-category-mobile-toggle-btn.is-open {
    border-color: var(--color-primary);
    background-color: #F0FDF4;
    box-shadow: 0 2px 8px rgba(110, 165, 144, 0.15);
  }

  .krypton-category-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .krypton-category-toggle-icon {
    color: var(--color-primary);
    flex-shrink: 0;
  }

  .krypton-category-toggle-title {
    font-family: var(--font-family-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
  }

  .krypton-category-toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .krypton-category-toggle-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
  }

  .krypton-category-toggle-chevron {
    color: #94A3B8;
    transition: transform 0.25s ease;
  }

  .krypton-category-mobile-toggle-btn.is-open .krypton-category-toggle-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
  }

  .krypton-category-sidebar-collapsible {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: kryptonFadeSlideDown 0.25s ease forwards;
  }

  .krypton-category-sidebar-collapsible.is-open {
    display: flex;
  }

  /* 2-Column Grid Layout for Categories in Sidebar */
  .krypton-category-widget-card {
    padding: 16px 18px;
  }

  .krypton-category-widget-title {
    margin-bottom: 12px;
  }

  .krypton-category-widget-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 10px !important;
  }

  .krypton-category-widget-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .krypton-category-widget-item.has-children {
    grid-column: 1 / -1 !important;
  }

  .krypton-category-widget-link {
    display: flex !important;
    align-items: center;
    padding: 9px 12px;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: var(--font-family-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none !important;
    transition: all var(--transition-fast);
    min-height: 40px;
    box-sizing: border-box;
    line-height: 1.25;
    word-break: break-word;
  }

  .krypton-category-widget-link:hover {
    background-color: #FFFFFF;
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(110, 165, 144, 0.15);
  }

  .krypton-category-widget-item.is-active > .krypton-category-widget-link {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(110, 165, 144, 0.25);
  }

  .krypton-category-children-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 8px;
    margin: 8px 0 0 0;
    padding: 8px 10px;
    background-color: #F1F5F9;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    box-sizing: border-box;
  }

  .krypton-category-child-item .krypton-category-widget-link {
    background-color: #FFFFFF;
    font-size: 0.75rem;
    padding: 6px 10px;
    min-height: 34px;
  }

  .krypton-category-search-widget {
    grid-column: 1 / -1;
  }

  .krypton-category-articles-grid,
  .krypton-category-posts-grid,
  .category-articles-grid,
  .category-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes kryptonFadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .krypton-category-page-wrapper {
    padding: 16px 0 44px 0;
  }

  .krypton-category-content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .krypton-category-articles-grid,
  .krypton-category-posts-grid,
  .category-articles-grid,
  .category-posts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 360px) {
  .krypton-category-widget-list,
  .krypton-category-children-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ==========================================================================
   11. Front Page Spotlight Section (Popular Left/Middle + Latest Right)
   ========================================================================== */
.krypton-spotlight-section {
  background-color: #FFFFFF;
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid #E2E8F0;
}

.krypton-spotlight-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.krypton-spotlight-section-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif !important;
  font-size: clamp(1.85rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
  color: #111827;
  margin: 0;
  letter-spacing: -0.025em;
}

.krypton-spotlight-container-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Left & Right Columns: 2 Stacked Popular Cards each */
.krypton-spotlight-left-column,
.krypton-spotlight-right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.krypton-spotlight-stacked-card {
  display: flex;
  flex-direction: column;
}

.krypton-spotlight-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-spotlight-media-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.krypton-spotlight-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.krypton-spotlight-stacked-card:hover .krypton-spotlight-thumb-img {
  transform: scale(1.03);
}

.krypton-spotlight-placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
}

.krypton-spotlight-placeholder-box.is-large svg {
  width: 52px;
  height: 52px;
}

.krypton-spotlight-card-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.krypton-spotlight-category-tag {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #4B5563;
  margin-bottom: 6px;
  display: inline-block;
}

.krypton-spotlight-card-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.36;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-spotlight-card-title a {
  color: #111827;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-spotlight-card-title a:hover {
  color: var(--color-primary);
}

.krypton-spotlight-card-date {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 12.5px;
  color: #718096;
  font-weight: 400;
}

/* Center Column: Big Spotlight Centerpiece */
.krypton-spotlight-center-column {
  display: flex;
  flex-direction: column;
}

.krypton-spotlight-main-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.krypton-spotlight-main-media {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-spotlight-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.krypton-spotlight-main-card:hover .krypton-spotlight-main-img {
  transform: scale(1.03);
}

.krypton-spotlight-main-body {
  padding: 16px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.krypton-spotlight-main-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  color: #111827;
  margin: 0 0 10px 0;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-spotlight-main-title a {
  color: #111827;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-spotlight-main-title a:hover {
  color: var(--color-primary);
}

.krypton-spotlight-main-excerpt {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #555555;
  margin: 0 0 14px 0;
  max-width: 92%;
}

.krypton-spotlight-main-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 12.5px;
  color: #718096;
}

.krypton-spotlight-meta-author {
  color: #374151;
  font-weight: 500;
}

.krypton-spotlight-meta-separator {
  color: #CBD5E1;
}

.krypton-spotlight-meta-date {
  color: #718096;
  font-weight: 400;
}

.krypton-spotlight-latest-header {
  margin-bottom: 8px;
}

.krypton-spotlight-latest-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.krypton-spotlight-latest-divider {
  height: 1px;
  background-color: #E5E7EB;
  width: 100%;
}

.krypton-spotlight-latest-list {
  display: flex;
  flex-direction: column;
}

.krypton-spotlight-latest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #F1F5F9;
}

.krypton-spotlight-latest-item:last-child {
  border-bottom: none;
}

.krypton-latest-item-text {
  flex: 1;
  min-width: 0;
}

.krypton-latest-item-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-latest-item-title a {
  color: #111827;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-latest-item-title a:hover {
  color: var(--color-primary);
}

.krypton-latest-item-date {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 12px;
  color: #718096;
  font-weight: 400;
  display: block;
}

.krypton-latest-item-thumb-box {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-latest-thumb-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.krypton-latest-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.krypton-latest-placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
}

/* Latest Column Header Top & Quick View All Link */
.krypton-spotlight-latest-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.krypton-spotlight-latest-header-top .krypton-spotlight-latest-title {
  margin-bottom: 0;
}

.krypton-spotlight-latest-header-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #6EA590);
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.krypton-spotlight-latest-header-link:hover {
  color: var(--color-primary-hover, #5A8C79);
  gap: 7px;
}

/* Latest Column Bottom "View All Articles" Button */
.krypton-spotlight-latest-footer {
  margin-top: 18px;
  padding-top: 6px;
}

.krypton-spotlight-view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.krypton-spotlight-view-all-btn svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.krypton-spotlight-view-all-btn:hover {
  background-color: var(--color-primary, #6EA590);
  border-color: var(--color-primary, #6EA590);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(110, 165, 144, 0.28);
}

.krypton-spotlight-view-all-btn:hover svg {
  transform: translateX(3px);
}

/* Responsive Media Queries for Spotlight */
@media (max-width: 1024px) {
  .krypton-spotlight-container-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .krypton-spotlight-center-column {
    grid-column: 1 / -1;
    order: -1;
  }

  .krypton-spotlight-left-column,
  .krypton-spotlight-right-column {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .krypton-spotlight-section {
    padding: 2rem 0 2.5rem;
  }

  .krypton-spotlight-container-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .krypton-spotlight-center-column {
    grid-column: auto;
    order: 0;
  }

  .krypton-spotlight-main-media {
    height: 240px;
  }
}

/* ==========================================================================
   11.5. Dedicated Latest Products Section (Front Page Responsive Card Grid)
   ========================================================================== */
.krypton-latest-products-section {
  background-color: #F8FAFC;
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid #E2E8F0;
}

.krypton-latest-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 1.5rem;
}

.krypton-latest-header-title-group {
  max-width: 680px;
}

.krypton-latest-section-title {
  font-family: 'Montserrat', var(--font-family-heading), sans-serif !important;
  font-size: clamp(1.85rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.025em;
}

.krypton-latest-section-subtitle {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #64748B;
  margin: 0;
}

.krypton-latest-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary, #6EA590);
  text-decoration: none !important;
  padding: 9px 20px;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.krypton-latest-view-all-link:hover {
  color: #FFFFFF !important;
  background-color: var(--color-primary, #6EA590);
  border-color: var(--color-primary, #6EA590);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(110, 165, 144, 0.28);
}

.krypton-latest-view-all-link svg {
  transition: transform 0.2s ease;
}

.krypton-latest-view-all-link:hover svg {
  transform: translateX(3px);
}

.krypton-latest-grid {
  margin-bottom: 1.75rem;
}

.krypton-latest-footer-action {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.krypton-latest-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 30px;
  background-color: #111827;
  color: #FFFFFF !important;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.krypton-latest-view-all-btn:hover {
  background-color: var(--color-primary, #6EA590);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110, 165, 144, 0.32);
}

.krypton-latest-view-all-btn svg {
  transition: transform 0.25s ease;
}

.krypton-latest-view-all-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .krypton-latest-products-section {
    padding: 2rem 0 2.25rem;
  }

  .krypton-latest-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
  }

  .krypton-latest-view-all-link {
    align-self: flex-start;
  }
}

/* ==========================================================================
   All Articles Page Component (Grid & List View, Sort Controls)
   ========================================================================== */
.krypton-all-articles-page-wrapper {
  padding: 2.5rem 0 5rem;
  background-color: var(--color-bg-body, #F8F9FA);
  min-height: 70vh;
}

.krypton-all-articles-container {
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Page Header & Intro */
.krypton-articles-page-header {
  margin-bottom: 1.75rem;
}

.krypton-articles-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.krypton-articles-heading-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.krypton-articles-header-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  max-width: 800px;
  margin: 0;
}

/* Interactive Toolbar (Layout Switcher & Sort By) */
.krypton-articles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 18px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.krypton-toolbar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Layout Switcher Buttons */
.krypton-layout-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.krypton-layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.krypton-layout-btn svg {
  flex-shrink: 0;
}

.krypton-layout-btn:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.krypton-layout-btn.is-active {
  background-color: var(--color-primary, #6EA590) !important;
  border-color: var(--color-primary, #6EA590) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(110, 165, 144, 0.25);
}

/* Sort By Dropdown */
.krypton-articles-sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.krypton-sort-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.krypton-articles-sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1E293B;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.krypton-articles-sort-select:hover,
.krypton-articles-sort-select:focus {
  background-color: #FFFFFF;
  border-color: var(--color-primary, #6EA590);
  outline: none;
  box-shadow: 0 0 0 3px rgba(110, 165, 144, 0.15);
}

.krypton-sort-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #64748B;
  display: flex;
  align-items: center;
}

/* Articles Container Common Styles */
.krypton-articles-container {
  width: 100%;
}

.krypton-article-item-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.krypton-article-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: #CBD5E1;
}

.krypton-article-card-media {
  position: relative;
  overflow: hidden;
  background-color: #1E293B;
}

.krypton-article-card-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
}

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

.krypton-article-item-card:hover .krypton-article-card-thumb-img {
  transform: scale(1.04);
}

.krypton-article-card-body {
  display: flex;
  flex-direction: column;
}

.krypton-article-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.krypton-article-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background-color: #EEF6F3;
  color: var(--color-primary-hover, #5A8C79);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.krypton-article-category-pill:hover {
  background-color: var(--color-primary, #6EA590);
  color: #FFFFFF !important;
}

.krypton-article-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.krypton-article-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.krypton-article-card-title a {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.krypton-article-card-title a:hover {
  color: var(--color-primary, #6EA590);
}

.krypton-article-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748B;
  margin: 0 0 12px 0;
}

.krypton-article-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.krypton-article-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #94A3B8;
}

.krypton-article-card-author strong {
  color: #475569;
  font-weight: 600;
}

.krypton-article-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #6EA590);
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.krypton-article-card-action-btn:hover {
  color: var(--color-primary-hover, #5A8C79);
  gap: 8px;
}

/* ==========================================================================
   View Mode 1: GRID VIEW (3 Columns)
   ========================================================================== */
.krypton-articles-container.is-grid-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.krypton-articles-container.is-grid-view .krypton-article-item-card {
  display: flex;
  flex-direction: column;
}

.krypton-articles-container.is-grid-view .krypton-article-card-media {
  aspect-ratio: 16 / 10;
  width: 100%;
}

.krypton-articles-container.is-grid-view .krypton-article-card-body {
  padding: 18px;
  flex: 1;
}

.krypton-articles-container.is-grid-view .krypton-article-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-articles-container.is-grid-view .krypton-article-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-articles-container.is-grid-view .krypton-article-card-action-btn {
  display: none;
}

/* ==========================================================================
   View Mode 2: LIST VIEW (Horizontal Row Cards)
   ========================================================================== */
.krypton-articles-container.is-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.krypton-articles-container.is-list-view .krypton-article-item-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 14px;
}

.krypton-articles-container.is-list-view .krypton-article-card-media {
  width: 280px;
  min-height: 190px;
  flex-shrink: 0;
}

.krypton-articles-container.is-list-view .krypton-article-card-body {
  padding: 22px 28px;
  flex: 1;
  min-width: 0;
}

.krypton-articles-container.is-list-view .krypton-article-card-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.krypton-articles-container.is-list-view .krypton-article-card-excerpt {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-articles-container.is-list-view .krypton-article-card-action-btn {
  display: inline-flex;
}

/* Responsive Breakpoints for All Articles */
@media (max-width: 1024px) {
  .krypton-articles-container.is-grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .krypton-articles-container.is-list-view .krypton-article-card-media {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .krypton-articles-heading-title {
    font-size: 1.625rem;
  }

  .krypton-articles-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .krypton-layout-switcher {
    justify-content: flex-start;
  }

  .krypton-articles-sort-group {
    justify-content: space-between;
  }

  .krypton-sort-select-wrapper {
    flex: 1;
  }

  .krypton-articles-sort-select {
    width: 100%;
  }

  .krypton-articles-container.is-list-view .krypton-article-item-card {
    flex-direction: column;
  }

  .krypton-articles-container.is-list-view .krypton-article-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .krypton-articles-container.is-list-view .krypton-article-card-body {
    padding: 16px 18px;
  }

  .krypton-articles-container.is-list-view .krypton-article-card-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .krypton-articles-container.is-grid-view {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   12. Shimmer Skeleton Loading Styles
   ========================================================================== */
.krypton-skeleton-shimmer {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
  animation: kryptonSkeletonShimmer 1.5s infinite ease-in-out;
  border-radius: 6px;
}

@keyframes kryptonSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.krypton-spotlight-card-media.krypton-skeleton-media {
  background-color: #F1F5F9;
  border-radius: 8px;
}

.krypton-spotlight-main-media.krypton-skeleton-media {
  background-color: #F1F5F9;
  border-radius: 8px;
}

.krypton-skeleton-tag {
  width: 75px;
  height: 12px;
  margin-bottom: 8px;
}

.krypton-skeleton-line {
  height: 13px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.krypton-skeleton-line.is-title {
  width: 85%;
  height: 16px;
}

.krypton-skeleton-line.is-date {
  width: 45%;
  height: 11px;
}

.krypton-skeleton-line.is-main-title {
  width: 75%;
  height: 20px;
  margin: 0 auto 12px;
}

.krypton-skeleton-line.is-excerpt-1 {
  width: 90%;
  height: 12px;
  margin: 0 auto 6px;
}

.krypton-skeleton-line.is-excerpt-2 {
  width: 70%;
  height: 12px;
  margin: 0 auto 12px;
}

.krypton-skeleton-line.is-meta {
  width: 40%;
  height: 11px;
  margin: 0 auto;
}

.krypton-skeleton-line.is-latest-title {
  width: 90%;
  height: 14px;
}

.krypton-skeleton-line.is-latest-date {
  width: 50%;
  height: 11px;
}

/* ==========================================================================
   Single Post Page & Top Header Section (Exact Design Matched)
   ========================================================================== */

/* Utility Typography Classes */
.font-montserrat {
  font-family: var(--font-family-heading) !important;
}

.font-inter {
  font-family: var(--font-family-sans) !important;
}

.krypton-single-post-wrapper {
  background-color: var(--color-bg-surface);
  padding: 2.25rem 0 5rem;
}

.krypton-single-header-container {
  max-width: var(--container-max-width, 1200px);
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.krypton-single-post-header {
  margin-bottom: 0.25rem;
  width: 100%;
}

/* 1. Breadcrumbs Trail (Home › Category › Supplement Name Pill) */
.krypton-single-breadcrumbs {
  margin-bottom: 1.25rem;
}

.krypton-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: 0.84375rem; /* ~13.5px */
  line-height: 1.4;
}

.krypton-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.krypton-breadcrumb-link {
  color: #555555;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.krypton-breadcrumb-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.krypton-breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  color: #9CA3AF;
  font-size: 0.75rem;
  user-select: none;
  margin: 0 1px;
}

.krypton-breadcrumb-separator svg {
  display: block;
  stroke: #9CA3AF;
  stroke-width: 2.5;
}

.krypton-breadcrumb-category-link {
  color: #262626;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.krypton-breadcrumb-category-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Supplement Name / Active Item Pill in Soft Primary Green */
.krypton-breadcrumb-product-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #EDF6F2;
  color: #528975;
  font-family: var(--font-family-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
}

.krypton-breadcrumb-product-pill:hover {
  background-color: #E2F0EA;
  color: #437362;
}

.krypton-single-breadcrumbs {
  display: none !important;
}

/* 2. Post Title (h1) - Full Width to Right Border with Decreased Font Size */
.krypton-single-post-title {
  font-family: var(--font-family-heading), 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(1.625rem, 2.25vw, 2.125rem); /* Decreased font size ~26px to 34px */
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: #0A0A0A;
  margin: 0.5rem 0 1.25rem 0;
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

/* 3. Combined Author & Editorial Trust Bar */
.krypton-single-author-meta-bar {
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: 8px 0;
  margin-top: 1rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Top Row: Author Info on Left + Trust Badges on Right */
.krypton-single-author-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Authors Group: Main Author + Contributor / Reviewer Parallel */
.krypton-single-authors-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.krypton-single-contributor-divider {
  width: 1px;
  height: 24px;
  background-color: #E2E8F0;
  display: inline-block;
  flex-shrink: 0;
}

.krypton-author-initials-avatar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 50%;
  font-family: var(--font-family-heading, 'Montserrat', sans-serif);
  user-select: none;
}

.krypton-author-avatar-img.krypton-author-initials-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.krypton-author-profile-avatar.krypton-author-initials-avatar {
  width: 82px;
  height: 82px;
  font-size: 24px;
}

@media (max-width: 640px) {
  .krypton-single-authors-group {
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }
  .krypton-single-contributor-divider {
    display: inline-block;
    height: 18px;
  }
}

/* Editorial / Trust Badges (Disclaimer, Fact Check, Review Process with dividers) */
.krypton-single-trust-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.krypton-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 9px;
  background-color: #F8FAFC;
  border: 1px solid #E2EAE6;
  border-radius: 9999px;
  color: #1F2937;
  font-family: var(--font-family-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  line-height: 1.2;
  cursor: default;
  transition: all var(--transition-fast);
  outline: none;
}

.krypton-trust-badge-link,
.krypton-trust-badge-btn {
  cursor: pointer;
  text-decoration: none;
  background: #F8FAFC;
  border: 1px solid #E2EAE6;
  padding: 4px 12px 4px 9px;
}

.krypton-trust-badge:hover,
.krypton-trust-badge-link:hover,
.krypton-trust-badge-btn:hover {
  border-color: var(--color-primary, #6EA590);
  background-color: #F0F6F4;
  color: #166534;
}

.krypton-trust-badge-link:focus-visible,
.krypton-trust-badge-btn:focus-visible {
  outline: 2px solid var(--color-primary, #6EA590);
  outline-offset: 2px;
}

.krypton-trust-badge-icon {
  flex-shrink: 0;
  display: block;
}

.krypton-trust-badge-label {
  letter-spacing: 0.01em;
  color: inherit;
}

.krypton-trust-badge-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background-color: #E2E8F0;
  margin: 0 -2px;
}

/* ==========================================================================
   Editorial Transparency Modals (Fact Check & Review Process Popups)
   ========================================================================== */

body.modal-open {
  overflow: hidden;
}

.krypton-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.krypton-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.krypton-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.krypton-modal-card {
  position: relative;
  z-index: 2;
  background-color: #FFFFFF;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
  padding: 26px 26px 20px;
  box-sizing: border-box;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.krypton-modal-overlay.is-open .krypton-modal-card {
  transform: scale(1) translateY(0);
}

.krypton-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.krypton-modal-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.krypton-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71875rem; /* ~11.5px */
  font-weight: 600;
  color: #166534;
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.krypton-modal-title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
}

.krypton-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background-color: #F8FAFC;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.krypton-modal-close-btn:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.krypton-modal-body {
  font-family: var(--font-family-sans);
}

.krypton-modal-intro {
  font-size: 0.90625rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px 0;
}

.krypton-modal-pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.krypton-modal-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  transition: border-color var(--transition-fast);
}

.krypton-modal-pillar:hover {
  border-color: #CBD5E1;
}

.krypton-pillar-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #E6F4EA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.krypton-pillar-content {
  flex: 1;
}

.krypton-pillar-title {
  font-family: var(--font-family-heading);
  font-size: 0.90625rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.krypton-pillar-text {
  font-size: 0.8125rem;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

.krypton-modal-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: flex-end;
}

.krypton-modal-btn {
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  background-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
  font-family: var(--font-family-sans);
  font-size: 0.84375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.krypton-modal-btn:hover {
  background-color: #5A8A77;
}

.krypton-modal-btn:active {
  transform: scale(0.98);
}

/* Bottom Row: Post Metadata Details & Social Share Bar */
.krypton-single-author-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-top: 1px dashed #F1F5F9;
  padding-top: 10px;
  flex-wrap: wrap;
}

/* Left Side (Author Info - Parallel & Compact) */
.krypton-single-author-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

.krypton-single-author-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

.krypton-author-avatar-container {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #E2E8F0;
  border: 1px solid #F1F5F9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.krypton-author-avatar-container img,
.krypton-author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.krypton-author-text-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.krypton-author-role-label,
.single-author-info .krypton-author-role-label,
.author-role-label {
  font-family: var(--font-family-sans) !important;
  font-size: 0.5625rem !important; /* 9px compact uppercase */
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-weight: 600 !important;
  color: #64748B !important;
  line-height: 1.1 !important;
  margin: 0 0 1px 0 !important;
  white-space: nowrap !important;
  display: block !important;
}

.krypton-author-avatar-link {
  display: block;
  text-decoration: none;
  border-radius: 50%;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.krypton-author-avatar-link:hover {
  transform: scale(1.05);
  opacity: 0.92;
}

.krypton-author-name-link,
.krypton-author-reviewer-link,
.krypton-single-authors-group .krypton-author-name-link,
.krypton-single-authors-group .krypton-author-reviewer-link,
.krypton-author-name-wrap a {
  display: inline-block;
  color: #0F172A !important; /* Clean dark text, NOT blue */
  text-decoration: none !important; /* NO underline */
  text-decoration-color: transparent !important;
  font-size: 0.75rem !important; /* 12px compact */
  font-weight: 600 !important;
  line-height: 1.15 !important;
  transition: color var(--transition-fast, 0.2s ease);
}

.krypton-author-name-link:hover,
.krypton-author-reviewer-link:hover,
.krypton-single-authors-group .krypton-author-name-link:hover,
.krypton-single-authors-group .krypton-author-reviewer-link:hover,
.krypton-author-name-wrap a:hover {
  color: var(--color-primary, #1A4D2E) !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

.krypton-author-name-link .krypton-author-name,
.krypton-author-reviewer-link .krypton-author-name,
.krypton-author-name {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}

.krypton-author-name,
.krypton-author-name-wrap {
  font-family: var(--font-family-heading) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important; /* 12px sleek */
  line-height: 1.15 !important;
  color: inherit;
  white-space: nowrap;
}

.krypton-author-bio-title {
  font-family: var(--font-family-sans);
  font-size: 0.75rem; /* 12px */
  line-height: 1.35;
  color: #6B7280;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

/* Right Side (Post Meta) */
.krypton-single-meta-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: var(--font-family-sans);
  font-size: 0.8125rem; /* 13px */
  color: #374151;
  line-height: 1.4;
}

.krypton-single-meta-details .krypton-meta-item {
  color: #374151;
  font-weight: 400;
}

.krypton-single-meta-details .krypton-meta-date {
  color: #374151;
  font-weight: 500;
}

.krypton-single-meta-details .krypton-meta-modified {
  color: #4B5563;
  font-weight: 400;
}

.krypton-single-meta-details .krypton-meta-reviewed {
  color: #1F2937;
  font-weight: 500;
}

.krypton-single-meta-details .krypton-meta-reading-time {
  color: #4B5563;
  font-weight: 400;
}

.krypton-single-meta-details .krypton-meta-slash {
  color: #9CA3AF;
  font-size: 0.8125rem;
  margin: 0 4px;
  user-select: none;
  font-weight: 400;
}

/* ==========================================================================
   Social Media Share Bar (in Author Row)
   ========================================================================== */
.krypton-single-share-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.krypton-share-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-family-sans);
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  user-select: none;
  line-height: 1;
}

.krypton-share-icon {
  color: #94A3B8;
  flex-shrink: 0;
}

.krypton-share-buttons-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.krypton-share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #64748B;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.krypton-share-btn svg {
  display: block;
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.krypton-share-btn:hover,
.krypton-share-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  outline: none;
}

/* Individual Platform Brand Colors on Hover */
.krypton-share-btn--x:hover,
.krypton-share-btn--x:focus-visible {
  background-color: #0F1419;
  border-color: #0F1419;
  color: #FFFFFF;
}

.krypton-share-btn--fb:hover,
.krypton-share-btn--fb:focus-visible {
  background-color: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
}

.krypton-share-btn--linkedin:hover,
.krypton-share-btn--linkedin:focus-visible {
  background-color: #0A66C2;
  border-color: #0A66C2;
  color: #FFFFFF;
}

.krypton-share-btn--pinterest:hover,
.krypton-share-btn--pinterest:focus-visible {
  background-color: #E60023;
  border-color: #E60023;
  color: #FFFFFF;
}

.krypton-share-btn--whatsapp:hover,
.krypton-share-btn--whatsapp:focus-visible {
  background-color: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
}

.krypton-share-btn--reddit:hover,
.krypton-share-btn--reddit:focus-visible {
  background-color: #FF4500;
  border-color: #FF4500;
  color: #FFFFFF;
}

.krypton-share-btn--copy:hover,
.krypton-share-btn--copy:focus-visible {
  background-color: var(--color-primary, #1A4D2E);
  border-color: var(--color-primary, #1A4D2E);
  color: #FFFFFF;
}

/* Copy Link State Toggle */
.krypton-share-btn .krypton-share-check-icon {
  display: none;
}

.krypton-share-btn.is-copied {
  background-color: #16A34A !important;
  border-color: #16A34A !important;
  color: #FFFFFF !important;
  transform: scale(1.05);
}

.krypton-share-btn.is-copied .krypton-share-link-icon {
  display: none;
}

.krypton-share-btn.is-copied .krypton-share-check-icon {
  display: block;
}

/* Tooltip on Hover / Focus */
.krypton-share-tooltip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-family-sans);
  font-size: 0.6875rem; /* 11px */
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.krypton-share-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
}

.krypton-share-btn:hover .krypton-share-tooltip,
.krypton-share-btn:focus-visible .krypton-share-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.krypton-share-btn.is-copied .krypton-share-tooltip {
  background-color: #16A34A;
}

.krypton-share-btn.is-copied .krypton-share-tooltip::after {
  border-color: #16A34A transparent transparent transparent;
}

/* ==========================================================================
   Mobile Dedicated Single Share Button & Choices Popover (Author Box)
   ========================================================================== */
.krypton-mobile-share-wrapper {
  display: none;
  position: relative;
}

.krypton-mobile-single-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: #1F2937;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  padding: 8px 18px;
  font-family: var(--font-family-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.krypton-mobile-single-share-btn svg {
  stroke: var(--color-primary);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.krypton-mobile-single-share-btn:hover,
.krypton-mobile-single-share-btn:active {
  background-color: #F8FAFC;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Mobile Share Modal Backdrop Scrim */
.krypton-mobile-share-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99998;
}

.krypton-mobile-share-backdrop.is-open {
  display: block;
}

/* Choices Popover Modal - Centered in Middle on Mobile */
.krypton-mobile-share-popover {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 18px;
  z-index: 99999;
  box-sizing: border-box;
}

.krypton-mobile-share-popover.is-open {
  display: block;
  animation: kryptonPopoverCenterIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kryptonPopoverCenterIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.krypton-mobile-share-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.krypton-mobile-share-popover-title {
  font-family: var(--font-family-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.krypton-mobile-share-popover-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.krypton-mobile-share-popover-close:hover {
  color: #0F172A;
}

.krypton-mobile-share-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.krypton-mobile-share-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  text-decoration: none;
  font-family: var(--font-family-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.krypton-mobile-share-choice:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.krypton-choice-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.krypton-mobile-share-choice.is-copy {
  grid-column: 1 / -1;
  justify-content: center;
  background-color: #F1F5F9;
  margin-top: 4px;
  border-color: #E2E8F0;
}

.krypton-mobile-share-choice.is-copy:hover {
  background-color: #E2E8F0;
}

.krypton-mobile-share-choice.is-copied {
  background-color: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #065F46 !important;
}

.krypton-mobile-share-choice.is-copied .krypton-share-link-icon {
  display: none !important;
}

.krypton-mobile-share-choice.is-copied .krypton-share-check-icon {
  display: block !important;
}

/* Single Post Featured Media & Content Layout (Expanded 1200px Container) */
.krypton-single-body-container,
.krypton-page-body-container {
  max-width: var(--container-max-width, 1200px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.krypton-single-featured-image-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 1.5rem auto 2.5rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background-color: var(--color-bg-subtle);
  box-sizing: border-box;
  text-align: center;
}

.krypton-single-featured-image-wrapper img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.krypton-single-featured-caption {
  font-family: var(--font-family-sans);
  font-size: 0.8125rem;
  color: #64748B;
  padding: 8px 16px;
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  text-align: center;
}

.krypton-single-article-content,
.entry-content {
  font-family: 'Inter', var(--font-family-sans), sans-serif;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #334155;
  width: 100%;
  max-width: var(--container-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.krypton-single-article-content p,
.entry-content p,
.single-article-content p {
  font-family: 'Inter', var(--font-family-sans), sans-serif !important;
  font-size: 1.125rem !important; /* Unified 18px font size across all single posts and pages */
  max-width: 100%;
  margin-bottom: 1.6rem;
  line-height: 1.75 !important;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content > *,
.krypton-single-article-content > * {
  max-width: 100%;
  box-sizing: border-box;
}

.entry-content > *:first-child,
.krypton-single-article-content > *:first-child {
  margin-top: 0 !important;
}

/* Post Content Media & Table Responsiveness - Preserves Custom HTML & Inline Alignments */
.entry-content img,
.krypton-single-article-content img,
.single-article-content img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  vertical-align: middle;
}

.entry-content .wp-block-table,
.krypton-single-article-content .wp-block-table,
.single-article-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 1.6rem;
  box-sizing: border-box;
}

.entry-content table:not(.wp-block-table table),
.krypton-single-article-content table:not(.wp-block-table table),
.single-article-content table:not(.wp-block-table table) {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.entry-content pre,
.entry-content code,
.krypton-single-article-content pre,
.krypton-single-article-content code,
.wp-block-code,
.wp-block-preformatted {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  box-sizing: border-box;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video,
.krypton-single-article-content iframe,
.krypton-single-article-content embed,
.krypton-single-article-content video,
.wp-block-embed,
.wp-block-embed__wrapper,
.wp-block-video {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ==========================================================================
   WordPress Core, Gutenberg & Custom HTML Block Alignments (Single Post & Content)
   ========================================================================== */

/* Preserve Custom HTML Blocks (.wp-block-html, raw custom HTML) without forced overrides */
.entry-content .wp-block-html,
.krypton-single-article-content .wp-block-html,
.single-article-content .wp-block-html {
  max-width: 100%;
  box-sizing: border-box;
}

/* Gutenberg Editor Text Alignments */
.entry-content .has-text-align-center,
.krypton-single-article-content .has-text-align-center,
.single-article-content .has-text-align-center {
  text-align: center;
}

.entry-content .has-text-align-left,
.krypton-single-article-content .has-text-align-left,
.single-article-content .has-text-align-left {
  text-align: left;
}

.entry-content .has-text-align-right,
.krypton-single-article-content .has-text-align-right,
.single-article-content .has-text-align-right {
  text-align: right;
}

.entry-content .has-text-align-justify,
.krypton-single-article-content .has-text-align-justify,
.single-article-content .has-text-align-justify {
  text-align: justify;
}

/* Centered Containers & Custom HTML Blocks (center, align="center", inline style="text-align: center") */
.entry-content center,
.entry-content [align="center"],
.entry-content [align="middle"],
.entry-content [style*="text-align: center" i],
.entry-content [style*="text-align:center" i],
.entry-content .has-text-align-center,
.krypton-single-article-content center,
.krypton-single-article-content [align="center"],
.krypton-single-article-content [align="middle"],
.krypton-single-article-content [style*="text-align: center" i],
.krypton-single-article-content [style*="text-align:center" i],
.krypton-single-article-content .has-text-align-center {
  text-align: center !important;
}

.entry-content center p,
.entry-content [align="center"] p,
.entry-content [style*="text-align: center" i] p,
.entry-content [style*="text-align:center" i] p,
.entry-content .has-text-align-center p,
.krypton-single-article-content center p,
.krypton-single-article-content [align="center"] p,
.krypton-single-article-content [style*="text-align: center" i] p,
.krypton-single-article-content [style*="text-align:center" i] p,
.krypton-single-article-content .has-text-align-center p {
  text-align: center !important;
}

/* Links inside centered containers / custom HTML blocks (e.g. CTA Buy Now buttons) */
.entry-content center a,
.entry-content [align="center"] a,
.entry-content [style*="text-align: center" i] a,
.entry-content [style*="text-align:center" i] a,
.entry-content .has-text-align-center a,
.krypton-single-article-content center a,
.krypton-single-article-content [align="center"] a,
.krypton-single-article-content [style*="text-align: center" i] a,
.krypton-single-article-content [style*="text-align:center" i] a,
.krypton-single-article-content .has-text-align-center a {
  display: inline-block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
}

/* Images inside centered containers, custom HTML blocks, or links */
.entry-content center img,
.entry-content [align="center"] img,
.entry-content [style*="text-align: center" i] img,
.entry-content [style*="text-align:center" i] img,
.entry-content .has-text-align-center img,
.entry-content center a img,
.entry-content [align="center"] a img,
.entry-content [style*="text-align: center" i] a img,
.entry-content [style*="text-align:center" i] a img,
.entry-content .has-text-align-center a img,
.krypton-single-article-content center img,
.krypton-single-article-content [align="center"] img,
.krypton-single-article-content [style*="text-align: center" i] img,
.krypton-single-article-content [style*="text-align:center" i] img,
.krypton-single-article-content .has-text-align-center img,
.krypton-single-article-content center a img,
.krypton-single-article-content [align="center"] a img,
.krypton-single-article-content [style*="text-align: center" i] a img,
.krypton-single-article-content [style*="text-align:center" i] a img,
.krypton-single-article-content .has-text-align-center a img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
}

/* Honor inline auto-margins on custom HTML elements or images */
.entry-content [style*="margin: 0 auto" i],
.entry-content [style*="margin:0 auto" i],
.entry-content [style*="margin: auto" i],
.entry-content [style*="margin:auto" i],
.krypton-single-article-content [style*="margin: 0 auto" i],
.krypton-single-article-content [style*="margin:0 auto" i],
.krypton-single-article-content [style*="margin: auto" i],
.krypton-single-article-content [style*="margin:auto" i] {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

/* Universal Center Alignment for Centered Elements, Blocks, & Cards */
.entry-content .aligncenter,
.krypton-single-article-content .aligncenter,
.single-article-content .aligncenter {
  clear: both;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Figures, Images & Media Blocks - Proper WordPress Centering */
.entry-content figure.aligncenter,
.krypton-single-article-content figure.aligncenter,
.single-article-content figure.aligncenter,
.entry-content .wp-block-image.aligncenter,
.krypton-single-article-content .wp-block-image.aligncenter,
.single-article-content .wp-block-image.aligncenter,
.entry-content .wp-block-image .aligncenter,
.krypton-single-article-content .wp-block-image .aligncenter {
  display: table !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

/* Centered Images (Block & Standalone) */
.entry-content img.aligncenter,
.krypton-single-article-content img.aligncenter,
.single-article-content img.aligncenter,
.entry-content .aligncenter > img,
.krypton-single-article-content .aligncenter > img,
.entry-content figure.aligncenter img,
.krypton-single-article-content figure.aligncenter img,
.entry-content .wp-block-image.aligncenter img,
.krypton-single-article-content .wp-block-image.aligncenter img,
.entry-content .wp-block-image .aligncenter img,
.krypton-single-article-content .wp-block-image .aligncenter img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Centered Linked Images (e.g. <a href="..."><img class="aligncenter" /></a>) */
.entry-content figure.aligncenter > a,
.krypton-single-article-content figure.aligncenter > a,
.entry-content .wp-block-image.aligncenter > a,
.krypton-single-article-content .wp-block-image.aligncenter > a,
.entry-content .aligncenter > a,
.krypton-single-article-content .aligncenter > a,
.entry-content a:has(> img.aligncenter),
.krypton-single-article-content a:has(> img.aligncenter),
.single-article-content a:has(> img.aligncenter) {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.entry-content figure.aligncenter > a > img,
.krypton-single-article-content figure.aligncenter > a > img,
.entry-content .wp-block-image.aligncenter > a > img,
.krypton-single-article-content .wp-block-image.aligncenter > a > img,
.entry-content a:has(> img.aligncenter) > img,
.krypton-single-article-content a:has(> img.aligncenter) > img,
.single-article-content a:has(> img.aligncenter) > img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Paragraphs with centered images or content */
.entry-content p:has(img.aligncenter),
.krypton-single-article-content p:has(img.aligncenter),
.single-article-content p:has(img.aligncenter) {
  text-align: center !important;
}

/* Centered Figcaptions */
.entry-content figure.aligncenter figcaption,
.krypton-single-article-content figure.aligncenter figcaption,
.entry-content .wp-block-image.aligncenter figcaption,
.krypton-single-article-content .wp-block-image.aligncenter figcaption {
  display: table-caption;
  caption-side: bottom;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Inline Styles on paragraphs / divs (e.g. style="text-align: center") */
.entry-content [style*="text-align: center" i],
.entry-content [style*="text-align:center" i],
.entry-content center,
.krypton-single-article-content [style*="text-align: center" i],
.krypton-single-article-content [style*="text-align:center" i],
.krypton-single-article-content center {
  text-align: center;
}

.entry-content [style*="text-align: center" i] img,
.entry-content [style*="text-align:center" i] img,
.entry-content center img,
.krypton-single-article-content [style*="text-align: center" i] img,
.krypton-single-article-content [style*="text-align:center" i] img,
.krypton-single-article-content center img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Left Alignment (Float & Block) */
.entry-content .alignleft,
.krypton-single-article-content .alignleft,
.single-article-content .alignleft,
.entry-content .wp-block-image.alignleft,
.krypton-single-article-content .wp-block-image.alignleft,
.entry-content img.alignleft,
.krypton-single-article-content img.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  clear: left;
}

/* Right Alignment (Float & Block) */
.entry-content .alignright,
.krypton-single-article-content .alignright,
.single-article-content .alignright,
.entry-content .wp-block-image.alignright,
.krypton-single-article-content .wp-block-image.alignright,
.entry-content img.alignright,
.krypton-single-article-content img.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  clear: right;
}

/* None Alignment - Natural inline-block flow, allows centering when wrapped in centered containers or custom CSS */
.entry-content .alignnone,
.krypton-single-article-content .alignnone,
.single-article-content .alignnone,
.entry-content img.alignnone,
.krypton-single-article-content img.alignnone {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.entry-content center .alignnone,
.entry-content [align="center"] .alignnone,
.entry-content .has-text-align-center .alignnone,
.entry-content [style*="text-align: center" i] .alignnone,
.entry-content [style*="text-align:center" i] .alignnone,
.krypton-single-article-content center .alignnone,
.krypton-single-article-content [align="center"] .alignnone,
.krypton-single-article-content .has-text-align-center .alignnone,
.krypton-single-article-content [style*="text-align: center" i] .alignnone,
.krypton-single-article-content [style*="text-align:center" i] .alignnone {
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
}

/* Preserve Custom HTML Blocks (.wp-block-html, raw custom HTML) and Custom Inline CSS */
.entry-content .wp-block-html,
.krypton-single-article-content .wp-block-html,
.single-article-content .wp-block-html {
  max-width: 100%;
  box-sizing: border-box;
}

.entry-content .wp-block-html img,
.krypton-single-article-content .wp-block-html img {
  max-width: 100%;
  height: auto;
}

/* WordPress Image Block Standard Margin */
.entry-content .wp-block-image,
.krypton-single-article-content .wp-block-image,
.single-article-content .wp-block-image {
  margin-bottom: 1.6rem;
}

/* WordPress Gutenberg Buttons & Justification */
.entry-content .wp-block-buttons.is-content-justification-center,
.krypton-single-article-content .wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.entry-content .wp-block-buttons.is-content-justification-left,
.krypton-single-article-content .wp-block-buttons.is-content-justification-left {
  justify-content: flex-start;
}

.entry-content .wp-block-buttons.is-content-justification-right,
.krypton-single-article-content .wp-block-buttons.is-content-justification-right {
  justify-content: flex-end;
}

.entry-content .wp-block-button.aligncenter,
.krypton-single-article-content .wp-block-button.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Gutenberg Tables & Centered Tables */
.entry-content .wp-block-table.aligncenter,
.krypton-single-article-content .wp-block-table.aligncenter,
.single-article-content .wp-block-table.aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
  display: table !important;
}

.entry-content .wp-block-table.aligncenter table,
.krypton-single-article-content .wp-block-table.aligncenter table,
.single-article-content .wp-block-table.aligncenter table {
  margin-left: auto !important;
  margin-right: auto !important;
  width: auto;
}

/* Gutenberg Embeds & Video Centering */
.entry-content .wp-block-embed.aligncenter,
.krypton-single-article-content .wp-block-embed.aligncenter,
.entry-content .wp-block-video.aligncenter,
.krypton-single-article-content .wp-block-video.aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.entry-content .wp-block-embed.aligncenter iframe,
.krypton-single-article-content .wp-block-embed.aligncenter iframe,
.entry-content .wp-block-video.aligncenter video,
.krypton-single-article-content .wp-block-video.aligncenter video {
  margin-left: auto !important;
  margin-right: auto !important;
}

.krypton-single-article-content h2,
.krypton-single-article-content h3,
.krypton-single-article-content h4 {
  font-family: var(--font-family-heading);
  color: #111827;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.krypton-single-article-content h2 {
  font-size: 1.75rem;
}

.krypton-single-article-content h3 {
  font-size: 1.375rem;
}

.krypton-single-article-content ul,
.krypton-single-article-content ol {
  margin-bottom: 1.6rem;
  padding-left: 1.5rem;
}

.krypton-single-article-content li {
  margin-bottom: 0.5rem;
}

.krypton-single-article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--color-primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #1E293B;
}

.krypton-single-post-footer {
  max-width: var(--container-max-width, 1200px);
  width: 100%;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
}

.krypton-single-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.krypton-tags-label {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: #111827;
}

.krypton-tag-list a {
  display: inline-block;
  padding: 4px 12px;
  background-color: #F1F5F9;
  border-radius: 9999px;
  color: #475569;
  font-family: var(--font-family-sans);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.krypton-tag-list a:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .krypton-single-post-wrapper {
    padding: 1.25rem 0 3.5rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .krypton-single-header-container,
  .krypton-single-body-container {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(12px, 3.5vw, 16px);
    padding-right: clamp(12px, 3.5vw, 16px);
    box-sizing: border-box;
    overflow-x: clip;
  }

  .krypton-single-post-title {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
    line-height: 1.24;
    margin: 0.75rem 0 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  .krypton-single-trust-badges {
    width: 100% !important;
    max-width: 100%;
    margin-top: 4px;
    gap: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  .krypton-trust-badge-divider {
    display: none;
  }

  .krypton-trust-badge {
    padding: 4px 10px 4px 8px;
    font-size: 0.75rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .krypton-single-author-meta-bar {
    width: 100%;
    max-width: 100%;
    padding: 14px 0;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    gap: 12px;
    box-sizing: border-box;
  }

  .krypton-single-author-top-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px 14px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .krypton-single-authors-group {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
  }

  .krypton-single-author-info {
    flex: 0 0 auto;
    min-width: 0;
    gap: 7px !important;
  }

  .krypton-single-authors-group .krypton-author-avatar-container {
    width: 34px !important;
    height: 34px !important;
  }

  .krypton-single-authors-group .krypton-author-avatar-img.krypton-author-initials-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 11px !important;
  }

  .krypton-single-authors-group .krypton-author-role-label {
    font-size: 0.5rem !important;
  }

  .krypton-single-authors-group .krypton-author-name,
  .krypton-single-authors-group .krypton-author-name-link,
  .krypton-single-authors-group .krypton-author-reviewer-link {
    font-size: 0.6875rem !important;
  }

  .krypton-mobile-share-wrapper {
    display: inline-block !important;
    position: relative;
    flex-shrink: 0;
  }

  .krypton-single-meta-details {
    width: 100%;
    max-width: 100%;
    font-size: 0.75rem;
    gap: 6px;
    word-break: break-word;
    box-sizing: border-box;
  }

  .krypton-single-author-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hide redundant bottom desktop share bar on mobile */
  .krypton-single-author-bottom-row .krypton-single-share-bar {
    display: none !important;
  }

  .krypton-breadcrumb-product-pill {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   Table of Contents (TOC) Component (In-Page Static Card & Floating Sticky Bar)
   ========================================================================== */

/* Hide Default WordPress, Gutenberg & Plugin in-content Table of Contents blocks */
.wp-block-table-of-contents,
.wp-block-rank-math-toc-block,
#rank-math-toc,
.rank-math-toc-block,
.ez-toc-container,
.ez-toc-widget-container,
.lwptoc,
.lwptoc_i,
.toc_container,
#toc_container {
  display: none !important;
}

/* 1. In-Page TOC Section (Static in normal document flow - zero layout shifts) */
.krypton-toc-section {
  max-width: var(--container-max-width, 1200px);
  width: 100%;
  margin: 0.35rem auto 0.4rem auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.krypton-toc-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.krypton-toc-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  border-color: #CBD5E1;
}

/* In-Page Header Bar */
.krypton-toc-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  box-sizing: border-box;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-bottom-color 0.24s ease;
}

.krypton-toc-header-bar:hover {
  background-color: #F8FAFC;
}

.krypton-toc-card.is-collapsed .krypton-toc-header-bar {
  border-bottom: none;
  border-bottom-color: transparent;
}

.krypton-toc-title-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.krypton-toc-main-title {
  font-family: var(--font-family-heading);
  font-size: 1.0625rem; /* ~17px */
  font-weight: 700;
  color: #0A0A0A;
  margin: 0;
  line-height: 1.2;
}

.krypton-toc-meta-info {
  font-family: var(--font-family-sans);
  font-size: 0.8125rem; /* 13px */
  color: #6B7280;
  font-weight: 400;
}

.krypton-toc-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background-color: #F8FAFC;
  color: #1F2937;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  flex-shrink: 0;
}

.krypton-toc-header-bar:hover .krypton-toc-toggle-btn,
.krypton-toc-toggle-btn:hover {
  background-color: #EDF2F7;
  border-color: #CBD5E1;
  color: var(--color-primary);
}

.krypton-toc-toggle-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.krypton-toc-card.is-collapsed .krypton-toc-toggle-icon {
  transform: rotate(0deg);
}

.krypton-toc-card:not(.is-collapsed) .krypton-toc-toggle-icon {
  transform: rotate(180deg);
}

/* 2. TOC Columns Wrapper (Smooth Grid Height Transition) */
.krypton-toc-columns-wrapper {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.24s ease;
}

.krypton-toc-columns-wrapper > .krypton-toc-columns-grid {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.krypton-toc-card.is-collapsed .krypton-toc-columns-wrapper {
  display: none;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Floating Sticky Table of Contents Bar (Slides below Header - 100% Flicker-Free)
   ========================================================================== */

.krypton-sticky-toc-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, 
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.24s;
}

/* Offset for WordPress Admin Bar when logged in */
body.admin-bar .krypton-sticky-toc-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .krypton-sticky-toc-bar {
    top: 46px;
  }
}

.krypton-sticky-toc-bar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.krypton-sticky-toc-container {
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.krypton-sticky-toc-pill {
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-bottom: 3px solid var(--color-primary, #6EA590);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.krypton-sticky-toc-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  min-height: 52px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  border-radius: 13px 13px 0 0;
}

.krypton-sticky-toc-bar-content:hover {
  background-color: #F8FAFC;
}

/* Green Bottom Accent Line: Perfectly integrated into the pill's rounded bottom border */
.krypton-sticky-toc-accent-line {
  display: none !important;
}

.krypton-sticky-toc-pill.is-dropdown-open .krypton-sticky-toc-accent-line {
  display: none !important;
}

/* Collapsed Header Elements */
.krypton-sticky-toc-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.krypton-toc-collapsed-badge {
  font-family: var(--font-family-sans);
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary); /* #6EA590 */
  text-transform: uppercase;
}

.krypton-toc-collapsed-v-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background-color: #E2E8F0;
  margin: 0 14px;
}

.krypton-toc-collapsed-counter {
  font-family: var(--font-family-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: #94A3B8;
  margin-right: 14px;
}

.krypton-toc-collapsed-section-title {
  font-family: var(--font-family-sans);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.krypton-sticky-toc-right {
  display: flex;
  align-items: center;
}

.krypton-toc-all-sections-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background-color: #F8FAFC;
  color: #1F2937;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  flex-shrink: 0;
}

.krypton-sticky-toc-bar-content:hover .krypton-toc-all-sections-btn,
.krypton-toc-all-sections-btn:hover {
  background-color: #EDF2F7;
  border-color: #CBD5E1;
  color: var(--color-primary);
}

.krypton-toc-all-sections-chevron {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.krypton-sticky-toc-pill.is-dropdown-open .krypton-toc-all-sections-chevron {
  transform: rotate(180deg);
}

/* Sticky Sections Dropdown Panel (Overlay) */
.krypton-sticky-toc-dropdown-panel {
  display: none;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  border-radius: 0 0 14px 14px;
  padding: 20px 24px 24px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.krypton-sticky-toc-pill.is-dropdown-open .krypton-sticky-toc-dropdown-panel {
  display: block;
  animation: stickyDropdownSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stickyDropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Table of Contents List Layout (Single Column) */
.krypton-toc-columns-grid {
  display: block;
  overflow: hidden;
  padding: 0;
}

.krypton-sticky-toc-dropdown-panel .krypton-toc-columns-grid {
  padding: 0;
}

.krypton-toc-items-nav {
  padding: 6px 14px 10px;
}

.krypton-toc-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.krypton-toc-item {
  margin: 0;
  padding: 0;
}

.krypton-toc-item-link {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #334155;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.krypton-toc-item-link:hover {
  background-color: #F8FAFC;
  color: #0F172A;
}

.krypton-toc-item-number {
  font-family: var(--font-family-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: #94A3B8;
  width: 26px;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.krypton-toc-item-text {
  font-family: var(--font-family-sans);
  font-size: 0.84375rem; /* 13.5px */
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
  flex: 1;
}

.krypton-toc-item-chevron {
  flex-shrink: 0;
  color: var(--color-primary);
  display: block;
  opacity: 0;
  visibility: hidden;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  margin-left: 8px;
  transition: opacity 0.2s ease, visibility 0.2s;
}

/* Active Item State (Green background, border-left, green number, and visible chevron) */
.krypton-toc-item-link.is-active {
  background-color: #F0F6F4;
  color: #111827;
  border-left: 3px solid var(--color-primary);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  padding-left: 7px;
}

.krypton-toc-item-link.is-active .krypton-toc-item-chevron {
  opacity: 1;
  visibility: visible;
  display: block;
}

.krypton-toc-item-link.is-active .krypton-toc-item-number {
  color: var(--color-primary);
}

.krypton-toc-item-link.is-active .krypton-toc-item-text {
  font-weight: 600;
  color: #111827;
}

/* Subheading Items (H3 nested under H2) */
.krypton-toc-subitems-list {
  list-style: none;
  margin: 2px 0 4px 12px;
  padding: 0 0 0 8px;
  border-left: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.krypton-toc-subitem {
  margin: 0;
  padding: 0;
}

.krypton-toc-subitem-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 6px;
  text-decoration: none;
  color: #64748B;
  font-size: 0.78125rem; /* 12.5px */
  line-height: 1.35;
  border-left: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.krypton-toc-subitem-link:hover {
  color: var(--color-primary, #6EA590);
  background-color: #F8FAFC;
}

.krypton-toc-subitem-link.is-active {
  color: var(--color-primary, #6EA590);
  background-color: #F0F6F4;
  border-left: 2px solid var(--color-primary, #6EA590);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  padding-left: 4px;
}

.krypton-toc-subitem-link.is-active .krypton-toc-subitem-text {
  font-weight: 600;
  color: var(--color-primary, #6EA590);
}

.krypton-toc-subitem-bullet {
  color: #94A3B8;
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.krypton-toc-subitem-link:hover .krypton-toc-subitem-bullet,
.krypton-toc-subitem-link.is-active .krypton-toc-subitem-bullet {
  color: var(--color-primary, #6EA590);
}

.krypton-toc-subitem-text {
  flex: 1;
}



@media (max-width: 768px) {
  .krypton-toc-section {
    margin: 0.35rem auto 0.5rem auto;
    width: 100%;
    max-width: 100%;
    padding-left: clamp(12px, 3.5vw, 16px);
    padding-right: clamp(12px, 3.5vw, 16px);
    box-sizing: border-box;
    overflow: hidden;
  }

  .krypton-toc-header-bar {
    padding: 10px 14px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .krypton-sticky-toc-bar {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .krypton-sticky-toc-container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .krypton-sticky-toc-bar-content {
    padding: 8px 12px;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    gap: 6px;
  }

  .krypton-sticky-toc-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    gap: 0;
    flex-wrap: nowrap;
  }

  .krypton-toc-collapsed-badge {
    font-size: 0.6875rem;
    flex-shrink: 0;
  }

  .krypton-toc-collapsed-v-divider {
    margin: 0 6px;
    flex-shrink: 0;
  }

  .krypton-toc-collapsed-counter {
    margin-right: 6px;
    font-size: 0.6875rem;
    flex-shrink: 0;
  }

  .krypton-toc-collapsed-section-title {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    flex: 1;
    min-width: 0;
  }

  .krypton-toc-all-sections-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .krypton-toc-main-title {
    font-size: 1.0625rem;
  }

  .krypton-sticky-toc-dropdown-panel {
    padding: 14px 14px 18px;
    max-height: 50vh;
    max-width: 100%;
    box-sizing: border-box;
  }

  .krypton-toc-columns-grid {
    padding: 12px 14px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Author Archive Page Component (Design Matched to Editorial Reference)
   ========================================================================== */

.krypton-author-page-wrapper {
  background-color: var(--color-bg-surface, #FFFFFF);
  padding: 2.25rem 0 6rem;
}

.krypton-author-page-container {
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.krypton-author-breadcrumbs {
  margin-bottom: 2rem;
}

/* 1. Hero Profile Card */
.krypton-author-hero-card {
  background: linear-gradient(135deg, #F3F8F5 0%, #E8F3EE 45%, #DFEEE7 100%);
  border: 1px solid #D5E7DF;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(110, 165, 144, 0.08);
  margin-bottom: 3.5rem;
}

.krypton-author-hero-bg-accent {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 165, 144, 0.22) 0%, rgba(110, 165, 144, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.krypton-author-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 42px 44px;
  position: relative;
  z-index: 2;
}

.krypton-author-hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.krypton-author-hero-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 4px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-author-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.krypton-author-verified-badge {
  position: absolute;
  bottom: 4px;
  right: -4px;
  background-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
  padding: 3.5px 9px 3.5px 7px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.krypton-author-hero-text {
  flex: 1;
  min-width: 0;
}

.krypton-author-hero-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary, #6EA590);
  display: block;
  margin-bottom: 6px;
}

.krypton-author-hero-name {
  font-size: 2.125rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

/* Author Social Links on Hero Card (Replacing Tagline) */
.krypton-author-hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 20px 0;
}

.krypton-author-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.krypton-author-social-btn:hover {
  background-color: var(--color-primary, #6EA590);
  border-color: var(--color-primary, #6EA590);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(110, 165, 144, 0.35);
}

.krypton-author-social-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
}

.krypton-author-hero-tagline {
  display: none;
}

.krypton-author-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.krypton-author-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary, #6EA590);
  color: #FFFFFF !important;
  font-size: 0.84375rem;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 1.5px solid var(--color-primary, #6EA590);
  box-shadow: 0 2px 8px rgba(110, 165, 144, 0.25);
}

.krypton-author-btn-primary:hover {
  background-color: var(--color-primary-hover, #5a8c79);
  border-color: var(--color-primary-hover, #5a8c79);
  transform: translateY(-1px);
}

.krypton-author-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #374151 !important;
  font-size: 0.84375rem;
  font-weight: 500;
  padding: 9px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid #D1D5DB;
  transition: all var(--transition-normal);
}

.krypton-author-btn-secondary:hover {
  border-color: #9CA3AF;
  background-color: #F9FAFB;
  color: #111827 !important;
}

.krypton-author-hero-stats {
  display: none !important;
}

.krypton-author-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px;
}

.krypton-author-stat-item:not(:last-child) {
  border-right: 1px solid rgba(209, 213, 219, 0.6);
}

.krypton-author-stat-item:first-child {
  padding-left: 0;
}

.krypton-stat-number {
  font-size: 1.625rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}

.krypton-stat-label {
  font-size: 0.75rem;
  color: #6B7280;
  line-height: 1.35;
}

/* 2. Content 2-Column Grid (About Left + Sidebar Right) */
.krypton-author-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
  align-items: start;
}

.krypton-author-section-heading {
  font-size: 1.4375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1.25rem 0;
}

.krypton-author-full-bio {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1.75rem;
}

.krypton-author-full-bio p {
  margin-bottom: 1.15rem;
}

.krypton-author-quote-box {
  background-color: #F8FAF9;
  border-left: 3.5px solid var(--color-primary, #6EA590);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 2rem 0;
}

.krypton-author-quote-text {
  font-style: italic;
  color: #2D3748;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

.krypton-author-expertise-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 2.25rem 0 1rem 0;
}

.krypton-author-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.krypton-expertise-tag {
  display: inline-block;
  background-color: #F0F6F3;
  border: 1px solid rgba(110, 165, 144, 0.3);
  color: #2D3748;
  padding: 5px 14px;
  font-size: 0.78125rem;
  border-radius: 999px;
  font-weight: 500;
}

/* Sidebar Cards */
.krypton-author-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.krypton-author-sidebar-card {
  border-radius: 16px;
  overflow: hidden;
}

.krypton-credentials-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.krypton-sidebar-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1.25rem 0;
}

.krypton-credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.krypton-credential-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.krypton-credential-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-primary, #6EA590);
  flex-shrink: 0;
  margin-top: 6px;
}

.krypton-credential-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.krypton-credential-degree {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.krypton-credential-school {
  font-size: 0.75rem;
  color: #6B7280;
  line-height: 1.35;
}

.krypton-standards-card {
  background-color: #5B9B85;
  padding: 24px;
  color: #FFFFFF;
}

.krypton-standards-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.krypton-standards-card-text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* 3. Latest Articles Section */
.krypton-author-articles-section {
  margin-top: 1rem;
}

.krypton-author-articles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 12px;
}

.krypton-articles-header-left {
  position: relative;
}

.krypton-author-articles-title {
  font-size: 1.4375rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.krypton-author-articles-underline {
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary, #6EA590);
  border-radius: 2px;
}

.krypton-articles-header-right {
  display: none !important;
}

/* Featured Top Big Article Card */
.krypton-author-featured-article-card {
  display: grid;
  grid-template-columns: 440px 1fr;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  overflow: hidden;
  background-color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.krypton-author-featured-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.krypton-featured-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  padding: 24px;
  position: relative;
  background-color: #FFFFFF;
  border-right: 1px solid #F1F5F9;
}

.krypton-featured-card-media .krypton-author-card-media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.krypton-featured-card-media .krypton-author-article-thumb-img {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background-color: transparent;
  transition: transform var(--transition-normal);
}

.krypton-author-featured-article-card:hover .krypton-author-article-thumb-img {
  transform: scale(1.03);
}

.krypton-featured-card-media.is-fallback {
  background-color: #F8FAF9;
}

.krypton-post-card-bottle-fallback.is-large {
  transform: scale(1.15);
}

.krypton-featured-card-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.krypton-featured-category-badge {
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-primary, #6EA590);
  margin-bottom: 12px;
  display: block;
}

.krypton-featured-card-title {
  font-size: 1.3125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 14px 0;
}

.krypton-featured-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-featured-card-title a:hover {
  color: var(--color-primary, #6EA590);
}

.krypton-featured-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #555555;
  margin: 0 0 18px 0;
}

.krypton-featured-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78125rem;
  color: #6B7280;
}

/* 3-Column Articles Grid */
.krypton-author-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.krypton-author-grid-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.krypton-author-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.krypton-grid-card-media {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
}

.krypton-grid-card-media .krypton-author-card-media-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.krypton-grid-card-media .krypton-author-article-thumb-img {
  max-width: 100%;
  max-height: 165px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background-color: transparent;
  transition: transform var(--transition-normal);
}

.krypton-author-grid-card:hover .krypton-author-article-thumb-img {
  transform: scale(1.04);
}

.krypton-grid-card-media.is-fallback {
  background-color: #F8FAF9;
}

.krypton-grid-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.krypton-grid-card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary, #6EA590);
  margin-bottom: 8px;
  display: block;
}

.krypton-grid-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.krypton-grid-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-grid-card-title a:hover {
  color: var(--color-primary, #6EA590);
}

.krypton-grid-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: auto;
}

/* Load More Button */
.krypton-author-load-more-wrap {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.krypton-author-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  border: 1.5px solid var(--color-primary, #6EA590);
  color: var(--color-primary, #6EA590);
  font-size: 0.84375rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.krypton-author-load-more-btn:hover {
  background-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(110, 165, 144, 0.3);
}

.krypton-author-load-more-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #64748B;
  box-shadow: none !important;
  transform: none !important;
}

.krypton-author-load-more-btn.is-loading {
  pointer-events: none;
}

.krypton-author-load-more-btn .krypton-spinner {
  animation: kryptonSpin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes kryptonSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Breakpoints for Author Page */
@media (max-width: 1024px) {
  .krypton-author-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .krypton-author-featured-article-card {
    grid-template-columns: 1fr;
  }

  .krypton-featured-card-media {
    border-right: none;
    border-bottom: 1px solid #F1F5F9;
  }

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

  .krypton-author-hero-stats {
    display: none !important;
  }

  .krypton-author-stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .krypton-author-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 32px;
    gap: 1.5rem;
  }

  .krypton-author-hero-name {
    font-size: 1.625rem;
  }

  .krypton-author-hero-actions {
    justify-content: center;
  }

  .krypton-author-hero-stats {
    display: none !important;
  }

  .krypton-author-stat-item {
    padding: 10px 0;
    align-items: center;
  }

  .krypton-author-stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
  }

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

  .krypton-featured-card-content {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   14. Category Directory Page (/category/)
   ========================================================================== */
.krypton-category-directory-page {
  background-color: #FFFFFF;
  padding: 40px 0 80px 0;
}

.krypton-category-directory-container {
  width: 100%;
  max-width: var(--container-max-width, 1240px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding, 1.5rem);
  padding-right: var(--container-padding, 1.5rem);
  box-sizing: border-box;
}

.krypton-category-directory-header {
  margin-bottom: 2rem;
  width: 100%;
}

.krypton-category-directory-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
}

.krypton-category-directory-intro {
  font-family: 'Inter', var(--font-family-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
  color: #4B5563;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.krypton-category-directory-intro p {
  font-family: 'Inter', var(--font-family-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
  color: #4B5563;
  margin-bottom: 1.25rem;
}

.krypton-category-directory-intro p:last-child {
  margin-bottom: 0;
}

/* Quick Jump Category Navigation Pills Grid */
.krypton-category-pills-nav {
  margin: 2rem 0 3.25rem 0;
  padding: 1.5rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.krypton-category-pills-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.krypton-category-pill-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  font-family: var(--font-family-sans);
  font-size: 0.84375rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.krypton-category-pill-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(110, 165, 144, 0.3);
}

/* Category Showcase Sections */
.krypton-category-showcase-section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.krypton-category-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 1.75rem;
}

.krypton-category-showcase-info {
  flex: 1;
  min-width: 0;
}

.krypton-category-showcase-title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.krypton-category-showcase-title a,
.krypton-category-title-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.krypton-category-showcase-title a:hover,
.krypton-category-title-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.krypton-category-showcase-desc {
  font-family: 'Inter', var(--font-family-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
  color: #4B5563;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.krypton-category-showcase-action {
  flex-shrink: 0;
}

.krypton-category-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--color-primary-light);
  color: var(--color-primary-hover);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.krypton-category-view-all-btn:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(110, 165, 144, 0.25);
}

.krypton-category-view-all-btn svg {
  transition: transform var(--transition-fast);
}

.krypton-category-view-all-btn:hover svg {
  transform: translateX(3px);
}

.krypton-category-showcase-divider {
  border: 0;
  height: 1px;
  background-color: #E2E8F0;
  margin-top: 3.5rem;
}

.krypton-category-no-posts {
  font-size: 0.9375rem;
  color: #64748B;
  font-style: italic;
  padding: 1.5rem 0;
}

@media (max-width: 1024px) {
  .krypton-category-pills-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .krypton-category-showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .krypton-category-showcase-section {
    margin-bottom: 3rem;
  }

  .krypton-category-showcase-divider {
    margin-top: 2.5rem;
  }
}

@media (max-width: 680px) {
  .krypton-category-pills-nav {
    margin: 1.5rem 0 2.5rem 0;
    padding: 1rem;
  }

  .krypton-category-pills-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .krypton-category-pill-link {
    font-size: 0.8125rem;
    min-height: 42px;
    padding: 8px 10px;
  }
}

@media (max-width: 360px) {
  .krypton-category-pills-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ==========================================================================
   15. Search Results Page Grid Layout & Components
   ========================================================================== */
.krypton-search-page-wrapper {
  background-color: #FFFFFF;
  padding: 36px 0 80px 0;
  min-height: 70vh;
}

.krypton-search-page-container {
  max-width: var(--container-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
  width: 100%;
}

.krypton-search-main-content {
  width: 100%;
}

.krypton-search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.krypton-search-header-info {
  flex: 1;
  min-width: 280px;
}

.krypton-search-heading-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.krypton-search-results-meta {
  font-size: 0.9375rem;
  color: #64748B;
  margin: 0;
}

.krypton-search-header-form-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 380px;
}

.krypton-search-header-form {
  width: 100%;
}

.krypton-search-header-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-lg, 12px);
  padding: 4px 6px 4px 14px;
  transition: all var(--transition-fast, 0.2s ease);
}

.krypton-search-header-input-group:focus-within {
  background-color: #FFFFFF;
  border-color: var(--color-primary, #6EA590);
  box-shadow: 0 0 0 3px rgba(110, 165, 144, 0.2);
}

.krypton-search-header-icon {
  color: #94A3B8;
  display: flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.krypton-search-header-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
  color: #1E293B;
  padding: 6px 0;
}

.krypton-search-header-submit-btn {
  background-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast, 0.2s ease);
  flex-shrink: 0;
}

.krypton-search-header-submit-btn:hover {
  background-color: var(--color-primary-hover, #5A8C79);
}

.krypton-search-header-divider {
  border: 0;
  height: 1px;
  background-color: #E2E8F0;
  margin: 0 0 36px 0;
}

/* 3-Column Responsive Grid for Search Results */
.krypton-search-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  width: 100%;
}

.krypton-search-post-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid #F1F5F9;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast, 0.2s ease);
}

.krypton-search-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #E2E8F0;
}

.krypton-search-post-card .krypton-post-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.krypton-search-post-card .krypton-post-card-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.krypton-search-post-card .krypton-post-card-category-badge a {
  color: var(--color-primary, #6EA590);
  text-decoration: none;
}

.krypton-search-post-card .krypton-post-card-category-badge a:hover {
  text-decoration: underline;
}

.krypton-search-post-card .krypton-post-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-search-post-card .krypton-post-card-title a {
  color: #111827;
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s ease);
}

.krypton-search-post-card .krypton-post-card-title a:hover {
  color: var(--color-primary, #6EA590);
}

.krypton-search-post-card .krypton-post-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-search-post-card .krypton-post-card-meta-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #94A3B8;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.krypton-search-post-card .krypton-post-card-author {
  color: #64748B;
  font-weight: 500;
}

.krypton-search-post-card .krypton-meta-sep {
  color: #CBD5E1;
}

.krypton-search-post-card .krypton-post-card-date {
  color: #94A3B8;
}

/* Empty State */
.krypton-search-no-results {
  text-align: center;
  padding: 64px 24px;
  background-color: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-xl, 16px);
  margin: 32px 0;
}

.krypton-search-no-results-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.krypton-search-empty-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px 0;
}

.krypton-search-empty-desc {
  color: #64748B;
  max-width: 500px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.krypton-search-empty-form-wrap {
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .krypton-search-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .krypton-search-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .krypton-search-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .krypton-search-header-form-wrapper {
    max-width: 100%;
  }
}

/* ==========================================================================
   Krypton Table Block Integration
   ========================================================================== */
.kt-box {
  --kt-head-bg: var(--color-primary, #6EA590);
  --kt-head-color: #FFFFFF;
  --kt-head-border: rgba(0, 0, 0, 0.08);
  --kt-first-col-bg: var(--color-primary-light, #EEF6F3);
  --kt-first-col-color: #234E3F;
  --kt-first-col-border: #DCEBE4;
  --kt-link-color: var(--color-primary, #6EA590);
  --kt-link-hover: var(--color-primary-hover, #5a8c79);
}

.kt-box .kt-box__th {
  background-color: var(--kt-head-bg, #6EA590);
  color: var(--kt-head-color, #FFFFFF);
  font-weight: 600;
}

.kt-box .kt-box__th--row,
.kt-box .kt-box__td--first {
  background-color: var(--kt-first-col-bg, #EEF6F3);
  color: var(--kt-first-col-color, #234E3F);
  font-weight: 600;
  border-right: 1px solid var(--kt-first-col-border, #DCEBE4);
}

.kt-box--hover .kt-box__tbody tr:hover .kt-box__td--first,
.kt-box--hover .kt-box__tbody tr:hover .kt-box__th--row {
  background-color: #E5F1EB;
}

/* ==========================================================================
   Theme-Wide Typography (Montserrat for Headings, Inter for Paragraphs, Increased P Size)
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.krypton-single-article-content h1, .krypton-single-article-content h2, .krypton-single-article-content h3, .krypton-single-article-content h4, .krypton-single-article-content h5, .krypton-single-article-content h6,
.krypton-post-title, .krypton-single-post-title, .krypton-card-title, .krypton-widget-title, .krypton-section-title, .krypton-category-title, .krypton-author-title, .krypton-toc-title {
  font-family: 'Montserrat', var(--font-family-heading), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

p,
.entry-content p,
.krypton-single-article-content p,
.single-article-content p,
.krypton-post-content p,
.krypton-article-content p,
.krypton-category-directory-intro p,
.krypton-category-showcase-desc,
.krypton-author-full-bio p {
  font-family: 'Inter', var(--font-family-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 1.125rem !important; /* Unified 18px base paragraph font size across all pages and single posts */
  line-height: 1.75 !important;
}

.krypton-category-directory-intro,
.krypton-category-directory-intro p,
.category-directory-intro,
.category-directory-intro p,
.krypton-category-showcase-desc {
  font-family: 'Inter', var(--font-family-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
}

@media (max-width: 768px) {
  p,
  .entry-content p,
  .krypton-single-article-content p,
  .single-article-content p,
  .krypton-post-content p,
  .krypton-article-content p,
  .krypton-category-directory-intro,
  .krypton-category-directory-intro p,
  .category-directory-intro,
  .category-directory-intro p,
  .krypton-category-showcase-desc {
    font-size: 1.0625rem !important; /* Unified 17px on mobile across all pages and single posts */
    line-height: 1.65 !important;
  }

  .krypton-category-archive-desc,
  .krypton-category-archive-desc p,
  .category-archive-desc,
  .category-archive-desc p {
    font-size: 1rem !important; /* 16px on mobile for compact readability */
    line-height: 1.6 !important;
  }
}

/* ==========================================================================
   Policy & Disclaimer Callout Boxes
   ========================================================================== */
.krypton-policy-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.krypton-policy-callout-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-policy-callout-content {
  flex: 1 1 auto;
}

.krypton-policy-callout-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.krypton-policy-callout-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  color: #334155;
}

.krypton-medical-callout {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
}
.krypton-medical-callout .krypton-policy-callout-icon {
  background-color: #DCFCE7;
}
.krypton-medical-callout .krypton-policy-callout-heading {
  color: #166534;
}

.krypton-fda-callout {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
}
.krypton-fda-callout .krypton-policy-callout-icon {
  background-color: #FEF3C7;
}
.krypton-fda-callout .krypton-policy-callout-heading {
  color: #92400E;
}

.krypton-affiliate-callout {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
}
.krypton-affiliate-callout .krypton-policy-callout-icon {
  background-color: #DBEAFE;
}
.krypton-affiliate-callout .krypton-policy-callout-heading {
  color: #1E40AF;
}

/* ==========================================================================
   Global Text Hyperlinks (Blue and Underlined)
   ========================================================================== */
.entry-content a:not(.pcpx-cta-button):not(.pcp-cta-button):not(.pcp-buy-button):not([class*="pcpx-cta"]):not([class*="pcp-buy"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link),
.krypton-post-content a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link),
.krypton-single-content a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link),
.krypton-page-content a,
.comment-content a,
.krypton-author-bio a,
.krypton-author-description a,
.krypton-author-tagline a,
.krypton-policy-callout a,
.krypton-text-content a,
.krypton-single-article a,
article .entry-content p a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link),
article .entry-content li a,
article .entry-content blockquote a,
article .entry-content table a,
.krypton-single-post article p a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link),
.krypton-single-post article li a {
  color: var(--color-link, #2563EB);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--color-link, #2563EB);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.entry-content a:not(.pcpx-cta-button):not(.pcp-cta-button):not(.pcp-buy-button):not([class*="pcpx-cta"]):not([class*="pcp-buy"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link):hover,
.krypton-post-content a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link):hover,
.krypton-single-content a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link):hover,
.krypton-page-content a:hover,
.comment-content a:hover,
.krypton-author-bio a:hover,
.krypton-author-description a:hover,
.krypton-author-tagline a:hover,
.krypton-policy-callout a:hover,
.krypton-text-content a:hover,
.krypton-single-article a:hover,
article .entry-content p a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link):hover,
article .entry-content li a:hover,
article .entry-content blockquote a:hover,
article .entry-content table a:hover,
.krypton-single-post article p a:not(.pcpx-cta-button):not([class*="pcpx-cta"]):not(.krypton-author-name-link):not(.krypton-author-reviewer-link):hover,
.krypton-single-post article li a:hover {
  color: var(--color-link-hover, #1D4ED8);
  text-decoration-color: var(--color-link-hover, #1D4ED8);
}

/* ==========================================================================
   ProductCard DHS 5 Plugin Integration - Strict Buy Now Button Protection
   Preserve plugin button background & ensure text remains clean white without theme link overrides
   ========================================================================== */
.entry-content a.pcpx-cta-button,
.entry-content a.pcp-cta-button,
.entry-content a.pcp-buy-button,
.entry-content .pcpx-product-card-outer a.pcpx-cta-button,
.entry-content .pcpx-card a.pcpx-cta-button,
.pcpx-product-card-outer a.pcpx-cta-button,
.pcpx-card a.pcpx-cta-button,
.pcpx-cta-button,
a.pcpx-cta-button,
a.pcpx-cta-button:link,
a.pcpx-cta-button:visited {
  color: #FFFFFF !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

.entry-content a.pcpx-cta-button:hover,
.entry-content a.pcpx-cta-button:focus,
.entry-content a.pcpx-cta-button:active,
.entry-content a.pcp-cta-button:hover,
.entry-content a.pcp-buy-button:hover,
.pcpx-product-card-outer a.pcpx-cta-button:hover,
.pcpx-card a.pcpx-cta-button:hover,
a.pcpx-cta-button:hover,
a.pcpx-cta-button:focus,
a.pcpx-cta-button:active {
  color: #FFFFFF !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

/* Ensure inner text spans of ProductCard DHS 5 are always crisp white */
.pcpx-cta-button span,
.pcpx-cta-button .pcpx-cta-main-text,
.pcpx-cta-button .pcpx-cta-sub-text,
.entry-content a.pcpx-cta-button span,
.entry-content a.pcpx-cta-button .pcpx-cta-main-text,
.entry-content a.pcpx-cta-button .pcpx-cta-sub-text,
.entry-content a.pcpx-cta-button:hover span,
.entry-content a.pcpx-cta-button:hover .pcpx-cta-main-text,
.entry-content a.pcpx-cta-button:hover .pcpx-cta-sub-text {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Preserve Legit Card (Green) & Scam Card (Red) Button Backgrounds */
.pcpx-card-legit .pcpx-cta-button,
.entry-content .pcpx-card-legit a.pcpx-cta-button {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #FFFFFF !important;
}

.pcpx-card-legit .pcpx-cta-button:hover,
.entry-content .pcpx-card-legit a.pcpx-cta-button:hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
}

.pcpx-card-scam .pcpx-cta-button,
.entry-content .pcpx-card-scam a.pcpx-cta-button {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #FFFFFF !important;
}

.pcpx-card-scam .pcpx-cta-button:hover,
.entry-content .pcpx-card-scam a.pcpx-cta-button:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #FFFFFF !important;
}

/* Preserve component styling on buttons, badges, nav items, and card links */
/* ==========================================================================
   404 Page Component
   ========================================================================== */
.krypton-404-wrapper {
  padding: clamp(3rem, 7vw, 6rem) 1rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8FAFC;
}

.krypton-404-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.krypton-404-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.krypton-404-badge {
  display: inline-block;
  background-color: #FEF2F2;
  color: #DC2626;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 1rem;
  border: 1px solid #FECACA;
}

.krypton-404-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.krypton-404-description {
  font-size: 1rem;
  color: #64748B;
  line-height: 1.6;
  margin: 0 auto 2rem auto;
  max-width: 520px;
}

.krypton-404-search-box {
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.krypton-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.krypton-404-actions .krypton-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary, #1A4D2E);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.krypton-404-actions .krypton-btn:hover {
  background-color: #143D24;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(26, 77, 46, 0.25);
}

.krypton-site-logo a,
.custom-logo-link,
.site-title a,
.nav-menu a,
.krypton-primary-menu a,
.main-navigation a,
.button,
.krypton-btn,
a.button,
a.krypton-btn,
.wp-block-button__link,
.krypton-cf-read-more-btn,
.krypton-categories-view-all-link,
.krypton-category-read-more-btn,
.krypton-marquee-cat-item,
.krypton-clinical-category-card,
.krypton-spotlight-media-link,
.krypton-spotlight-card-title a,
.krypton-spotlight-main-title a,
.krypton-latest-thumb-link,
.krypton-latest-item-title a,
.krypton-author-avatar-link,
.krypton-trust-badge-link,
.krypton-share-btn {
  text-decoration: none !important;
}

/* ==========================================================================
   Krypton Comments Section
   ========================================================================== */
.krypton-comments-area {
  width: 100%;
  max-width: 100%;
  margin: 3.5rem auto 2rem auto;
  padding-top: 2.5rem;
  border-top: 1px solid #E2E8F0;
  box-sizing: border-box;
}

.krypton-comments-header {
  margin-bottom: 2rem;
}

.krypton-comments-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.krypton-comments-icon {
  color: var(--color-primary, #1A4D2E);
  flex-shrink: 0;
}

.krypton-comments-title {
  font-family: var(--font-family-serif, 'Montserrat', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.krypton-comment-list {
  list-style: none;
  margin: 0 0 3rem 0;
  padding: 0;
}

.krypton-comment-list .children {
  list-style: none;
  margin: 1.5rem 0 0 1.5rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid #E2E8F0;
}

@media (max-width: 640px) {
  .krypton-comment-list .children {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
  }
}

.krypton-comment-item {
  margin-bottom: 1.75rem;
}

.krypton-comment-body {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.krypton-comment-body:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.krypton-comment-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.85rem;
}

.krypton-comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.krypton-comment-avatar {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid #E2E8F0;
}

.krypton-comment-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.krypton-comment-author-name {
  font-family: var(--font-family-serif, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
}

.krypton-comment-author-name a {
  color: inherit;
  text-decoration: none !important;
}

.krypton-comment-author-name a:hover {
  color: var(--color-primary, #1A4D2E);
}

.krypton-comment-badge-author {
  display: inline-block;
  background-color: #DCFCE7;
  color: #166534;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
  vertical-align: middle;
}

.krypton-comment-metadata a {
  font-size: 0.775rem;
  color: #94A3B8;
  text-decoration: none !important;
}

.krypton-comment-metadata a:hover {
  color: #64748B;
}

.krypton-comment-awaiting-moderation {
  font-size: 0.8125rem;
  color: #D97706;
  font-style: italic;
  margin: 0.5rem 0 0 0;
}

.krypton-comment-content {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
  margin: 0.5rem 0 1rem 0;
  word-break: break-word;
}

.krypton-comment-content p:last-child {
  margin-bottom: 0;
}

.krypton-comment-reply .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #1A4D2E);
  background-color: #F1F5F9;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.krypton-comment-reply .comment-reply-link:hover {
  background-color: var(--color-primary, #1A4D2E);
  color: #FFFFFF;
}

/* Comment Form */
.krypton-comments-area .comment-respond {
  width: 100%;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .krypton-comments-area .comment-respond {
    padding: 1.25rem 1.25rem;
  }
}

.krypton-comment-reply-title {
  font-family: var(--font-family-serif, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.5rem 0;
}

.krypton-comment-reply-title small a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #EF4444;
  margin-left: 10px;
  text-decoration: none !important;
}

.krypton-comment-reply-title small a:hover {
  text-decoration: underline !important;
}

.krypton-comment-notes {
  font-size: 0.8125rem;
  color: #64748B;
  margin: 0 0 1.25rem 0;
}

.krypton-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.krypton-form-label .required {
  color: #EF4444;
}

.krypton-comments-area input[type="text"],
.krypton-comments-area input[type="email"],
.krypton-comments-area input[type="url"],
.krypton-comment-textarea {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0F172A;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.krypton-comments-area input[type="text"]:focus,
.krypton-comments-area input[type="email"]:focus,
.krypton-comments-area input[type="url"]:focus,
.krypton-comment-textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1A4D2E);
  box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.15);
}

.krypton-comment-textarea {
  resize: vertical;
  min-height: 120px;
}

.krypton-comments-area .comment-form-author,
.krypton-comments-area .comment-form-email,
.krypton-comments-area .comment-form-url {
  margin-bottom: 1rem;
}

.krypton-comments-area .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: #64748B;
  margin: 1rem 0;
}

.krypton-comments-area .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-primary, #1A4D2E);
}

.krypton-comment-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary, #1A4D2E);
  color: #FFFFFF !important;
  font-family: var(--font-family-sans, 'Inter', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 11px 26px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(26, 77, 46, 0.2);
}

.krypton-comment-submit-btn:hover {
  background-color: #143D24;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(26, 77, 46, 0.3);
}

.krypton-no-comments {
  text-align: center;
  padding: 1.5rem;
  color: #64748B;
  font-size: 0.875rem;
  background-color: #F8FAFC;
  border-radius: 12px;
  margin: 2rem 0;
}

/* ==========================================================================
   Krypton Premium Author Profile Box (In Single Post Content)
   ========================================================================== */
.krypton-author-profile-box {
  width: 100%;
  max-width: 100%;
  margin: 3rem auto 1.5rem auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.krypton-author-profile-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.krypton-author-profile-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.krypton-author-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.krypton-author-profile-avatar-link {
  display: block;
  position: relative;
  text-decoration: none !important;
}

.krypton-author-profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #E2E8F0;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background-color: #F8FAFC;
}

.krypton-author-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background-color: #16A34A;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.krypton-author-profile-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.krypton-author-profile-eyebrow {
  display: block !important;
  font-size: 0.6875rem !important; /* 11px uppercase */
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #16A34A !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.2 !important;
}

.krypton-author-profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.krypton-author-profile-name {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.krypton-author-profile-name a {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.krypton-author-profile-name a:hover {
  color: var(--color-primary, #1A4D2E);
}

.krypton-author-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #DCFCE7;
  color: #15803D;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.krypton-author-profile-role {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #64748B !important;
  margin: 3px 0 0 0 !important;
  line-height: 1.2 !important;
  display: block !important;
}

/* Author & Contributor Profile Bio Clamping & Read More Toggle */
.krypton-author-profile-bio-wrap {
  position: relative;
  margin: 0.65rem 0 0.85rem 0;
}

.krypton-author-profile-bio {
  font-size: 0.90625rem;
  line-height: 1.62;
  color: #334155;
  margin: 0;
}

.krypton-author-profile-bio p {
  margin: 0 !important;
  font-size: 0.90625rem !important;
  line-height: 1.62 !important;
  color: #334155 !important;
}

.krypton-author-profile-bio.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2 lines for a clean, short intro */
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

.krypton-author-profile-bio.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.krypton-bio-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-family-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: var(--color-primary, #1A4D2E);
  background: none;
  border: none;
  padding: 4px 0 0 0;
  margin-top: 4px;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1.2;
}

.krypton-bio-toggle-btn:hover {
  color: var(--color-primary-hover, #143D24);
  text-decoration: underline;
}

.krypton-bio-toggle-icon {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.krypton-bio-toggle-btn.is-expanded .krypton-bio-toggle-icon {
  transform: rotate(180deg);
}

.krypton-author-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 0.85rem;
  border-top: 1px solid #F1F5F9;
}

.krypton-author-profile-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.krypton-author-stat-pill,
.krypton-author-website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.krypton-author-website-link:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--color-primary, #1A4D2E);
}

.krypton-author-profile-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary, #1A4D2E);
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.krypton-author-profile-archive-link:hover {
  color: #143D24;
  gap: 9px;
}

@media (max-width: 640px) {
  .krypton-author-profile-card {
    flex-direction: column;
    padding: 1.35rem 1.25rem;
    gap: 1rem;
  }

  .krypton-author-profile-avatar {
    width: 70px;
    height: 70px;
  }

  .krypton-author-profile-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Contributor / Reviewer Profile Card Variant */
.krypton-contributor-profile-card {
  border-left: 3px solid #2563EB;
}

.krypton-contributor-avatar-badge {
  background-color: #2563EB !important;
}

.krypton-contributor-profile-eyebrow {
  color: #2563EB !important;
}

.krypton-contributor-verified-pill {
  background-color: #EFF6FF !important;
  color: #1D4ED8 !important;
}

.krypton-contributor-profile-archive-link {
  color: #2563EB !important;
}

.krypton-contributor-profile-archive-link:hover {
  color: #1D4ED8 !important;
}

/* Suppress third-party plugin author boxes (e.g. Molongui Authorship, Simple Author Box) */
.m-a-box,
#m-a-box,
.molongui-author-box,
.saboxplugin-wrap,
.ts-fab-wrapper {
  display: none !important;
}

/* ==========================================================================
   Universal Mobile Viewport & Horizontal Overflow Prevention
   ========================================================================== */
@media screen and (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  #page,
  .site-wrapper,
  .krypton-site-wrapper,
  #content,
  .site-content,
  .site-main,
  .krypton-single-post-wrapper,
  .krypton-single-post,
  .krypton-container,
  .entry-content,
  .single-body-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  /* Prevent Gutenberg multi-column blowout */
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  /* Prevent long strings or unformatted links from breaking viewport width */
  p, h1, h2, h3, h4, h5, h6, li, a, blockquote, figcaption {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* ==========================================================================
   Molongui Authorship Box Typography Normalization (p tag author name)
   ========================================================================== */
.m-a-box-name p {
  margin: 0 !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.m-a-box-header p {
  margin: 0 !important;
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
   Authors & Medical Reviewers Directory Page (/author and /authors)
   ========================================================================== */
.krypton-authors-directory-page {
  background-color: #F8FAFC;
  padding: 40px 0 80px;
  min-height: 70vh;
}

.krypton-authors-dir-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.krypton-authors-dir-hero {
  text-align: center;
  margin-bottom: 48px;
}

.krypton-authors-dir-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #588b76;
  background: #eef6f2;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(88, 139, 118, 0.2);
}

.krypton-authors-dir-title {
  font-size: 38px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.krypton-authors-dir-intro {
  font-size: 16px;
  line-height: 1.72;
  color: #475569;
  max-width: 860px;
  margin: 0 auto 28px;
}

.krypton-authors-dir-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 28px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.krypton-authors-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.krypton-authors-trust-pill svg {
  color: #588b76;
  flex-shrink: 0;
}

/* Authors Count Indicator */
.krypton-authors-dir-count {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748B;
  margin: -16px 0 24px 0;
  text-align: right;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .krypton-authors-dir-count {
    text-align: center;
    margin: -10px 0 20px 0;
  }
}

/* Reviewer Cards List */
.krypton-authors-dir-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.krypton-author-dir-card {
  display: flex;
  align-items: stretch;
  gap: 32px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  width: 100%;
  min-height: 310px;
}

.krypton-author-dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: #CBD5E1;
}

/* Left Photo Wrap */
.krypton-author-dir-photo-wrap {
  flex: 0 0 210px;
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.krypton-author-dir-photo-link {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
}

.krypton-author-dir-photo-frame {
  width: 210px;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  position: relative;
}

.krypton-author-dir-photo-frame img,
.krypton-author-dir-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.krypton-author-dir-card:hover .krypton-author-dir-photo-frame img,
.krypton-author-dir-card:hover .krypton-author-dir-photo-img {
  transform: scale(1.04);
}

.krypton-author-dir-initials-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #588b76 0%, #3d6a58 100%);
}

.krypton-author-dir-initials {
  color: #FFFFFF;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  user-select: none;
}

.krypton-author-dir-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eef6f2;
  color: #2D6A4F;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 12px;
  border: 1px solid rgba(45, 106, 79, 0.16);
  white-space: nowrap;
}

/* Right Content */
.krypton-author-dir-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.krypton-author-dir-eyebrow-role {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #588b76;
  margin-bottom: 6px;
}

.krypton-author-dir-name {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.krypton-author-dir-name-link {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.krypton-author-dir-name-link:hover {
  color: #588b76;
}

.krypton-author-dir-bio-wrap {
  margin: 0 0 20px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.krypton-author-dir-bio-text {
  font-size: 15px;
  line-height: 1.68;
  color: #475569;
  margin: 0;
}

.krypton-author-dir-bio-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.krypton-author-dir-bio-text.is-clamped p {
  display: inline;
  margin: 0;
}

.krypton-author-bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px 0 0;
  color: #588b76;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  font-family: inherit;
  transition: color 0.18s ease;
  align-self: flex-start;
}

.krypton-author-bio-toggle:hover,
.krypton-author-bio-toggle:focus-visible {
  color: #2D6A4F;
  text-decoration: underline;
  outline: none;
}

.krypton-author-bio-toggle svg {
  transition: transform 0.22s ease;
}

.krypton-author-bio-toggle.is-expanded svg {
  transform: rotate(180deg);
}

.krypton-author-dir-footer-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #F1F5F9;
}

.krypton-author-dir-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.krypton-author-dir-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #588b76;
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.krypton-author-dir-btn-primary:hover {
  background: #436c5b;
  transform: translateY(-1px);
}

.krypton-author-dir-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  color: #334155 !important;
  border: 1px solid #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.krypton-author-dir-btn-secondary:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0f172a !important;
}

.krypton-author-dir-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.krypton-author-dir-soc-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  text-decoration: none;
  transition: all 0.2s ease;
}

.krypton-author-dir-soc-item:hover {
  background: #eef6f2;
  color: #588b76;
  transform: translateY(-2px);
}

/* Editorial Integrity Box */
.krypton-authors-dir-integrity-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 16px;
}

.krypton-authors-dir-integrity-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #DCFCE7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-authors-dir-integrity-heading {
  font-size: 16px;
  font-weight: 700;
  color: #166534;
  margin: 0 0 6px;
}

.krypton-authors-dir-integrity-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #15803D;
  margin: 0;
}

/* Responsive Directory Styles */
@media (max-width: 900px) {
  .krypton-author-dir-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 24px;
    min-height: auto;
  }

  .krypton-author-bio-toggle {
    align-self: center;
  }

  .krypton-author-dir-photo-wrap {
    flex: 0 0 auto;
    width: 100%;
  }

  .krypton-author-dir-footer-row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .krypton-author-dir-actions {
    justify-content: center;
  }

  .krypton-authors-dir-trust-bar {
    border-radius: 18px;
    gap: 12px 18px;
  }

  .krypton-authors-dir-title {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .krypton-authors-directory-page {
    padding: 24px 0 60px;
  }

  .krypton-author-dir-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .krypton-author-dir-photo-frame {
    width: 170px;
    height: 170px;
  }

  .krypton-author-dir-name {
    font-size: 22px;
  }

  .krypton-author-dir-actions {
    width: 100%;
    flex-direction: column;
  }

  .krypton-author-dir-btn-primary,
  .krypton-author-dir-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .krypton-authors-dir-title {
    font-size: 24px;
  }

  .krypton-authors-dir-intro {
    font-size: 14px;
  }

  .krypton-ingredients-dir-integrity-box {
    flex-direction: column;
    padding: 20px 16px;
  }
}



/* ==========================================================================
   Smart Instant Live Search Dropdown (Matching Categories, Articles, & Ingredients)
   ========================================================================== */
.krypton-live-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: min(440px, calc(100vw - 32px));
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 99999;
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
  text-align: left;
  animation: kryptonDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Smart Pre-Search & Post-Search Hairline Progress Bar */
.krypton-search-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.krypton-search-progress-bar.is-active {
  background: #E2E8F0;
  opacity: 1;
}

.krypton-search-progress-bar.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #588b76, #3b82f6);
  border-radius: 999px;
  animation: kryptonSearchProgress 0.75s infinite ease-in-out;
}

@keyframes kryptonSearchProgress {
  0% { left: -45%; width: 35%; }
  50% { width: 65%; }
  100% { left: 100%; width: 35%; }
}

/* Pre-Search Trending Chips / Quick Filters */
.krypton-search-pre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 12px;
}

.krypton-search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.krypton-search-chip:hover,
.krypton-search-chip:focus,
.krypton-search-chip.is-selected {
  background: #588b76;
  color: #FFFFFF;
  border-color: #588b76;
  transform: translateY(-1px);
}

.krypton-search-hint-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 11.5px;
  color: #64748B;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
}

.krypton-search-hint-footer svg {
  color: #588b76;
  flex-shrink: 0;
}

@keyframes kryptonDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile search dropdown container adjustment */
.krypton-mobile-search-wrapper {
  position: relative;
}

.krypton-mobile-search-wrapper .krypton-live-search-dropdown {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

.krypton-search-form {
  position: relative;
}

.krypton-search-form .krypton-live-search-dropdown {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

/* Dropdown Sections */
.krypton-search-group {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #F1F5F9;
}

.krypton-search-group-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  background: #FFFFFF;
  user-select: none;
}

.krypton-search-group-heading svg {
  color: #588b76;
  flex-shrink: 0;
}

.krypton-search-items {
  display: flex;
  flex-direction: column;
}

.krypton-search-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  outline: none;
  box-sizing: border-box;
}

.krypton-search-item:hover,
.krypton-search-item:focus,
.krypton-search-item.is-selected {
  background: #F8FAFC;
}

/* 1. Category Item */
.krypton-search-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #F8FAFC;
  gap: 12px;
}

.krypton-search-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.krypton-search-cat-icon {
  color: #588b76;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.krypton-search-cat-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.krypton-search-cat-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2D6A4F;
  background: #DCFCE7;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* 2. Article / Review Item (Matching user screenshot) */
.krypton-search-post-item,
.krypton-search-ing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
}

.krypton-search-thumb-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  position: relative;
}

.krypton-search-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.krypton-search-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #588b76 0%, #3d6a58 100%);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  user-select: none;
}

.krypton-search-post-info {
  flex: 1;
  min-width: 0;
}

.krypton-search-post-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krypton-search-post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.krypton-search-meta-cat {
  color: #588b76;
  font-weight: 600;
}

.krypton-search-meta-dot {
  color: #CBD5E1;
}

.krypton-search-meta-date {
  color: #94A3B8;
}

/* Query Highlight */
.krypton-live-search-dropdown mark {
  background: transparent;
  color: #588b76;
  font-weight: 800;
  padding: 0;
}

/* 3. Footer View All Link (Matching user screenshot) */
.krypton-search-footer {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

.krypton-search-view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #588b76;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.krypton-search-view-all:hover,
.krypton-search-view-all.is-selected {
  background: #eef6f2;
  color: #436c5b;
}

.krypton-search-view-all svg {
  color: #588b76;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.krypton-search-view-all:hover svg {
  transform: translateX(3px);
}

/* 4. Loading & Empty States */
.krypton-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  color: #64748B;
  font-size: 13.5px;
}

.krypton-search-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #E2E8F0;
  border-top-color: #588b76;
  border-radius: 50%;
  animation: kryptonSearchSpin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes kryptonSearchSpin {
  to {
    transform: rotate(360deg);
  }
}

.krypton-search-empty {
  padding: 28px 16px;
  text-align: center;
  color: #64748B;
  font-size: 13.5px;
  line-height: 1.5;
}

.krypton-search-empty strong {
  color: #0F172A;
}


/* ==========================================================================
   Supplement Ingredients Directory Page (/ingredients and /ingredient)
   ========================================================================== */
.krypton-ingredients-directory-page {
  background-color: #F8FAFC;
  padding: 40px 0 80px;
  min-height: 70vh;
}

.krypton-ingredients-dir-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.krypton-ingredients-dir-hero {
  text-align: center;
  margin-bottom: 36px;
}

.krypton-ingredients-dir-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #588b76;
  background: #eef6f2;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(88, 139, 118, 0.2);
}

.krypton-ingredients-dir-title {
  font-size: 38px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

.krypton-ingredients-dir-intro {
  font-size: 16px;
  line-height: 1.74;
  color: #475569;
  max-width: 880px;
  margin: 0 auto 28px;
}

.krypton-ingredients-dir-intro p {
  margin: 0 0 16px;
}

.krypton-ingredients-dir-intro p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: #334155;
}

.krypton-ingredients-dir-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 28px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.krypton-ingredients-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.krypton-ingredients-trust-pill svg {
  color: #588b76;
  flex-shrink: 0;
}

/* Search & Filter Section */
.krypton-ingredients-filter-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.krypton-ingredients-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.krypton-ingredients-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.krypton-ingredients-search-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 48px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 15px;
  color: #0f172a;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.krypton-ingredients-search-input:focus {
  border-color: #588b76;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(88, 139, 118, 0.15);
}

.krypton-ingredients-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E2E8F0;
  border: none;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.krypton-ingredients-clear-btn:hover {
  background: #CBD5E1;
  color: #0f172a;
}

.krypton-ingredients-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.krypton-ing-filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.krypton-ing-filter-pill:hover {
  background: #E2E8F0;
  color: #0f172a;
}

.krypton-ing-filter-pill.is-active {
  background: #588b76;
  color: #FFFFFF;
  border-color: #588b76;
  box-shadow: 0 2px 8px rgba(88, 139, 118, 0.25);
}

.krypton-ingredients-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748B;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.krypton-ingredients-status-row strong {
  color: #0f172a;
}

/* Ingredients Cards */
.krypton-ingredients-dir-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.krypton-ingredient-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.krypton-ingredient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: #CBD5E1;
}

/* Photo Column */
.krypton-ingredient-photo-wrap {
  flex: 0 0 210px;
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.krypton-ingredient-photo-link {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
}

.krypton-ingredient-photo-frame {
  width: 210px;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  position: relative;
}

.krypton-ingredient-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.krypton-ingredient-card:hover .krypton-ingredient-photo-img {
  transform: scale(1.04);
}

.krypton-ingredient-initials-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #588b76 0%, #3d6a58 100%);
}

.krypton-ingredient-initials {
  color: #FFFFFF;
  font-size: 52px;
  font-weight: 700;
  user-select: none;
}

.krypton-ingredient-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eef6f2;
  color: #2D6A4F;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 0;
  border: 1px solid rgba(45, 106, 79, 0.16);
  white-space: nowrap;
}

/* Content Column */
.krypton-ingredient-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.krypton-ingredient-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.krypton-ingredient-eyebrow-group {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.krypton-ingredient-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #588b76;
}

.krypton-ingredient-botanical {
  font-size: 13px;
  color: #64748B;
}

.krypton-ingredient-name {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.krypton-ingredient-name-link {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.krypton-ingredient-name-link:hover {
  color: #588b76;
}

.krypton-ingredient-desc {
  font-size: 15px;
  line-height: 1.68;
  color: #475569;
  margin: 0 0 18px;
}

.krypton-ingredient-benefits-wrap {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.krypton-benefits-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748B;
  margin-bottom: 8px;
}

.krypton-benefits-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.krypton-benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: #FFFFFF;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
}

.krypton-benefit-tag svg {
  color: #588b76;
  flex-shrink: 0;
}

.krypton-ingredient-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #F1F5F9;
}

.krypton-ingredient-evidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  background: #ECFDF5;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #A7F3D0;
}

.krypton-ingredient-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.krypton-ingredient-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #588b76;
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.krypton-ingredient-btn-primary:hover {
  background: #436c5b;
  transform: translateY(-1px);
}

.krypton-ingredient-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  color: #334155 !important;
  border: 1px solid #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.krypton-ingredient-btn-secondary:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0f172a !important;
}

/* Empty Search State */
.krypton-ingredient-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 20px;
}

.krypton-ing-empty-icon {
  margin-bottom: 16px;
  display: inline-flex;
}

.krypton-ingredient-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.krypton-ingredient-empty-state p {
  font-size: 15px;
  color: #64748B;
  margin: 0 0 20px;
}

/* Monograph Integrity Box */
.krypton-ingredients-dir-integrity-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 16px;
}

.krypton-ingredients-dir-integrity-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #DCFCE7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.krypton-ingredients-dir-integrity-heading {
  font-size: 16px;
  font-weight: 700;
  color: #166534;
  margin: 0 0 6px;
}

.krypton-ingredients-dir-integrity-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #15803D;
  margin: 0;
}

/* Responsive Ingredients Styles */
@media (max-width: 900px) {
  .krypton-ingredient-card {
    padding: 24px;
    gap: 20px;
  }

  .krypton-ingredient-header-meta {
    justify-content: space-between;
  }

  .krypton-ingredient-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .krypton-ingredient-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .krypton-ingredients-dir-trust-bar {
    border-radius: 18px;
    gap: 12px 18px;
  }

  .krypton-ingredients-dir-title {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .krypton-ingredients-directory-page {
    padding: 24px 0 60px;
  }

  .krypton-ingredients-filter-section {
    padding: 18px 16px;
  }

  .krypton-ingredient-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .krypton-ingredient-photo-frame {
    width: 170px;
    height: 170px;
  }

  .krypton-ingredient-name {
    font-size: 22px;
  }

  .krypton-ingredient-actions {
    width: 100%;
    flex-direction: column;
  }

  .krypton-ingredient-btn-primary,
  .krypton-ingredient-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .krypton-ingredients-dir-title {
    font-size: 24px;
  }

  .krypton-ingredients-dir-intro {
    font-size: 14px;
  }

/* Ingredients Directory Numeric Pagination */
.krypton-ingredients-pagination-wrapper {
  margin: 2rem 0 3.5rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

button.page-numbers {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
}

button.page-numbers:hover:not(.current):not(:disabled) {
  background-color: var(--color-primary-light, #EEF6F3);
  border-color: var(--color-primary, #6EA590);
  color: var(--color-primary-hover, #5A8C79);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(110, 165, 144, 0.2);
}

button.page-numbers.prev:hover:not(:disabled),
button.page-numbers.next:hover:not(:disabled) {
  background-color: var(--color-primary, #6EA590);
  border-color: var(--color-primary, #6EA590);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(110, 165, 144, 0.25);
}

button.page-numbers.prev:hover:not(:disabled) svg {
  transform: translateX(-2px);
}

button.page-numbers.next:hover:not(:disabled) svg {
  transform: translateX(2px);
}

button.page-numbers:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}




