﻿:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe7ff;
  --brand-blue: #1d4ed8;
  --brand-teal: #0f766e;
  --brand-orange: #f97316;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, #d8e9ff 0%, transparent 44%),
    radial-gradient(circle at 82% 8%, #e4fbf8 0%, transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #f5f8ff 100%);
  min-height: 100vh;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.26;
  animation: floatOrb 14s ease-in-out infinite;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%);
  top: -70px;
  left: -80px;
}

.orb-b {
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
  top: 25%;
  right: -100px;
  animation-delay: -4s;
}

.orb-c {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, #fdba74 0%, #f97316 100%);
  bottom: -100px;
  left: 58%;
  animation-delay: -8s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}

.brand img {
  height: 52px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.header-nav a:hover {
  color: var(--brand-blue);
  background: #eaf1ff;
}

.header-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), #2563eb);
}

.main-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 20px auto 34px;
}

.hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.26) 0%, transparent 40%),
    linear-gradient(135deg, #0b5fdc 0%, #1d4ed8 48%, #0f766e 100%);
  border-radius: 28px;
  color: #ffffff;
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow);
  animation: heroIn 0.6s ease-out;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: #dbeafe;
}

.hero h1 {
  margin: 9px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero-text {
  margin: 0;
  max-width: 760px;
  color: #e8f6ff;
  line-height: 1.6;
  font-size: 16px;
}

.hero-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
}

.metric-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d7ecff;
}

.metric-value {
  margin: 6px 0 0;
  font-size: 27px;
  font-weight: 800;
}

.metric-small {
  font-size: 15px;
  font-weight: 600;
}

.controls-section {
  margin-top: 16px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  position: sticky;
  top: 78px;
  z-index: 30;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d4e2ff;
  border-radius: 12px;
  background: #f8fbff;
}

.search-shell svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
  fill: none;
  stroke-width: 2;
}

.search-shell input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}

.chip-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  border: 1px solid #cddcff;
  background: #f2f7ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s ease;
}

.chip:hover {
  background: #e4eeff;
}

.chip.active {
  background: linear-gradient(135deg, #f97316, #fb923c);
  border-color: transparent;
  color: #ffffff;
}

.articles-section {
  margin-top: 16px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  animation: cardIn 0.5s ease-out forwards;
  animation-delay: calc(var(--stagger, 0) * 60ms);
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #60a5fa 0%, #0f766e 100%);
}

.article-card[data-category='Exams']::before {
  background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
}

.article-card[data-category='Admissions']::before {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
}

.article-card[data-category='Colleges']::before {
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.article-card[data-category='Policy']::before {
  background: linear-gradient(90deg, #334155 0%, #64748b 100%);
}

.article-card[data-category='Scholarships']::before {
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
}

.article-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge.red {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.blue {
  background: #dbeafe;
  color: #1e3a8a;
}

.badge.gray {
  background: #e2e8f0;
  color: #334155;
}

.source {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.article-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.article-desc {
  margin: 8px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.meta-date {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.read-link {
  text-decoration: none;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.read-link:hover {
  text-decoration: underline;
}

.empty-state {
  margin: 12px 0 0;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
  border-radius: 12px;
  text-align: center;
  padding: 14px;
  font-weight: 600;
}

.hidden {
  display: none;
}

.load-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.load-more-btn {
  border: none;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.load-more-btn:hover {
  transform: translateY(-1px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 14px 30px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.04);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand img {
    height: 42px;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-wrap {
    width: min(1220px, calc(100% - 20px));
    margin-top: 12px;
  }

  .hero {
    border-radius: 20px;
    padding: 18px 14px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .controls-section {
    top: 108px;
    padding: 10px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-title {
    font-size: 18px;
  }

  .article-meta {
    flex-wrap: wrap;
  }
}
