@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  background: #fafaf9;
  color: #292524;
  line-height: 1.6;
}

a {
  color: #c2410c;
  text-decoration: none;
}
a:hover {
  color: #9a3412;
}

/* ── Blog Header ────────────────────────── */
.blog-header {
  background: #fff;
  border-bottom: 1px solid #e7e5e4;
}
.blog-header-top {
  border-bottom: 1px solid #f5f5f4;
}
.blog-header-top-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.blog-header-date {
  font-size: 0.75rem;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.blog-logo {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: -0.3px;
}
.blog-logo:hover {
  color: #c2410c;
  text-decoration: none;
}
.blog-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}
.blog-header-actions > a:first-child {
  color: #78716c;
}
.blog-header-actions > a:first-child:hover {
  color: #1c1917;
}
.blog-header-bottom {
  padding: 16px 24px;
  text-align: center;
}
.blog-header-bottom-inner {
  max-width: 720px;
  margin: 0 auto;
}
.blog-tagline {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.05rem;
  color: #78716c;
  font-style: italic;
  line-height: 1.5;
}

/* ── Blog Nav ───────────────────────────── */
.blog-nav {
  background: #fff;
  border-bottom: 1px solid #e7e5e4;
  position: sticky;
  top: 0;
  z-index: 90;
}
.blog-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  position: relative;
}
.blog-nav-link {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #57534e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.blog-nav-link:hover {
  color: #c2410c;
  text-decoration: none;
  border-bottom-color: #c2410c;
}
.blog-nav-search {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #a8a29e;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
}
.blog-nav-search:hover {
  color: #57534e;
}
.blog-nav-search-input {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  font-size: 0.84rem;
  font-family: inherit;
  width: 200px;
  background: #fafaf9;
  color: #1c1917;
}
.blog-nav-expanded .blog-nav-search-input {
  display: block;
}
.blog-nav-search-input:focus {
  outline: none;
  border-color: #c2410c;
}

/* ── Blog Buttons ───────────────────────── */
.blog-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #c2410c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  justify-content: center;
}
.blog-btn:hover {
  background: #9a3412;
  color: #fff;
  text-decoration: none;
}
.blog-btn-sm {
  padding: 5px 14px;
  font-size: 0.76rem;
  border-radius: 5px;
}

/* ── Blog Container ─────────────────────── */
.blog-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 32px;
}

/* ── Layout (shared with content) ───────── */
.mod-two-col {
  display: flex;
  gap: 32px;
}
.mod-main {
  flex: 1;
  min-width: 0;
}

/* ── Breadcrumb ─────────────────────────── */
.mod-breadcrumb {
  font-size: 0.76rem;
  color: #a8a29e;
  padding: 0 0 16px;
}
.mod-breadcrumb a {
  color: #78716c;
}
.mod-breadcrumb a:hover {
  color: #c2410c;
}
.mod-breadcrumb span {
  color: #1c1917;
  font-weight: 500;
}

/* ── Page Title & Stat ──────────────────── */
.mod-page-title {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 6px;
}
.mod-stat {
  font-size: 0.78rem;
  color: #a8a29e;
}

/* ── Hero ───────────────────────────────── */
.mod-hero {
  margin-bottom: 28px;
}

/* ── Post Card ──────────────────────────── */
.mod-post-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mod-post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.mod-post-card-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mod-post-card-image {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 50%, #fdba74 100%);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.mod-post-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(194,65,12,0.06), rgba(234,88,12,0.03));
}
.mod-post-card-hero .mod-post-card-image {
  min-height: 100%;
}
.mod-post-card-body {
  padding: 20px;
}
.mod-post-card-hero .mod-post-card-body {
  padding: 28px;
}
.mod-post-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c2410c;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.mod-post-card-cat:hover {
  color: #9a3412;
  text-decoration: none;
}
.mod-post-card-title {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.mod-post-card-hero .mod-post-card-title {
  font-size: 1.45rem;
}
.mod-post-card-title a {
  color: #1c1917;
}
.mod-post-card-title a:hover {
  color: #c2410c;
  text-decoration: none;
}
.mod-post-card-excerpt {
  font-size: 0.88rem;
  color: #57534e;
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: #a8a29e;
  margin-bottom: 10px;
}
.mod-post-card-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mod-post-card-author:hover {
  text-decoration: none;
}
.mod-post-card-author .mod-post-header {
  margin-bottom: 0;
}
.mod-post-card-author .mod-post-username {
  font-size: 0.7rem;
}
.mod-post-card-author .mod-avatar {
  width: 28px;
  height: 28px;
}

/* ── Blog Grid ──────────────────────────── */
.mod-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Tags ───────────────────────────────── */
.mod-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mod-tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  transition: all 0.15s;
}
a.mod-tag-pill:hover {
  background: #c2410c;
  color: #fff;
  text-decoration: none;
  border-color: #c2410c;
}

/* ── Article ────────────────────────────── */
.mod-article {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  overflow: hidden;
}
.mod-article-header {
  padding: 32px 32px 0;
}
.mod-article-title {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1c1917;
  margin: 10px 0 20px;
}
.mod-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.mod-article-meta .mod-post-header {
  margin-bottom: 0;
}
.mod-article-body {
  padding: 8px 32px 32px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #44403c;
}
.mod-article-body h2 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1c1917;
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f5f5f4;
}
.mod-article-body h3 {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #292524;
  margin: 24px 0 8px;
}
.mod-article-body p {
  margin-bottom: 16px;
}
.mod-article-body ul {
  margin: 8px 0 18px 22px;
}
.mod-article-body li {
  margin-bottom: 6px;
}
.mod-article-body a {
  color: #c2410c;
  border-bottom: 1px solid #fed7aa;
}
.mod-article-body a:hover {
  border-bottom-color: #c2410c;
}
.mod-article-body strong {
  color: #1c1917;
}
.mod-article-footer {
  padding: 0 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.mod-article-header .mod-tags {
  margin-bottom: 4px;
}

/* ── Share ──────────────────────────────── */
.mod-share {
  display: flex;
  gap: 16px;
}

/* ── Comments ───────────────────────────── */
.mod-comments-section {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
}
.mod-comments-title {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1c1917;
  padding: 16px 24px;
  border-bottom: 1px solid #f5f5f4;
}
.mod-comment {
  padding: 20px 24px;
  border-bottom: 1px solid #f5f5f4;
}
.mod-comment:last-child {
  border-bottom: none;
}

/* ── Author Card (post page) ────────────── */
.mod-author-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.mod-author-card-link {
  flex-shrink: 0;
}
.mod-author-card-link:hover {
  text-decoration: none;
}
.mod-author-card-link .mod-post-header {
  margin-bottom: 0;
}
.mod-author-bio {
  font-size: 0.82rem;
  color: #78716c;
  line-height: 1.6;
}

/* ── Author Profile (author page) ───────── */
.mod-author-profile {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 8px;
}
.mod-author-profile .mod-page-title {
  margin-bottom: 4px;
}

/* ── Blog Sidebar ───────────────────────── */
.blog-sidebar {
  width: 320px;
  min-width: 320px;
}
.blog-sidebar-block {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.blog-sidebar-label {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1c1917;
  padding: 14px 18px;
  border-bottom: 1px solid #f5f5f4;
  letter-spacing: 0.3px;
}
.blog-sidebar-about {
  padding: 16px 18px 8px;
  font-size: 0.82rem;
  color: #78716c;
  line-height: 1.6;
}
.blog-sidebar-more {
  display: block;
  padding: 0 18px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c2410c;
}
.blog-sidebar-more:hover {
  color: #9a3412;
}
.blog-sidebar-cats {
  list-style: none;
  padding: 8px 0;
}
.blog-sidebar-cats li {
  padding: 0;
}
.blog-sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 18px;
  font-size: 0.82rem;
  color: #44403c;
  transition: background 0.12s;
}
.blog-sidebar-cats a:hover {
  background: #fafaf9;
  color: #c2410c;
  text-decoration: none;
}
.blog-sidebar-cats span {
  font-size: 0.72rem;
  color: #a8a29e;
  background: #f5f5f4;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.blog-sidebar-post {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f5f5f4;
  transition: background 0.12s;
}
.blog-sidebar-post:last-child {
  border-bottom: none;
}
.blog-sidebar-post:hover {
  background: #fafaf9;
  text-decoration: none;
}
.blog-sidebar-post-image {
  width: 60px;
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  flex-shrink: 0;
}
.blog-sidebar-post-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.blog-sidebar-post-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-sidebar-post:hover .blog-sidebar-post-title {
  color: #c2410c;
}
.blog-sidebar-post-meta {
  font-size: 0.7rem;
  color: #a8a29e;
}
.blog-sidebar-tags {
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  transition: all 0.15s;
}
.blog-tag:hover {
  background: #c2410c;
  color: #fff;
  text-decoration: none;
  border-color: #c2410c;
}

/* ── Avatar ─────────────────────────────── */
.mod-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e7e5e4;
}
.mod-avatar-lg {
  width: 56px;
  height: 56px;
}
.mod-avatar-xl {
  width: 80px;
  height: 80px;
}

/* ── Post/comment shared ────────────────── */
.mod-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.mod-post-user {
  flex: 1;
}
.mod-post-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1c1917;
}
.mod-post-username {
  font-size: 0.75rem;
  color: #a8a29e;
}
.mod-post-time {
  font-size: 0.72rem;
  color: #a8a29e;
  margin-left: 52px;
}
.mod-post-body {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #57534e;
}
.mod-post-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f5f5f4;
  margin-left: 52px;
}
.mod-post-action {
  font-size: 0.78rem;
  color: #a8a29e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mod-post-action:hover {
  color: #c2410c;
}

/* ── Blog Footer ────────────────────────── */
.blog-footer {
  background: #1c1917;
  color: #a8a29e;
  font-size: 0.82rem;
  margin-top: 48px;
}
.blog-footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding: 48px 24px 36px;
}
.blog-footer-brand {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fafaf9;
  margin-bottom: 10px;
}
.blog-footer-about {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #78716c;
}
.blog-footer-title {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fafaf9;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.blog-footer-links {
  list-style: none;
}
.blog-footer-links li {
  margin-bottom: 8px;
}
.blog-footer-links a {
  color: #a8a29e;
  font-size: 0.8rem;
}
.blog-footer-links a:hover {
  color: #fafaf9;
}
.blog-footer-input {
  padding: 8px 12px;
  border: 1px solid #44403c;
  border-radius: 5px;
  font-size: 0.82rem;
  font-family: inherit;
  background: #292524;
  color: #fafaf9;
  width: 100%;
  min-width: 0;
}
.blog-footer-input:focus {
  outline: none;
  border-color: #c2410c;
}
.blog-footer-input::placeholder {
  color: #78716c;
}
.blog-footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #292524;
  font-size: 0.74rem;
  color: #78716c;
}
.blog-footer-bottom a {
  color: #a8a29e;
}
.blog-footer-bottom a:hover {
  color: #fafaf9;
}

/* ── Auth Modal ─────────────────────────── */
.blog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-modal {
  background: #fff;
  border-radius: 12px;
  width: 420px;
  max-width: 95vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  overflow: hidden;
}
.blog-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf9;
  padding: 0;
  border-bottom: 1px solid #e7e5e4;
}
.blog-modal-tabs {
  display: flex;
}
.blog-modal-tab {
  padding: 16px 28px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a8a29e;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.blog-modal-tab:hover {
  color: #78716c;
}
.blog-modal-tab.active {
  color: #c2410c;
  border-bottom-color: #c2410c;
}
.blog-modal-close {
  padding: 16px 24px;
  cursor: pointer;
  font-size: 1.4rem;
  color: #a8a29e;
  line-height: 1;
}
.blog-modal-close:hover {
  color: #ef4444;
}
.blog-modal-body {
  padding: 28px;
}
.blog-auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #44403c;
  margin: 16px 0 6px;
}
.blog-auth-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.blog-auth-form input:focus {
  outline: none;
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194,65,12,0.1);
}
.blog-auth-form button {
  margin-top: 20px;
}

/* ── Empty state ────────────────────────── */
.mod-empty {
  padding: 40px 20px;
  text-align: center;
  color: #a8a29e;
  font-size: 0.9rem;
}

/* ── Card (generic) ─────────────────────── */
.mod-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .blog-header-top-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .blog-header-date {
    display: none;
  }
  .blog-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .blog-nav-search {
    display: none;
  }
  .blog-container {
    padding: 20px 16px 24px;
  }
  .mod-two-col {
    flex-direction: column;
  }
  .blog-sidebar {
    width: 100%;
    min-width: 100%;
  }
  .mod-blog-grid {
    grid-template-columns: 1fr;
  }
  .mod-post-card-hero {
    grid-template-columns: 1fr;
  }
  .mod-post-card-hero .mod-post-card-image {
    min-height: 200px;
  }
  .mod-article-title {
    font-size: 1.35rem;
  }
  .mod-article-header,
  .mod-article-body,
  .mod-article-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .mod-article-body {
    font-size: 0.95rem;
  }
  .mod-author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mod-author-card {
    flex-direction: column;
    text-align: center;
  }
  .mod-post-time {
    margin-left: 0;
  }
  .mod-post-actions {
    margin-left: 0;
  }
  .blog-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 20px 24px;
  }
  .blog-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
