/* =====================================================================
   Nofal Academy — Main Stylesheet
   Medical / educational theme: deep blue + white + soft accents
   ===================================================================== */

:root {
  --primary: #0b5ed7;        /* main blue */
  --primary-dark: #07408f;   /* deep navy blue */
  --accent: #14b8a6;         /* teal accent */
  --bg-light: #f4f8fc;       /* very light blue-white */
  --text-dark: #1b2330;
  --text-muted: #5b6b7c;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.65;
}

a { text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--primary-dark);
}

/* ---------- Navbar ---------- */
.navbar-academy {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(11, 94, 215, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar-academy .navbar-brand {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-academy .navbar-brand img {
  height: var(--logo-height, 78px);
  width: auto;
  max-width: 380px;
  object-fit: contain;
}
.navbar-academy .nav-link {
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 4px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  white-space: nowrap;
}
@media (min-width: 1200px) and (max-width: 1600px) {
  .navbar-academy .nav-link {
    margin: 0 2px;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 0.9rem;
  }
  .navbar-academy .navbar-brand img {
    height: calc(var(--logo-height, 78px) * 0.74);
  }
  .navbar-academy .btn-academy,
  .navbar-academy .btn-outline-academy {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
.navbar-academy .nav-link.active,
.navbar-academy .nav-link:hover {
  color: var(--primary);
}
.navbar-academy .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 94, 215, 0.12);
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.navbar-academy .dropdown-item {
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}
.navbar-academy .dropdown-item:hover,
.navbar-academy .dropdown-item:focus {
  background: var(--bg-light);
  color: var(--primary);
}
.navbar-academy .dropdown-toggle::after {
  vertical-align: 0.15em;
}
.btn-academy {
  background: var(--primary);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-academy:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline-academy {
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  background: transparent;
}
.btn-outline-academy:hover {
  background: var(--primary);
  color: #fff !important;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 130%);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero p.lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  max-width: 640px;
}
.hero .btn-light-academy {
  background: #fff;
  color: var(--primary-dark) !important;
  border-radius: 50px;
  font-weight: 700;
  padding: 0.6rem 1.6rem;
}
.hero .btn-ghost {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
}

/* Hero with a custom background photo (set via Admin > Page Content) */
.hero.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
}
.hero.has-bg-image > .container {
  position: relative;
  z-index: 1;
}
.hero.has-bg-image h1,
.hero.has-bg-image p.lead,
.hero.has-bg-image .hero-eyebrow {
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-light { background: var(--bg-light); }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { font-size: 2.1rem; }
.section-title p { color: var(--text-muted); max-width: 640px; margin: 0.5rem auto 0; }
.eyebrow-label {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ---------- Home Hero ---------- */
.hero-home { padding: 80px 0 90px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ---------- Hero stat cards ---------- */
.hero-stats .stat-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(7, 64, 143, 0.18);
  height: 100%;
}
.stat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.stat-icon-blue   { background: #2563eb; }
.stat-icon-teal   { background: #14b8a6; }
.stat-icon-purple { background: #7c3aed; }
.stat-icon-cyan   { background: #0ea5e9; }
.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Price badge on course image ---------- */
.price-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(11,94,215,0.3);
}

/* ---------- Audience cards (Built for Healthcare Learners) ---------- */
.audience-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 16px rgba(11,94,215,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 94, 215, 0.12);
}
.audience-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 1rem;
}
.audience-icon-blue   { background: #2563eb; }
.audience-icon-green  { background: #16a34a; }
.audience-icon-purple { background: #7c3aed; }
.audience-icon-orange { background: #ea580c; }
.audience-icon-red    { background: #e11d48; }

/* ---------- Testimonial cards ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid #eaf0f7;
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
}
.testimonial-card .quote-icon {
  color: #cdd9ec;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.testimonial-card .stars {
  color: #f5a623;
  margin-top: 1rem;
}

/* ---------- Final CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
}
.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.cta-section .lead {
  color: rgba(255,255,255,0.9);
  max-width: 680px;
}
.cta-sparkle {
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

/* ---------- Cards ---------- */
.card-academy {
  border: 1px solid #eaf0f7;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card-academy:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 94, 215, 0.12);
}
.card-academy .card-img-top {
  height: 170px;
  object-fit: cover;
  background: var(--bg-light);
}
.card-academy .card-body { padding: 1.25rem; }
.badge-category {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.price-tag {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

/* ---------- Pillars / icons ---------- */
.pillar-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 16px;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 20px;
}
footer.site-footer h5 { color: #fff; }
footer.site-footer a { color: rgba(255,255,255,0.75); }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 0.9rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(11,94,215,0.08);
  padding: 2rem;
}

/* ---------- Misc ---------- */
.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.rounded-academy { border-radius: var(--radius); }

.dashboard-sidebar a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.dashboard-sidebar a.active,
.dashboard-sidebar a:hover {
  background: var(--bg-light);
  color: var(--primary);
}
