:root {
  --teal-dark: #0E2E2B;
  --teal: #1F4E4A;
  --teal-light: #2E6F68;
  --gold: #F2C14E;
  --ink: #1F1F1F;
  --cream: #FFF8F0;
  --gray: #6B6B6B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--teal-dark);
  padding: 18px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a {
  color: var(--gold);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { text-decoration: underline; }

.main-content { padding: 40px 20px; min-height: 60vh; }

.page-heading { font-size: 2rem; margin-bottom: 24px; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.post-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.post-card-body { padding: 16px 18px; }
.post-card-body h2 { font-size: 1.2rem; margin: 0; }
.post-card-body h2 a { color: var(--ink); text-decoration: none; }

.post-category-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
}
.pagination a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

/* Single post */
.single-post h1 { font-size: 2.2rem; margin: 12px 0 4px; }
.post-meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 20px; }
.post-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 24px;
}
.post-content { font-size: 1.05rem; line-height: 1.75; }
.post-body-card {
  background: #F3E9D8; /* slightly deeper than body's --cream, so it's visible but still feels like the same palette */
  border-radius: 5px;
  padding: 32px;
  margin-top: 8px;
}
.post-content p { margin: 0 0 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 24px; }
.post-content li { margin-bottom: 6px; }
.post-content li:last-child { margin-bottom: 0; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.post-content h2 { margin: 36px 0 14px; font-size: 1.5rem; }
.post-content h3 { margin: 28px 0 10px; font-size: 1.25rem; }
.post-content h2:first-child, .post-content h3:first-child { margin-top: 0; }
.post-content blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--gold);
  background: #faf6ee;
  font-style: italic;
  color: var(--gray);
}
.post-content strong { color: var(--ink); }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content th, .post-content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.post-content th { background: var(--teal); color: #fff; }

/* Related posts */
.related-posts {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}
.related-posts h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* Comments */
.comments-section { margin-top: 50px; border-top: 2px solid #eee; padding-top: 30px; }
.comment { background: #fff; padding: 16px; border-radius: 8px; margin-bottom: 14px; }
.comment-author { font-weight: 700; margin: 0 0 6px; }
.comment-date { font-weight: 400; color: var(--gray); font-size: 0.85rem; margin-left: 8px; }
.comment-body { margin: 0; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.comment-form button {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.form-note { font-size: 0.8rem; color: var(--gray); }
.form-message { background: var(--gold); padding: 10px 14px; border-radius: 6px; font-weight: 600; }

/* Newsletter box */
.newsletter-box {
  background: var(--teal);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.newsletter-box h3 { margin: 0 0 6px; font-size: 1.4rem; }
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  min-width: 260px;
  font-size: 1rem;
}
.newsletter-form button {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
/* Static pages (About, Contact, Privacy Policy) */
.static-page {
  background: #fff;
  border-radius: 10px;
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}
.static-page h1 { margin-top: 0; }
.static-page h2 { margin-top: 28px; }
.static-page ul { padding-left: 22px; }
.static-page li { margin-bottom: 6px; }

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form button {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
.footer-nav {
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-nav a:hover { text-decoration: underline; }

.site-footer {
  background: var(--teal-dark);
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Admin */
.admin-body { background: #f4f6f7; }
.admin-wrapper { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; font-size: 0.95rem; }
.admin-table th { background: var(--teal-dark); color: #fff; }
.status-badge { padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.status-published { background: #d4f4dd; color: #1a7a3a; }
.status-draft { background: #f0f0f0; color: #777; }
.status-pending { background: var(--gold); color: var(--ink); }
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-secondary { background: #e0e0e0; color: var(--ink); }
.admin-form input[type=text], .admin-form input[type=email], .admin-form select, .admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.admin-form label { font-weight: 700; display: block; margin-bottom: 6px; }
.login-box {
  max-width: 380px;
  margin: 100px auto;
  background: #fff;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.alert-error { background: #fbe4e1; color: #a83226; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }