/* ===== RESET ===== */
html, body, h1, h2, h3, p, ul, li, a, img, article, section, aside, footer, header, nav {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE STYLES ===== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f0f2f5;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  text-decoration: none;
  color: #3b82f6;
}

a:hover {
  text-decoration: underline;
}

/* ===== HEADER ===== */
header {
  width: 100%;
  background-color: #1f2937;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

header nav a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

header nav a:hover {
  color: #3b82f6;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 40px 0;
}

/* ===== POSTS ===== */
.posts {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.post img {
  width: 100%;
  display: block;
}

.text-box {
  padding: 20px;
  background-color: rgba(255,255,255,0.95);
}

.text-box h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: #111827;
}

.text-box .meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 15px;
}

.text-box p {
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  font-weight: 600;
}

/* ===== SIDEBAR ===== */
.sidebar {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.widget {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.widget h3 {
  margin-bottom: 15px;
  color: #111827;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background-color: #1f2937;
  color: #fff;
  border-top: 4px solid #3b82f6;
  margin-top: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
