/* =====================================================
   LearnPulse — custom.css
   LAST stylesheet — all brand overrides
   DO NOT use !important except where noted
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
  --lp-navy:       #1A2B4A;
  --lp-navy-mid:   #243660;
  --lp-amber:      #F59E0B;
  --lp-amber-dark: #D97706;
  --lp-amber-pale: #FDE68A;
  --lp-bg:         #FFFBF5;
  --lp-surface:    #FFF7ED;
  --lp-text:       #1C1917;
  --lp-muted:      #78716C;
  --lp-border:     #FDE68A;
  --lp-section-alt:#FFFBEB;
  --lp-white:      #FFFFFF;
  --lp-slate:      #CBD5E1;
}

/* ---- Base Overrides ---- */
body {
  background-color: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ---- Template Color Class Overrides ---- */
.tm-bg-dark-blue { background-color: var(--lp-navy); }
.tm-bg-brown     { background-color: var(--lp-amber); }
.tm-bg-dark-brown{ background-color: var(--lp-navy-mid); }
.tm-bg-white     { background-color: var(--lp-white); }
.tm-text         { color: var(--lp-text); }
.tm-white        { color: var(--lp-white); }

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  background: var(--lp-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 9999;
  display: flex;
  align-items: center;
}

.site-nav .site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-nav .site-nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--lp-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav .site-nav-logo span {
  color: var(--lp-amber);
}

.site-nav .site-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.site-nav .site-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav .site-nav-links a:hover,
.site-nav .site-nav-links a.active {
  color: var(--lp-amber);
  border-bottom-color: var(--lp-amber);
}

.site-nav .site-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--lp-navy);
  cursor: pointer;
}

/* Nav solid variant (sub-pages) */
.site-nav.nav-solid {
  background: var(--lp-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

/* Mobile nav */
@media (max-width: 991px) {
  .site-nav .site-nav-toggle { display: block; }
  .site-nav .site-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--lp-white);
    flex-direction: column;
    padding: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    gap: 0;
  }
  .site-nav .site-nav-links.open { display: flex; }
  .site-nav .site-nav-links a { padding: 10px 24px; border-bottom: none; }
}

/* ---- Hero Section ---- */
.site-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #1A2B4A 0%, #243660 50%, rgba(245,158,11,0.13) 100%);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.site-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,43,74,0.88) 0%, rgba(36,54,96,0.75) 60%, rgba(245,158,11,0.15) 100%);
  z-index: 1;
}

.site-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.site-hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--lp-white);
  line-height: 1.15;
  margin-bottom: 20px;
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.site-hero .hero-sub {
  font-size: 20px;
  color: var(--lp-amber-pale);
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.5;
}

.site-hero .hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mini hero for sub-pages */
.site-hero.mini-hero {
  min-height: 50vh;
}

.site-hero.mini-hero-40 {
  min-height: 40vh;
}

/* ---- Buttons ---- */
.btn-lp-primary {
  display: inline-block;
  background: var(--lp-amber);
  color: var(--lp-navy);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid var(--lp-amber);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-lp-primary:hover {
  background: var(--lp-amber-dark);
  border-color: var(--lp-amber-dark);
  color: var(--lp-navy);
  text-decoration: none;
}

.btn-lp-secondary {
  display: inline-block;
  background: transparent;
  color: var(--lp-amber-pale);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid var(--lp-amber);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-lp-secondary:hover {
  background: var(--lp-amber);
  color: var(--lp-navy);
  text-decoration: none;
}

.btn-lp-submit {
  display: block;
  width: 100%;
  background: var(--lp-navy);
  color: var(--lp-white);
  font-weight: 600;
  font-size: 16px;
  padding: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-lp-submit:hover {
  background: var(--lp-amber);
  color: var(--lp-navy);
}

/* ---- Section Shared ---- */
.lp-section {
  padding: 80px 0;
}

.lp-section-alt {
  background-color: var(--lp-section-alt);
}

.lp-section-dark {
  background-color: var(--lp-navy);
}

.lp-section-surface {
  background-color: var(--lp-surface);
}

.lp-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--lp-text);
  line-height: 1.25;
  margin-bottom: 16px;
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.lp-section-title.light {
  color: var(--lp-white);
}

.lp-section-subtitle {
  font-size: 17px;
  color: var(--lp-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.lp-section-subtitle.light {
  color: var(--lp-slate);
}

/* ---- Feature Cards ---- */
.lp-feature-card {
  background: var(--lp-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(26,43,74,0.08);
  border-top: 3px solid var(--lp-amber);
  padding: 28px 24px;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.lp-feature-card:hover {
  box-shadow: 0 8px 24px rgba(245,158,11,0.15);
  transform: translateY(-4px);
}

.lp-feature-card .lp-feature-icon {
  font-size: 32px;
  color: var(--lp-amber);
  margin-bottom: 16px;
}

.lp-feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.lp-feature-card p {
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- How It Works ---- */
.lp-hiw-step {
  text-align: center;
  padding: 24px 16px;
}

.lp-hiw-number {
  width: 48px;
  height: 48px;
  background: var(--lp-amber);
  color: var(--lp-navy);
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lp-hiw-step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-white);
  margin-bottom: 10px;
}

.lp-hiw-step p {
  font-size: 15px;
  color: var(--lp-slate);
  line-height: 1.6;
}

.lp-hiw-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}

.lp-hiw-connector::before {
  content: '';
  display: block;
  width: 80%;
  height: 2px;
  border-top: 2px dashed var(--lp-amber);
  opacity: 0.4;
}

/* ---- Platform Preview ---- */
.lp-preview-row {
  padding: 60px 0;
}

.lp-preview-row img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26,43,74,0.12);
  width: 100%;
  height: auto;
}

.lp-preview-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.lp-preview-row h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 16px;
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.lp-preview-row p {
  font-size: 16px;
  color: var(--lp-muted);
  margin-bottom: 20px;
}

.lp-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--lp-text);
  margin-bottom: 10px;
}

.lp-check-list li i {
  color: var(--lp-amber);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---- Testimonials ---- */
.lp-testimonial-card {
  background: var(--lp-white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(26,43,74,0.07);
  height: 100%;
}

.lp-testimonial-card .lp-quote-icon {
  font-size: 40px;
  color: rgba(245,158,11,0.13);
  margin-bottom: 12px;
}

.lp-testimonial-card blockquote {
  font-size: 15px;
  color: var(--lp-text);
  font-style: italic;
  line-height: 1.8;
  margin: 0 0 20px;
  border: none;
  padding: 0;
}

.lp-testimonial-attr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-initial-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lp-amber);
  color: var(--lp-navy);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-testimonial-attr .lp-attr-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-text);
  margin: 0;
}

.lp-testimonial-attr .lp-attr-role {
  font-size: 13px;
  color: var(--lp-muted);
  margin: 0;
}

/* ---- Pricing Cards ---- */
.lp-pricing-card {
  background: var(--lp-white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: 0 4px 16px rgba(26,43,74,0.08);
  border: 2px solid transparent;
  height: 100%;
  transition: box-shadow 0.2s;
}

.lp-pricing-card.featured {
  border-color: var(--lp-amber);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(245,158,11,0.15);
}

.lp-pricing-badge {
  display: inline-block;
  background: var(--lp-amber);
  color: var(--lp-navy);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 8px;
}

.lp-pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--lp-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.lp-pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--lp-muted);
}

.lp-pricing-desc {
  font-size: 15px;
  color: var(--lp-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.lp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.lp-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--lp-text);
  padding: 6px 0;
  border-bottom: 1px solid #f0ede8;
}

.lp-pricing-features li:last-child { border-bottom: none; }

.lp-pricing-features li i.fa-check { color: var(--lp-amber); }
.lp-pricing-features li i.fa-times { color: #D1D5DB; }

/* ---- CTA Banner ---- */
.lp-cta-banner {
  background: var(--lp-amber);
  padding: 80px 0;
  text-align: center;
}

.lp-cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--lp-navy);
  margin-bottom: 12px;
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.lp-cta-banner p {
  font-size: 18px;
  color: var(--lp-navy);
  opacity: 0.8;
  margin-bottom: 28px;
}

.lp-cta-banner .btn-cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-navy);
  color: var(--lp-white);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.lp-cta-banner .btn-cta-dark:hover {
  background: var(--lp-navy-mid);
  color: var(--lp-white);
  text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--lp-navy);
  color: var(--lp-slate);
  padding: 64px 0 0;
}

.site-footer .footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--lp-white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.site-footer .footer-logo span {
  color: var(--lp-amber);
}

.site-footer .footer-tagline {
  font-size: 14px;
  color: var(--lp-slate);
  margin-bottom: 20px;
  line-height: 1.6;
}

.site-footer .footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  list-style: none;
  padding: 0;
}

.site-footer .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--lp-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.site-footer .footer-social a:hover {
  background: var(--lp-amber);
  color: var(--lp-navy);
}

.site-footer h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul a {
  font-size: 14px;
  color: var(--lp-slate);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer ul a:hover {
  color: var(--lp-amber);
}

.site-footer address {
  font-style: normal;
  font-size: 14px;
  color: var(--lp-slate);
  line-height: 1.8;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .footer-bottom p {
  font-size: 13px;
  color: var(--lp-muted);
  margin: 0;
}

.site-footer .footer-bottom a {
  font-size: 13px;
  color: var(--lp-muted);
  text-decoration: none;
}

.site-footer .footer-bottom a:hover {
  color: var(--lp-amber);
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--lp-navy);
  color: var(--lp-slate);
  padding: 16px 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.20);
}

.cookie-banner p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--lp-amber);
  text-decoration: underline;
}

.cookie-banner .cookie-btn {
  background: var(--lp-amber);
  color: var(--lp-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.cookie-banner .cookie-btn:hover {
  background: var(--lp-amber-dark);
}

/* ---- Stats Bar ---- */
.lp-stats-bar {
  background: var(--lp-navy);
  padding: 48px 0;
  text-align: center;
}

.lp-stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--lp-amber);
  line-height: 1;
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.lp-stat-label {
  font-size: 15px;
  color: var(--lp-slate);
  margin-top: 6px;
}

/* ---- Blog Cards ---- */
.lp-blog-card {
  background: var(--lp-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26,43,74,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lp-blog-card:hover {
  box-shadow: 0 8px 24px rgba(26,43,74,0.12);
  transform: translateY(-3px);
}

.lp-blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.lp-blog-card .lp-blog-body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lp-blog-card .lp-blog-meta {
  font-size: 12px;
  color: var(--lp-muted);
  margin-bottom: 8px;
}

.lp-blog-card .lp-blog-meta i {
  color: var(--lp-amber);
  margin-right: 4px;
}

.lp-blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.lp-blog-card p {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.lp-blog-card .lp-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-amber);
  text-decoration: none;
}

.lp-blog-card .lp-read-more:hover {
  color: var(--lp-amber-dark);
  text-decoration: underline;
}

/* ---- Team Cards ---- */
.lp-team-featured {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 48px;
  padding: 40px 36px;
  background: var(--lp-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26,43,74,0.10);
}

.lp-team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--lp-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(26,43,74,0.07);
  height: 100%;
}

.lp-initial-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--lp-amber);
  color: var(--lp-navy);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lp-initial-medium {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.lp-team-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 4px;
}

.lp-team-card .lp-team-name {
  font-size: 18px;
}

.lp-team-title {
  font-size: 15px;
  color: var(--lp-amber);
  font-weight: 600;
  margin-bottom: 12px;
}

.lp-team-card .lp-team-title {
  font-size: 14px;
}

.lp-team-bio {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.6;
}

/* ---- Contact Form ---- */
.lp-contact-form .form-group {
  margin-bottom: 20px;
}

.lp-contact-form .form-control {
  background: var(--lp-white);
  border: 1px solid #E5E0D9;
  border-radius: 6px;
  color: var(--lp-text);
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
}

.lp-contact-form .form-control:focus {
  border-color: var(--lp-amber);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

/* ---- Contact Info ---- */
.lp-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.lp-contact-info-item .lp-ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lp-amber);
  color: var(--lp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.lp-contact-info-item .lp-ci-text {
  font-size: 15px;
  color: var(--lp-text);
  line-height: 1.6;
}

/* ---- Value Pillars (About) ---- */
.lp-value-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.lp-value-icon {
  font-size: 28px;
  color: var(--lp-amber);
  flex-shrink: 0;
  margin-top: 4px;
}

.lp-value-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 6px;
}

.lp-value-item p {
  font-size: 15px;
  color: var(--lp-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- Legal Pages ---- */
.lp-legal {
  padding: 80px 0;
}

.lp-legal h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--lp-navy);
  margin-top: 40px;
  margin-bottom: 16px;
  font-family: 'Inter', 'Open Sans', sans-serif;
}

.lp-legal h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-text);
  margin-top: 28px;
  margin-bottom: 12px;
}

.lp-legal p, .lp-legal li {
  font-size: 15px;
  color: var(--lp-text);
  line-height: 1.8;
}

.lp-legal ul, .lp-legal ol {
  padding-left: 24px;
}

.lp-legal a { color: var(--lp-amber); }
.lp-legal a:hover { color: var(--lp-amber-dark); }

/* ---- Annual Toggle (Pricing) ---- */
.lp-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.lp-toggle-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
}

.lp-toggle {
  position: relative;
  width: 52px;
  height: 28px;
}

.lp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lp-toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.lp-toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: var(--lp-white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.lp-toggle input:checked + .lp-toggle-slider {
  background: var(--lp-amber);
}

.lp-toggle input:checked + .lp-toggle-slider::before {
  transform: translateX(24px);
}

.lp-badge-save {
  display: inline-block;
  background: var(--lp-amber);
  color: var(--lp-navy);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

/* ---- Utility ---- */
.lp-divider {
  border: none;
  border-top: 1px solid var(--lp-border);
  margin: 40px 0;
}

.lp-text-amber { color: var(--lp-amber); }
.lp-text-navy  { color: var(--lp-navy); }
.lp-text-muted { color: var(--lp-muted); }
.lp-text-white { color: var(--lp-white); }
.lp-bg-amber   { background-color: var(--lp-amber); }
.lp-bg-navy    { background-color: var(--lp-navy); }

/* ---- Sub-page body padding ---- */
.subpage-body {
  padding-top: 64px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .site-hero h1 { font-size: 36px; }
  .site-hero .hero-sub { font-size: 17px; }
  .lp-section-title { font-size: 28px; }
  .lp-pricing-card.featured { transform: none; }
  .lp-stats-bar .col-xs-12 { margin-bottom: 24px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === Related Articles (3-col, square images) === */
.related-articles { padding: 60px 0 80px; margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.08); }
.related-articles h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); text-decoration: none; }
.related-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.related-card-body { padding: 12px 16px 16px; }
.related-card-body h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.related-card-body .related-date { font-size: 12px; color: #94A3B8; }

/* === Prev/Next Nav (2-col) === */
.article-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.08); }
.article-nav a { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.article-nav a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; }
.article-nav .article-nav-next { text-align: right; justify-content: flex-end; }
.article-nav img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.article-nav h4 { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 4px 0 0; }
.article-nav span { font-size: 12px; color: #94A3B8; }

/* === Related Articles Fix === */
.related-card img { width: 100%; height: 180px; object-fit: cover; display: block; aspect-ratio: auto; }
.related-card-body h3 { color: #E2E8F0; }
.related-card-body .related-date { color: #94A3B8; }
.related-card { background: #1E293B; border-color: rgba(255,255,255,0.1); }

/* === Logo size control in nav === */
.site-header .nav-logo img,
.site-nav .nav-logo img,
.site-nav__logo img {
  height: 28px;
  width: auto;
  max-height: 28px;
  vertical-align: middle;
  margin-right: 8px;
}
.site-header .nav-logo,
.site-nav .nav-logo,
.site-nav__logo {
  display: flex;
  align-items: center;
  height: 64px;
  white-space: nowrap;
}

/* === Universal Blog Grid (auto-adaptive) === */
/* Works with Bootstrap row+col OR custom blog-grid class */
.blog-grid,
#blog .row,
.blog-section .row,
section[id*="blog"] .row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  float: none !important;
}
.blog-grid > *,
#blog .row > *,
.blog-section .row > *,
section[id*="blog"] .row > * {
  max-width: 100% !important;
  width: auto !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}
.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.blog-card-body,
.blog-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card p,
.blog-card .card-text {
  flex: 1;
}
.blog-card .read-more,
.blog-card a:last-child {
  margin-top: auto;
}
@media(max-width:992px) {
  .blog-grid,
  #blog .row,
  .blog-section .row,
  section[id*="blog"] .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media(max-width:576px) {
  .blog-grid,
  #blog .row,
  .blog-section .row,
  section[id*="blog"] .row {
    grid-template-columns: 1fr !important;
  }
}

/* === Blog Article Full-Width Images === */
.blog-img-full {
  text-align: center;
  margin: 32px auto;
  max-width: 100%;
}
.blog-img-full img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Pricing feature check/cross contrast */
.lp-pricing-features .fa-check { color: #22C55E; }
.lp-pricing-features .fa-times { color: #64748B; opacity: 0.35; }

/* LearnPulse blog grid fix */
.lp-section .row:has(.lp-blog-card),
.lp-section .row:has([class*="col-lg-4"] .lp-blog-card) {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}
.lp-section .row > div[class*="col-"]:has(.lp-blog-card) {
  max-width: 100% !important;
  width: auto !important;
  flex: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}
.lp-blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.lp-blog-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.lp-blog-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lp-blog-body p {
  flex: 1;
}
.lp-blog-body .lp-read-more {
  margin-top: auto;
}
@media(max-width:992px) {
  .lp-section .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media(max-width:576px) {
  .lp-section .row {
    grid-template-columns: 1fr !important;
  }
}
