:root {
  --primary: #1558d6;
  --secondary: #0f766e;
  --accent: #f59e0b;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --surface-strong: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --border: #dbe4ef;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.14),
      transparent 25%
    ),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.navbar-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  border: none;
  border-bottom: 1px solid rgba(219, 228, 242, 0.75);
}

.navbar-brand {
  color: var(--text) !important;
  font-weight: 700;
}

.navbar-brand img {
  width: 42px;
  height: auto;
  display: block;
  border-radius: 16px;
}

.navbar-brand span {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary) !important;
}

.btn {
  border-radius: 16px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border: none;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
  padding: 0.95rem 1.35rem;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.22);
}

.btn-outline-primary,
.btn-outline-secondary {
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
  color: var(--primary);
}

.hero-section,
.directory-hero {
  padding: 5.5rem 0 3rem;
}

.directory-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.display-4 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 1rem;
  color: #0f172a;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.search-shell {
  position: relative;
  max-width: 540px;
}

.search-shell i {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 2;
}

.search-shell .form-control {
  width: 100%;
  border: 1px solid rgba(219, 228, 242, 0.9);
  border-radius: 22px;
  padding: 1.1rem 1.25rem 1.1rem 3.6rem;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.school-card {
  cursor: pointer;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 242, 0.95);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
}

.school-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 4px;
}

.school-card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.5rem;
  align-items: center;
}

.school-logo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  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.18)
  );
  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: 92px;
  height: 92px;
  font-size: 1.35rem;
}

.school-name {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.school-meta {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.school-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.school-meta i {
  color: var(--secondary);
}

.directory-state {
  border: 1px dashed rgba(219, 228, 242, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 1.5rem;
}

.school-modal .modal-content {
  border-radius: 28px;
  border: none;
  overflow: hidden;
  box-shadow: 0 30px 75px rgba(15, 23, 42, 0.12);
}

.public-contact,
.campus-item,
.detail-value,
.detail-label {
  border-radius: 18px;
}

.public-contact {
  border: 1px solid rgba(219, 228, 242, 0.95);
  background: #f8fbff;
  padding: 1.1rem 1.15rem;
}

.detail-label {
  color: var(--muted);
  font-size: 0.78rem;
  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.85rem;
}

.campus-item {
  border: 1px solid rgba(219, 228, 242, 0.95);
  padding: 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: 24px;
  padding: 1rem;
}

.mini-card,
.feature-pill,
.form-control,
.form-select,
.btn,
.school-type-card,
.upload-preview,
.contact-card,
.social-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86),
    rgba(248, 250, 252, 0.92)
  );
}

.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(--surface);
  border: 1px solid rgba(219, 228, 242, 0.9);
  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 rgba(219, 228, 242, 0.95);
  background: #ffffff;
}

.footer p {
  color: var(--muted);
}

.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: 991px) {
  .directory-hero {
    padding-top: 3.5rem;
  }

  .school-card-body {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .school-logo {
    margin: 0 auto;
  }

  .search-shell {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2.7rem;
  }

  .navbar-brand {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
  }
}
