/* ===== Nfifty Blog Page Styling ===== */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8fafc;
  color: #333;
  margin: 0;
  padding: 0;
}

header.site-header {
  background: #2c3e50;
  color: white;
  padding: 15px 0;
}

.header-inner {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo span {
  color: #4ca1af;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
}
.nav a:hover,
.nav a.active {
  color: #4ca1af;
}

.search input {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

/* Category Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}
.chip {
  background: #e2e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}
.chip.active,
.chip:hover {
  background: #4ca1af;
  color: white;
}

/* Blog Grid */
.content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-5px);
}
.thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 15px;
}
.card-title {
  font-size: 1.1rem;
  margin: 10px 0;
}
.card-excerpt {
  color: #666;
  font-size: 0.9rem;
}
.readmore {
  display: inline-block;
  margin-top: 10px;
  color: #4ca1af;
  text-decoration: none;
}
.readmore:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar .widget {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.sidebar h4 {
  margin-top: 0;
}
.sidebar input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Footer */
footer.site-footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ===== Single Blog Page Styling ===== */
.blog-single {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.blog-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.blog-thumb {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 25px;
}

.blog-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.blog-meta {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.blog-meta span {
  color: #4ca1af;
  font-weight: 600;
}

.blog-body {
  line-height: 1.7;
  color: #444;
  font-size: 1.05rem;
}

.blog-body h2,
.blog-body h3 {
  margin-top: 30px;
  color: #2c3e50;
}

.blog-body p {
  margin-bottom: 15px;
}

.blog-body a {
  color: #4ca1af;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .blog-single {
    grid-template-columns: 1fr;
  }
}


/* ===== Recent Posts Sidebar Thumbnails ===== */
.recent-thumbs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-thumbs li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.recent-thumbs li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.recent-thumbs li a:hover {
  color: #4ca1af;
}

.recent-thumbs img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.thumb-placeholder {
  width: 60px;
  height: 60px;
  background: #e2e8f0;
  border-radius: 8px;
  margin-right: 10px;
}

.recent-thumbs span {
  font-size: 0.9rem;
  line-height: 1.3;
  flex: 1;
}

