/* ==========================================================================
   STEM GLOBAL BY ARNAV MISHRA - DESIGN SYSTEM & STYLESHEET
   Matching https://darkorchid-camel-358441.hostingersite.com/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --navy: #1B3A6B;        /* Primary: Navigation, main headers, primary CTA */
  --navy-dark: #0D264A;   /* Gradient end & dark backgrounds */
  --navy-deep: #112240;   /* Footer background */
  --teal: #0D7A8A;        /* Secondary: Links, hover states, icons, section accents */
  --teal-dark: #095965;
  --gold: #F5A623;        /* Accent: Badges, highlights, achievements, progress bars */
  --gold-dark: #e0961b;
  --bg: #F8F9FA;          /* Primary Background: Off-white clean canvas */
  --text: #1A1A2E;        /* Body Text: Dark Navy for optimal contrast */
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --muted: #64748B;

  /* Typography */
  --font-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 20px -3px rgba(0,0,0,0.12), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--navy);
  text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 3.5vw + 0.5rem, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.2rem, 2.2rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 1.8vw + 0.1rem, 1.6rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 999999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white) !important;
}

.btn-secondary {
  background: var(--teal);
  color: var(--white) !important;
  border-color: var(--teal);
}

.btn-secondary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white) !important;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy) !important;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy) !important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.badge-gold {
  background: #F5A623;
  color: #1b3a6b !important;
}

.badge-gold-soft {
  background: rgba(245, 166, 35, 0.18);
  color: #b37408;
}

.badge-teal {
  background: #0D7A8A;
  color: #ffffff !important;
}

.badge-navy {
  background: #1B3A6B;
  color: #ffffff !important;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white) !important;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}

.brand-logo:hover {
  text-decoration: none;
  color: var(--white) !important;
}

.brand-logo svg {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  flex-shrink: 0 !important;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.primary-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}

.primary-menu-list a {
  color: #E2E8F0;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.primary-menu-list a:hover,
.primary-menu-list a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-auth-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .mobile-nav-toggle { display: block; }
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-navigation.is-open { display: flex; }
  .primary-menu-list {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .primary-menu-list li { width: 100%; }
  .primary-menu-list a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
  }
  .nav-auth-wrap {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #1B3A6B 0%, #0D264A 100%);
  padding: 70px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
}

.hero-tagline {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(245,166,35,0.2);
  color: #f5a623;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 2.8rem);
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #F5A623;
  color: #1b3a6b;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(245,166,35,0.4);
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
  background: #0D264A;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #f5a623;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

/* ==========================================================================
   CORE ECOSYSTEM & SECTIONS
   ========================================================================== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: #FFFFFF;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #1b3a6b;
  margin: 12px 0 8px;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-tile {
  background: #FFFFFF;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.feature-tile:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.feature-tile-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-tile-title {
  font-size: 1.25rem;
  color: #1b3a6b;
  margin: 0 0 8px;
  font-weight: 700;
}

.feature-tile-desc {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.feature-tile-link {
  color: #0d7a8a;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.feature-tile:hover .feature-tile-link {
  color: #1b3a6b;
}

/* ==========================================================================
   EDUCATIONAL FUND CTA BANNER
   ========================================================================== */
.fund-banner {
  background: linear-gradient(135deg, #1B3A6B 0%, #0D7A8A 100%);
  color: #ffffff;
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.fund-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #ffffff;
  margin: 0 0 14px;
  font-weight: 800;
}

.fund-banner p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #112240;
  color: #CBD5E1;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-heading {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  font-size: 16px;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #94A3B8;
}

.footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ==========================================================================
   FORMS & CORE CONTROLS
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 122, 138, 0.15);
  outline: none;
}

/* Fix blazor layout flex wrapper */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
}

/* ==========================================================================
   AUTHENTICATION & PORTAL SPLIT SYSTEM
   ========================================================================== */
.auth-split-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: stretch;
  background: var(--bg);
}

.auth-left-panel {
  flex: 1;
  background: linear-gradient(145deg, #1B3A6B 0%, #0D264A 60%, #081B35 100%);
  padding: 60px 48px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-glow-top {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13,122,138,0.3) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-glow-bottom {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(245,166,35,0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}

.auth-right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 12px 30px -10px rgba(27,58,107,0.12), 0 4px 6px -2px rgba(0,0,0,0.03);
  border: 1px solid #E2E8F0;
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  background: #F1F5F9;
  padding: 6px;
  border-bottom: 1px solid #E2E8F0;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: #1B3A6B;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-card-body {
  padding: 26px 30px;
}

@media (max-width: 900px) {
  .auth-split-wrapper {
    flex-direction: column;
  }
  .auth-left-panel {
    display: none !important;
  }
  .auth-right-panel {
    padding: 32px 16px !important;
  }
}

