/* =================================================================
   BLOG (PUBLIC) — uses tokens defined in main.css / services.css
   ================================================================= */

/* ---------- LAYOUT ---------- */
.blog-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-side { position: sticky; top: 90px; }

@media (max-width: 960px) {
  .blog-wrap { grid-template-columns: 1fr; }
  .blog-side { position: static; }
}

/* ---------- TOOLBAR ---------- */
.blog-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 28px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.blog-toolbar-info { font-size: 0.86rem; color: var(--gray-600); margin-right: auto; }
.blog-toolbar-info strong { color: var(--gov-blue); }
.blog-search { position: relative; flex: 1; min-width: 220px; max-width: 400px; }
.blog-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.blog-search input:focus { border-color: var(--gov-blue); box-shadow: 0 0 0 3px rgba(0,32,96,.08); }
.blog-search svg {
  position: absolute; top: 50%; left: 14px;
  transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--gray-500);
}

/* ---------- FEATURED ---------- */
.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .25s;
}
.blog-featured:hover { box-shadow: var(--shadow-lg); }
.blog-featured-img {
  aspect-ratio: 16/11;
  background: var(--gray-100);
  position: relative; overflow: hidden;
}
.blog-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-pin {
  position: absolute; top: 16px; left: 16px;
  background: var(--saffron);
  color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-featured-body {
  padding: 36px 32px; display: flex; flex-direction: column; justify-content: center;
}
.blog-featured-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--gov-blue);
  line-height: 1.25; margin: 12px 0 14px;
}
.blog-featured-body h2 a { color: inherit; text-decoration: none; transition: color .15s; }
.blog-featured-body h2 a:hover { color: var(--saffron); }
.blog-featured-body p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 22px; }

@media (max-width: 720px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 24px 22px 28px; }
}

/* ---------- POST GRID ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gov-blue-50), var(--gray-100));
  overflow: hidden; position: relative;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(0,32,96,.18);
}
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.blog-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gov-blue-50);
  color: var(--gov-blue);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.blog-tag:hover { background: var(--gov-blue); color: var(--white); }
.blog-tag.tag-saffron { background: rgba(232,119,34,.1); color: var(--saffron); }
.blog-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gov-blue);
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card-body h3 a { color: inherit; text-decoration: none; transition: color .15s; }
.blog-card-body h3 a:hover { color: var(--saffron); }
.blog-card-body p {
  font-size: 0.86rem; color: var(--gray-600); line-height: 1.65;
  margin-bottom: 16px; flex-grow: 1;
}
.blog-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--gray-100);
  font-size: 0.78rem; color: var(--gray-500);
}
.blog-card-foot .read-more {
  color: var(--saffron); font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.blog-card-foot .read-more:hover { gap: 8px; }

/* ---------- EMPTY ---------- */
.blog-empty {
  text-align: center; padding: 70px 20px;
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-xl);
}
.blog-empty .icon { font-size: 3rem; margin-bottom: 12px; opacity: .55; }
.blog-empty h3 { font-size: 1.1rem; color: var(--gov-blue); margin-bottom: 8px; }
.blog-empty p { color: var(--gray-500); font-size: 0.9rem; }

/* ---------- SIDEBAR ---------- */
.bs-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 22px;
}
.bs-card h4 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--saffron);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.bs-card h4::before { content: ''; width: 22px; height: 2px; background: var(--saffron); border-radius: 2px; }

.bs-svc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 480px; overflow-y: auto; }
.bs-svc-list a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.85rem;
  transition: background .15s, color .15s;
}
.bs-svc-list a:hover { background: var(--gov-blue-50); color: var(--gov-blue); }
.bs-svc-list a.active { background: var(--gov-blue); color: var(--white); font-weight: 600; }
.bs-svc-list a.active .bs-count { background: rgba(255,255,255,.2); color: var(--white); }
.bs-svc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-count {
  background: var(--gray-100); color: var(--gray-700);
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 50px; flex-shrink: 0;
}

.bs-recent-list { display: flex; flex-direction: column; gap: 14px; }
.bs-recent-item { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.bs-recent-item .img {
  width: 70px; height: 70px;
  background: var(--gov-blue-50);
  border-radius: var(--radius); overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,32,96,.4); font-size: 1.4rem;
}
.bs-recent-item .img img { width: 100%; height: 100%; object-fit: cover; }
.bs-recent-item .body { min-width: 0; }
.bs-recent-item h5 {
  font-size: 0.86rem; color: var(--gov-blue);
  font-weight: 600; line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.bs-recent-item:hover h5 { color: var(--saffron); }
.bs-recent-item .date { font-size: 0.72rem; color: var(--gray-500); }

.bs-cta {
  background: linear-gradient(135deg, var(--gov-blue-dark), var(--gov-blue));
  color: var(--white);
  border: none;
}
.bs-cta h4 { color: var(--saffron); }
.bs-cta p { font-size: 0.86rem; line-height: 1.65; opacity: .9; margin-bottom: 16px; }

/* ---------- PAGINATION ---------- */
.blog-pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 40px; flex-wrap: wrap;
}
.blog-pagination a, .blog-pagination span {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-100);
  transition: all .15s;
}
.blog-pagination a:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.blog-pagination .active { background: var(--gov-blue); color: var(--white); border-color: var(--gov-blue); }
.blog-pagination .disabled { opacity: .4; pointer-events: none; }


/* =================================================================
   BLOG DETAIL
   ================================================================= */
.bd-hero { padding: 56px 0 90px; }
.bd-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.bd-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  color: var(--white);
  line-height: 1.2;
  margin: 18px 0 18px;
  max-width: 820px;
}
.bd-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,.75);
}
.bd-meta .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  padding: 5px 12px; border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: background .15s;
}
.bd-meta .pill:hover { background: rgba(255,255,255,.22); }
.bd-meta .dot { width: 4px; height: 4px; background: rgba(255,255,255,.45); border-radius: 50%; }

.bd-cover-wrap { padding: 0; }
.bd-cover {
  margin: -60px auto 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 980px;
  position: relative;
  z-index: 2;
}
.bd-cover img { width: 100%; height: auto; display: block; max-height: 480px; object-fit: cover; }

.bd-content {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.bd-content > * + * { margin-top: 18px; }
.bd-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--gov-blue);
  margin-top: 36px !important;
}
.bd-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--gov-blue);
  margin-top: 28px !important;
}
.bd-content a { color: var(--saffron); text-decoration: underline; }
.bd-content ul, .bd-content ol { padding-left: 22px; }
.bd-content ul li, .bd-content ol li { margin: 6px 0; }
.bd-content blockquote {
  border-left: 4px solid var(--saffron);
  background: var(--gov-blue-50);
  padding: 16px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gov-blue);
}
.bd-content img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  margin: 12px 0;
}
.bd-content code {
  background: var(--gray-50); padding: 2px 6px; border-radius: 4px;
  font-size: 0.92em;
}

.bd-service-cta {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--gov-blue-50);
  border-left: 4px solid var(--saffron);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  margin: 36px 0;
}
.bd-service-cta .ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gov-blue-50); color: var(--gov-blue);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bd-service-cta .body { flex: 1; min-width: 0; }
.bd-service-cta h4 {
  font-size: 0.78rem; color: var(--saffron); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px;
}
.bd-service-cta h3 {
  font-size: 1.05rem; color: var(--gov-blue); margin-bottom: 4px;
  font-family: 'Playfair Display', serif;
}
.bd-service-cta p { font-size: 0.84rem; color: var(--gray-500); margin: 0; }

.bd-share {
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.bd-share-label { font-size: 0.86rem; color: var(--gray-600); font-weight: 600; }
.bd-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gov-blue-50);
  color: var(--gov-blue);
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.bd-share-btn:hover { background: var(--gov-blue); color: var(--white); transform: translateY(-2px); }
.bd-share-btn svg { width: 16px; height: 16px; fill: currentColor; }

.bd-related-section { padding: 60px 0; background: var(--gray-50); }
.bd-related-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--gov-blue); margin-bottom: 28px;
}
