:root {
  --primary: #2563eb;
  --secondary: #108981;
  --bg: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img,
svg {
  max-width: 100%;
}

.navbar-shell {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.navbar-brand {
  color: var(--text) !important;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.btn-outline-primary,
.btn-outline-secondary {
  transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  transform: translateY(-2px);
}

.hero-section,
.directory-hero {
  padding-top: 4rem;
}

.py-lg-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.display-4 {
  letter-spacing: -0.03em;
}

.hero-card,
.info-card,
.preview-panel,
.app-card,
.dashboard-preview,
.pricing-card,
.accordion-item,
.school-card,
.school-modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-card:hover,
.info-card:hover,
.preview-panel:hover,
.app-card:hover,
.dashboard-preview:hover,
.pricing-card:hover,
.accordion-item:hover,
.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.09);
}

.directory-hero {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 137, 129, 0.08)),
    #f8fafc;
  border-bottom: 1px solid var(--border);
}

.directory-section {
  min-height: 52vh;
}

.search-shell {
  position: relative;
}

.search-shell i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  z-index: 2;
}

.search-shell .form-control {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding-left: 2.75rem;
}

.school-card {
  cursor: pointer;
  height: 100%;
  overflow: hidden;
}

.school-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 4px;
}

.school-card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem;
}

.school-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(16, 137, 129, 0.2)),
    #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: var(--primary);
  font-weight: 800;
  overflow: hidden;
}

.school-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-logo-lg {
  width: 82px;
  height: 82px;
  font-size: 1.25rem;
}

.school-name {
  color: var(--text);
  display: -webkit-box;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.school-meta {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.school-meta span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.school-meta i {
  color: var(--secondary);
}

.directory-state {
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 1.5rem;
}

.school-modal {
  border: none;
}

.public-contact {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: #f8fbff;
}

.detail-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.detail-value {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.campus-list {
  display: grid;
  gap: 0.75rem;
}

.campus-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #ffffff;
}

.campus-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.campus-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.hero-illustration {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.06),
    rgba(16, 137, 129, 0.08)
  );
  border-radius: 20px;
  padding: 1rem;
}

.mini-card {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(248, 250, 252, 0.9)
  );
}

.section-title {
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-copy {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12),
    rgba(16, 137, 129, 0.16)
  );
  color: var(--primary);
  font-size: 1.2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.feature-list i {
  color: var(--secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-pill {
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.dashboard-body {
  display: grid;
  gap: 1rem;
}

.bar-group span {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.progress-fill-74 {
  width: 74%;
}

.progress-fill-88 {
  width: 88%;
}

.progress-fill-92 {
  width: 92%;
}

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-6px);
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-card ul {
  padding-left: 1rem;
  color: var(--muted);
}

.accordion-button {
  font-weight: 600;
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--border);
  background: #f8fbff;
}

.footer a {
  color: var(--text);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1rem;
  }
}
