/*
 Theme Name:   Make Child
 Description:  Child theme for Make — CBA v2 design system from learn.canbusacademy.com
 Author:       CANbus Academy
 Template:     make
 Version:      1.1.0
*/

/* ============================================
   Design System — ported from learn.canbusacademy.com
   Font: Space Grotesk
   IMPORTANT: Use px values only. Make parent theme
   sets html{font-size:62.5%} which makes 1rem = 10px.
   See ehcore/docs/cba/wp-styling.md
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* Hide site title + tagline text when logo image is present */
.custom-logo-link + .site-title,
.custom-logo-link ~ .site-description,
.site-header .site-title,
.site-header .site-description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Apply design system font to clean template pages */
.page-template-page-clean {
  font-family: Space Grotesk, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

.page-template-page-clean .site-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* ---- CBA Base Components ---- */

.cba-section {
  padding: 40px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cba-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cba-section-lead {
  color: #475569;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.025em;
}

.cba-btn-primary {
  background: #1e293b;
  color: #fff;
}

.cba-btn-primary:hover {
  background: #0f172a;
}

.cba-btn-cta {
  background: #1e293b;
  color: #fff;
}

.cba-btn-cta:hover {
  background: #0f172a;
}

.cba-btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---- Contact Page ---- */

.cba-contact-section {
  padding: 48px 0 64px;
}

.cba-contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.cba-contact-title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  text-align: center;
}

.cba-contact-subtitle {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 32px;
}

.cba-contact-form-wrapper {
  min-height: 400px;
}

.cba-contact-form-wrapper iframe {
  width: 100%;
  height: 720px;
  border: none;
}

/* Secondary info strip below form */
.cba-contact-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}

.cba-contact-secondary-item {
  flex: 1;
  min-width: 180px;
}

.cba-contact-secondary-item h3 {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.cba-contact-secondary-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.cba-contact-secondary-item a.cba-btn {
  font-size: 13px;
  padding: 8px 16px;
  background: #1e293b;
  color: #fff;
  margin-right: 8px;
  margin-top: 8px;
}

.cba-contact-secondary-item a.cba-btn:hover {
  background: #0f172a;
}

.cba-contact-link {
  color: #1e293b;
  text-decoration: underline;
  font-weight: 500;
  font-size: 14px;
}

.cba-contact-link:hover {
  color: #0f172a;
}

/* ---- Consulting Page (vc-* classes from learn site) ---- */

.vc-hero {
  padding: 56px 0 32px;
  max-width: 650px;
}

.vc-title {
  font-size: 44px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.1;
}

.vc-subtitle {
  font-size: 18px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.vc-subtitle-strong {
  color: #1e293b;
  font-weight: 500;
}

.vc-hero-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.vc-discovery-btn {
  display: inline-block;
  padding: 16px 32px;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease;
}

.vc-discovery-btn:hover {
  background: #0f172a;
}

.vc-hero-note {
  font-size: 14px;
  color: #64748b;
}

.vc-credibility {
  padding: 24px 0 40px;
}

.vc-credibility-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.vc-credibility-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.vc-credibility-text p {
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

.vc-how {
  padding: 32px 0;
}

.vc-how h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

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

.vc-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vc-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.vc-step h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.vc-step p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.vc-scarcity {
  padding: 16px 24px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  margin-bottom: 32px;
}

.vc-scarcity p {
  font-size: 14px;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

.vc-scarcity strong {
  color: #78350f;
}

.vc-packages-section {
  padding: 40px 0;
}

.vc-packages-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

.vc-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vc-package {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vc-package:hover {
  border-color: #1e293b;
}

.vc-package-featured {
  border-color: #1e293b;
  border-width: 2px;
}

.vc-package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 2px;
  white-space: nowrap;
}

.vc-package-name {
  font-size: 19px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.vc-package-cta-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.vc-package-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

.vc-package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.vc-package-features li {
  font-size: 14px;
  color: #334155;
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
}

.vc-package-features li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #1e293b;
  font-weight: 700;
}

.vc-package-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1e293b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
  margin-top: auto;
}

.vc-package-btn:hover {
  background: #0f172a;
}

.vc-enterprise {
  padding: 0 0 40px;
}

.vc-enterprise-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background: #1e293b;
  border-radius: 4px;
  color: #fff;
}

.vc-enterprise-left h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.vc-enterprise-left p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.vc-enterprise-left strong {
  color: #fff;
}

.vc-enterprise-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.vc-enterprise-btn:hover {
  background: #f1f5f9;
}

.vc-usecases {
  padding: 40px 0;
}

.vc-usecases h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

.vc-usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.vc-usecase {
  padding: 20px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.vc-usecase strong {
  font-size: 15px;
  color: #1e293b;
  display: block;
  margin-bottom: 6px;
}

.vc-usecase p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.vc-faq {
  padding: 40px 0;
}

.vc-faq h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

.vc-faq-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vc-faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.vc-faq-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.vc-final-cta {
  text-align: center;
  padding: 48px 32px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  margin: 16px 0 48px;
}

.vc-final-cta h3 {
  font-size: 21px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.vc-final-sub {
  font-size: 15px;
  color: #475569;
  margin-bottom: 24px;
}

.vc-final-btn {
  display: inline-block;
  padding: 16px 40px;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease;
}

.vc-final-btn:hover {
  background: #0f172a;
}

.vc-final-alt {
  margin-top: 24px;
  font-size: 14px;
  color: #64748b;
}

.vc-final-alt a {
  color: #1e293b;
  text-decoration: underline;
}

/* ---- CBA FAQ (shared) ---- */

.cba-faq-grid {
  display: grid;
  gap: 16px;
}

.cba-faq-item {
  background: #f8fafc;
  padding: 24px;
  border-radius: 4px;
}

.cba-faq-item h3 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: #0f172a;
}

.cba-faq-item p {
  font-size: 14px;
  color: #475569;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .vc-title {
    font-size: 36px;
  }

  .vc-packages {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .vc-usecases-grid {
    grid-template-columns: 1fr;
  }

  .vc-credibility-content {
    flex-direction: column;
    text-align: center;
  }

  .vc-enterprise-card {
    flex-direction: column;
    text-align: center;
  }

  .cba-contact-secondary {
    flex-direction: column;
  }
}

/* ============================================
   Course Catalog (.cc-*) — /courses/ page
   ============================================ */

.cc-hero {
  text-align: center;
  padding: 48px 0 32px;
  max-width: 700px;
  margin: 0 auto;
}

.cc-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cc-hero p {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
}

.cc-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 24px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.cc-stat {
  text-align: center;
}

.cc-stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.cc-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.cc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-card:hover {
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cc-card-featured {
  border-color: #1e293b;
  border-width: 2px;
}

.cc-card-image {
  height: 200px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.cc-card-image img {
  max-width: 90%;
  max-height: 170px;
  object-fit: contain;
}

.cc-card-level {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}

.cc-card-level-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}

.cc-card-body {
  padding: 24px;
}

.cc-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.cc-card-price {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}

.cc-card-price strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

.cc-card-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cc-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-card-features li {
  font-size: 14px;
  color: #334155;
  padding-left: 20px;
  position: relative;
}

.cc-card-features li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #1e293b;
  font-weight: 700;
}

.cc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.cc-card-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease;
}

.cc-card-btn:hover {
  background: #0f172a;
}

.cc-card-instructor {
  font-size: 13px;
  color: #64748b;
}

.cc-about {
  max-width: 700px;
  margin: 0 auto 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.cc-about h2 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.cc-about p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
}

.cc-also {
  max-width: 700px;
  margin: 0 auto 48px;
  padding: 16px 24px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.cc-also a {
  color: #334155;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-also a:hover {
  color: #0f172a;
}

/* ============================================
   Course Detail (.cd-*) — /courses/can-ts/, /courses/can-fs/
   ============================================ */

/* Override Make theme width constraints for course detail 2-col layout */
.site-main:has(.cd-layout),
.entry-content:has(.cd-layout) {
  max-width: 960px !important;
}

.cd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  max-width: 960px;
}

/* WordPress wpautop injects <p> tags between block elements when
   there are blank lines in post_content. Hide them so they don't
   break the 2-column grid layout. */
.cd-layout > p,
.cd-layout > br {
  display: none;
}

.cd-content {
  min-width: 0;
}

.cd-hero {
  padding: 32px 0 24px;
}

.cd-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cd-hero p {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.cd-hero-tagline {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  font-style: italic;
}

.cd-social-proof {
  font-size: 13px;
  color: #64748b;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* Sidebar */
.cd-sidebar {
  position: sticky;
  top: 80px;
}

.cd-sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.cd-sidebar-image {
  background: #f1f5f9;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.cd-sidebar-image img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.cd-sidebar-body {
  padding: 24px;
}

.cd-price {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.cd-enroll-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1e293b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease;
  margin-bottom: 10px;
}

.cd-enroll-btn:hover {
  background: #0f172a;
}

.cd-free-link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #1e293b;
  text-decoration: underline;
  font-weight: 500;
  margin-bottom: 20px;
}

.cd-free-link:hover {
  color: #0f172a;
}

.cd-quick-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-quick-facts li {
  font-size: 13px;
  color: #475569;
  padding-left: 20px;
  position: relative;
}

.cd-quick-facts li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

/* Sections */
.cd-section {
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
}

.cd-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 20px;
}

.cd-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.cd-section p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

/* Learning Outcomes */
.cd-outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-outcomes li {
  font-size: 15px;
  color: #334155;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.cd-outcomes li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 16px;
}

/* Modules */
.cd-modules {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cd-module {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
}

.cd-module h3 {
  margin-bottom: 4px;
}

.cd-module-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  font-style: italic;
}

.cd-module ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cd-module ul li {
  font-size: 14px;
  color: #334155;
  padding-left: 20px;
  position: relative;
}

.cd-module ul li:before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: #94a3b8;
}

/* Testimonials */
.cd-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cd-testimonial {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
}

.cd-testimonial blockquote {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 12px;
  font-style: italic;
}

.cd-testimonial cite {
  font-size: 13px;
  color: #64748b;
  font-style: normal;
  font-weight: 500;
}

/* Audience */
.cd-audience {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd-audience li {
  font-size: 15px;
  color: #334155;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.cd-audience li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #1e293b;
  font-weight: 700;
}

/* Instructor */
.cd-instructor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cd-instructor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cd-instructor-name {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.cd-instructor-title {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.cd-instructor p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* Tools section */
.cd-tools {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
}

.cd-tools p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Final CTA */
.cd-cta {
  text-align: center;
  padding: 48px 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 32px 0;
}

.cd-cta h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.cd-cta p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 24px;
}

.cd-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease;
}

.cd-cta-btn:hover {
  background: #0f172a;
}

.cd-cta-alt {
  margin-top: 16px;
  font-size: 14px;
  color: #64748b;
}

.cd-cta-alt a {
  color: #1e293b;
  text-decoration: underline;
}

/* Upsell */
.cd-upsell {
  background: #fff;
  border: 2px solid #1e293b;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.cd-upsell h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.cd-upsell p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cd-upsell-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s ease;
}

.cd-upsell-btn:hover {
  background: #0f172a;
}

/* FAQ (extends .cba-faq pattern) */
.cd-faq-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cd-faq-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 6px;
}

.cd-faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.cd-faq-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ---- Course Responsive ---- */

@media (max-width: 768px) {
  .cc-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto 48px;
  }

  .cc-stats {
    gap: 24px;
  }

  .cd-layout {
    grid-template-columns: 1fr;
  }

  .cd-sidebar {
    position: static;
    order: 1;
  }

  .cd-testimonials {
    grid-template-columns: 1fr;
  }

  .cd-hero h1 {
    font-size: 28px;
  }

  .cd-instructor {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================
   Contact Page v2 — inline form, tighter layout
   ============================================ */

/* Inline form — replaces modal trigger + empty wrapper */
.cba-contact-form-inline {
  margin: 0 auto 32px;
  max-width: 600px;
}

.cba-contact-form-inline iframe {
  width: 100%;
  height: 720px;
  border: none;
  display: block;
}

/* Kill the old empty wrapper */
.cba-contact-form-wrapper {
  min-height: 0 !important;
}

/* Support button group — horizontal */
.cba-contact-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cba-contact-btn-group .cba-btn {
  font-size: 13px;
  padding: 8px 16px;
}

/* Tighten secondary section spacing */
.cba-contact-secondary {
  gap: 24px;
  padding-top: 24px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .cba-contact-form-inline iframe {
    height: 780px;
  }
}

/* Contact form inline — loading state */
.cba-contact-form-inline {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

/* Spinner while iframe loads */
.cba-contact-form-inline::before {
  content: "Loading form...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #94a3b8;
  font-family: "Space Grotesk", sans-serif;
  z-index: 0;
}

.cba-contact-form-inline iframe {
  position: relative;
  z-index: 1;
  background: #fff;
}

/* ============================================
   About Page (.va-*) — /about/ (page 9)
   Clean replacement for WP Bakery content.
   ============================================ */

/* ---- Hero ---- */
.va-hero {
  padding: 48px 0 32px;
}

.va-hero-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.va-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.va-title {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.va-intro {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.va-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.va-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #0f172a;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.15s ease, transform 0.1s ease;
}

.va-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.va-btn-outline {
  background: #fff;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1;
}

.va-btn-outline:hover {
  border-color: #1e293b;
  background: #f8fafc;
}

/* ---- Portfolio Thumbnails ---- */
.va-portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 32px;
}

.va-portfolio > p,
.va-portfolio > br {
  display: none;
}

.va-portfolio img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: opacity 0.15s ease;
}

.va-portfolio img:hover {
  opacity: 0.85;
}

/* ---- wpautop defense (all va-* containers) ---- */
.va-hero-content > p,
.va-hero-content > br,
.va-hero-cta > br,
.va-portfolio > br,
.va-cta-links > br {
  display: none;
}

/* wpautop wraps <img> in <p> inside project cards — neutralize */
.va-project > p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
}

/* Restore the actual description <p> that follows <h3> */
.va-project > h3 + p {
  font-size: 13px !important;
  line-height: 1.5 !important;
  padding: 0 16px 16px !important;
}

/* ---- Bio ---- */
.va-bio {
  padding: 32px 0;
  border-bottom: 1px solid #f1f5f9;
}

.va-bio h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.va-bio-content p {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.va-bio-content a {
  color: #1e293b;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Credentials ---- */
.va-credentials {
  padding: 32px 0;
  border-bottom: 1px solid #f1f5f9;
}

.va-credentials h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.va-creds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* wpautop injects <p> between grid children */
.va-creds-grid > p,
.va-creds-grid > br {
  display: none;
}

.va-cred {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.va-cred-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
}

.va-cred-value {
  font-size: 15px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.4;
}

/* ---- HQ ---- */
.va-hq {
  padding: 32px 0;
  border-bottom: 1px solid #f1f5f9;
}

.va-hq h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.va-hq-address {
  font-size: 15px;
  color: #475569;
  margin-bottom: 20px;
}

.va-hq-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.va-hq-gallery > p,
.va-hq-gallery > br {
  display: none;
}

.va-hq-photo {
  margin: 0;
}

.va-hq-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.va-hq-photo figcaption {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

/* ---- Key Projects ---- */
.va-projects {
  padding: 32px 0;
  border-bottom: 1px solid #f1f5f9;
}

.va-projects h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.va-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.va-projects-grid > p,
.va-projects-grid > br {
  display: none;
}

.va-project {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.va-project:hover {
  border-color: #94a3b8;
}

.va-project img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.va-project h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 16px 6px;
  margin: 0;
}

.va-project p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  padding: 0 16px 16px;
  margin: 0;
}

/* ---- Experience ---- */
.va-experience {
  padding: 32px 0;
  border-bottom: 1px solid #f1f5f9;
}

.va-experience h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.va-exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.va-exp-grid > p,
.va-exp-grid > br {
  display: none;
}

.va-exp-category {
  background: #f8fafc;
  border-radius: 6px;
  padding: 20px;
}

.va-exp-category h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

.va-exp-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.va-exp-category li {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.va-exp-category li:before {
  content: "\2022";
  position: absolute;
  left: 2px;
  color: #94a3b8;
}

/* ---- Patents ---- */
.va-patents {
  padding: 32px 0;
  border-bottom: 1px solid #f1f5f9;
}

.va-patents h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.va-patents-sub {
  font-size: 15px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.6;
}

.va-patents-sub a {
  color: #1e293b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.va-patents-sub a:hover {
  color: #0f172a;
}

.va-patents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.va-patents-grid > p,
.va-patents-grid > br {
  display: none;
}

.va-patent {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.va-patent:hover {
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.va-patent img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #f8fafc;
  display: block;
  padding: 8px;
}

.va-patent-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  padding: 12px 12px 4px;
  line-height: 1.3;
}

.va-patent-desc {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  padding: 0 12px 12px;
}

/* ---- CTA ---- */
.va-cta {
  text-align: center;
  padding: 48px 0;
}

.va-cta h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.va-cta-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ---- About Page Responsive ---- */
@media (max-width: 768px) {
  .va-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .va-hero-cta {
    justify-content: center;
  }

  .va-title {
    font-size: 28px;
  }

  .va-portfolio {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .va-portfolio img {
    height: 80px;
  }

  .va-creds-grid {
    grid-template-columns: 1fr;
  }

  .va-hq-gallery {
    grid-template-columns: 1fr;
  }

  .va-hq-photo img {
    height: 200px;
  }

  .va-projects-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .va-project img {
    height: 180px;
  }

  .va-exp-grid {
    grid-template-columns: 1fr;
  }

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

  .va-cta-links {
    flex-direction: column;
    align-items: center;
  }

  .va-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .va-patents-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .va-hero {
    padding: 32px 0 24px;
  }

  .va-photo {
    width: 120px;
    height: 120px;
  }
}

/* ============================================
   Homepage Modernization (page 1591)
   WPBakery content — CSS-only overrides
   ============================================ */

/* ---- Hero Section ---- */

/* Tighten the wall-of-text paragraph */
.page-id-1591 .wpb_text_column .price,
.page-id-1591 .wpb_text_column p.price {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Fix hero headings */
.page-id-1591 .wpb_text_column h2 {
  font-size: 28px !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

.page-id-1591 .wpb_text_column h3 {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #475569 !important;
}

/* ---- Hide empty WPBakery text column next to Explore button ---- */
.page-id-1591 .vc_row-has-fill .vc_col-sm-4 .wpb_text_column .wpb_wrapper:empty {
  display: none;
}

/* ---- Unify ALL buttons to slate-900 ---- */
.page-id-1591 .vc_btn3-color-primary,
.page-id-1591 .vc_btn3-color-danger,
.page-id-1591 .vc_btn3-color-success,
.page-id-1591 .vc_btn3 {
  background-color: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
  border-radius: 8px !important;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}

.page-id-1591 .vc_btn3:hover {
  background-color: #1e293b !important;
  border-color: #1e293b !important;
  transform: translateY(-1px);
}

/* ---- Blue banner → Slate ---- */
.page-id-1591 .vc_row-has-fill .main-pg-cta h2 span[style*="color: #000080"],
.page-id-1591 .vc_row-has-fill .main-pg-cta h2 span {
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* "We're the CAN experts" — brown → slate accent */
.page-id-1591 .vc_row-has-fill .main-pg-cta h2 span[style*="color: #993300"],
.page-id-1591 .vc_row-has-fill .main-pg-cta h2:last-child span {
  color: #334155 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}

/* Blue banner background → subtle slate */
.page-id-1591 .vc_row-has-fill[data-vc-full-width] {
  background: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}


/* ---- 3-Column Cards (Latest News / Featured Course / Tools) ---- */
.page-id-1591 .vc_row > .wpb_column .wpb_text_column h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px !important;
}

.page-id-1591 .vc_row > .wpb_column .wpb_text_column p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
}

/* ---- Clients section ---- */
.page-id-1591 .wpb_text_column h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: center;
  margin-bottom: 8px !important;
}

/* ---- Expertise Overview section ---- */
.page-id-1591 .vc_row .vc_col-sm-4 .wpb_text_column h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
}

.page-id-1591 .vc_row .vc_col-sm-4 .wpb_text_column p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
}

/* Expertise section background */
.page-id-1591 .vc_row .vc_col-sm-4 .wpb_text_column {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* ---- LinkedIn link ---- */
.page-id-1591 .wpb_text_column p[style*="text-align: center"] a {
  color: #334155 !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- General spacing cleanup ---- */
.page-id-1591 .entry-content .wpb_row {
  margin-bottom: 32px !important;
}

.page-id-1591 .entry-content {
  max-width: 1000px !important;
}

/* Remove excess bottom padding on WPBakery rows */
.page-id-1591 .vc_row[data-vc-full-width] .wpb_column {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* ---- Mobile adjustments ---- */
@media (max-width: 768px) {
  .page-id-1591 .wpb_text_column .price {
    font-size: 14px !important;
  }

  .page-id-1591 .vc_row-has-fill .main-pg-cta h2 span {
    font-size: 18px !important;
  }

  .page-id-1591 .entry-content {
    max-width: 100% !important;
  }
}
