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

/* ===== BODY ===== */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

/* ================= COMPONENT 1: NAVIGATION ================= */
.header {
  background-color: #333;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
}

.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* ================= COMPONENT 2: INFORMATION ================= */
.main-content {
  padding: 40px;
  text-align: center;
}

.main-content h1 {
  margin-bottom: 30px;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 20px;
  width: 250px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.card h2 {
  margin-bottom: 10px;
}

/* ================= COMPONENT 3: FOOTER ================= */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

  .menu-icon {
    display: block;
  }

  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #333;
    flex-direction: column;
    width: 200px;
    display: none;
  }

  .nav a {
    padding: 15px;
    border-top: 1px solid #444;
  }

  #menu-toggle:checked ~ .nav {
    display: flex;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }
}
