/* ── Blog & Post Shared ─────────────────────────────── */


/* ── Blog Hero ──────────────────────────────────────── */
.blog-hero {
  background:
    linear-gradient(135deg, rgba(2,18,38,0.82) 0%, rgba(5,39,86,0.75) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  padding: 148px 20px 72px;
  text-align: center;
  color: #fff;
}

.blog-hero-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.blog-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 14px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: none;
}

.blog-hero p {
  max-width: 580px;
  margin: 0 auto;
  color: #a8c0db;
  line-height: 1.65;
  font-size: 16px;
}

/* ── Category Filter Bar ─────────────────────────────── */
.blog-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e4edf5;
  padding: 0 20px;
  position: sticky;
  top: 52px;
  z-index: 50;
}

.cat-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 15px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #6a8aaa;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 180ms ease;
  font-family: inherit;
}

.cat-tab:hover { color: var(--ink); }

.cat-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ── Blog Listing Grid ──────────────────────────────── */
.blog-grid-section {
  background: #f4f7fc;
  padding: 56px 20px 72px;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 52px;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(2, 18, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(2, 18, 42, 0.13);
}

.blog-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.05);
}

.blog-card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 20px;
}

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

.blog-card-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: #8aa4be;
  margin-bottom: 10px;
}

.blog-card-body h2 {
  font-size: 16px;
  line-height: 1.42;
  margin: 0 0 10px;
  color: var(--ink);
  text-transform: none;
  text-align: left;
}

.blog-card-body p {
  font-size: 13px;
  color: #5a7a96;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

.blog-card-link:hover { opacity: 0.78; }

/* ── Pagination ──────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid #dce8f5;
  background: #fff;
  color: #5a7a96;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 180ms ease;
  font-family: inherit;
}

.page-btn.active,
.page-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── Post Hero ───────────────────────────────────────── */
.post-hero {
  position: relative;
  height: 440px;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.post-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
  left: 0;
  right: 0;
  color: #fff;
}

.post-cat-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}

.post-hero-content h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 800;
  text-transform: none;
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Post Layout ─────────────────────────────────────── */
.post-layout {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  margin-bottom: 36px;
}

.post-back:hover { opacity: 0.78; }

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2e3f57;
}

.post-content h2 {
  font-size: 22px;
  color: var(--ink);
  margin: 44px 0 16px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: none;
  text-align: left;
}

.post-content p { margin: 0 0 22px; }

.post-content ul {
  padding-left: 22px;
  margin: 0 0 22px;
}

.post-content li { margin-bottom: 10px; }

.post-content blockquote {
  border-left: 4px solid var(--orange);
  margin: 32px 0;
  padding: 18px 22px;
  background: #f4f7fc;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #4a6a86;
  font-size: 15px;
}

/* ── Related Posts ───────────────────────────────────── */
.post-related {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  border-top: 1px solid #e4edf5;
  margin-top: 56px;
}

.post-related h3 {
  font-size: 20px;
  margin: 0 0 24px;
  color: var(--ink);
  font-weight: 800;
  text-transform: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f4f7fc;
  border-radius: 10px;
  padding: 14px;
  text-decoration: none;
  transition: background 180ms ease;
}

.related-card:hover { background: #e8eef8; }

.related-card img {
  width: 76px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-card-info span {
  display: block;
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-card-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 600;
}

/* ── Post CTA ────────────────────────────────────────── */
.post-cta {
  background: linear-gradient(120deg, #021226 0%, #052756 100%);
  padding: 64px 20px;
  text-align: center;
  color: #fff;
}

.post-cta h2 {
  font-size: 26px;
  margin: 0 0 12px;
  font-weight: 800;
  text-transform: none;
}

.post-cta p {
  color: #a8c0db;
  margin: 0 0 32px;
  font-size: 16px;
}

.post-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 180ms;
}

.post-cta a:hover { opacity: 0.88; }

/* ── Blog Page Footer Adjustments ────────────────────── */
.blog-page .footer a,
.post-page .footer a {
  color: #a8c0db;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-full-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-full-grid { grid-template-columns: 1fr; }
  .post-hero { height: 320px; }
  .related-grid { grid-template-columns: 1fr; }
}
