/*
Theme Name: Collect! Theme 2026
Theme URI: https://collect.org
Description: Astra child theme for the Collect! website redesign. Brand-compliant typography (Outfit/Inter) and color system.
Author: Comtech Systems Inc.
Author URI: https://collect.org
Template: astra
Version: 1.0.34
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collect-theme-2026
*/

/* ── Brand Colors ─────────────────────────── */
:root {
  --color-primary: #2BA3BB;       /* Teal */
  --color-secondary: #1A3373;     /* Persian Blue */
  --color-accent: #F89939;        /* Urgent Orange */
  --color-neutral: #626464;       /* Mid Grey */
  --color-success: #A1BF2F;       /* Money */
  --color-info: #A94382;          /* Berry Informative */

  --color-text: #626464;          /* Mid Grey — body copy */
  --color-heading: #1A3373;       /* Persian Blue — headings */
  --color-muted: #8A8C8C;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F8FA;        /* aligned with collect-design-system tokens.css */
  --color-border: #E4E7EC;
  --color-border-strong: #C9CED6;
  --color-teal-700: #1F7F92;      /* darker teal — hover state for primary */
  --color-blue-800: #122657;      /* darker Persian Blue — hover state */

  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-pill: 999px;
}

/* ── Base font-size (Astra defaults to 87.5%/14px; staticdemo assumes 16px) */
html { font-size: 16px; }

/* ── Page Background ─────────────────────── */
body,
body.elementor-default,
body[class*="elementor-page-"]:not(.elementor-motion-effects-element-type-background),
body[class*="elementor-page-"] > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: var(--color-bg-alt) !important;
}

/* ── Typography ───────────────────────────── */
body,
.elementor-widget-text-editor,
.elementor-widget-theme-post-content {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  color: var(--color-heading);
}

/* ── Links & Buttons ─────────────────────── */
a {
  color: var(--color-primary);
}

a:hover,
a:focus {
  color: var(--color-secondary);
}

.elementor-button,
.wp-block-button__link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

/* ── Utility Bar (member only) ───────────── */
.collect-utility-bar {
  background: var(--color-secondary);
}
.collect-utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.collect-utility-bar a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.collect-utility-bar a:hover { color: var(--color-primary); }
.collect-utility-welcome {
  margin-left: auto;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.collect-utility-welcome-menu {
  margin-left: auto;
  position: relative;
}
.collect-welcome-toggle {
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);  /* pill, matches .collect-nav-btn */
  padding: 0.4rem 1rem;          /* match .collect-nav-btn */
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
}
.collect-welcome-toggle:hover,
.collect-welcome-toggle[aria-expanded="true"] {
  background: var(--color-bg-alt);
  color: var(--color-heading);
}
.collect-welcome-caret {
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.collect-welcome-toggle[aria-expanded="true"] .collect-welcome-caret {
  transform: rotate(180deg);
}
.collect-welcome-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 1000;
}
.collect-welcome-dropdown li { margin: 0; }
.collect-welcome-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--color-secondary) !important;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.collect-welcome-dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary) !important;
}
[data-visitor="member"] .collect-utility-bar { display: block !important; }

/* ── Contact Bar ─────────────────────────── */
.collect-contact-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.collect-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.45rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}
.collect-contact-bar a {
  color: var(--color-neutral);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}
.collect-contact-bar a:hover { color: var(--color-primary); }
.collect-trust-link { color: var(--color-primary) !important; font-weight: 600 !important; }
.collect-contact-phone {
  color: var(--color-secondary) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}
.collect-separator {
  width: 1px;
  height: 14px;
  background: var(--color-border-strong);
}

/* ── Main Header (Astra overrides) ───────── */
.ast-primary-header-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.ast-primary-header-bar .site-primary-header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 90px;
}
.ast-site-identity .site-logo-img,
.ast-site-identity .custom-logo {
  max-height: 58px;
}
/* Navigation links */
.ast-header-break-point .main-navigation,
.main-header-menu > .menu-item > a {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-neutral);
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
  color: var(--color-primary);
}

/* ── Nav CTA Buttons ─────────────────────── */
.collect-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.collect-nav-action {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}
.collect-nav-action > a,
.collect-nav-actions-wrap > .collect-nav-actions {
  padding: 0 !important;
  line-height: normal !important;
}
.collect-nav-btn {
  display: inline-block;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.15s;
}
.collect-nav-btn-teal {
  background: var(--color-primary);
  color: #fff !important;
}
.collect-nav-btn-teal:hover {
  background: var(--color-teal-700);
  color: #fff !important;
}
.collect-nav-btn-blue {
  background: var(--color-secondary);
  color: #fff !important;
}
.collect-nav-btn-blue:hover {
  background: var(--color-blue-800);
  color: #fff !important;
}

/* ── Elementor price-table buttons → match the teal "Contact Us" CTA ──
   Overrides the default green Elementor price-table button so price tables
   (Upgrade Collect!, Pricing pages, etc.) match the site's nav CTAs. The
   per-page Elementor CSS file uses selectors prefixed with `.elementor-{ID}`
   for higher specificity, so we boost ours by chaining the class twice and
   keeping !important. */
a.elementor-button.elementor-price-table__button,
a.elementor-button.elementor-price-table__button.elementor-button {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
  transition: background-color 0.15s;
}
a.elementor-button.elementor-price-table__button:hover,
a.elementor-button.elementor-price-table__button:focus,
a.elementor-button.elementor-price-table__button.elementor-button:hover,
a.elementor-button.elementor-price-table__button.elementor-button:focus {
  background-color: var(--color-teal-700) !important;
  color: #fff !important;
  border-color: var(--color-teal-700) !important;
}

/* ── Elementor button widgets → match the teal "Contact Us" CTA ──
   Same teal-on-white-text treatment as the price-table button override,
   applied to plain Elementor button widgets (`.elementor-widget-button`).
   Per-page Elementor CSS uses `.elementor-{ID}` selectors so we chain the
   class twice and keep !important to win the cascade. */
.elementor-widget-button .elementor-button-wrapper a.elementor-button,
.elementor-widget-button .elementor-button-wrapper a.elementor-button.elementor-button {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.6rem;
  transition: background-color 0.15s;
}
.elementor-widget-button .elementor-button-wrapper a.elementor-button:hover,
.elementor-widget-button .elementor-button-wrapper a.elementor-button:focus,
.elementor-widget-button .elementor-button-wrapper a.elementor-button.elementor-button:hover,
.elementor-widget-button .elementor-button-wrapper a.elementor-button.elementor-button:focus {
  background-color: var(--color-teal-700) !important;
  color: #fff !important;
  border-color: var(--color-teal-700) !important;
}

/* ── Mobile action ribbon (matches /staticdemo/ "mobile-action-ribbon") ──
   Surfaces Contact Us / Member Center on mobile — on desktop these CTAs
   are folded into the primary nav. Hidden above the Astra mobile
   breakpoint; PHP renders the markup unconditionally.
   Rendered by astra_header_after hook in functions.php. */
.collect-mobile-action-ribbon { display: none; }

/* ── Override Astra's filled mobile menu button with a plain hamburger ──
   The default ast-mobile-menu-buttons-fill renders a teal block; the
   /staticdemo/ design uses a flat grey ☰ glyph on transparent bg. */

/* ── Sticky Header on Scroll ─────────────── */
@keyframes stickyFadeIn {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

body.scrolled .collect-utility-bar {
  position: fixed;
  top: var(--admin-bar-h, 0px);
  left: 0;
  right: 0;
  z-index: 1002;
  animation: stickyFadeIn 0.3s ease;
}
body.scrolled .collect-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1001;
  top: calc(var(--admin-bar-h, 0px) + var(--ub-h, 0px));
  animation: stickyFadeIn 0.3s ease;
}
body.scrolled header.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  top: calc(var(--admin-bar-h, 0px) + var(--bars-h, 35px));
  animation: stickyFadeIn 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body.scrolled {
  padding-top: var(--sticky-offset, 125px);
}

/* ── Dropdown Menus (Astra .sub-menu) ────────── */
.main-header-menu .sub-menu {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 240px;
  padding: 0.5rem 0;
}
.main-header-menu .sub-menu .menu-item > a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-neutral);
  padding: 0.55rem 1.25rem;
  white-space: nowrap;
}
.main-header-menu .sub-menu .menu-item > a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* ── Elementor nav-menu dropdowns → match #primary-menu dropdown style.
   Used on /member-center/ pages where the secondary nav is built with
   Elementor's nav-menu widget. By default Elementor renders the submenu
   with a dark/alternating background; we restore the clean white card
   look so the in-page nav matches the site header. */
.elementor-widget-nav-menu .elementor-nav-menu .sub-menu,
.elementor-widget-nav-menu .sub-menu {
  background: #fff !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  min-width: 240px;
  padding: 0.5rem 0 !important;
}
.elementor-widget-nav-menu .elementor-nav-menu .sub-menu li a,
.elementor-widget-nav-menu .sub-menu li a {
  background: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--color-neutral) !important;
  padding: 0.55rem 1.25rem !important;
  border: 0 !important;
  white-space: nowrap;
}
.elementor-widget-nav-menu .elementor-nav-menu .sub-menu li a:hover,
.elementor-widget-nav-menu .elementor-nav-menu .sub-menu li a:focus,
.elementor-widget-nav-menu .elementor-nav-menu .sub-menu li.current-menu-item > a,
.elementor-widget-nav-menu .sub-menu li a:hover,
.elementor-widget-nav-menu .sub-menu li a:focus,
.elementor-widget-nav-menu .sub-menu li.current-menu-item > a {
  background: var(--color-bg-alt) !important;
  color: var(--color-primary) !important;
}

/* ── Mobile: hide contact bar, simplify header ── */
/* Astra switches to mobile header at 921px (ast-header-break-point) */
@media (max-width: 921px) {
  .collect-contact-bar { display: none; }
  .collect-nav-action { display: none; }

  /* Logo + hamburger on one row (override Astra stack layout) */
  .ast-header-break-point .main-header-bar {
    line-height: normal;
    padding: 1rem 1rem;
  }
  .ast-header-break-point .ast-mobile-header-stack .main-header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .ast-header-break-point .ast-mobile-header-stack .main-header-bar-wrap .site-branding {
    flex: 0 1 auto;
    padding: 0;
    text-align: left;
  }
  .ast-header-break-point .ast-mobile-header-stack .ast-site-identity {
    justify-content: flex-start;
    text-align: left;
  }
  .ast-header-break-point .ast-mobile-header-stack .site-branding .site-logo-img,
  .ast-header-break-point .ast-mobile-header-stack .site-branding .custom-logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
  }
  .ast-header-break-point .ast-mobile-header-stack .ast-mobile-menu-buttons {
    flex: 0 0 auto;
    width: auto;
    padding-top: 0;
  }
  .ast-header-break-point .ast-mobile-header-stack .ast-button-wrap {
    flex: 0 0 auto;
  }
  .ast-header-break-point .ast-mobile-header-stack .ast-button-wrap .menu-toggle {
    height: auto;
    font-size: 1.3em;
  }
  /* Plain hamburger glyph instead of Astra's filled coloured block. */
  button.menu-toggle.main-header-menu-toggle,
  button.menu-toggle.main-header-menu-toggle.ast-mobile-menu-buttons-fill,
  button.menu-toggle.main-header-menu-toggle.ast-mobile-menu-buttons-outline,
  button.menu-toggle.main-header-menu-toggle.ast-mobile-menu-buttons-minimal {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--color-neutral) !important;
    padding: 0.5rem !important;
    line-height: 1 !important;
  }
  button.menu-toggle.main-header-menu-toggle .ast-icon { display: none !important; }
  button.menu-toggle.main-header-menu-toggle::before {
    content: "\2630"; /* ☰ */
    color: var(--color-neutral);
    font-size: 1.6rem;
    line-height: 1;
  }
  button.menu-toggle.main-header-menu-toggle:hover,
  button.menu-toggle.main-header-menu-toggle:focus {
    background: transparent !important;
    color: var(--color-primary) !important;
  }
  button.menu-toggle.main-header-menu-toggle:hover::before,
  button.menu-toggle.main-header-menu-toggle:focus::before {
    color: var(--color-primary);
  }
  /* Show the mobile action ribbon at this breakpoint. */
  .collect-mobile-action-ribbon {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
  }
  .collect-mobile-action-ribbon-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
  }
  .collect-mar-btn {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
  }
  .collect-mar-teal { background: var(--color-primary); }
  .collect-mar-teal:hover { background: var(--color-teal-700); color: #fff; }
  .collect-mar-blue { background: var(--color-secondary); }
  .collect-mar-blue:hover { background: var(--color-blue-800); color: #fff; }
  /* Navigation: full-width row below logo+hamburger. The margin-top opens
     a clear gap between the logo row and the expanded mobile menu. */
  .ast-header-break-point .ast-mobile-header-stack .main-header-bar-navigation {
    flex: 0 0 100%;
    order: 2;
    margin-top: 1rem;
  }

  .collect-utility-inner {
    padding: 0.45rem 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.82rem;
  }
  .collect-utility-bar a { font-size: 0.82rem; }
  .collect-utility-welcome { margin-left: 0; text-align: center; width: 100%; }
  .collect-utility-welcome-menu { margin-left: 0; width: 100%; text-align: center; }
  .collect-welcome-dropdown { left: 50%; right: auto; transform: translateX(-50%); }
  body.scrolled .collect-utility-bar,
  body.scrolled .collect-contact-bar,
  body.scrolled header.site-header {
    position: static;
    box-shadow: none;
    animation: none;
  }
  body.scrolled { padding-top: 0; }
}

/* ── Latest News (homepage + reusable) ───── */
.hp-news { display: none; }
.hp-news-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.hp-news h2 { font-size: 1.4rem; margin-bottom: 1.5rem; text-align: center; }
.hp-news-list { display: flex; flex-direction: column; gap: 1rem; }
.hp-news-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.hp-news-date {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
  min-width: 80px;
}
.hp-news-item h3 { font-size: 0.95rem; font-weight: 600; }
.hp-news-item p { font-size: 0.85rem; margin: 0.2rem 0 0; color: var(--color-text); }
.hp-news-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.hp-news-read-more:hover { color: var(--color-secondary); }
[data-visitor="returning"] .hp-news,
[data-visitor="member"] .hp-news { display: block; }

/* ── Single Post (news) ──────────────────── */
.collect-post-hero {
  background: linear-gradient(135deg, #1A3373 0%, #2BA3BB 100%);
  padding: 40px 20px 32px;
  color: #fff;
  text-align: center;
}
.collect-post-hero--news {
  background: linear-gradient(135deg, #1A3373 0%, #A94382 100%);
}
.collect-post-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.collect-post-hero-eyebrow { display: none; }
.collect-post-hero-title {
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.75rem;
}
.collect-post-hero-subtitle {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 700px;
  margin: 0 auto;
}
.collect-post-hero-crumb {
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.collect-post-hero-crumb:hover,
.collect-post-hero-crumb:focus { color: #fff; }
.collect-post-hero-crumb-sep {
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

.ast-page-builder-template .site .site-content #primary.collect-single-main,
.collect-single-main {
  max-width: 1200px !important;
  margin: 0 auto 2.5rem !important;
  padding: 2.5rem 2rem 0 !important;
  width: 100%;
  box-sizing: border-box;
  float: none;
}
.collect-single-main > article,
.collect-single-main .collect-single-inner,
article.collect-single-inner {
  background: #fff !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2.5rem 3rem;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}
.collect-post-featured {
  border-radius: 8px;
  margin-bottom: 2rem;
  width: 100%;
  height: auto;
  display: block;
}

.collect-post-content {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* Lock heading hierarchy inside post body — wins over Gutenberg inline font-size. */
.collect-post-content h1 { font-size: 2.0rem !important; font-weight: 700; margin: 2.5rem 0 1rem; line-height: 1.2; }
.collect-post-content h2 { font-size: 1.6rem !important; font-weight: 700; margin: 2.5rem 0 1rem; line-height: 1.25; }
.collect-post-content h3 { font-size: 1.3rem !important; font-weight: 600; margin: 2rem 0 0.75rem; line-height: 1.3; }
.collect-post-content h4 { font-size: 1.1rem !important; font-weight: 600; margin: 1.75rem 0 0.5rem; line-height: 1.35; }
.collect-post-content h5 { font-size: 1.0rem !important; font-weight: 600; margin: 1.5rem 0 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; }
.collect-post-content h6 { font-size: 0.9rem !important; font-weight: 600; margin: 1.5rem 0 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral); }
.collect-post-content h1:first-child,
.collect-post-content h2:first-child,
.collect-post-content h3:first-child { margin-top: 0; }

.collect-post-content p,
.collect-post-content li { margin-bottom: 1rem; }
.collect-post-content a { color: var(--color-primary); }
.collect-post-content a:hover,
.collect-post-content a:focus { color: var(--color-secondary); }
.collect-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.collect-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.collect-post-content th {
  background: var(--color-bg-alt);
  color: var(--color-heading);
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-primary);
}
.collect-post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.collect-post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-neutral);
  font-style: italic;
}

.collect-post-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.collect-post-tags { margin-bottom: 1rem; }
.collect-post-tags a {
  display: inline-block;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin: 0 0.4rem 0.4rem 0;
  text-decoration: none;
}
.collect-post-tags a:hover { color: var(--color-primary); }
.collect-post-back a {
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.collect-post-back a:hover { color: var(--color-secondary); }

/* News index (category archive) */
.ast-page-builder-template .site .site-content #primary.collect-archive-main,
.collect-archive-main {
  max-width: 1200px !important;
  margin: 0 auto 2.5rem !important;
  padding: 2.5rem 2rem 0 !important;
  width: 100%;
  box-sizing: border-box;
  float: none;
}
.collect-news-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}
.collect-news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}
.collect-news-card {
  background: var(--color-bg-alt, #f7f8fa);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.collect-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,51,115,0.08);
}
.collect-news-card-meta {
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.collect-news-card-title {
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}
.collect-news-card-title a {
  color: var(--color-heading);
  text-decoration: none;
}
.collect-news-card-title a:hover { color: var(--color-primary); }
.collect-news-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 1rem;
  flex: 1;
}
.collect-news-card-link {
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  align-self: flex-start;
}
.collect-news-card-link:hover { color: var(--color-secondary); }
.collect-news-pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}
.collect-news-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 600;
}
.collect-news-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-decoration: none;
}
.collect-news-pagination .page-numbers.current,
.collect-news-pagination .page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
}
.collect-news-empty {
  text-align: center;
  color: var(--color-neutral);
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .collect-post-hero { padding: 32px 16px 24px; }
  .collect-post-hero-title { font-size: 1.6rem; }
  .collect-post-hero-subtitle { font-size: 1rem; }
  .collect-single-main { padding: 1.5rem 1rem 0; }
  .collect-single-main > article,
  .collect-single-main .collect-single-inner,
  article.collect-single-inner { padding: 1.5rem 1.25rem; }
  .collect-archive-main { padding: 1.5rem 1rem 0; }
  .collect-news-box { padding: 1.25rem; }
  .collect-news-list { grid-template-columns: 1fr; }
  .collect-post-content table { display: block; overflow-x: auto; }
  .collect-post-content h1 { font-size: 1.7rem !important; }
  .collect-post-content h2 { font-size: 1.4rem !important; }
  .collect-post-content h3 { font-size: 1.2rem !important; }
}

/* ── Comtech Self-Service plugin bridge ────────────────────────────
   The plugin renders inside .yui3-cssreset > .tailwindcss containers
   that bring their own CSS reset and width assumptions. When its host
   page is flipped to "Use plain layout" (e.g. /member-center/), the
   plugin output sits inside .collect-single-main > article. These rules
   only stop the plugin from breaking out of the centered card —
   internal plugin styling (forms, dashboards, account selectors) is
   left untouched. */
.collect-single-main .yui3-cssreset,
.collect-single-main .tailwindcss {
  max-width: 100%;
  background: transparent;
}
.collect-single-main .yui3-cssreset > * { box-sizing: border-box; }

/* ── Search results list ───────────────────
   Result-item h2 intentionally has NO size override here — it inherits
   the global `.collect-post-content h2` rule (1.6rem) so the search
   page stays in sync with the rest of the content typography. */
.collect-search-results { list-style: none; padding: 0; margin: 0; }
.collect-search-result { padding: 1.25rem 0; border-bottom: 1px solid var(--color-bg-alt); }
/* Inherit the same size as any other content h2 — but qualify with the
   element name to bump specificity past Astra/Elementor kit rules that
   were overriding `.collect-post-content h2`. */
.collect-post-content h2.collect-search-result-title {
  font-size: 1.6rem !important;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}
/* Astra applies `.entry-content :where(h2) a { font-size: 3rem }`, which
   overrides the parent h2's font-size from inside the link. Force the
   anchor to inherit so the heading actually renders at h2 size. */
.collect-search-result-title a {
  color: #1A3373;
  text-decoration: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}
.collect-search-result-title a:hover { text-decoration: underline; }
.collect-search-result-excerpt { margin: 0 0 0.4rem; color: #626464; font-size: 0.95rem; line-height: 1.6; }
.collect-search-result-url { margin: 0; font-size: 0.82rem; color: var(--color-muted); word-break: break-all; }

/* ── Quick Links "Explore More" card ─────────
   Shared component used at the bottom of marketing pages
   (/solutions/, /solutions/modules/, …) so the same semantic
   block looks identical everywhere. Per-page generators emit
   only the markup; styling lives here.
   --------------------------------------------------------- */
.collect-quick-links-wrap {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
}
.collect-quick-links {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 0;
}
.collect-quick-links h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #1A3373;
}
.collect-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.collect-ql-group h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #2BA3BB;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
.collect-ql-group a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: #626464;
  text-decoration: none;
}
.collect-ql-group a:hover { color: #2BA3BB; }
@media (max-width: 768px) {
  .collect-quick-links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .collect-quick-links-grid { grid-template-columns: 1fr; }
}

/* ─── Shared CTA component ───────────────────────────────────────────────
   Canonical "Ready to streamline?" CTA card used at the bottom of section
   pages (Solutions, Contact, About, Evaluation, Partners, Community, etc.).
   All page generators emit the same markup with these classes — any visual
   change to the CTA happens in ONE place here.

       <div class="collect-cta-section">
         <div class="collect-cta-card">
           <h2>Title</h2>
           <p>Subtitle.</p>
           <a href="..." class="collect-cta-btn-primary">Primary</a>
           <a href="..." class="collect-cta-btn-secondary">Secondary</a>
         </div>
       </div>
*/
.collect-cta-section {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
}
.collect-cta-card {
  background: linear-gradient(135deg, #2BA3BB, #1a8a9e);
  border-radius: 22px;
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}
.collect-cta-card h2 {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.collect-cta-card p {
  color: #fff;
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto 1.5rem;
  max-width: 640px;
}
.collect-cta-btn-primary,
.collect-cta-btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.collect-cta-btn-primary {
  background: #fff;
  color: #1A3373;
}
.collect-cta-btn-primary:hover { background: #f0f1f3; color: #1A3373; }
.collect-cta-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.collect-cta-btn-secondary:hover { border-color: #fff; color: #fff; }

/* Generic buttons for use OUTSIDE the gradient CTA card — i.e. on white /
   light page backgrounds. Same shape/typography as `.collect-cta-btn-*`
   so the site reads as one button family; just inverted colours. */
.collect-btn-primary,
.collect-btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.collect-btn-primary {
  background: #1A3373;
  color: #fff;
}
.collect-btn-primary:hover { background: #152d63; color: #fff; }
.collect-btn-secondary {
  background: transparent;
  color: #1A3373;
  border: 2px solid #1A3373;
}
.collect-btn-secondary:hover { background: #1A3373; color: #fff; }

/* Catch-all override for Elementor's default form-submit button so any
   form widget on the site renders with the design-system button.
   `!important` is required because Elementor injects inline styles on
   the submit button from the editor settings — without !important those
   inline values win regardless of CSS load order. */
.elementor-widget-form .e-form__buttons .elementor-button,
.elementor-widget-form button[type="submit"].elementor-button {
  background-color: #1A3373 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.75rem 2rem !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  fill: #fff !important;
}
.elementor-widget-form .e-form__buttons .elementor-button:hover,
.elementor-widget-form button[type="submit"].elementor-button:hover {
  background-color: #152d63 !important;
  color: #fff !important;
}
.elementor-widget-form .e-form__buttons .elementor-button .elementor-button-text {
  color: #fff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

@media (max-width: 600px) {
  .collect-cta-section { margin: 1.5rem auto 2rem; padding: 0 1rem; }
  .collect-cta-card { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .collect-cta-card h2 { font-size: 1.35rem; }
  .collect-cta-btn-primary,
  .collect-cta-btn-secondary {
    display: block;
    margin: 0.5rem auto;
    max-width: 280px;
  }
}
