/* CSS Reset for consistency across browsers */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  color: #222;
  padding: 20px;
}

/* Header styling */
header {
  background: #4e89ae;
  color: #fff;
  padding: 20px;
  border-radius: 10px; /* Rounded corner */
}

/* Navigation styling */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  background: #43658b;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: #ed6663;
}

/* Main post styling */
article {
  background: #fff;
  padding: 16px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* List styling */
section ul {
  margin: 10px 0 10px 20px;
}

/* Example use of ID and class */
#aboutText {
  color: #43658b;
  font-weight: bold;
}

.highlight {
  background: #ffe066;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Float and Clear Example */
img {
  float: left;
  margin-right: 16px;
  width: 150px;
  height: auto;
  border-radius: 10px;
}
article:after {
  content: "";
  display: table;
  clear: both; /* Clear floated image */
}

/* Footer styling */
footer {
  margin-top: 40px;
  color: #888;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 900px) {
  body {
    padding: 10px;
  }
  nav ul {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  header, article {
    padding: 10px;
  }
  img {
    width: 100px;
  }
}
