* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Slider */
.slider {
  background: #eafaf1;
  padding: 20px;
  overflow: hidden;
  text-align: center;
  font-size: 1.2rem;
}

.slides .slide {
  display: none;
  transition: opacity 0.5s;
}
.slides .current {
  display: block;
}

/* Blog Posts */
.main-content {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.post-card {
  background-color: white;
  padding: 20px;
  border-left: 5px solid #27ae60;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.post-card h2 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.post-card a {
  text-decoration: none;
  color: #27ae60;
  font-weight: bold;
}

.ad {
  text-align: center;
  background: #ddd;
  padding: 15px;
  font-weight: bold;
  border-radius: 6px;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
}

footer a {
  color: #1abc9c;
  text-decoration: none;
}

/* Responsive */

/* Mobile Nav Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: relative;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #34495e;
    flex-direction: column;
    display: none;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    margin: 10px 0;
  }
}

