/*
Theme Name: Nuance Theme
*/

body.page .page-hero + #primary {
  margin-top: 58px;
}
html, body {
  overflow-x: hidden;
}
body.page-template-default #primary {
  margin-bottom: 58px;
}


body.single-post footer.comment-meta {
    display: none;
}


/*  Blog Css */ 
/* BLOG SECTION */
.blog-section {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
}

/* IMAGE */
.blog-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENT */
.blog-content {
  padding: 20px;
}

.blog-date {
  font-size: 13px;
  color: #999;
  display: block;
  margin-bottom: 8px;
}

.blog-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.blog-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* READ MORE */
.read-more {
  font-weight: 600;
  color: #1e3a8a;
}

/* PAGINATION */
.blog-pagination {
  margin-top: 50px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}





/*  Single post css */
/* ============================================
   SINGLE POST LAYOUT
   ============================================ */
.single-post-section {
  padding: 70px 0 90px;
  background: #f8f8f6;
}

.single-post-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ============================================
   POST MAIN CONTENT
   ============================================ */
.post-article {
  background: #fff;
  border-radius: 12px;
  padding: 44px 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ebebeb;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}

.post-meta-item svg {
  color: var(--brown-lt, #b08d6a);
  flex-shrink: 0;
}

.post-meta-item a {
  color: inherit;
  text-decoration: none;
}

.post-meta-item a:hover {
  color: var(--brown-lt, #b08d6a);
}

.post-content-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: #333;
}

.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
  margin: 36px 0 14px;
  color: #1a1a1a;
  font-weight: 700;
}

.post-content-body p {
  margin-bottom: 20px;
}

.post-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.post-content-body ul,
.post-content-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.post-content-body li {
  margin-bottom: 8px;
}

.post-content-body a {
  color: var(--brown-lt, #b08d6a);
  text-decoration: underline;
}

.post-content-body blockquote {
  border-left: 4px solid var(--brown-lt, #b08d6a);
  padding: 16px 24px;
  margin: 28px 0;
  background: #faf8f5;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

/* Tags */
.post-tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tags-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-right: 4px;
}

.tag-item {
  display: inline-block;
  padding: 5px 13px;
  background: #f2ede8;
  color: #7a5c3f;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.tag-item:hover {
  background: var(--brown-lt, #b08d6a);
  color: #fff;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  padding: 28px;
  background: #faf8f5;
  border-radius: 10px;
  border: 1px solid #ede8e2;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.author-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.author-bio {
  font-size: 14px;
  color: #777;
  margin: 0;
  line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #ebebeb;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #f8f7f5;
  border-radius: 10px;
  border: 1px solid #ebebeb;
  text-decoration: none;
  transition: all 0.25s;
}

.post-nav-link:hover {
  background: var(--brown-lt, #b08d6a);
  border-color: var(--brown-lt, #b08d6a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176,141,106,0.25);
}

.post-nav-next {
  text-align: right;
}

.nav-direction {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-lt, #b08d6a);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.25s;
}

.post-nav-next .nav-direction {
  justify-content: flex-end;
}

.post-nav-link:hover .nav-direction {
  color: rgba(255,255,255,0.85);
}

.nav-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}

.post-nav-link:hover .nav-title {
  color: #fff;
}

/* ============================================
   SIDEBAR
   ============================================ */
.single-post-sidebar {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brown-lt, #b08d6a);
  position: relative;
}

/* Latest Posts */
.latest-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-post-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
}

.latest-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.latest-post-link {
  display: flex;
  gap: 14px;
  text-decoration: none;
  align-items: flex-start;
}

.latest-post-thumb {
  width: 72px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0ece6;
}

.latest-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.latest-post-link:hover .latest-post-thumb img {
  transform: scale(1.08);
}

.latest-post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0b0a0;
}

.latest-post-info {
  flex: 1;
  min-width: 0;
}

.latest-post-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 7px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.latest-post-link:hover .latest-post-title {
  color: var(--brown-lt, #b08d6a);
}

.latest-post-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #aaa;
}

.latest-post-date svg {
  flex-shrink: 0;
  color: var(--brown-lt, #b08d6a);
}

/* Categories */
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  background: #f8f7f5;
}

.category-item a:hover {
  background: var(--brown-lt, #b08d6a);
  color: #fff;
}

.cat-count {
  background: #ede8e2;
  color: #7a5c3f;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.2s;
}

.category-item a:hover .cat-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Search Widget */
.sidebar-search-form {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #e0dbd5;
  transition: border-color 0.2s;
}

.sidebar-search-form:focus-within {
  border-color: var(--brown-lt, #b08d6a);
}

.sidebar-search-form input {
  flex: 1;
  padding: 11px 14px;
  border: none;
  outline: none;
  font-size: 14px;
  background: #fff;
  color: #333;
}

.sidebar-search-form button {
  padding: 0 16px;
  background: var(--brown-lt, #b08d6a);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.sidebar-search-form button:hover {
  background: #8a6845;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .single-post-wrapper {
    grid-template-columns: 1fr 290px;
    gap: 28px;
  }

  .post-article {
    padding: 32px 30px;
  }
}

@media (max-width: 768px) {
  .single-post-wrapper {
    grid-template-columns: 1fr;
  }

  .single-post-sidebar {
    position: static;
  }

  .post-article {
    padding: 24px 20px;
  }

  .page-hero {
    min-height: 300px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .single-post-section {
    padding: 40px 0 60px;
  }

  .post-meta-bar {
    gap: 12px;
  }

  .post-content-body {
    font-size: 15.5px;
  }
}


