.custom-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.main-nav .menu-item {
  list-style: none;
}

.main-nav__menu {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav .menu-item > a {
  display: block;
  padding: 13px 0;
  color: inherit;
}

.main-nav .sub-menu {
  position: absolute;
  display: none;
  min-width: 180px;
  margin: 0;
  padding: 12px;
  list-style: none;
  border: 1px solid rgba(22, 119, 255, 0.16);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(6, 59, 128, 0.12);
}

.main-nav .menu-item-has-children {
  position: relative;
}

.main-nav .menu-item-has-children:hover .sub-menu {
  display: grid;
  gap: 6px;
}

.main-nav .sub-menu a {
  display: block;
  padding: 9px 10px;
}

.footer-v3__nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.static-page-content img,
.article-content img {
  max-width: 100%;
  height: auto;
}

.wp-content-section {
  padding: 72px 0;
}

.wp-content-section .entry-content {
  color: #334155;
  line-height: 1.9;
}

.wp-content-section .entry-content h2 {
  margin-top: 38px;
  color: #0f2d5c;
}

.post-card__meta {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  color: #94a3b8;
}

.archive-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 76px 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(247,251,255,.94) 48%, rgba(234,244,255,.32) 100%),
    radial-gradient(circle at 78% 35%, rgba(22,119,255,.18), transparent 30%);
  border-bottom: 1px solid #d8e7f8;
}

.archive-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(36px, 3.5vw, 48px);
  color: #071f45;
  line-height: 1.15;
}

.archive-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: #173b70;
  font-size: 17px;
  line-height: 1.7;
}

.post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid #d7e5f8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(6, 59, 128, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(6, 59, 128, 0.12);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 22px;
}

.post-card p {
  margin: 0;
  color: #516887;
  line-height: 1.7;
}

.post-card a {
  color: #095cc8;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--blue);
  transition: gap .2s ease;
}

.post-card .read-more:hover {
  gap: 10px;
}

.post-card h2 a {
  transition: color .2s ease;
}

.post-card h2 a:hover {
  color: #071f45;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  gap: 4px;
}

.pagination > a,
.pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all .2s ease;
}

.pagination > a:hover {
  color: var(--blue);
  background: rgba(11,89,199,.08);
}

.pagination .current {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  box-shadow: 0 3px 10px rgba(11,89,199,.25);
  pointer-events: none;
}

.pagination .dots {
  background: transparent !important;
  cursor: default;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .post-card-grid {
    grid-template-columns: 1fr;
  }
  .archive-hero h1 {
    font-size: 32px;
  }
}
/* ========== Category Page (New) ========== */
.cat-page {
  padding-bottom: 80px;
}

.cat-page__hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(6, 59, 128, .94) 0%, rgba(22, 119, 255, .78) 55%, rgba(234, 244, 255, .88) 100%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.18), transparent 35%);
}

.cat-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255,255,255,.74);
}

.cat-page__breadcrumb a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s ease;
}

.cat-page__breadcrumb a:hover {
  color: #fff;
}

.cat-page__hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.cat-page__hero-desc {
  margin: 12px 0 0;
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 680px;
  line-height: 1.8;
}

.cat-page__hero-stats {
  margin: 0;
  font-size: 17px;
  color: rgba(255,255,255,.8);
}

.cat-page__nav {
  position: sticky;
  top: 0;
 
  background: #fff;
  border-bottom: 1px solid #e2eaf5;
  box-shadow: 0 2px 12px rgba(6, 59, 128, .06);
}

.cat-page__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
}

.cat-page__tab {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #4a6085;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all .22s ease;
}

.cat-page__tab:hover {
  color: #1677ff;
  background: rgba(22, 119, 255, .06);
}

.cat-page__tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #071f45);
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(22, 119, 255, .28);
}

.cat-page__body {
  padding: 48px 0 0;
}

.cat-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cat-page__card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 46, 92, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-decoration: none;
  color: inherit;
}

.cat-page__card:hover {
  transform: translateY(-5px);
  border-color: #8cc4ff;
  box-shadow: 0 20px 44px rgba(10, 46, 92, .14);
}

.cat-page__card-tag {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0b63ce;
  background: #eaf4ff;
  border-radius: 999px;
}

.cat-page__card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  transition: color .2s ease;
}

.cat-page__card:hover h3 {
  color: #1677ff;
}

.cat-page__card p {
  flex: 1;
  margin: 0 0 16px;
  font-size: 15px;
  color: #526885;
  line-height: 1.72;
}

.cat-page__card time {
  margin-top: auto;
  font-size: 13px;
  color: #7b8ba2;
}

.cat-page__pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  gap: 4px;
}

.cat-page__pagination > a,
.cat-page__pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: all .2s ease;
}

.cat-page__pagination > a:hover {
  color: #1677ff;
  background: rgba(22, 119, 255, .07);
}

.cat-page__pagination .current {
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #071f45);
  box-shadow: 0 3px 10px rgba(22, 119, 255, .25);
  pointer-events: none;
}

.cat-page__pagination .dots {
  background: transparent !important;
  cursor: default;
  letter-spacing: 1px;
}

.cat-page__empty {
  text-align: center;
  padding: 80px 0;
  font-size: 17px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .cat-page__hero {
    padding: 54px 0 48px;
  }

  .cat-page__hero h1 {
    font-size: 30px;
  }

  .cat-page__grid {
    grid-template-columns: 1fr;
  }

  .cat-page__card {
    min-height: unset;
  }

  .cat-page__nav {
    top: 66px;
  }
}
