/* Reset & base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #007BFF;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 20px 0;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

header nav {
  margin-top: 10px;
}

header nav a {
  margin-right: 20px;
  font-weight: 500;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #007BFF, #00C6FF);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
}

/* About Section */
.about {
  background-color: #fff;
  padding: 40px 0;
}

.about h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Blog Previews */
.latest-posts {
  background-color: #f0f0f0;
  padding: 40px 0;
}

.latest-posts h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  background-color: white;
  padding: 20px;
  border-left: 5px solid #007BFF;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  font-size: 14px;
}

/* Responsive Design */
@media (min-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header nav {
    margin-top: 0;
  }

  .post-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .post-card {
    flex: 1 1 45%;
  }
}
