/* Initiatives Blog — /our_blog/ */

.blog-hero {
  background: linear-gradient(135deg, #081422 0%, #0e3a5e 45%, #3bb3e3 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 179, 227, 0.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.blog-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto 28px;
}

.blog-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.blog-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-hero .breadcrumb-wrapper {
  padding-top: 24px;
}

.blog-hero .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.blog-hero .breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.blog-hero .breadcrumb a:hover {
  color: #9fe3ff;
}

.blog-hero .breadcrumb span {
  color: #9fe3ff;
  font-weight: 600;
}

.blog-grid-section {
  background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
  padding: 56px 0 72px;
}

.blog-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.blog-grid-header h2 {
  font-weight: 700;
  color: #081422;
  margin: 0 0 6px;
}

.blog-grid-header p {
  margin: 0;
  color: #5b6777;
  font-size: 0.98rem;
}

.blog-grid-count {
  background: #fff;
  border: 1px solid #e5edf3;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: #081422;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(8, 20, 34, 0.05);
}

.blog-card {
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(8, 20, 34, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(8, 20, 34, 0.12);
  border-color: #cfe8f7;
}

.blog-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #081422, #3bb3e3);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.blog-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.5rem;
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8, 20, 34, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

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

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
  color: #6b7785;
  font-size: 0.86rem;
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: #081422;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #007bff;
}

.blog-card-excerpt {
  color: #5b6777;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #007bff;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.blog-card-link:hover {
  background: #0056b3;
  transform: translateX(2px);
}

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px dashed #cfd9e3;
  border-radius: 18px;
}

.blog-empty i {
  font-size: 2.5rem;
  color: #3bb3e3;
  margin-bottom: 16px;
}

.blog-pagination {
  margin-top: 48px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 4px;
  padding: 0 14px;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  text-decoration: none;
  color: #081422;
  font-size: 0.95rem;
  font-weight: 600;
  background: #fff;
  transition: all 0.22s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #8a97a6;
}

@media (max-width: 767px) {
  .blog-hero {
    padding: 56px 0 48px;
  }

  .blog-grid-section {
    padding: 40px 0 56px;
  }

  .blog-grid-header {
    align-items: start;
  }
}

/* =============================================================================
   Single Post Page
   ============================================================================= */

.single-post-section {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 220px);
  padding: 48px 0 72px;
}

.blog-hero-title--single {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  max-width: 920px;
}

.single-post-article {
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 20px;
  padding: 32px 36px 36px;
  box-shadow: 0 10px 32px rgba(8, 20, 34, 0.06);
}

.single-post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.9rem;
  color: #5b6777;
}

.single-post-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post-category {
  display: inline-flex;
  align-items: center;
  background: #081422;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.single-post-category:hover {
  background: #007bff;
}

.single-post-featured {
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eef3;
}

.single-post-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article typography */
.single-post-section .entry-content {
  color: #243041;
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  word-spacing: 0.02em;
}

.single-post-section .entry-content > *:first-child {
  margin-top: 0;
}

.single-post-section .entry-content p {
  margin-bottom: 1.25rem;
  text-align: left;
}

.single-post-section .entry-content h1,
.single-post-section .entry-content h2 {
  font-family: Inter, system-ui, sans-serif;
  color: #081422;
  line-height: 1.35;
  margin: 2rem 0 1rem;
  text-transform: none;
  letter-spacing: -0.01em;
  word-spacing: normal;
}

.single-post-section .entry-content h1 {
  font-weight: 700;
}

.single-post-section .entry-content h2 {
  font-weight: 500;
}

.single-post-section .entry-content h3,
.single-post-section .entry-content h4 {
  font-family: Inter, system-ui, sans-serif;
  color: #0e3a5e;
  line-height: 1.4;
  margin: 1.75rem 0 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
}

.single-post-section .entry-content h3 {
  font-weight: 500;
}

.single-post-section .entry-content h4 {
  font-weight: 600;
}

.single-post-section .entry-content ul,
.single-post-section .entry-content ol {
  margin: 0 0 1.35rem;
  padding-left: 1.4rem;
}

.single-post-section .entry-content li {
  margin-bottom: 0.55rem;
  line-height: 1.75;
}

.single-post-section .entry-content li::marker {
  color: #007bff;
}

.single-post-section .entry-content a {
  color: #007bff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.single-post-section .entry-content a:hover {
  color: #0056b3;
}

.single-post-section .entry-content blockquote {
  margin: 1.75rem 0;
  padding: 18px 22px;
  border-left: 4px solid #3bb3e3;
  background: #f4f9fd;
  border-radius: 0 12px 12px 0;
  color: #334155;
  font-style: italic;
}

.single-post-section .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.single-post-section .entry-content figure {
  margin: 1.75rem 0;
}

.single-post-section .entry-content figcaption {
  font-size: 0.88rem;
  color: #6b7785;
  text-align: center;
  margin-top: 8px;
}

.single-post-section .entry-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.single-post-section .entry-content th,
.single-post-section .entry-content td {
  border: 1px solid #dbe5ee;
  padding: 10px 14px;
  text-align: left;
}

.single-post-section .entry-content th {
  background: #f4f8fb;
  font-weight: 600;
  color: #081422;
}

.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #edf2f7;
}

.single-post-tags-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #081422;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post-tags a {
  display: inline-block;
  background: #eef6fb;
  color: #0e3a5e !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.single-post-tags a:hover {
  background: #d7ecf9;
}

.single-post-footer {
  margin-top: 28px;
}

.single-post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #007bff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.single-post-back:hover {
  color: #0056b3 !important;
}

/* =============================================================================
   Sidebar — Professional compact layout
   ============================================================================= */

.blog-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-sidebar-panel {
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(8, 20, 34, 0.05);
}

.blog-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.3;
  color: #081422;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #edf2f7;
}

.blog-sidebar-heading i {
  color: #007bff;
  font-size: 1rem;
}

/* Search */
.blog-search-form {
  display: flex;
  gap: 8px;
}

.blog-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: Inter, system-ui, sans-serif;
  color: #243041;
  background: #fafbfc;
}

.blog-search-form input[type="search"]:focus {
  outline: none;
  border-color: #3bb3e3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 179, 227, 0.12);
}

.blog-search-form button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #007bff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-search-form button:hover {
  background: #0056b3;
}

/* Post list */
.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-post-list li {
  margin: 0;
  padding: 0;
}

.sidebar-post-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #fafbfc;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-post-card:hover {
  background: #fff;
  border-color: #cfe8f7;
  box-shadow: 0 4px 14px rgba(8, 20, 34, 0.06);
}

.sidebar-post-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #081422, #3bb3e3);
}

.sidebar-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-post-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
}

.sidebar-post-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-post-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: #081422 !important;
}

.sidebar-post-card:hover .sidebar-post-card__title {
  color: #007bff !important;
}

.sidebar-post-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #6b7785;
}

.sidebar-post-card__meta i {
  font-size: 0.72rem;
  color: #3bb3e3;
}

.sidebar-post-card__arrow {
  color: #c5d0db;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-post-card:hover .sidebar-post-card__arrow {
  color: #007bff;
  transform: translateX(2px);
}

.sidebar-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #007bff !important;
  text-decoration: none !important;
}

.sidebar-view-all:hover {
  color: #0056b3 !important;
}

.sidebar-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7785;
}

/* Override legacy widget/global CSS inside sidebar scope */
.blog-sidebar .wp-block-latest-posts__list,
.blog-sidebar .widget {
  all: unset;
  display: block;
}

.blog-sidebar a {
  font-family: Inter, system-ui, sans-serif;
}

/* =============================================================================
   Search Results Page
   ============================================================================= */

.blog-hero--search {
  padding-bottom: 56px;
}

.search-hero-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 8px;
  flex-wrap: wrap;
}

.search-hero-form input[type="search"] {
  flex: 1 1 280px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: Inter, system-ui, sans-serif;
  background: rgba(255, 255, 255, 0.95);
  color: #081422;
}

.search-hero-form input[type="search"]:focus {
  outline: none;
  border-color: #9fe3ff;
  box-shadow: 0 0 0 3px rgba(159, 227, 255, 0.25);
}

.search-hero-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  background: #007bff;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-hero-form button:hover {
  background: #0056b3;
}

.search-results-section .blog-card-title {
  font-weight: 600;
}

.search-highlight {
  background: rgba(0, 123, 255, 0.15);
  color: #004085;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

.search-empty {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 28px;
  background: #fff;
  border: 1px dashed #cfd9e3;
  border-radius: 18px;
}

.search-empty i {
  font-size: 2.5rem;
  color: #3bb3e3;
  margin-bottom: 16px;
  display: block;
}

.search-empty h2 {
  font-weight: 600;
  color: #081422;
  margin-bottom: 10px;
}

.search-empty p {
  color: #5b6777;
  margin-bottom: 18px;
}

.search-empty-tips {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: inline-block;
}

.search-empty-tips li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #5b6777;
  font-size: 0.92rem;
}

.search-empty-tips li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: 700;
}

@media (max-width: 767px) {
  .search-hero-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-hero-form button {
    justify-content: center;
  }
}

/* =============================================================================
   404 Not Found Page
   ============================================================================= */

.blog-hero--404 {
  padding-bottom: 56px;
}

.error-404-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.18);
}

.error-404-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.error-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.error-404-btn--primary {
  background: #007bff;
  color: #fff;
}

.error-404-btn--primary:hover {
  background: #0056b3;
  color: #fff;
}

.error-404-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.error-404-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.error-404-section {
  padding-top: 48px;
}

.error-404-panel {
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 48px;
  box-shadow: 0 12px 40px rgba(8, 20, 34, 0.06);
}

.error-404-panel__intro h2 {
  font-weight: 600;
  color: #081422;
  margin-bottom: 6px;
}

.error-404-panel__intro p {
  color: #5b6777;
  margin-bottom: 24px;
}

.error-404-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid #e3ebf2;
  border-radius: 16px;
  background: #f8fbfd;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.error-404-link-card:hover {
  transform: translateY(-2px);
  border-color: #b8d9f0;
  box-shadow: 0 10px 28px rgba(8, 20, 34, 0.08);
}

.error-404-link-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.error-404-link-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #081422;
  margin-bottom: 6px;
}

.error-404-link-card__text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5b6777;
}

.error-404-recent .blog-grid-header {
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .error-404-panel {
    padding: 24px 18px;
  }

  .error-404-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-404-btn {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .single-post-article {
    padding: 24px 20px 28px;
  }

  .blog-sidebar {
    position: static;
    margin-top: 8px;
  }

  .single-post-section .entry-content {
    font-size: 1rem;
  }
}

