/* ==========================================================================
   DEVELOPMENT ROOT SYSTEM VARIABLES (SCHOLAR NAIJA SYSTEM SPECIFICATION)
   ========================================================================== */
:root {
  --font-heading: 'Syne', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Brand Palettes Matching Core System Identity */
  --emerald-green: #008751;
  --deep-green-hover: #00633b;
  --dark-slate-grey: #111827;
  --secondary-muted-text: #4b5563;
  --pure-surface-white: #ffffff;
  --app-bg-canvas: #f9fafb;
  --border-slate-line: #e5e7eb;
  
  /* Layout Controls */
  --sidebar-width: 260px;
  --radius-standard: 12px;
  --radius-large: 24px;
  --transition-fast-curve: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   GLOBAL STRUCTURE RESET & RESIZE LAYERS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--app-bg-canvas);
  color: var(--dark-slate-grey);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR LAYOUT ARCHITECTURE
   ========================================================================== */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--pure-surface-white);
  border-right: 1px solid var(--border-slate-line);
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.brand-logo {
  background-color: #f0fdf4;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.25rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-slate-grey);
}

.brand-name span {
  color: var(--emerald-green);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--secondary-muted-text);
  font-weight: 500;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--secondary-muted-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-standard);
  transition: var(--transition-fast-curve);
}

.menu-item:hover {
  background-color: #f3f4f6;
  color: var(--dark-slate-grey);
}

/* ==========================================================================
   MAIN CORE CONTENT ENVIRONMENT
   ========================================================================== */
.app-main {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 2rem calc(2rem + 2vw);
  max-width: 1200px;
}

/* ==========================================================================
   DYNAMIC MODERN HERO PROFILE CARD
   ========================================================================== */
.hero-header-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--pure-surface-white);
  border-radius: var(--radius-large);
  padding: 3.5rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.hero-badge-track {
  display: inline-block;
  background-color: rgba(0, 135, 81, 0.2);
  border: 1px solid var(--emerald-green);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.page-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.85;
  max-width: 800px;
  font-weight: 400;
}

.metrics-row-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}

.metric-pill-item h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--emerald-green);
}

.metric-pill-item p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ==========================================================================
   NAVIGATION PILLS STRIP
   ========================================================================== */
.quick-nav-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2.5rem;
  scrollbar-width: none;
}

.quick-nav-strip::-webkit-scrollbar {
  display: none;
}

.pill-nav-link {
  white-space: nowrap;
  text-decoration: none;
  background-color: var(--pure-surface-white);
  border: 1px solid var(--border-slate-line);
  color: var(--dark-slate-grey);
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast-curve);
}

.pill-nav-link:hover {
  border-color: var(--emerald-green);
  color: var(--emerald-green);
  background-color: #f0fdf4;
}

/* ==========================================================================
   CONTENT LAYOUT SEGMENTS
   ========================================================================== */
.content-panel-block {
  background-color: var(--pure-surface-white);
  border: 1px solid var(--border-slate-line);
  border-radius: var(--radius-large);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-subtle);
}

.panel-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel-index-tag {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-green);
  background-color: #e8f5e9;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.content-panel-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-slate-grey);
}

.panel-narrative {
  color: var(--secondary-muted-text);
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

/* Grid Framework Integrations */
.sub-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sub-feature-card {
  background-color: #f9fafb;
  border: 1px solid var(--border-slate-line);
  border-radius: var(--radius-standard);
  padding: 1.75rem;
  transition: var(--transition-fast-curve);
}

.sub-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-green);
}

.sf-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.sub-feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.sub-feature-card p {
  font-size: 0.9rem;
  color: var(--secondary-muted-text);
}

/* ==========================================================================
   ACADEMIC PROGRESSION TIMELINE LIST
   ========================================================================== */
.curriculum-timeline-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-row-node {
  padding: 1.5rem;
  background-color: #f9fafb;
  border-left: 4px solid var(--emerald-green);
  border-radius: 0 var(--radius-standard) var(--radius-standard) 0;
  border-top: 1px solid var(--border-slate-line);
  border-right: 1px solid var(--border-slate-line);
  border-bottom: 1px solid var(--border-slate-line);
}

.timeline-row-node h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--dark-slate-grey);
}

.timeline-row-node p {
  font-size: 0.92rem;
  color: var(--secondary-muted-text);
}

/* ==========================================================================
   COMPACT DATA MATRIX REUSABLE TABLE
   ========================================================================== */
.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-slate-line);
  border-radius: var(--radius-standard);
}

.data-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-matrix-table th {
  background-color: #f3f4f6;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-slate-grey);
  border-bottom: 1px solid var(--border-slate-line);
}

.data-matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-slate-line);
  color: var(--secondary-muted-text);
}

.data-matrix-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   THREE-COLUMN HIGH-VALUE CAREER PATHWAY CARDS
   ========================================================================== */
.career-cards-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.career-niche-card {
  background-color: var(--pure-surface-white);
  border: 1px solid var(--border-slate-line);
  border-radius: var(--radius-standard);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast-curve);
}

.career-niche-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}

.niche-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.career-niche-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.career-niche-card p {
  font-size: 0.88rem;
  color: var(--secondary-muted-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.demand-tag {
  display: inline-block;
  align-self: flex-start;
  background-color: #f3f4f6;
  color: var(--dark-slate-grey);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

/* ==========================================================================
   MONETIZATION FLEX BANNER LAYOUT HOOKS (HIGH CTR TARGETS)
   ========================================================================== */
.ad-container-wrapper {
  width: 100%;
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-standard);
  padding: 1.5rem;
  min-height: 90px;
  justify-content: center;
  position: relative;
}

.ad-badge-tag {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   NEWSLETTER PORTAL SYSTEM FOOTER
   ========================================================================== */
.newsletter-capture-banner {
  background: linear-gradient(135deg, #008751 0%, #005231 100%);
  color: var(--pure-surface-white);
  border-radius: var(--radius-large);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin-top: 4rem;
}

.newsletter-icon-badge {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.newsletter-capture-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.newsletter-capture-banner p {
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}

.form-horizontal-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .form-horizontal-row {
    flex-direction: row;
    background-color: var(--pure-surface-white);
    padding: 0.4rem;
    border-radius: var(--radius-standard);
    gap: 0;
  }
}

.input-field-element {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-slate-line);
  border-radius: var(--radius-standard);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
}

@media (min-width: 600px) {
  .input-field-element {
    border: none;
  }
}

.submit-action-btn {
  background-color: var(--dark-slate-grey);
  color: var(--pure-surface-white);
  border: none;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-standard);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast-curve);
}

.submit-action-btn:hover {
  background-color: #1f293b;
}

/* ==========================================================================
   GLOBAL APP PORTAL FOOTER DESIGN
   ========================================================================== */
.app-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-slate-line);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--secondary-muted-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast-curve);
}

.footer-nav a:hover {
  color: var(--emerald-green);
}

.footer-copy {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ==========================================================================
   RESPONSIVE APP PORTAL VIEWPORTS LAYER
   ========================================================================== */
@media (max-width: 1024px) {
  .app-sidebar {
    display: none; /* Optimized for direct main viewport flow on mobile layouts */
  }
  .app-main {
    margin-left: 0;
    padding: 1.5rem 1rem;
  }
}