/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* === Header === */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.trust-name h1 {
  font-size: 1.6rem;
  color: #333;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav ul li a {
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 100vh;
  background: url('static/hero.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 10px;
}

.hero-overlay h2 {
  color: white;
  font-size: 2.5rem;
  text-align: center;
}

/* === Main Section === */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

section p {
  margin-bottom: 15px;
}

/* === Footer === */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* === Button === */
.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056b3;
}

/* === Institution Cards (Institutions Page) === */
/* === Featured Institutions (Home Page) === */
.institution-grid.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.institution-grid.three-col .institution-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.institution-grid.three-col .institution-card:hover {
  transform: translateY(-5px);
}

.institution-grid.three-col .institution-card img {
  width: 100%;
  height: 200px; /* Fix height for uniformity */
  object-fit: cover;
  display: block;
}

.institution-grid.three-col .institution-card .info {
  padding: 20px;
  text-align: center;
}

.institution-grid.three-col .institution-card .info h3 {
  color: #007bff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.institution-grid.three-col .institution-card .info p {
  font-size: 0.95rem;
  color: #555;
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.institution-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.institution-card:hover {
  transform: translateY(-5px);
}

.institution-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.institution-card .info {
  padding: 15px;
}

.institution-card .info h3 {
  margin-bottom: 10px;
  color: #007bff;
}

/* === Contact Form === */
form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    margin-top: 15px;
    gap: 10px;
  }

  .hero-overlay h2 {
    font-size: 2rem;
  }

  .trust-name h1 {
    font-size: 1.4rem;
  }
}
