* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f7fd;
  color: #1f2937;
}

header {
  background: #3b82f6;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-right: 12px;
  text-decoration: none;
  color: #e0edff;
  font-weight: bold;
}

nav a:last-child {
  margin-right: 0;
}

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 474;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-text {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #ffffff;
  text-align: left;
  max-width: 90%;
}

.hero-text h2 {
  margin: 0;
  font-size: 28px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.hero-text p {
  margin-top: 6px;
  font-size: 16px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  text-align: center;
}

.form {
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form input,
.form select,
.form button {
  padding: 10px;
  font-size: 14px;
}

.form button {
  background: #3b82f6;
  border: none;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  border-radius: 6px;
}

footer {
  background: #3b82f6;
  text-align: center;
  padding: 15px;
  margin-top: 50px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-text h2 {
    font-size: 20px;
  }

  .hero-text p {
    font-size: 14px;
  }
}