
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #333;
}

header {
  background-color: #1e2a38;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.video-heading {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #1e2a38;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-container {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

iframe {
  width: 100%;
  max-width: 960px;
  height: 500px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  text-align: center;
  border: 2px solid transparent;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card.active {
  border: 2px solid #007BFF;
  box-shadow: 0 4px 20px rgba(0,123,255,0.3);
}

.card img {
  width: 100%;
  height: auto;
}

.card p {
  padding: 0.8rem;
  font-weight: 600;
  color: #1e2a38;
}

footer {
  background: #1e2a38;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  iframe {
    height: 240px;
  }

  .video-heading {
    font-size: 1.2rem;
  }

  .grid {
    padding: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}
