/**
 * EBM Educational Platform Master Stylesheet
 * Domain: https://ejazbukharimethod.com
 * Externalized CSS rules eliminating inline styles across all pages.
 */

:root {
  color-scheme: light;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= NOSCRIPT STYLES ================= */
.ebm-noscript-wrap {
  padding: 24px;
  font-family: system-ui, sans-serif;
  background: #ffffff;
  color: #1e293b;
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.6;
}

.ebm-noscript-title {
  color: #006699;
  font-size: 24px;
  font-weight: 800;
}

/* ================= HEADER & NAV ================= */
.ebm-ssr-header {
  background: #006699;
  color: #ffffff;
  padding: 16px 24px;
  border-bottom: 3px solid #33c3f0;
}

.ebm-ssr-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ebm-ssr-logo {
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-family: serif;
}

.ebm-ssr-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.ebm-ssr-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ebm-ssr-nav a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ================= MAIN LAYOUT CONTAINERS ================= */
.ebm-ssr-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1e293b;
  line-height: 1.75;
}

.ebm-ssr-main-narrow {
  max-width: 960px;
  margin: 36px auto;
  padding: 0 24px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1e293b;
  line-height: 1.75;
}

.ebm-ssr-main-article {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 20px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1e293b;
  line-height: 1.75;
}

/* ================= HERO SECTION ================= */
.ebm-hero-sec {
  padding: 48px 0 36px;
  text-align: center;
}

.ebm-hero-h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  color: #006699;
  margin-bottom: 16px;
  font-family: serif;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ebm-page-h1 {
  font-size: 36px;
  font-weight: 800;
  color: #006699;
  margin-bottom: 16px;
  font-family: serif;
}

.ebm-hero-p {
  font-size: 19px;
  color: #334155;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 28px;
  font-weight: 500;
}

.ebm-page-lead {
  font-size: 18px;
  color: #334155;
  line-height: 1.6;
  font-weight: 500;
}

.ebm-lead-sub {
  font-size: 18px;
  color: #475569;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================= METRICS GRID ================= */
.ebm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
  text-align: center;
}

.ebm-metric-card {
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.ebm-metric-val {
  font-size: 28px;
  font-weight: 900;
  color: #00a3e0;
  margin: 0 0 4px;
  font-family: serif;
}

.ebm-metric-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin: 0;
}

/* ================= BUTTONS & CTAS ================= */
.ebm-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ebm-btn-primary {
  background: #006699;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  border: none;
  transition: background-color 0.2s ease;
}

.ebm-btn-primary:hover {
  background: #00507a;
}

.ebm-btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.ebm-btn-secondary:hover {
  background: #e2e8f0;
}

/* ================= CURRICULA & PROGRAMS ================= */
.ebm-curricula-sec {
  padding: 36px 0;
  border-top: 1px solid #e2e8f0;
}

.ebm-section-h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 28px;
  font-family: serif;
}

.ebm-curricula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.ebm-curriculum-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 24px;
  border-radius: 12px;
}

.ebm-curriculum-title {
  color: #006699;
  font-size: 19px;
  margin: 0 0 8px;
  font-family: serif;
}

.ebm-curriculum-desc {
  font-size: 14px;
  color: #334155;
  margin: 0 0 12px;
  line-height: 1.6;
}

.ebm-curriculum-tag {
  font-size: 12px;
  font-weight: 700;
  color: #00a3e0;
}

/* ================= METHODOLOGY PILLARS ================= */
.ebm-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ebm-pillar-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 22px;
  border-radius: 12px;
}

.ebm-pillar-title {
  color: #006699;
  font-size: 18px;
  margin-top: 0;
}

.ebm-pillar-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

/* ================= TESTIMONIALS ================= */
.ebm-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ebm-testimonial-quote {
  background: #f8fafc;
  border-left: 4px solid #00a3e0;
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin: 0;
}

.ebm-testimonial-text {
  font-size: 14px;
  color: #334155;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 10px;
}

.ebm-testimonial-cite {
  font-size: 13px;
  font-weight: 700;
  color: #006699;
  font-style: normal;
}

/* ================= FAQS ================= */
.ebm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ebm-faq-item {
  background: #f8fafc;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.ebm-faq-dt {
  font-weight: 700;
  color: #006699;
  font-size: 16px;
  margin-bottom: 6px;
}

.ebm-faq-dd {
  margin: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

/* ================= ARTICLES & BLOG ================= */
.ebm-article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
}

.ebm-article-category {
  text-transform: uppercase;
  color: #00a3e0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 8px;
}

.ebm-article-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  font-family: serif;
}

.ebm-article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
}

.ebm-article-excerpt {
  font-size: 18px;
  color: #334155;
  font-style: italic;
  margin-bottom: 28px;
  line-height: 1.6;
  border-left: 4px solid #00a3e0;
  padding-left: 16px;
}

.ebm-article-body {
  font-size: 16px;
  color: #1e293b;
  line-height: 1.8;
}

.ebm-article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.ebm-author-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.ebm-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #006699;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  flex-shrink: 0;
}

.ebm-author-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.ebm-author-bio {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.ebm-article-back-link {
  margin-top: 24px;
  text-align: center;
}

.ebm-article-back-link a {
  color: #006699;
  text-decoration: underline;
  font-weight: 700;
}

/* ================= CARDS & BOXES ================= */
.ebm-card-callout {
  background: #e0f2fe;
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid #00a3e0;
  margin-bottom: 40px;
}

.ebm-card-callout-title {
  margin: 0 0 8px;
  color: #0369a1;
  font-size: 18px;
  font-weight: 700;
}

.ebm-card-callout-desc {
  margin: 0;
  color: #0c4a6e;
  font-size: 15px;
}

.ebm-card-feature {
  margin-bottom: 40px;
  background: #f8fafc;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.ebm-card-feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  font-family: serif;
}

.ebm-case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.ebm-case-study-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 24px;
  border-radius: 16px;
}

.ebm-case-study-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #00a3e0;
  letter-spacing: 1px;
}

.ebm-case-study-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 8px 0 12px;
  font-family: serif;
}

.ebm-case-study-p {
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.ebm-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.ebm-info-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  font-family: serif;
}

.ebm-info-row {
  margin: 0 0 12px;
  font-size: 15px;
  color: #334155;
}

.ebm-info-row a {
  color: #006699;
}

/* ================= FOOTER ================= */
.ebm-ssr-footer {
  background: #04081c;
  color: #cbd5e1;
  padding: 48px 24px 28px;
  margin-top: 60px;
  border-top: 3px solid #00a3e0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

.ebm-ssr-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.ebm-footer-heading {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 700;
}

.ebm-footer-heading-brand {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 12px;
  font-family: serif;
  font-weight: 800;
}

.ebm-footer-p {
  line-height: 1.6;
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 12px;
}

.ebm-footer-p a {
  color: #38bdf8;
}

.ebm-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.ebm-footer-list a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ebm-footer-list a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.ebm-footer-copy {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}
