/* =============================================================
   Unity Corporate Training Institute — 2026 refresh
   Styled after codewithmosh.com's typography and brand-blue
   accent, adapted to a full black/dark theme per brief: same
   type scale and same accent/brand colors as the original pass,
   background and ink inverted for a dark UI (course-card
   catalog with Bestseller tags, testimonials, alternating
   feature sections, near-black CTA band throughout).
   ============================================================= */

:root {
  --bg: #08090d;              /* page background — near black */
  --bg-alt: #0e1016;          /* zebra-striped section background */
  --panel: #14161e;           /* card background */
  --ink: #f5f7fa;             /* headings / primary text */
  --muted: #99a1b3;           /* body copy */
  --line: #22242f;            /* hairline borders */
  --line-bright: #343850;     /* slightly stronger border for cards on hover */
  --blue: #3f5efb;            /* primary CTA / link / accent */
  --blue-dark: #3049d6;
  --blue-gradient: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
  --gold: #f5a524;            /* star ratings / badges */
  --stat-blue: #22b8ea;       /* "students placed" accent */
  --stat-pink: #fb5577;       /* "live projects" accent */
  --dark: #030406;            /* final CTA band + footer — deepest black */
  --dark-line: #1a1c26;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  margin: 0;
}

h1, h2, h3, .font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* Big bold headline treatment used in hero + course-page heroes.
   No condensed/outline gimmick — just a large, confident sans-serif
   headline, the way the real site does it. */
.impact-heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.impact-heading .line { display: block; }
.impact-heading .stroke {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--blue);
  -webkit-text-fill-color: transparent;
}

a { color: inherit; }
::selection { background: var(--blue); color: #fff; }

/* Gradient-text helper — used anywhere text was solid brand-blue */
.grad-text {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--blue); /* fallback for browsers without background-clip:text */
  -webkit-text-fill-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(36, 84, 255, 0.5);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--panel);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light {
  background: #fff;
  color: var(--dark);
}
.btn-light:hover { transform: translateY(-1px); background: #eef1f7; }

/* -------------------------------------------------------------
   Course cards
   ------------------------------------------------------------- */
.course-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.course-card:hover,
.course-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(59, 107, 255, 0.15);
  border-color: var(--line-bright);
}

.course-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}
.course-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.course-card:hover .course-card__thumb img,
.course-card:focus-within .course-card__thumb img {
  transform: scale(1.04);
}

/* -------------------------------------------------------------
   Badge pill (hero: "Est. 2018 · Pune · 100% Job Assistance")
   ------------------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
}
.badge-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-gradient);
  flex-shrink: 0;
}

/* Course-card corner badges — always sit on a photo, so keep
   fixed dark-scrim contrast regardless of page theme. */
.badge-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-trending { background: rgba(15, 23, 42, 0.85); color: #fff; }
.badge-popular { background: var(--gold); color: #402a00; }

.lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--course-color, var(--blue-gradient));
  display: inline-block;
}

/* Category filter pills */
.filter-pill {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active {
  background: var(--blue-gradient);
  border-color: var(--blue);
  color: #fff;
}

/* -------------------------------------------------------------
   Testimonials (placeholder content — swap in real quotes)
   ------------------------------------------------------------- */
.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--ink);
}
.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

/* Simple pill for language strip */
.pill {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--ink);
  background: var(--panel);
}

/* -------------------------------------------------------------
   Feature rows (alternating image/text)
   ------------------------------------------------------------- */
.feature-tag {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--blue);
  -webkit-text-fill-color: transparent;
  font-size: 13px;
  font-weight: 600;
}

/* -------------------------------------------------------------
   Stat counters
   ------------------------------------------------------------- */
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--ink);
}

/* Stat cards with colored left accent border (hero stats strip) */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--stat-color, var(--blue));
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.6);
}
.stat-card .stat-card__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--stat-color, var(--blue));
  line-height: 1;
}
.stat-card .stat-card__label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Tool / technology chip */
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.tool-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-gradient);
  flex-shrink: 0;
}

/* Horizontal scrollable course-tabs strip */
.course-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.course-tabs::-webkit-scrollbar { display: none; }
.course-tabs a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  white-space: nowrap;
  background: var(--panel);
}
.course-tabs a .icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.course-tabs a .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.course-tabs a.active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--bg-alt);
}
.course-tabs a.active .dot { background: var(--blue-gradient); }

/* Back to top */
#back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-gradient);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}
#back-to-top.show { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-2px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .course-card,
  .btn-primary,
  .course-card__thumb img,
  #back-to-top { transition: none; }
  .course-card:hover { transform: none; }
  .course-card:hover .course-card__thumb img { transform: none; }
}
