body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  background: #f8f8ff;
  color: #333;
}
nav {
  background: #36344D;
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 70px;
}
nav img {
  height: 52px;
}
nav ul {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 24px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 5px 10px;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li.active a {
  background: #673DE6;
  color: #fff;
  border-radius: 5px;
}
.hero {
  background: url('https://images.unsplash.com/photo-1582719478173-6aa6d5206fa5?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  min-height: 60vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
  padding: 80px 20px 60px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin: 0.2em 0;
}
.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 20px auto;
}
.btn {
  background: #673DE6;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  padding: 12px 32px;
  margin: 15px auto;
  display: inline-block;
  font-size: 1.15em;
  transition: background 0.2s;
}
.btn:hover {
  background: #472bb5;
}
section {
  padding: 60px 16px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
h2 {
  color: #36344d;
  font-size: 2.3rem;
  margin-bottom: 26px;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 320px;
  overflow: hidden;
  text-align: left;
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.card-body {
  padding: 18px;
}
.card-body h3 {
  color: #673DE6;
  font-size: 1.3rem;
  margin: 0 0 8px 0;
}
footer {
  background: #36344D;
  color: #fff;
  text-align: center;
  padding: 28px 12px;
  font-size: 1.05em;
  margin-top: 40px;
}
footer a {
  color: #fff;
  text-decoration: underline;
  margin: 0 10px;
}
@media (max-width: 900px) {
  .grid { flex-direction: column; align-items: center; }
  nav ul { gap: 10px; }
  .card { width: 97vw; max-width: 340px;}
}
