/* =========================
   BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #222;
}

a {
  color: #4a4ae6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   LAYOUT
========================= */
.main-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  gap: 40px;
  padding: 40px 20px;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
}

.main {
  flex: 1;
  min-width: 0;
}

/* =========================
   SIDEBAR LEFT
========================= */
.site-header {
  text-align: center;
  margin-bottom: 30px;
}

.site-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.site-name {
  font-size: 1.2rem;
  margin: 0;
}

.site-desc {
  font-size: .9rem;
  color: #666;
}

.menu a {
  display: block;
  padding: 10px 0;
  font-size: .95rem;
  color: #333;
}

/* =========================
   SIDEBAR RIGHT
========================= */
.right-sidebar {
  font-size: .9rem;
}

/* =========================
   ARTICLE LIST (HOME)
========================= */
.article-list article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
  margin-bottom: 30px;
  overflow: hidden;
}

.article-header {
  display: flex;
  gap: 20px;
}

.article-image img {
  width: 260px;
  height: 180px;
  object-fit: cover;
}

.article-details {
  padding: 18px;
}

.article-title {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.article-time {
  font-size: .85rem;
  color: #777;
}

/* =========================
   SINGLE POST
========================= */
.single-article {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
}

.single-title {
  font-size: 2rem;
  margin: 0 0 10px;
}

.single-meta {
  font-size: .85rem;
  color: #777;
  margin-bottom: 20px;
}

.single-cover img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 30px;
}

.single-content {
  font-size: 1rem;
  line-height: 1.8;
}

.single-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .article-header {
    flex-direction: column;
  }

  .article-image img {
    width: 100%;
    height: auto;
  }
}
