/* ===== General ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

/* ===== Navbar ===== */
.topnav {
  overflow: hidden;
  background-color: #2c3e50;
}

.topnav a {
  float: left;
  display: block;
  color: #f4f4f4;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.topnav a.logo {
  font-size: 1.5em;
  font-weight: bold;
}

.topnav a.active {
  background-color: #1abc9c;
  color: white;
}

.topnav a:hover {
  background-color: #16a085;
  color: white;
}

.topnav .icon {
  display: none;
}

/* Responsive toggle */
@media screen and (max-width: 768px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* ===== Hero Section ===== */
.hero {
  background: url('https://source.unsplash.com/1600x500/?education') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2.5em;
}

.hero p {
  font-size: 1.2em;
}

.btn {
  display: inline-block;
  background-color: #1abc9c;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #16a085;
}

.btn.secondary {
  background-color: #3498db;
}

.btn.secondary:hover {
  background-color: #2980b9;
}

/* ===== Cards ===== */
.card {
  background: white;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== Grid Layouts ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.staff, .grid figure {
  text-align: center;
}

.staff figure img, .grid figure img {
  width: 100%;
  border-radius: 5px;
}

.grid figure figcaption, .staff figure figcaption {
  margin-top: 5px;
  font-size: 0.9em;
  color: #555;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

table th {
  background-color: #1abc9c;
  color: white;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* ===== Forms ===== */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button, input[type="submit"] {
  background-color: #1abc9c;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
}

button:hover, input[type="submit"]:hover {
  background-color: #16a085;
}

/* ===== Footer ===== */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}

.meta {
  color: #777;
  font-size: 0.9em;
}

address {
  font-style: normal;
}

/* ===== Responsive Images ===== */
img {
  max-width: 100%;
  height: auto;
}