/* ============================================================
   NELSON SECURITY ACADEMY — Design System v2.2
   Updated: 2026-09-09 — Registration page header overlap fix
   v2.1: footer bg fix, cache bust, header/footer exclusions
   v2.2: registration hero padding-top to clear sticky header
   ============================================================ */

/* ============================================================
   ELEMENTOR FULL WIDTH — Remove column/section padding
   on auth page CONTENT AREA only (exclude header & footer)
   ============================================================ */
body.page-id-4673 .elementor-4673 .elementor-section,
body.page-id-4673 .elementor-4673 .elementor-column,
body.page-id-4673 .elementor-4673 .elementor-widget-wrap,
body.page-id-4673 .elementor-4673 .elementor-container,
body.page-id-4708 .elementor-4708 .elementor-section,
body.page-id-4708 .elementor-4708 .elementor-column,
body.page-id-4708 .elementor-4708 .elementor-widget-wrap,
body.page-id-4708 .elementor-4708 .elementor-container,
body.page-id-4709 .elementor-4709 .elementor-section,
body.page-id-4709 .elementor-4709 .elementor-column,
body.page-id-4709 .elementor-4709 .elementor-widget-wrap,
body.page-id-4709 .elementor-4709 .elementor-container,
body.page-id-20 .elementor-20 .elementor-section,
body.page-id-20 .elementor-20 .elementor-column,
body.page-id-20 .elementor-20 .elementor-widget-wrap,
body.page-id-20 .elementor-20 .elementor-container,
body.page-id-4661 .elementor-4661 .elementor-section,
body.page-id-4661 .elementor-4661 .elementor-column,
body.page-id-4661 .elementor-4661 .elementor-widget-wrap,
body.page-id-4661 .elementor-4661 .elementor-container {
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Remove top/bottom margin on content sections only (not header/footer) */
body.page-id-4673 .elementor-4673 .elementor-section,
body.page-id-4708 .elementor-4708 .elementor-section,
body.page-id-4709 .elementor-4709 .elementor-section,
body.page-id-20 .elementor-20 .elementor-section,
body.page-id-4661 .elementor-4661 .elementor-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove default WP/theme content area padding on these pages */
body.page-id-4673 .entry-content,
body.page-id-4708 .entry-content,
body.page-id-4709 .entry-content,
body.page-id-20 .entry-content,
body.page-id-4661 .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove margin hacks from the new HTML wrappers */
body.page-id-4673 .nsa-login-wrap,
body.page-id-4708 .nsa-fp-wrap,
body.page-id-4709 > div,
body.page-id-20 > div,
body.page-id-4661 > div {
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* Body background — white so footer lower section shows clean */
body.page-id-4673,
body.page-id-4708,
body.page-id-4709,
body.page-id-20,
body.page-id-4661 {
  background: #ffffff !important;
}

/* Footer lower section (main links + copyright) — explicit white */
.elementor-location-footer {
  background: #ffffff;
}

/* ============================================================
   HEADER — nav hover/active: NSA navy color
   ============================================================ */
.elementor-4021 .elementor-element-424f6c2 .elementor-nav-menu--main .elementor-item:hover,
.elementor-4021 .elementor-element-424f6c2 .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-4021 .elementor-element-314a8dd .elementor-nav-menu--main .elementor-item:hover,
.elementor-4021 .elementor-element-314a8dd .elementor-nav-menu--main .elementor-item.elementor-item-active {
  color: #1B3A6B !important;
  fill: #1B3A6B !important;
}

/* ============================================================
   TUTOR LMS — brand color overrides for course pages
   ============================================================ */
:root {
  --tutor-color-primary:       #1B3A6B;
  --tutor-color-primary-rgb:   27, 58, 107;
  --tutor-color-primary-hover: #254E8F;
}
.tutor-btn-primary,
.tutor-course-enroll-btn,
.tutor-btn.tutor-btn-primary {
  background-color: #1B3A6B !important;
  border-color: #1B3A6B !important;
}
.tutor-rating-stars .tutor-icon-star-full {
  color: #ED273E !important;
}

/* ============================================================
   CLASS SCHEDULE — [nsa_schedule] shortcode
   ============================================================ */
.nsa-sched-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: 'Poppins', sans-serif;
}
.nsa-sched-hero {
  text-align: center;
  padding: 48px 20px 36px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 36px;
}
.nsa-sched-hero h1 {
  font-size: 34px;
  font-weight: 700;
  color: #1B3A6B;
  margin: 0 0 12px;
}
.nsa-sched-hero p {
  font-size: 16px;
  color: #64748B;
  line-height: 1.7;
  margin: 0 0 28px;
}
.nsa-sched-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nsa-sf-btn {
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #CBD5E1;
  color: #475569;
  background: #fff;
  transition: all .18s;
}
.nsa-sf-btn:hover, .nsa-sf-btn.active { border-color: #1B3A6B; background: #1B3A6B; color: #fff; }
.nsa-sf-btn.nsa-sf-d:hover, .nsa-sf-btn.nsa-sf-d.active { border-color: #1B3A6B; background: #1B3A6B; }
.nsa-sf-btn.nsa-sf-g:hover, .nsa-sf-btn.nsa-sf-g.active { border-color: #ED273E; background: #ED273E; }
.nsa-sched-month {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94A3B8;
  padding: 24px 0 10px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 12px;
}
.nsa-sched-grid { display: flex; flex-direction: column; gap: 0; }
.nsa-sched-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #1B3A6B;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: box-shadow .18s;
}
.nsa-sched-card:hover { box-shadow: 0 4px 16px rgba(27,58,107,.10); }
.nsa-sched-card.nsa-card-online { border-left-color: #0F766E; }
.nsa-card-date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 4px;
}
.nsa-card-day { display: block; font-size: 26px; font-weight: 700; color: #1B3A6B; line-height: 1; }
.nsa-card-mon { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #94A3B8; letter-spacing: .06em; margin-top: 2px; }
.nsa-card-body { flex: 1; min-width: 0; }
.nsa-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.nsa-tag { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.nsa-tag-d      { background: #EFF3FB; color: #1B3A6B; }
.nsa-tag-g      { background: #FEF1F2; color: #ED273E; }
.nsa-tag-online { background: #F0FDFA; color: #0F766E; }
.nsa-tag-person { background: #F5F3FF; color: #5B21B6; }
.nsa-card-title { font-size: 16px; font-weight: 600; color: #1B3A6B; margin: 0 0 6px; line-height: 1.4; }
.nsa-card-meta { font-size: 13px; color: #64748B; margin-bottom: 3px; line-height: 1.5; }
.nsa-meta-icon { margin-right: 4px; }
.nsa-card-action { flex-shrink: 0; }
.nsa-enroll-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ED273E;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .18s;
}
.nsa-enroll-btn:hover { background: #c71f32; }
.nsa-sched-empty { text-align: center; padding: 48px 20px; color: #64748B; font-size: 15px; }
.nsa-sched-cta {
  text-align: center;
  background: linear-gradient(135deg, #1B3A6B, #0F1F3D);
  color: #fff;
  padding: 44px 24px;
  border-radius: 10px;
  margin-top: 40px;
}
.nsa-sched-cta h3 { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: #fff; }
.nsa-sched-cta p { font-size: 15px; opacity: .85; margin: 0 0 22px; }
.nsa-cta-btn {
  display: inline-block;
  padding: 13px 32px;
  background: #ED273E;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background .18s;
}
.nsa-cta-btn:hover { background: #c71f32; }
@media (max-width: 640px) {
  .nsa-sched-hero h1 { font-size: 24px; }
  .nsa-sched-card { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .nsa-card-action { width: 100%; }
  .nsa-enroll-btn { display: block; text-align: center; }
  .nsa-card-date { width: 48px; }
  .nsa-card-day { font-size: 22px; }
}

/* Hide footer newsletter CTA on login, registration, and contact pages */
body.page-id-4673 .elementor-element-3df5096,
body.page-id-20 .elementor-element-3df5096,
body.page-id-4282 .elementor-element-3df5096 {
  display: none !important;
}
