/* ============================================================
   Apex Modern – design refresh matching PFS brand quality
   Loaded after bootstrap.css and base.css so rules override.
   ============================================================ */

/* ---- CSS custom properties ---- */
:root {
  --apex-blue:        #1B3A6B;
  --apex-blue-light:  #2A5298;
  --apex-blue-pale:   #e8edf7;
  --apex-orange:      #E57126;
  --apex-orange-dark: #C45E12;
  --apex-teal:        #0b7f89;
  --apex-teal-dark:   #085f68;
  --apex-teal-pale:   #e6f4f5;
  --text-dark:        #1a1a2e;
  --text-body:        #4a5568;
  --text-light:       #718096;
  --surface:          #ffffff;
  --surface-alt:      #f7f8fc;
  --border:           #e2e8f0;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:        0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:        0 10px 30px rgba(0,0,0,.12);
  --radius:           0.75rem;
  --radius-sm:        0.5rem;
  --transition:       all 0.22s ease;
}

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

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--text-body);
  background: var(--surface-alt);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

a:link, a:visited, a:focus {
  color: var(--apex-blue);
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  color: var(--apex-orange);
  text-decoration: none;
  transition: var(--transition);
}

/* ============================================================
   HEADER
   ============================================================ */
.apex-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--apex-blue);
}

.apex-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.apex-logo-link { display: flex; align-items: center; }
.apex-logo { height: 56px; width: auto; }

.apex-header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.apex-cta-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}
.apex-phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--apex-orange) !important;
  letter-spacing: -0.02em;
}
.apex-phone:hover { color: var(--apex-orange-dark) !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.apex-nav {
  background: var(--apex-blue);
  position: relative;
  z-index: 999;
}

.apex-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

.apex-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.apex-nav-list > li {
  position: relative;
}

.apex-nav-list > li > a,
.apex-nav-list > li > span {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,0.88) !important;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.apex-nav-list > li > a:hover,
.apex-nav-list > li > span:hover,
.apex-nav-list > li.has-dropdown:hover > span {
  color: #ffffff !important;
  background: var(--apex-blue-light);
}

/* Dropdown trigger arrow */
.apex-nav-list > li.has-dropdown > span::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.7;
}

/* Dropdown panel */
.apex-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 1001;
  border-top: 3px solid var(--apex-orange);
}
.apex-nav-list > li.has-dropdown:hover .apex-dropdown { display: block; }

.apex-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}
.apex-dropdown li a:hover {
  background: var(--apex-blue-pale);
  color: var(--apex-blue) !important;
  padding-left: 22px;
}

/* Login link (right side) */
.apex-nav-login {
  display: flex;
  align-items: center;
}
.apex-nav-login a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  color: rgba(255,255,255,0.9) !important;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.apex-nav-login a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff !important;
}
.apex-nav-login .apex-lock-icon { font-size: 14px; }

/* Mobile hamburger */
.apex-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.apex-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .apex-hamburger { display: flex; }

  .apex-nav-inner { padding: 0 12px; }

  .apex-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .apex-nav-list.apex-nav-open { display: flex; }

  .apex-nav-list > li > a,
  .apex-nav-list > li > span { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }

  .apex-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: rgba(0,0,0,0.25);
    padding: 0;
  }
  .apex-dropdown-open .apex-dropdown { display: block; }
  .apex-dropdown li a { color: rgba(255,255,255,0.8) !important; padding: 10px 28px; }
  .apex-dropdown li a:hover { background: rgba(255,255,255,0.08); color: #fff !important; }

  .apex-nav-login { padding: 10px 16px 14px; }
  .apex-nav-login a { display: inline-flex; }

  .apex-header-inner { padding: 10px 16px; }
  .apex-logo { height: 44px; }
  .apex-phone { font-size: 16px; }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.apex-main {
  background: var(--surface-alt);
  padding-bottom: 0;
}

.apex-main > .container-narrow { padding: 0 20px; }

/* ============================================================
   HERO SECTION (homepage only)
   ============================================================ */
.apex-hero {
  background: linear-gradient(135deg, var(--apex-blue) 0%, #0f2347 50%, #1a3a6b 100%);
  color: #fff;
  padding: 72px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.apex-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/layout/home/apexhomepage.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.apex-hero .container-narrow { position: relative; z-index: 1; }

.apex-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.apex-hero p {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.apex-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.apex-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-apex-blue,
.btn-apex-orange,
.btn-apex-outline {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-apex-blue {
  background: var(--apex-blue-light);
  color: #fff !important;
  border-color: var(--apex-blue-light);
}
.btn-apex-blue:hover {
  background: var(--apex-blue);
  border-color: var(--apex-blue);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,58,107,0.4);
}

.btn-apex-orange {
  background: var(--apex-orange);
  color: #fff !important;
  border-color: var(--apex-orange);
}
.btn-apex-orange:hover {
  background: var(--apex-orange-dark);
  border-color: var(--apex-orange-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(229,113,38,0.4);
}

.btn-apex-outline {
  background: transparent;
  color: var(--apex-blue) !important;
  border-color: var(--apex-blue);
}
.btn-apex-outline:hover {
  background: var(--apex-blue);
  color: #fff !important;
}

/* Keep backward-compat aliases */
.bluebtn { background: var(--apex-blue-light) !important; border-color: var(--apex-blue-light) !important; }
.bluebtn:hover { background: var(--apex-blue) !important; border-color: var(--apex-blue) !important; }
.orangebtn { background: var(--apex-orange) !important; border-color: var(--apex-orange) !important; }
.orangebtn:hover { background: var(--apex-orange-dark) !important; border-color: var(--apex-orange-dark) !important; }

/* ============================================================
   TRAINING CARDS
   ============================================================ */
.apex-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
@media (max-width: 680px) {
  .apex-cards-grid { grid-template-columns: 1fr; }
}

.apex-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.apex-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.apex-card-header {
  padding: 22px 24px 0;
}
.apex-card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.apex-card-header h2 a { color: inherit !important; font-weight: inherit; }
.apex-card-header h2 a:hover { color: var(--apex-orange) !important; }

.apex-card-body {
  padding: 0 24px 20px;
  flex: 1;
}
.apex-card-body ul { margin: 10px 0 0; padding-left: 18px; }
.apex-card-body ul li { list-style: disc; font-size: 14px; color: var(--text-body); margin-bottom: 5px; }

.apex-card-footer {
  padding: 16px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.apex-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apex-teal);
  background: var(--apex-teal-pale);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Blue-accented card */
.apex-card--blue .apex-card-header { border-top: 4px solid var(--apex-blue-light); }
/* Orange-accented card */
.apex-card--orange .apex-card-header { border-top: 4px solid var(--apex-orange); }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.apex-section {
  padding: 52px 20px;
}
.apex-section--alt {
  background: var(--surface);
}
.apex-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.apex-section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: 1rem;
}

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.apex-clients {
  padding: 36px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.apex-clients-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}
.apex-clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.apex-clients-logos li img {
  height: 36px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: var(--transition);
}
.apex-clients-logos li img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ============================================================
   WHY CHOOSE SECTION
   ============================================================ */
.apex-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.apex-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.apex-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--apex-blue-pale);
  color: var(--apex-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.apex-feature-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.apex-feature-text p {
  font-size: 13.5px;
  color: var(--text-light);
  margin: 0;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.apex-testimonial {
  background: var(--apex-blue-pale);
  border-left: 4px solid var(--apex-blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 0;
  font-style: italic;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
}
.apex-testimonial-author {
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
}

/* ============================================================
   ALERT MESSAGES
   ============================================================ */
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.alert-info, .alert-success {
  background: #e8f4fd;
  border-color: #bee3f8;
  color: #2c5282;
}
.alert-error, .alert-danger {
  background: #fff5f5;
  border-color: #fed7d7;
  color: #742a2a;
}
.alert .close { float: right; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0.6; background: none; border: none; }
.alert .close:hover { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.apex-footer {
  background: var(--apex-teal);
  color: rgba(255,255,255,0.85);
  margin-top: 0;
}

.apex-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}

.apex-footer-brand .apex-footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  display: block;
}
.apex-footer-brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
  max-width: 220px;
}

.apex-footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.apex-footer-col ul { list-style: none; margin: 0; padding: 0; }
.apex-footer-col ul li { margin-bottom: 9px; }
.apex-footer-col ul li a {
  color: rgba(255,255,255,0.72) !important;
  font-size: 13.5px;
  font-weight: 400;
  transition: var(--transition);
}
.apex-footer-col ul li a:hover {
  color: #fff !important;
  padding-left: 4px;
}
.apex-footer-col p {
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  margin: 0 0 8px;
}

.apex-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
}
.apex-footer-bottom .container-narrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.apex-footer-bottom span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.apex-footer-links {
  display: flex;
  gap: 20px;
}
.apex-footer-links a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55) !important;
  font-weight: 400;
}
.apex-footer-links a:hover { color: rgba(255,255,255,0.9) !important; }

@media (max-width: 900px) {
  .apex-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 20px 28px;
  }
}
@media (max-width: 540px) {
  .apex-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .apex-footer-bottom .container-narrow { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HERO – split layout with image
   ============================================================ */
.apex-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.apex-hero-split .apex-hero-badge { margin-bottom: 16px; }
.apex-hero-split h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
.apex-hero-image {
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 680px) {
  .apex-hero-split { grid-template-columns: 1fr; }
  .apex-hero-image { height: 200px; }
  .apex-hero { text-align: center; }
  .apex-hero-actions { justify-content: center; }
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.apex-page-banner {
  background: linear-gradient(135deg, var(--apex-blue) 0%, #0f2347 100%);
  border-bottom: 3px solid var(--apex-orange);
  padding: 40px 20px;
}
.apex-page-banner-inner {
  border-left: 4px solid var(--apex-orange);
  padding-left: 20px;
}
.apex-page-banner h1 {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 6px;
}
.apex-page-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 14.5px;
  margin: 0;
}

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */
.apex-page-content {
  padding: 40px 20px 0;
  background: var(--surface-alt);
}
.apex-page-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.apex-page-section:last-child { border-bottom: none; }

/* ============================================================
   BUY BOX (product purchase card)
   ============================================================ */
.apex-buy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.apex-buy-box-header {
  background: var(--apex-blue);
  padding: 18px 24px;
}
.apex-buy-box-header h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.apex-buy-box-header .apex-price-badge {
  display: inline-block;
  background: var(--apex-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}
.apex-buy-box-body { padding: 20px 24px; }
.apex-buy-box-body ul { list-style: none; padding: 0; margin: 0 0 16px; }
.apex-buy-box-body ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.apex-buy-box-body ul li:last-child { border-bottom: none; }
.apex-buy-box-body ul li::before {
  content: '✓';
  color: var(--apex-teal);
  font-weight: 700;
  flex-shrink: 0;
}
.apex-buy-box-guarantee {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.apex-buy-box-footer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apex-buy-box-footer .btn-apex-orange,
.apex-buy-box-footer .btn-apex-blue { display: block; text-align: center; }

/* ============================================================
   PRICING TABLE
   ============================================================ */
.apex-pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.apex-pricing-table thead tr th {
  background: var(--apex-blue);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}
.apex-pricing-table tbody tr:nth-child(odd) { background: var(--surface); }
.apex-pricing-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.apex-pricing-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.apex-pricing-table tbody tr:last-child td { border-bottom: none; }
.apex-pricing-table .price-highlight {
  font-weight: 700;
  color: var(--apex-blue);
}

/* ============================================================
   CONTENT SPLIT (two-column page layout)
   ============================================================ */
.apex-content-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .apex-content-split { grid-template-columns: 1fr; }
}
/* Even two-column split (e.g. group discount text + pricing table).
   Stacks to a single column on mobile so the table sits below the text div. */
.apex-content-split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .apex-content-split--even { grid-template-columns: 1fr; }
}

/* ============================================================
   COURSE IMAGE BLOCK
   ============================================================ */
.apex-course-image {
  border-radius: var(--radius-sm);
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FAQ / ACCORDION (modern)
   ============================================================ */
.apex-faq { margin-top: 24px; }
.apex-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.apex-faq-toggle {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 14px 18px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--apex-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.apex-faq-toggle:hover { background: var(--apex-blue-pale); }
.apex-faq-toggle::after { content: '▾'; font-size: 12px; opacity: 0.7; }
.apex-faq-body {
  display: none;
  padding: 16px 18px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}
.apex-faq-body p { margin-bottom: 10px; }
.apex-faq-body p:last-child { margin-bottom: 0; }
.apex-faq-open .apex-faq-toggle { background: var(--apex-blue-pale); }
.apex-faq-open .apex-faq-toggle::after { content: '▴'; }
.apex-faq-open .apex-faq-body { display: block; }

/* ============================================================
   CONTACT / FORM PAGE
   ============================================================ */
.apex-contact-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .apex-contact-split { grid-template-columns: 1fr; }
}
.apex-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 28px 28px 24px;
}
.apex-form-group { margin-bottom: 18px; }
.apex-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.apex-form-group .req { color: var(--apex-orange); }
.apex-info-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 24px;
}
.apex-info-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--apex-orange);
}
.apex-info-card p { font-size: 13.5px; color: var(--text-body); margin: 0 0 10px; }

/* ============================================================
   TESTIMONIALS PAGE
   ============================================================ */
.apex-testimonials-list { display: flex; flex-direction: column; gap: 24px; }
.apex-testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.apex-testimonial-logo {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apex-testimonial-logo img { max-width: 80px; max-height: 60px; object-fit: contain; filter: grayscale(30%); }
.apex-testimonial-content blockquote {
  font-style: italic;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
}
.apex-testimonial-content cite {
  font-size: 13px;
  font-style: normal;
  color: var(--text-light);
}
.apex-testimonial-content cite strong { color: var(--text-dark); }
@media (max-width: 580px) {
  .apex-testimonial-card { flex-direction: column; }
  .apex-testimonial-logo { width: auto; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.apex-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 680px) { .apex-about-split { grid-template-columns: 1fr; } }

/* ============================================================
   INLINE STAT BADGES
   ============================================================ */
.apex-stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.apex-stat-badge {
  background: var(--apex-blue-pale);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.apex-stat-badge strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--apex-blue);
  line-height: 1.1;
}
.apex-stat-badge span { font-size: 12px; color: var(--text-light); }

/* ============================================================
   HIDE LEGACY ELEMENTS REPLACED BY MODERN MARKUP
   ============================================================ */
.head,           /* old header div */
.navbar,         /* old Bootstrap 3 navbar */
.footer,         /* old 1-line footer */
hr + .footer     /* footer preceded by <hr> */
{ display: none !important; }

/* Hide the old <hr> before footer */
.apex-main > .container-narrow > hr:last-of-type { display: none; }

/* ============================================================
   LEGACY CONTENT PAGE POLISH
   (keeps Bootstrap 3 grid working but improves visual quality)
   ============================================================ */
.standardblock { padding: 20px 0; }

.plan { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.plan-name-silver { padding-bottom: 10px; }

.block_yelloware {
  background: #fffbeb;
  border-left: 4px solid #f6ad55;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 12px 0;
}

.graybgholder { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }

blockquote.style1 {
  border-left: 4px solid var(--apex-blue-light);
  padding: 12px 20px;
  margin: 0;
  font-style: italic;
  color: var(--text-body);
  background: var(--apex-blue-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.bubbleauthor { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* Content containers */
.content10t20w { padding: 10px 20px; }
.content020 { padding: 0 20px; }
.content40home { padding: 10px 0; }
.content { padding: 10px 0; }
.contentall { padding: 10px 0; }
.contenttop10 { padding-top: 10px; }
.contenthrci { padding: 10px 5px 0 0; }

/* Headings */
.standardh3 { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.standardh4 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.standardh2fhland  a:link,
.standardh2fhland  a:visited { color: var(--apex-orange); font-weight: 700; }
.standardh2fhlandred a:link,
.standardh2fhlandred a:visited { color: var(--apex-blue); font-weight: 700; }

/* Color utilities */
.bluetxt  { color: var(--apex-blue); }
.orangetxt { color: var(--apex-orange); }
.greentxt { color: var(--apex-teal); }
.darktxt  { color: var(--text-dark); }
.graytxt  { color: var(--text-light); }
.redtxt   { color: var(--apex-orange); }

.homemainheader { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; }
.subtitle { font-size: 1.05rem; color: var(--text-light); }

/* Spacing helpers already in base.css are kept;
   these supplement with rem-based versions */
.margintop15  { margin-top: 15px; }
.margintop20  { margin-top: 20px; }
.marginbottom15 { margin-bottom: 15px; }

/* Client logos (old markup) */
ul.clientlogos11 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.clientlogos11 li img {
  height: 32px;
  width: auto;
  filter: grayscale(100%) opacity(0.55);
  transition: var(--transition);
}
ul.clientlogos11 li img:hover { filter: grayscale(0%) opacity(1); }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], select, textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--surface);
  width: 100%;
  transition: var(--transition);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--apex-blue-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.12);
}

/* Misc */
.choosepfs2nd, .choosepfs1st, .choosepfs3rd { padding: 6px 0; }
.grouptrainingcta {
  background: var(--apex-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.grouptraining:hover .grouptrainingcta {
  background: var(--apex-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.grouptrainingcta p { color: rgba(255,255,255,0.9); margin: 0; font-weight: 600; }
.grouptrainingcta .fontsize12 { font-size: 12px; opacity: 0.75; }
