/* === Base Reset === */
* { box-sizing: border-box; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f6f8fb;
  color: #1a2233;
  min-height: 100vh;
}

/* === Top Navigation Bar === */
.topnav {
  background: #fff;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-right: 2.5rem;
}

nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  outline: none;
  transition: color 0.18s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav a:hover,
nav a:focus {
  color: #111;
  font-weight: 700;
  background: none;
  outline: none;
}

nav a.active {
  color: #111;
  font-weight: 700;
  background: none;
}

nav ul li {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(120deg, #e3ecfc 0%, #f6f8fb 100%);
  padding: 3.5rem 1rem 2.5rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.7rem;
  margin: 0 0 1rem 0;
  color: #23408e;
}
.hero p {
  font-size: 1.3rem;
  color: #4f5b7a;
  margin-bottom: 2rem;
}
.hero .search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero input[type="text"] {
  width: 350px;
  max-width: 90vw;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #d3d8e2;
  border-radius: 8px 0 0 8px;
  font-size: 1.1rem;
  outline: none;
}
.hero button {
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.hero button:hover {
  background: #23408e;
}

/* === Section Headings === */
.section {
  max-width: 1100px;
  margin: 2.5rem auto 2rem auto;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.section-title {
  font-size: 2rem;
  color: #23408e;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  border-left: 5px solid #4f8cff;
  padding-left: 1rem;
}

/* === Grid-based Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card-icon {
  font-size: 2rem;
  color: #4f46e5;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a2233;
  margin: 0 0 0.5rem 0;
}
.card-desc {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.card-badge {
  margin-top: 1rem;
  background: #f3f4f6;
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
}

/* === List Styles === */
ol, ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}
ol li, ul li {
  margin-bottom: 1rem;
  line-height: 1.7;
  background: #f7f9fc;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #4f8cff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 0 1.2rem 0;
  background: #e9ecf3;
  color: #555;
  font-size: 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid #d3d8e2;
}

/* === Responsive === */
@media (max-width: 900px) {
  .topnav { padding: 0 1rem; }
  .logo { margin-right: 1.2rem; }
  nav ul { gap: 1.2rem; }
  nav a { font-size: 0.95rem; }
  .section { padding: 1rem 0.3rem; }
  .section-title { font-size: 1.2rem; }
  .card { padding: 1rem 0.7rem; }
}
@media (max-width: 700px) {
  .topnav { flex-direction: column; min-height: unset; }
  nav ul { margin-top: 0.5rem; flex-wrap: wrap; gap: 0.7rem; }
  .logo { margin-bottom: 0.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* === Accessibility === */
.topnav nav a:focus {
  outline: 2px solid #4f8cff;
  outline-offset: 2px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .topnav {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.9rem;
  }
} 