/* ======= GLOBAL STYLE ======= */
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(to bottom, #f8f9fa, #eef2f5);
  color: #0f2b44;
}

a {
  text-decoration: none;
  color: #163b63;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* ======= NAVBAR ======= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0f2b44;
  color: white;
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .nav-left a,
nav .nav-right a {
  color: white;
  margin: 0 1rem;
}

nav .nav-right a:hover {
  color: #ffc107;
}

/* ======= CONTAINER ======= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

h1, h2, h3 {
  font-family: "Georgia", serif;
}

/* ======= GRID ======= */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  margin-top: 2rem;
}

/* ======= CARDS ======= */
.module-card {
  background: #fdfcfb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 320px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.module-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 10px;
  background: #f8f8f8;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.module-card h2 {
  font-size: 1.2rem;
  margin: 1rem 0 0.3rem;
  color: #0f2b44;
}

.module-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}
.module-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background-color: #f8f8f8;
}

/* ======= FOOTER ======= */
footer {
  background-color: #0f2b44;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  position: relative;
}

