/* === LANDING NAV === */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-elevated);
  padding: 16px 0;
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-primary);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-link {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav-link:hover { color: var(--fg-primary); }

.landing-nav-cta {
  background: var(--accent);
  color: #000;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.landing-nav-cta:hover { background: var(--accent-warm); }

/* === HERO CTA GROUP === */
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-cta-primary {
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.hero-cta-primary:hover { background: var(--accent-warm); transform: translateY(-1px); }

.hero-cta-secondary {
  background: var(--bg-card);
  color: var(--fg-primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--bg-elevated);
  transition: border-color 0.2s, transform 0.1s;
}

.hero-cta-secondary:hover { border-color: var(--accent); transform: translateY(-1px); }

/* === CLOSING CTA === */
.closing-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

/* === APP NAV === */
.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 10, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-elevated);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand .accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover { color: var(--fg-primary); background: var(--bg-card); }
.nav-link.active { color: var(--fg-primary); background: var(--bg-elevated); }

.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-warm); }

/* === APP MAIN === */
.app-main {
  padding-top: 60px;
  min-height: calc(100vh - 120px);
}

/* === PAGE HEADER === */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--bg-elevated);
  padding: 40px 0 0;
}

.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.page-subtitle {
  color: var(--fg-secondary);
  font-size: 15px;
}

.accent-text { color: var(--accent); font-weight: 600; }

/* === FILTER FORM === */
.filter-form {
  padding-bottom: 24px;
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-input,
.filter-select {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--fg-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--accent);
}

.filter-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2378716C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.filter-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  align-self: flex-end;
}

.filter-btn:hover { background: var(--accent-warm); }

/* === RESULTS === */
.results-container {
  padding-top: 32px;
  padding-bottom: 60px;
}

/* === BURSARY GRID === */
.bursary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.bursary-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.15s;
}

.bursary-card:hover {
  border-color: var(--accent-warm);
  transform: translateY(-2px);
}

.bursary-card--closed {
  opacity: 0.7;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-type {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--fg-secondary);
}

.card-type--bursary { color: var(--accent); }
.card-type--learnership { color: #60A5FA; }

.card-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.status-open { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.status-closed { background: rgba(239, 68, 68, 0.1); color: var(--red); }

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.card-title a {
  color: var(--fg-primary);
  text-decoration: none;
}

.card-title a:hover { color: var(--accent); }

.card-provider {
  color: var(--fg-secondary);
  font-size: 14px;
  margin: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--fg-secondary);
  white-space: nowrap;
}

.deadline-chip--past { color: var(--red); background: rgba(239, 68, 68, 0.08); }

.card-desc {
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* === BUTTONS === */
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--accent-warm); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--fg-secondary);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover { color: var(--fg-primary); border-color: rgba(255,255,255,0.12); }

.btn-large { padding: 13px 28px; font-size: 16px; }

/* === DETAIL PAGES === */
.detail-container {
  padding-top: 32px;
  padding-bottom: 60px;
  max-width: 760px;
}

.back-link {
  display: inline-block;
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--radius);
  padding: 40px;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-provider {
  color: var(--fg-secondary);
  font-size: 16px;
  margin: 0;
}

.detail-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--bg-elevated);
  border-bottom: 1px solid var(--bg-elevated);
  margin-bottom: 32px;
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 15px;
  color: var(--fg-primary);
  font-weight: 500;
}

.deadline--past { color: var(--red); }

.detail-section {
  margin-bottom: 28px;
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--fg-primary);
}

.detail-text {
  color: var(--fg-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-item {
  color: var(--fg-secondary);
  font-size: 15px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-radius: 8px;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--bg-elevated);
}

.closed-notice {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--fg-secondary);
  margin-top: 20px;
  line-height: 1.5;
}

/* === NEWS === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.15s;
}

.news-card:hover {
  border-color: var(--accent-warm);
  transform: translateY(-2px);
}

.news-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.news-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.news-title a {
  color: var(--fg-primary);
  text-decoration: none;
}

.news-title a:hover { color: var(--accent); }

.news-summary {
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.news-date { font-size: 12px; color: var(--fg-muted); }

.news-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.news-read-more:hover { color: var(--accent-warm); }

/* === NEWS ARTICLE === */
.news-article-header {
  margin-bottom: 28px;
}

.news-date-large {
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 10px;
}

.article-summary {
  font-size: 18px;
  color: var(--fg-secondary);
  line-height: 1.6;
  font-weight: 500;
  padding: 20px 0;
  border-top: 1px solid var(--bg-elevated);
  border-bottom: 1px solid var(--bg-elevated);
  margin-bottom: 24px;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-content p {
  color: var(--fg-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.source-link {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-elevated);
  font-size: 13px;
  color: var(--fg-muted);
}

.source-link a { color: var(--fg-muted); text-decoration: underline; }

/* === NSFAS CTA BOX === */
.nsfas-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-top: 8px;
}

.nsfas-cta-box h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.nsfas-cta-box p {
  color: var(--fg-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon { font-size: 56px; margin-bottom: 20px; }

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--fg-secondary);
  font-size: 15px;
}

.empty-state a { color: var(--accent); }

/* === APP FOOTER === */
.app-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-elevated);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.footer-brand .accent { color: var(--accent); }

.app-footer p {
  color: var(--fg-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .filter-row { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .filter-btn { width: 100%; text-align: center; padding: 12px; }
  .bursary-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 24px 20px; }
  .detail-meta-row { flex-direction: column; gap: 16px; }
  .landing-nav-links { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .hero-cta-primary, .hero-cta-secondary { text-align: center; }
  .card-actions { flex-direction: column; }
  .detail-actions { flex-direction: column; }
  .closing-cta-group { flex-direction: column; align-items: center; }
}
