:root {
  color-scheme: light;
  --navy: #0b2d4d;
  --blue: #1f5fa0;
  --sky: #e8f1fb;
  --accent: #f4b740;
  --text: #122033;
  --muted: #5f6b7a;
  --card: #ffffff;
  --border: #d8e1ec;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}

body {
  background: #f7f9fc;
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background: var(--navy);
  color: #fff;
  padding: 1.25rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  border-bottom-color: var(--accent);
}

.hero {
  padding: 4.5rem 6vw;
  background: linear-gradient(120deg, rgba(31, 95, 160, 0.15), rgba(244, 183, 64, 0.2)), url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=60") center/cover;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 640px;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 620px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: #1b2230;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

section {
  padding: 3rem 6vw;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(11, 45, 77, 0.08);
  border: 1px solid var(--border);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 1rem;
}

.list-item {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.search-bar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-bar input {
  border-radius: 999px;
}

footer {
  padding: 2rem 6vw;
  background: #0e233a;
  color: #dfe7f1;
}

footer .grid {
  align-items: start;
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #b4c4d6;
}

.highlight {
  background: var(--sky);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

.student-stories {
  background: #f0f6ff;
}

.student-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
}

.student-scroll::-webkit-scrollbar {
  height: 10px;
}

.student-scroll::-webkit-scrollbar-thumb {
  background: rgba(31, 95, 160, 0.4);
  border-radius: 999px;
}

.student-scroll::-webkit-scrollbar-track {
  background: rgba(31, 95, 160, 0.1);
  border-radius: 999px;
}

.student-card {
  min-width: 230px;
  max-width: 260px;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 14px 24px rgba(11, 45, 77, 0.08);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.4rem;
  scroll-snap-align: start;
}

.student-card:focus-visible {
  outline: 3px solid rgba(244, 183, 64, 0.6);
  outline-offset: 2px;
}

.student-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.student-detail {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

.student-tag {
  color: var(--muted);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 32, 51, 0.65);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  max-width: 560px;
  width: min(90vw, 560px);
  box-shadow: 0 20px 40px rgba(11, 45, 77, 0.25);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--sky);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-story {
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  header nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  header.nav-open nav {
    max-height: 320px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }

}
