/* Basic page container */
:root{
  --primary-900: #0c4a6e;
  --secondary-900: #4c1d95;
  --primary-500: #0ea5e9;
  --muted: #6b7280;
  --card-shadow: rgba(15, 23, 42, 0.08);
  --card-shadow-hover: rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #111827;
  background: #f8fafc;
  line-height: 1.45;
}

/* container */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* HERO */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 380px;
  margin-bottom: 48px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,74,110,0.85), rgba(76,29,149,0.85));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* content inside hero */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  color: white;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 12px;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 760px;
  margin: 0;
  opacity: 0.95;
}

/* CATEGORIES */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.category-btn {
  background: #e5e7eb;
  color: #374151;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
  display: inline-block;
  font-size: 0.95rem;
}

.category-btn:hover { background: #d1d5db; }
.category-btn.active { background: #bae6fd; color: var(--primary-900); }

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

/* responsive grid */
@media (min-width: 700px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* CARD */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px var(--card-shadow);
  transition: box-shadow 0.2s ease, transform 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 12px 30px var(--card-shadow-hover);
  transform: translateY(-4px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* meta row */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

/* title & excerpt */
.card-title {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: #0f172a;
  font-weight: 600;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }

.card-excerpt {
  color: #4b5563;
  margin: 0;
  margin-top: auto;
  font-size: 0.98rem;
}

/* PAGINATION */
.pagination {
  text-align: center;
  margin-top: 18px;
  padding: 18px 0;
}

.page-link {
  display: inline-block;
  margin: 0 10px;
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 600;
}

.page-info {
  display: inline-block;
  margin: 0 10px;
  color: var(--muted);
}

/* small helpers */
.hidden { display: none; }
.center { text-align: center; }
/* Layout */
.page-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    font-family: Inter, sans-serif;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 32px;
    font-size: 14px;
    color: #6b7280;
}
.breadcrumbs a {
    color: #0284c7;
    text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* Article Header */
.article-header { margin-bottom: 48px; }

.article-meta {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}
.category-pill {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}
.dot { margin: 0 12px; }

.article-title {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

/* Author */
.author-box {
    display: flex;
    align-items: center;
}
.author-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-right: 16px;
}
.author-name { font-weight: 600; color: #0f172a; }
.author-role { font-size: 14px; color: #6b7280; }

/* Featured Image */
.featured-image {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 48px;
    height: 380px;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: auto;
    margin-bottom: 60px;
    font-size: 18px;
    line-height: 1.7;
    color: #374151;
}

/* Related Posts */
.related-section { margin-bottom: 60px; }
.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    color: #1f2937;
}

.related-grid {
    display: grid;
    gap: 24px;
}
@media (min-width: 780px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.related-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.16); }

.related-card img { width: 100%; height: 180px; object-fit: cover; }
.related-body { padding: 18px; }
.related-body h3 { font-size: 20px; margin-bottom: 8px; }
.related-body p { color: #6b7280; margin-bottom: 12px; }
.read-more {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
}

/* Comments */
.comments-section { margin-top: 40px; }
.comment-list { margin-top: 20px; }

.comment-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.comment-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
}
.comment-author { font-weight: 600; color: #111; }
.comment-date { font-size: 14px; color: #6b7280; }
.comment-text { margin-top: 10px; color: #374151; }

.comment-reply {
    margin-left: 40px;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid #e5e7eb;
}
.reply-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.reply-author { font-weight: 600; }
.reply-date { color: #6b7280; }

/* Form */
.comment-form {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-top: 40px;
}
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }

.form-grid {
    display: grid;
    gap: 20px;
}
@media (min-width: 768px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}
input, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

