/* ═══════════════════════════════════════════
   MICROSOFT LEARN — CUSTOM STYLES
   Companion to Bootstrap 5
════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --ms-blue:   #0078d4;
  --ms-dark:   #003a75;
  --ms-teal:   #00b4d8;
  --ms-accent: #50e6ff;
  --ms-green:  #107c10;
  --ms-purple: #8661c5;
  --bg:        #f3f6fb;
  --white:     #ffffff;
  --text:      #1b1b1b;
  --muted:     #616161;
  --border:    #e0e7ef;
  --hero-from: #003a75;
  --hero-to:   #0078d4;

}

/* ─── BASE ─── */
body {
font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
.ms-navbar {
  background: rgba(0, 58, 117, 0.97) !important;
  backdrop-filter: blur(12px);
  height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ms-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.ms-brand em {
  color: var(--ms-accent);
  font-style: normal;
}
.ms-nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}
.ms-nav-link:hover {
  color: var(--ms-accent) !important;
}
.ms-btn-cta {
  background: var(--ms-accent);
  color: var(--ms-dark);
  font-weight: 700;
  font-size: 0.87rem;
  padding: 7px 20px;
  border-radius: 4px;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.ms-btn-cta:hover {
  background: #fff;
  color: var(--ms-dark);
  transform: translateY(-1px);
}

/* ─── HERO ─── */
.ms-hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, #0050a0 50%, var(--hero-to) 100%);
  position: relative;
  overflow: hidden;
}
.ms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(80, 230, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(80, 230, 255, 0.4);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 0.78rem;
  color: var(--ms-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
}
.text-accent {
  color: var(--ms-accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  line-height: 1.7;
}
.hero-stats-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 680px;
  padding-top: 28px;
}
.stat-block {
  padding: 16px 10px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ms-accent);
}
.stat-lbl {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* ─── CATEGORY STRIP ─── */
.ms-strip {
  background: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 17px 28px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
  user-select: none;
}
.strip-item:hover {
  color: var(--ms-blue);
  background: #f0f6ff;
}
.strip-item.active {
  color: var(--ms-blue);
  background: #f0f6ff;
  border-bottom-color: var(--ms-blue);
}

/* ─── SECTION HEADINGS ─── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ms-blue);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.65;
}

/* ─── FEATURE CARDS ─── */
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feat-card:hover {
  box-shadow: 0 8px 32px rgba(0, 120, 212, 0.13);
  transform: translateY(-4px);
}
.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.feat-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.feat-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── LEARNING PATH CHIPS ─── */
.ms-paths-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.path-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  user-select: none;
}
.path-chip:hover {
  border-color: var(--ms-blue);
  color: var(--ms-blue);
  background: #f0f6ff;
}
.path-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-blue);
  flex-shrink: 0;
}

/* ─── COURSES SECTION ─── */
.ms-courses-section {
  background: var(--white);
}

/* Tabs */
.ms-tabs {
  border-bottom: 2px solid var(--border);
  gap: 0;
}
.ms-tab-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.ms-tab-btn:hover {
  color: var(--ms-blue);
}
.ms-tab-btn.active {
  color: var(--ms-blue);
  border-bottom-color: var(--ms-blue);
}

/* Search & Filters */
.ms-search {
  border-left: none !important;
  font-size: 0.9rem;
}
.ms-search:focus {
  border-color: var(--ms-blue) !important;
  box-shadow: none !important;
}
.input-group-text {
  border-color: var(--border);
}
.ms-select {
  font-size: 0.87rem;
  border-color: var(--border);
  color: var(--text);
  cursor: pointer;
}
.ms-select:focus {
  border-color: var(--ms-blue);
  box-shadow: none;
}
.count-badge {
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--bg);
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
}

/* Spinner */
.ms-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--ms-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Course Cards */
.course-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  background: var(--white);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  animation: fadeUp 0.32s ease both;
  margin-bottom: 12px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.course-card:hover {
  box-shadow: 0 6px 24px rgba(0, 120, 212, 0.11);
  border-color: rgba(0, 120, 212, 0.35);
}
.course-icon-wrap img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: contain;
  background: #f0f6ff;
  padding: 6px;
  flex-shrink: 0;
}
.course-icon-fallback {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}
.course-body {
  flex: 1;
  min-width: 0;
}
.course-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.course-title a {
  color: var(--text);
  text-decoration: none;
}
.course-title a:hover {
  color: var(--ms-blue);
}
.course-summary {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-chip {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eef4ff;
  color: var(--ms-blue);
}
.meta-chip.level-beginner   { background: #e8f5e9; color: #2e7d32; }
.meta-chip.level-intermediate { background: #fff3e0; color: #e65100; }
.meta-chip.level-advanced   { background: #fce4ec; color: #b71c1c; }
.meta-chip.product          { background: #f3e5f5; color: #6a1b9a; }
.meta-chip.duration         { background: var(--bg); color: var(--muted); }
.star-row {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f59e0b;
  white-space: nowrap;
}
.star-row span {
  color: var(--muted);
  font-weight: 400;
}
.error-msg {
  text-align: center;
  padding: 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pagination */
.pg-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pg-btn:hover,
.pg-btn.active {
  background: var(--ms-blue);
  color: #fff;
  border-color: var(--ms-blue);
}

/* ─── WHY SECTION ─── */
.ms-why-section {
  background: linear-gradient(135deg, var(--hero-from), #0050a0 60%, var(--hero-to));
}
.why-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 28px 24px;
  transition: background 0.2s;
  color: rgba(255, 255, 255, 0.65);
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.12);
}
.why-card .wi {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.why-card h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
}
.why-card p {
  font-size: 0.87rem;
  line-height: 1.65;
  margin: 0;
}

/* ─── FAQ ─── */
.ms-faq-item {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.ms-faq-btn {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  box-shadow: none !important;
  padding: 18px 24px;
}
.ms-faq-btn:not(.collapsed) {
  color: var(--ms-blue);
  background: #f0f6ff;
}
.ms-faq-btn::after {
  filter: none;
}
.ms-faq-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  background: var(--white);
}

/* ─── CTA BANNER ─── */
.ms-cta-banner {
  background: linear-gradient(100deg, #0078d4, #00b4d8);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
}
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}
.ms-cta-main-btn {
  background: #fff;
  color: var(--ms-blue);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 6px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ms-cta-main-btn:hover {
  background: #fff;
  color: var(--ms-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;   /* controls Bootstrap icon size */
  color: #ffffff;      /* makes icon white */
}

/* ─── FOOTER ─── */
.ms-footer {
  background: var(--ms-dark);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
}
.footer-text {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--ms-accent);
}
.footer-social {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social:hover {
  color: var(--ms-accent);
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .ms-strip { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .strip-item { white-space: nowrap; padding: 14px 18px; font-size: 0.83rem; }
  .course-card { flex-direction: column; }
  .star-row { margin-left: 0; }
  .hero-stats-bar { padding-top: 20px; }
}
