/* ================================================
   HSJ BLOG CSS
   Fonts: Cormorant Garamond | Outfit
   Colors: #1A4B89 | #FBA504 | #0C1E38
   ================================================ */

/* ---- Detail page utilities (keep) ---- */
.border-top-blue { border-top: 4px solid #1A4B89; }
.hsj-content-breadcrumb { background: #f8f9fa; padding: 10px 20px; border-radius: 8px; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hsj-blog-details-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; color: #222; }
.badge-primary-soft { background: rgba(26,75,137,0.1); color: #1A4B89; padding: 6px 12px; font-weight: 600; }
.badge-primary-soft-lg { background: rgba(26,75,137,0.1); color: #1A4B89; padding: 10px 20px; font-weight: 700; font-size: 14px; border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; }

.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.hsj-article-content { font-size: 1.15rem; line-height: 1.8; color: #444; }
.hsj-article-content h2, .hsj-article-content h3 { font-weight: 700; color: #222; margin-top: 40px; margin-bottom: 20px; }

.hsj-modern-accordion .accordion-item { border: none; margin-bottom: 15px; border-radius: 12px !important; }
.hsj-modern-accordion .accordion-button { font-weight: 700; padding: 20px; border-radius: 12px !important; background: #f8f9fa; color: #222; box-shadow: none !important; }
.hsj-modern-accordion .accordion-button:not(.collapsed) { background: #1A4B89; color: #fff; }
.hsj-modern-accordion .accordion-button::after { filter: brightness(0.5); }
.hsj-modern-accordion .accordion-button:not(.collapsed)::after { filter: brightness(1) invert(1); }

.hsj-author-box-v2 { background: #fff; border-left: 5px solid #1A4B89; }
.author-avatar-large img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }

.hsj-sidebar-widget { background: #fff; border-radius: 15px; }
.hsj-sidebar-widget .hsj-toc-list li a { padding: 8px 0; display: block; border-bottom: 1px dashed #eee; color: #555; font-weight: 500; }
.hsj-sidebar-widget .hsj-toc-list li a:hover { color: #1A4B89; padding-left: 5px; }
.hsj-toc-list li a { transition: all 0.3s; border-left: 2px solid transparent; padding-left: 15px !important; }
.hsj-toc-list li a:hover { color: #1A4B89 !important; border-left-color: #1A4B89; background: rgba(26,75,137,0.05); }

.tag-link { display: inline-block; padding: 6px 15px; background: #f0f2f5; color: #555; border-radius: 20px; margin-right: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; transition: all 0.3s; }
.tag-link:hover { background: #1A4B89; color: #fff; text-decoration: none; }

.share-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #f0f2f5; color: #555; border-radius: 50%; margin-left: 10px; transition: all 0.3s; }
.share-icon:hover { color: #fff; transform: translateY(-3px); }
.share-icon.fb:hover { background: #3b5998; }
.share-icon.tw:hover { background: #000; }
.share-icon.pi:hover { background: #bd081c; }

.hsj-blog-toc-sticky { position: -webkit-sticky; position: sticky; top: 100px; padding-right: 15px; }
.hsj-toc-widget { border-right: 2px solid #e9ecef; padding-right: 15px; }
.hsj-toc-nav .nav-link { color: #6c757d; padding: 6px 0 6px 10px; line-height: 1.4; transition: all 0.2s; border-left: 2px solid transparent; margin-left: -2px; }
.hsj-toc-nav .nav-link:hover { color: #1A4B89; text-decoration: none; }
.hsj-toc-nav .nav-link.active { color: #1A4B89; font-weight: 600; border-left-color: #1A4B89; }
.hsj-blog-toc-sticky::-webkit-scrollbar { width: 4px; }
.hsj-blog-toc-sticky::-webkit-scrollbar-thumb { background-color: #dee2e6; border-radius: 4px; }

@media (max-width: 991.98px) {
    .hsj-toc-widget { border-right: none; border-bottom: 2px solid #e9ecef; padding-bottom: 20px; margin-bottom: 30px; }
    .hsj-blog-toc-sticky { position: static; max-height: none; padding-right: 0; }
}
@media (max-width: 768px) { .hsj-blog-details-title { font-size: 2rem; } }


/* ================================================
   BLOG LISTING PAGE — Travel Journal design
   ================================================ */

:root {
  --bl-navy: #1A4B89;
  --bl-dk: #0C1E38;
  --bl-amber: #FBA504;
  --bl-amber-bg: #FEF3C7;
  --bl-amber-deep: #92400E;
  --bl-text: #1C1C1C;
  --bl-muted: #6b7280;
  --bl-border: #e5e7eb;
  --bl-soft: #f9fafb;
  --bl-serif: 'Cormorant Garamond', Georgia, serif;
  --bl-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── HERO ── */
.bl-hero {
  background: var(--bl-dk);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.bl-hero-topo {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.01) 40px, rgba(255,255,255,.01) 41px);
}
.bl-hero-in {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 36px;
  text-align: center;
}
.bl-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bl-amber);
  margin-bottom: 12px;
}
.bl-hero-title {
  font-family: var(--bl-serif);
  font-size: 56px;
  font-weight: 600;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 10px;
}
.bl-hero-title em {
  font-style: italic;
  color: #FCD34D;
}
.bl-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.42);
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto;
}

/* ── FEATURED STORIES ── */
.bl-featured {
  max-width: 1380px;
  margin: -36px auto 0;
  padding: 0 36px;
  position: relative;
  z-index: 2;
}
.bl-feat-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.bl-feat-main {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
}
.bl-feat-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.bl-feat-main:hover img { transform: scale(1.04); }
.bl-feat-main-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12,30,56,.85) 0%, rgba(12,30,56,.25) 60%, transparent 100%);
}
.bl-feat-main-body {
  position: relative;
  z-index: 1;
  padding: 32px;
  width: 100%;
}
.bl-feat-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bl-amber);
  margin-bottom: 8px;
  display: inline-block;
}
.bl-feat-main-title {
  font-family: var(--bl-serif);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.bl-feat-main-excerpt {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 520px;
}
.bl-feat-main-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.bl-feat-main-link {
  color: var(--bl-amber);
  font-weight: 600;
  font-size: 13px;
}
.bl-feat-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bl-feat-sm {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
}
.bl-feat-sm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.bl-feat-sm:hover img { transform: scale(1.04); }
.bl-feat-sm-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12,30,56,.8) 0%, rgba(12,30,56,.15) 60%, transparent 100%);
}
.bl-feat-sm-body {
  position: relative;
  z-index: 1;
  padding: 20px;
  width: 100%;
}
.bl-feat-sm-title {
  font-family: var(--bl-serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}
.bl-feat-sm-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
}
.bl-feat-sm-link {
  color: var(--bl-amber);
  font-weight: 600;
  font-size: 12px;
}

/* ── CATEGORY TABS ── */
.bl-cat-strip {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 36px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bl-cat-strip::-webkit-scrollbar { display: none; }
.bl-cat-tab {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--bl-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--bl-muted);
  background: #fff;
  white-space: nowrap;
  transition: all .15s;
  text-decoration: none;
  font-family: var(--bl-sans);
  cursor: pointer;
}
.bl-cat-tab:hover { border-color: #9ca3af; color: var(--bl-text); }
.bl-cat-tab.on { background: var(--bl-navy); color: #fff; border-color: var(--bl-navy); }

/* ── MAIN LAYOUT ── */
.bl-page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 36px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ── ARTICLE CARDS ── */
.bl-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bl-art {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--bl-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  text-decoration: none;
  color: inherit;
}
.bl-art:hover {
  border-color: #d1d5db;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  text-decoration: none;
}
.bl-art-img {
  overflow: hidden;
  position: relative;
}
.bl-art-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform .5s;
}
.bl-art:hover .bl-art-img img { transform: scale(1.04); }
.bl-art-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bl-art-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bl-amber);
  margin-bottom: 8px;
  display: inline-block;
}
.bl-art-title {
  font-family: var(--bl-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bl-text);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color .15s;
}
.bl-art:hover .bl-art-title { color: var(--bl-navy); }
.bl-art-excerpt {
  font-size: 13.5px;
  color: var(--bl-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-art-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--bl-muted);
}
.bl-art-foot .sep { color: #d1d5db; }
.bl-art-read {
  color: var(--bl-navy);
  font-weight: 600;
  margin-left: auto;
}

/* ── PAGINATION ── */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.bl-pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bl-pagination .page-item .page-link,
.bl-pagination .pg-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--bl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--bl-muted);
  transition: all .15s;
  background: #fff;
  text-decoration: none;
  font-family: var(--bl-sans);
}
.bl-pagination .page-item .page-link:hover,
.bl-pagination .pg-btn:hover {
  border-color: var(--bl-navy);
  color: var(--bl-navy);
  background: #eff6ff;
}
.bl-pagination .page-item.active .page-link,
.bl-pagination .pg-btn.on {
  background: var(--bl-navy);
  color: #fff;
  border-color: var(--bl-navy);
}
.bl-pagination .page-item.disabled .page-link {
  color: #d1d5db;
  background: var(--bl-soft);
  border-color: var(--bl-border);
}

/* ── SIDEBAR ── */
.bl-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bl-sb-card {
  border: 1px solid var(--bl-border);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}
.bl-sb-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--bl-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bl-sb-h::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bl-border);
}

/* Sidebar Search */
.bl-sb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--bl-border);
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 4px;
  transition: border-color .15s;
}
.bl-sb-search:focus-within { border-color: var(--bl-navy); }
.bl-sb-search svg {
  width: 15px;
  height: 15px;
  stroke: var(--bl-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.bl-sb-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--bl-sans);
  font-size: 13.5px;
  color: var(--bl-text);
  background: transparent;
}
.bl-sb-search input::placeholder { color: var(--bl-muted); }

/* Sidebar Recent Posts */
.bl-recent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bl-recent {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.bl-recent:hover { text-decoration: none; }
.bl-recent-img {
  width: 68px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bl-soft);
}
.bl-recent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bl-recent-body {
  flex: 1;
  min-width: 0;
}
.bl-recent-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bl-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.bl-recent:hover .bl-recent-title { color: var(--bl-navy); }
.bl-recent-date {
  font-size: 11px;
  color: var(--bl-muted);
  margin-top: 3px;
}

/* Sidebar Categories */
.bl-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bl-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--bl-border);
  font-size: 13.5px;
  color: var(--bl-text);
  transition: color .15s;
  text-decoration: none;
}
.bl-cat-item:last-child { border-bottom: none; }
.bl-cat-item:hover { color: var(--bl-navy); text-decoration: none; }
.bl-cat-item.sub { padding-left: 16px; font-size: 13px; color: var(--bl-muted); }

/* Sidebar Tags */
.bl-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bl-tag-chip {
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--bl-border);
  color: var(--bl-muted);
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.bl-tag-chip:hover {
  border-color: var(--bl-amber);
  color: var(--bl-amber-deep);
  background: var(--bl-amber-bg);
  text-decoration: none;
}

/* Empty State */
.bl-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--bl-muted);
  font-size: 16px;
}
.bl-empty i {
  display: block;
  font-size: 2.5rem;
  color: #d1d5db;
  margin-bottom: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1060px) {
  .bl-page { grid-template-columns: 1fr; }
  .bl-sidebar { position: static; }
}
@media (max-width: 760px) {
  .bl-feat-grid { grid-template-columns: 1fr; }
  .bl-feat-main { height: 320px; }
  .bl-art { grid-template-columns: 1fr; }
  .bl-art-img img { height: 200px; min-height: auto; }
  .bl-hero-title { font-size: 40px; }
  .bl-hero { padding: 48px 0 40px; }
  .bl-hero-in { padding: 0 20px; }
  .bl-featured { padding: 0 20px; }
  .bl-cat-strip { padding: 24px 20px 0; }
  .bl-page { padding: 24px 20px 60px; }
}
@media (max-width: 480px) {
  .bl-feat-main { height: 260px; }
  .bl-feat-sm { min-height: 160px; }
  .bl-hero-title { font-size: 34px; }
}
