/* Grundlayout */
:root {
  --jm-primary: #ff7a3c;
  --jm-primary-dark: #e2632b;
  --jm-secondary: #42526b;
  --jm-bg-light: #fff8f3;
  --jm-bg-soft: #f3f5fb;
  --jm-text-main: #1f2933;
  --jm-muted: #6b7280;
  --jm-success-soft: #e6f4ea;
  --jm-warning-soft: #fff3d6;
}

html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  color: var(--jm-text-main);
  background-color: #ffffff;
}

/* Links */
a {
  color: var(--jm-primary);
  text-decoration: none;
}

a:hover {
  color: var(--jm-primary-dark);
  text-decoration: none;
}

/* Topbar */
.jm-topbar {
  background: #f9fafb;
  font-size: 0.9rem;
  color: var(--jm-muted);
}

.jm-topbar a {
  color: var(--jm-text-main);
}

.jm-topbar i {
  color: var(--jm-primary);
}

/* Header / Logo */
.jm-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #ffffff;
}

.jm-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jm-bg-light);
  color: var(--jm-primary);
  font-size: 1.2rem;
}

.jm-logo-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.jm-logo-subtitle {
  font-size: 0.8rem;
  color: var(--jm-muted);
}

/* Navbar */
.navbar-nav .nav-link {
  font-weight: 500;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.navbar-nav .nav-link.active {
  color: var(--jm-primary);
}

.jm-main-cta {
  border-radius: 999px;
  padding-inline: 1.5rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--jm-primary);
  border-color: var(--jm-primary);
}

.btn-primary:hover {
  background-color: var(--jm-primary-dark);
  border-color: var(--jm-primary-dark);
}

/* Hero */
.jm-hero {
  background: linear-gradient(135deg, #fffdf9 0%, #fff3e6 60%, #ffffff 100%);
}

.jm-hero h1 {
  font-size: 2.3rem;
}

.jm-hero-stats .jm-stat-number {
  font-weight: 700;
  font-size: 1.4rem;
}

.jm-hero-stats .jm-stat-label {
  font-size: 0.85rem;
  color: var(--jm-muted);
}

.jm-hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
}

.jm-hero-badge {
  background: #fff7e8;
  color: #b86a1b;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.badge.bg-soft-primary {
  background: #eaf4ff;
  color: #174ea6;
}

.badge.bg-soft-success {
  background: var(--jm-success-soft);
  color: #146c43;
}

.badge.bg-soft-warning {
  background: var(--jm-warning-soft);
  color: #b26a00;
}

/* Section backgrounds */
.jm-section-light {
  background-color: var(--jm-bg-soft);
}

/* Checklists */
.jm-checklist {
  list-style: none;
  padding-left: 0;
}

.jm-checklist li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  color: var(--jm-text-main);
}

.jm-checklist i {
  color: var(--jm-primary);
  margin-top: 0.15rem;
}

/* Video placeholder */
.jm-video-placeholder {
  position: relative;
  overflow: hidden;
}

.jm-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
  color: #ffffff;
  text-align: center;
}

.jm-video-play-icon {
  font-size: 2.2rem;
}

/* Programme cards */
.jm-program-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.jm-program-card-featured {
  border-color: rgba(255, 122, 60, 0.5);
  box-shadow: 0 16px 40px rgba(255, 122, 60, 0.2);
  position: relative;
}

.jm-program-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  background: var(--jm-primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.jm-program-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--jm-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jm-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.jm-program-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: var(--jm-muted);
}

.jm-program-list li {
  margin-bottom: 0.35rem;
}

/* Features */
.jm-feature-mini {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}

.jm-feature-mini i {
  font-size: 1.3rem;
  color: var(--jm-primary);
}

.jm-feature-mini h6 {
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

/* Benefits */
.jm-benefit-card {
  border-radius: 16px;
  background: #ffffff;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.jm-benefit-card i {
  font-size: 1.4rem;
  color: var(--jm-primary);
}

/* Testimonials */
.jm-rating-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.4rem;
  border: 1px solid #e5e7eb;
}

.jm-rating-number {
  font-size: 1.8rem;
  font-weight: 700;
}

.jm-testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

/* Articles */
.jm-article-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}

.jm-article-card img {
  max-height: 180px;
  object-fit: cover;
}

/* Contact */
.jm-contact-list {
  list-style: none;
  padding-left: 0;
}

.jm-contact-list li {
  margin-bottom: 0.4rem;
}

/* Form */
.jm-form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.jm-form-success {
  font-size: 0.9rem;
}

/* Footer */
.jm-footer {
  background: #111827;
  color: #e5e7eb;
}

.jm-footer-links li {
  margin-bottom: 0.25rem;
}

.jm-footer-links a {
  color: #e5e7eb;
  font-size: 0.92rem;
}

.jm-footer-links a:hover {
  color: var(--jm-primary);
}

.jm-footer i.fa-brands {
  font-size: 1.2rem;
  color: #e5e7eb;
}

.jm-footer i.fa-brands:hover {
  color: var(--jm-primary);
}

/* Cookie banner */
.jm-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 1050;
  display: none;
}

.jm-cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #111827;
  color: #f9fafb;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jm-cookie-inner a {
  color: #facc6b;
}

.jm-cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .jm-cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .jm-cookie-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Generic link arrow */
.jm-link-arrow {
  font-weight: 500;
}

.jm-link-arrow i {
  transition: transform 0.15s ease;
}

.jm-link-arrow:hover i {
  transform: translateX(3px);
}

/* Spacing helper for bigger screens */
@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  .jm-hero h1 {
    font-size: 2.7rem;
  }
}
