body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffe5e5, #fff0f0);
  color: #2b2b2b;
  line-height: 1.7;
}

/* === NAVIGATION BAR (VERTICAL) === */
nav {
  width: 250px;
  background: #c62828; /* dark red */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  height: 100vh;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 20px;
  transition: 0.3s;
  border-radius: 5px;
  margin: 5px 10px;
}

nav a:hover {
  background: #f44336;
  color: #fff;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: relative;
  background: #b71c1c;
  margin-left: 10px;
  border-radius: 5px;
}

.dropdown:hover > .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 10px 20px;
  color: #fff;
  font-weight: 500;
  margin: 3px 0;
}

.dropdown-menu a:hover {
  background: #e53935;
}

/* === MAIN SECTION === */
main {
  flex: 1;
  padding: 40px;
}

header {
  background: linear-gradient(135deg, #f44336, #ff7961);
  color: #fff;
  padding: 40px 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  margin-bottom: 20px;
  text-align: center;
}

header img {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  margin-bottom: 10px;
  border: 3px solid #fff;
}

h2 {
  color: #c62828;
  border-left: 6px solid #e53935;
  padding-left: 12px;
  margin-bottom: 20px;
}

p {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 20px;
}

footer {
  text-align: center;
  background: #c62828;
  color: #fff;
  padding: 20px;
  font-size: 0.95em;
  margin-top: 40px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.2);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
  }

  nav ul {
    display: flex;
    flex-direction: row;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-left: 0;
  }
}
