/* =========================================================================
   FundMyStudy — Design System
   Modern, colorful AI-SaaS aesthetic. Built on top of Bootstrap 5.
   ========================================================================= */

:root {
  --fms-primary: #6C5CE7;      /* violet */
  --fms-primary-dark: #4834D4;
  --fms-secondary: #00CEC9;    /* teal */
  --fms-accent: #FD79A8;       /* pink */
  --fms-warm: #FDCB6E;         /* amber */
  --fms-success: #00B894;
  --fms-danger: #E17055;
  --fms-ink: #1A1B3A;
  --fms-ink-soft: #4A4B6A;
  --fms-bg: #FBFAFF;
  --fms-card-border: #ECEAFB;
  --fms-radius: 18px;
  --fms-gradient: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 45%, #00CEC9 100%);
  --fms-gradient-warm: linear-gradient(135deg, #FD79A8 0%, #FDCB6E 100%);
  --fms-shadow: 0 10px 40px rgba(108, 92, 231, 0.12);
  --fms-shadow-sm: 0 4px 16px rgba(26, 27, 58, 0.06);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fms-ink);
  background: var(--fms-bg);
  overflow-x: hidden;
}
h1, h2, h3, h4, .fms-display {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fms-ink);
}
a { text-decoration: none; }

/* ---------------- Buttons ---------------- */
.btn-fms-primary {
  background: var(--fms-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-fms-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.45);
  color: #fff;
}
.btn-fms-outline {
  border: 2px solid var(--fms-primary);
  color: var(--fms-primary);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  transition: all .2s ease;
}
.btn-fms-outline:hover { background: var(--fms-primary); color: #fff; }
.btn-fms-ghost {
  color: var(--fms-ink-soft);
  font-weight: 600;
  padding: 0.6rem 1rem;
}
.btn-fms-ghost:hover { color: var(--fms-primary); }
.btn-fms-warm {
  background: var(--fms-gradient-warm);
  border: none; color: #fff; font-weight: 700;
  padding: 0.65rem 1.5rem; border-radius: 999px;
}

/* ---------------- Navbar ---------------- */
.fms-navbar {
  background: rgba(251, 250, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fms-card-border);
  padding: 0.9rem 0;
}
.fms-brand-mark { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--fms-ink); }
.fms-brand-accent { color: var(--fms-primary); }
.nav-link { font-weight: 600; color: var(--fms-ink-soft) !important; margin: 0 0.5rem; }
.nav-link:hover { color: var(--fms-primary) !important; }

/* ---------------- Hero ---------------- */
.fms-hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: var(--fms-gradient);
  overflow: hidden;
  color: #fff;
}
.fms-hero::before, .fms-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.fms-hero::before { width: 400px; height: 400px; background: #FD79A8; top: -150px; right: -100px; }
.fms-hero::after { width: 350px; height: 350px; background: #00CEC9; bottom: -150px; left: -80px; }
.fms-hero .container { position: relative; z-index: 2; }
.fms-hero h1 { color: #fff; font-size: 3.1rem; line-height: 1.1; }
.fms-hero p.lead { color: rgba(255,255,255,0.9); font-size: 1.2rem; }
.fms-badge-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 0.4rem 1rem; border-radius: 999px;
}

/* Hero search bar */
.fms-search-card {
  background: #fff;
  border-radius: var(--fms-radius);
  box-shadow: 0 20px 60px rgba(26,27,58,0.25);
  padding: 1.25rem;
  margin-top: 2rem;
}
.fms-search-card select, .fms-search-card input {
  border: none; border-radius: 12px; background: #F5F3FF;
  padding: 0.75rem 1rem; font-weight: 600; color: var(--fms-ink);
}
.fms-search-card select:focus, .fms-search-card input:focus {
  box-shadow: 0 0 0 3px rgba(108,92,231,0.25); outline: none;
}

/* ---------------- Sections ---------------- */
.fms-section { padding: 5rem 0; }
.fms-section-alt { background: #F6F4FF; }
.fms-eyebrow {
  color: var(--fms-primary); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.8rem;
}
.fms-section-title { font-size: 2.2rem; margin-bottom: 0.5rem; }
.fms-section-sub { color: var(--fms-ink-soft); font-size: 1.05rem; max-width: 640px; }

/* ---------------- Cards ---------------- */
.fms-card {
  background: #fff;
  border: 1px solid var(--fms-card-border);
  border-radius: var(--fms-radius);
  box-shadow: var(--fms-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.fms-card:hover { transform: translateY(-6px); box-shadow: var(--fms-shadow); }

.fms-scholarship-card { padding: 1.5rem; }
.fms-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.75rem; border-radius: 999px; margin-right: 0.35rem;
}
.fms-tag-funded { background: #E4FBF6; color: #00997F; }
.fms-tag-partial { background: #FFF3D6; color: #B8860B; }
.fms-tag-merit { background: #EDE7FF; color: var(--fms-primary-dark); }
.fms-tag-need { background: #FFE6EC; color: #C0396E; }
.fms-tag-country { background: #EAF2FF; color: #2A6FDB; }
.fms-deadline-badge { font-size: 0.8rem; font-weight: 700; color: var(--fms-danger); }

/* AI feature icon tiles */
.fms-feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--fms-gradient); color: #fff; font-size: 1.5rem;
  margin-bottom: 1rem;
}
.fms-feature-icon.alt { background: var(--fms-gradient-warm); }

/* Stats */
.fms-stat-number {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.6rem;
  background: var(--fms-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pricing */
.fms-price-card { padding: 2rem; text-align: center; position: relative; }
.fms-price-card.popular { border: 2px solid var(--fms-primary); transform: scale(1.03); }
.fms-price-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--fms-gradient-warm); color: #fff; font-weight: 700; font-size: 0.75rem;
  padding: 0.3rem 1rem; border-radius: 999px;
}
.fms-price-amount { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.6rem; }
.fms-price-card ul { list-style: none; padding: 0; text-align: left; }
.fms-price-card ul li { padding: 0.4rem 0; color: var(--fms-ink-soft); }
.fms-price-card ul li i { color: var(--fms-success); margin-right: 0.5rem; }

/* Testimonials */
.fms-testimonial-card { padding: 1.75rem; }
.fms-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.fms-stars { color: var(--fms-warm); }

/* CTA band */
.fms-cta { background: var(--fms-gradient); border-radius: 28px; padding: 3.5rem; color: #fff; text-align: center; }

/* Footer */
.fms-footer { background: var(--fms-ink); padding-top: 2rem; }
.fms-footer-links li { margin-bottom: 0.5rem; }
.fms-footer-links a { color: rgba(255,255,255,0.7); }
.fms-footer-links a:hover { color: #fff; }

/* ---------------- Dashboard shell ---------------- */
.fms-dash-sidebar {
  background: #fff; border-right: 1px solid var(--fms-card-border);
  min-height: 100vh; padding: 1.5rem 1rem;
}
.fms-dash-sidebar .nav-link {
  color: var(--fms-ink-soft) !important; border-radius: 12px; padding: 0.65rem 1rem;
  font-weight: 600; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.6rem;
}
.fms-dash-sidebar .nav-link.active, .fms-dash-sidebar .nav-link:hover {
  background: #F1EEFF; color: var(--fms-primary) !important;
}
.fms-dash-main { padding: 2rem; }
.fms-credit-pill {
  background: var(--fms-gradient); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 0.5rem 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.fms-stat-box {
  background: #fff; border: 1px solid var(--fms-card-border); border-radius: var(--fms-radius);
  padding: 1.5rem; box-shadow: var(--fms-shadow-sm);
}

/* Forms */
.fms-form-card { background: #fff; border-radius: var(--fms-radius); box-shadow: var(--fms-shadow); padding: 2.5rem; }
.form-control, .form-select {
  border-radius: 12px; padding: 0.65rem 1rem; border: 1.5px solid #E4E1FA;
}
.form-control:focus, .form-select:focus { border-color: var(--fms-primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }
label.form-label { font-weight: 600; color: var(--fms-ink); }

/* AI response panel */
.fms-ai-output {
  background: #F8F7FF; border: 1px dashed var(--fms-primary);
  border-radius: var(--fms-radius); padding: 1.5rem; white-space: pre-wrap; line-height: 1.65;
}

/* Admin */
.fms-admin-sidebar { background: var(--fms-ink); min-height: 100vh; padding: 1.5rem 1rem; }
.fms-admin-sidebar .nav-link { color: rgba(255,255,255,0.7) !important; border-radius: 10px; padding: 0.6rem 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.fms-admin-sidebar .nav-link.active, .fms-admin-sidebar .nav-link:hover { background: rgba(108,92,231,0.25); color: #fff !important; }
.fms-table thead { background: #F6F4FF; }

/* Utility */
.fms-rounded-xl { border-radius: var(--fms-radius) !important; }
.text-fms-primary { color: var(--fms-primary) !important; }
.bg-fms-soft { background: #F6F4FF; }

@media (max-width: 767px) {
  .fms-hero h1 { font-size: 2.2rem; }
  .fms-cta { padding: 2rem; }
}
