/* =========================================================
   Blog page — light theme (scoped to body.blog-page-body)
   ========================================================= */

body.blog-page-body {
  background: #ffffff;
  color: #0c314b;
}

/* Show dark logo on light background */
body.blog-page-body header .logo {
  display: inline-block !important;
}
body.blog-page-body header .logo-white {
  display: none !important;
}
body.blog-page-body ul.main-menu {
  background: #ffffff;
  border-color: #ffa0a5;
}
body.blog-page-body ul.main-menu a,
body.blog-page-body ul.user-menu li:first-child a {
  color: #0c314b;
}
body.blog-page-body ul.main-menu a:hover,
body.blog-page-body ul.main-menu .current-menu-item > a {
  color: #ff3845;
}

/* ---- Wrapper ---- */
.blog-page {
  padding-top: 100px; /* clears absolute header on pages without a hero */
}

/* ---- FAQ archive (no hero) ---- */
.faq-archive-page {
  background: #fff;
}
body.blog-page-body .header-placeholder {
  height: 100px;
}
.faq-archive-list {
  padding: 60px 0 80px;
}
.faq-archive-search {
  background: #f6f9fc;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 40px;
}
.faq-archive-search-form {
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.faq-archive-search-form input[type="search"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border: none;
  outline: none;
  color: #42647a;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}
.faq-archive-search-form button {
  padding: 14px 22px;
  background: #042c4c;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.faq-archive-search-form button:hover {
  background: #4479a2;
}
.faq-archive-title {
  font-size: 26px;
  font-weight: 700;
  color: #042c4c;
  margin-bottom: 8px;
}
.faq-archive-desc {
  font-size: 15px;
  color: #5d7079;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ---- Hero ---- */
.blog-hero {
  margin-top: -100px; /* pull up to fill behind transparent header */
  padding: 160px 0 100px;
  background-color: #0c314b; /* fallback */
  background-image: linear-gradient(160deg, #0c314b 0%, #1a4a70 100%);
  /*
   * To use a real image, replace background-image with:
   * background-image: linear-gradient(rgba(12,49,75,0.65), rgba(12,49,75,0.65)), url('your-hero.jpg');
   * background-size: cover;
   * background-position: center;
   */
  text-align: center;
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
}
.blog-hero-title {
  font-size: 50px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.blog-hero-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 600px;
  margin: 0 auto;
  line-height: 30px;
}

/* ---- Category pills ---- */
.blog-cats-wrap {
  padding: 24px 0 44px;
}
.blog-cats-wrap .container {
  background: #f2f2f2;
  border-radius: 20px;
  padding: 24px 32px;
}
.blog-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-cat-pill {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid #c5d8eb;
  color: #4479a2;
  font-size: 14px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.blog-cat-pill:hover {
  border-color: #0c314b;
  color: #0c314b;
}
.blog-cat-pill.is-active {
  background: #ff3845;
  border-color: #ff3845;
  color: #fff;
}

/* ---- Section header ---- */
.blog-sec-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.blog-sec-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4479a2;
}
.blog-view-all {
  display: inline-block;
  background-color: #0c314b;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 2px solid #0c314b;
  transition: all 0.3s ease;
}
.blog-view-all:hover {
  background-color: #ffffff;
  color: #0c314b;
}

/* ---- No thumbnail placeholder ---- */
.blog-no-thumb {
  background: #e0e5e9;
  border-radius: 8px;
  display: block;
  width: 100%;
}
.blog-no-thumb-sm {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
}

/* ---- Featured post ---- */
.blog-featured {
  padding: 0 0 56px;
}
.blog-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.blog-featured-img a {
  display: block;
}
.blog-featured-img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0px 0px 11px 8px rgba(0, 0, 0, 0.22);
}
.blog-featured-img .blog-no-thumb {
  aspect-ratio: 16 / 9;
}
.blog-featured-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.blog-tag-feat {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #0c314b;
  background: #e0e5e9;
  border: 1px solid #c5d8eb;
  border-radius: 50px;
  padding: 4px 14px;
}
.blog-tag-cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff3845;
}
.blog-featured-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.blog-featured-title a {
  color: #0c314b;
  text-decoration: none;
}
.blog-featured-title a:hover {
  color: #ff3845;
}
.blog-featured-excerpt {
  color: #4479a2;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.blog-featured-meta {
  font-size: 15px;
  color: #4479a2;
  margin-bottom: 22px;
}
.blog-btn-story {
  display: inline-block;
  background-color: #0c314b;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #0c314b;
  transition: all 0.3s ease;
}
.blog-btn-story:hover {
  background-color: #ffffff;
  color: #0c314b;
}

/* ---- Latest posts ---- */
.blog-latest {
  padding: 0 0 56px;
}
.blog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  box-shadow: 0px 0px 11px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin-bottom: 30px;
}
.blog-card:hover {
  transform: translateY(-3px);
}
.blog-card-img {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}
.blog-card .blog-no-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-cat {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff3845;
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 56px;
}
.blog-card-title a {
  color: #0c314b;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: #ff3845;
}
.blog-card-excerpt {
  font-size: 16px;
  color: #4479a2;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #4479a2;
  margin-top: auto;
}
.blog-card-read {
  display: inline-block;
  background-color: #0c314b;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 2px solid #0c314b;
  transition: all 0.3s ease;
}
.blog-card-read:hover {
  background-color: #ffffff;
  color: #0c314b;
}

/* ---- CTA banner ---- */
.blog-cta {
  background: linear-gradient(#eef7fe, #c0e4ff);
  border-radius: 20px;
  padding: 40px 44px;
  margin-bottom: 56px;
}
.blog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.blog-cta h3 {
  font-size: 26px;
  font-weight: 500;
  color: #0c314b;
  margin-bottom: 8px;
}
.blog-cta p {
  color: #4479a2;
  font-size: 18px;
}
.blog-cta-right {
  display: flex;
  flex-direction: column;
  align-items: right;
  gap: 8px;
  flex-shrink: 0;
}
.blog-cta-btn {
  display: inline-block;
  background: #0c314b;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  border: 2px solid #0c314b;
  transition: all 0.3s ease;
  text-align: center;
}
.blog-cta-btn:hover {
  background: #ffffff;
  color: #0c314b;
}
.blog-cta-right small {
  color: #4479a2;
  font-size: 14px;
}

/* ---- Archive list ---- */
.blog-archive {
  padding: 0 0 56px;
}
.blog-arc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #c5d8eb;
}
.blog-arc-item:first-of-type {
  border-top: 1px solid #c5d8eb;
}
.blog-arc-num {
  font-size: 26px;
  font-weight: 700;
  color: #c5d8eb;
  min-width: 40px;
  line-height: 1;
}
.blog-arc-thumb {
  display: block;
  flex-shrink: 0;
}
.blog-arc-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.blog-arc-body {
  flex: 1;
}
.blog-arc-cat {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff3845;
  margin-bottom: 6px;
}
.faq-arc-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.faq-arc-title-row .blog-arc-title {
  margin-bottom: 0;
}
.faq-topic-pill {
  display: inline-block;
  flex-shrink: 0;
  padding: 3px 12px;
  border-radius: 50px;
  border: 1.5px solid #c5d8eb;
  color: #4479a2;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.faq-topic-pill:hover {
  background: #4479a2;
  border-color: #4479a2;
  color: #fff;
}
.blog-arc-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}
.blog-arc-title a {
  color: #0c314b;
  text-decoration: none;
}
.blog-arc-title a:hover {
  color: #ff3845;
}
.blog-arc-meta {
  font-size: 14px;
  color: #4479a2;
}

/* ---- Newsletter ---- */
.blog-newsletter {
  background: #f2f2f2;
  border-radius: 20px;
  padding: 40px 44px;
  margin-bottom: 56px;
}
.blog-nl-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.blog-nl-title {
  font-size: 20px;
  font-weight: 500;
  color: #0c314b;
  margin-bottom: 6px;
}
.blog-nl-sub {
  color: #4479a2;
  font-size: 16px;
}
.blog-nl-form {
  display: flex;
  flex-shrink: 0;
}
.blog-nl-input {
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #c5d8eb;
  border-right: none;
  border-radius: 50px 0 0 50px;
  color: #0c314b;
  font-size: 16px;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
}
.blog-nl-input::placeholder {
  color: #4479a2;
}
.blog-nl-input:focus {
  border-color: #0c314b;
}
.blog-nl-btn {
  padding: 12px 20px;
  background: #0c314b;
  border: none;
  border-radius: 0 50px 50px 0;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}
.blog-nl-btn:hover {
  background: #ff3845;
}

/* ---- Pagination ---- */
.blog-pager {
  padding: 0 0 60px;
  text-align: center;
}
.blog-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 50px;
  color: #4479a2;
  text-decoration: none;
  font-size: 16px;
  margin: 0 2px;
  transition:
    background 0.2s,
    color 0.2s;
}
.blog-pager .page-numbers:hover,
.blog-pager .page-numbers.current {
  background: #ff3845;
  color: #fff;
}
.blog-pager .page-numbers.dots {
  background: transparent;
  cursor: default;
}

/* =========================================================
   Single post
   ========================================================= */

/* Hero */
.blog-single-hero {
  margin-top: -100px;
  padding: 160px 0 80px;
  background-image: linear-gradient(160deg, #0c314b 0%, #1a4a70 100%);
  border-radius: 0 0 40px 40px;
  text-align: center;
}
.blog-single-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.blog-single-cats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.blog-single-cats .blog-tag-cat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-single-cats .blog-tag-cat:hover {
  background: rgba(255, 255, 255, 0.22);
}
.blog-single-title {
  font-size: 44px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 24px;
}
.blog-single-meta {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-meta-sep {
  opacity: 0.5;
}

/* Cover image */
.blog-single-cover {
  padding: 0 0 48px;
  margin-top: 50px;
}
.blog-single-cover-img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.15);
}

/* Body / content */
.blog-single-body {
  padding: 0 0 48px;
}
.blog-single-content {
  font-size: 18px;
  line-height: 1.85;
  color: #1a2e40;
}
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4 {
  color: #0c314b;
  font-weight: 700;
  margin: 40px 0 16px;
  line-height: 1.3;
}
.blog-single-content h2 {
  font-size: 30px;
}
.blog-single-content h3 {
  font-size: 24px;
}
.blog-single-content h4 {
  font-size: 20px;
}
.blog-single-content p {
  margin-bottom: 24px;
}
.blog-single-content a {
  color: #ff3845;
  text-decoration: underline;
}
.blog-single-content ul,
.blog-single-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.blog-single-content li {
  margin-bottom: 8px;
}
.blog-single-content blockquote {
  border-left: 4px solid #ff3845;
  margin: 32px 0;
  padding: 16px 24px;
  background: #f5f8fb;
  border-radius: 0 10px 10px 0;
  font-size: 20px;
  font-style: italic;
  color: #0c314b;
}
.blog-single-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 8px 0 24px;
}
.blog-single-content hr {
  border: none;
  border-top: 1px solid #c5d8eb;
  margin: 40px 0;
}
.blog-single-content pre,
.blog-single-content code {
  background: #f2f5f8;
  border-radius: 6px;
  font-size: 15px;
}
.blog-single-content code {
  padding: 2px 6px;
}
.blog-single-content pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

/* Tags */
.blog-single-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 32px;
}

/* Share */
.blog-single-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #c5d8eb;
}
.blog-share-label {
  font-size: 14px;
  font-weight: 600;
  color: #4479a2;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #c5d8eb;
  color: #4479a2;
  font-size: 18px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.blog-share-btn:hover {
  border-color: #ff3845;
  color: #ff3845;
}

/* Author box */
.blog-single-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: #f5f8fb;
  border-radius: 16px;
  margin-bottom: 60px;
}
.blog-author-img {
  border-radius: 50%;
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-author-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4479a2;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.blog-author-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #0c314b;
  text-decoration: none;
  margin-bottom: 8px;
}
.blog-author-name:hover {
  color: #ff3845;
}
.blog-author-bio {
  font-size: 15px;
  color: #4479a2;
  line-height: 1.65;
  margin: 0;
}

/* Related posts */
.blog-related {
  padding: 0 0 56px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .blog-featured-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .blog-featured-title {
    font-size: 28px;
  }
  .blog-single-title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .blog-single-hero {
    padding: 130px 0 60px;
  }
  .blog-single-title {
    font-size: 26px;
  }
  .blog-single-content {
    font-size: 17px;
  }
  .blog-single-content h2 {
    font-size: 24px;
  }
  .blog-single-content h3 {
    font-size: 20px;
  }
  .blog-single-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .blog-page {
    padding-top: 80px;
  }
  .blog-hero {
    padding: 130px 0 70px;
  }
  .blog-hero-title {
    font-size: 32px;
  }
  .blog-hero-sub {
    font-size: 16px;
  }
  .blog-cta-inner,
  .blog-nl-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-cta {
    padding: 28px 24px;
  }
  .blog-newsletter {
    padding: 28px 24px;
  }
  .blog-nl-form {
    width: 100%;
  }
  .blog-nl-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .blog-cta-right {
    width: 100%;
  }
  .blog-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* ---- FAQ archive two-column layout ---- */
.faq-archive-row {
  align-items: flex-start;
}

/* ---- Topics sidebar ---- */
.faq-sidebar {
  position: sticky;
  top: 100px;
  background: #f6f9fc;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-left: 16px;
}
.faq-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #042c4c;
  margin: 0 0 16px;
}
.faq-sidebar-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-sidebar-topics li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #42647a;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.faq-sidebar-topics li a:hover {
  background: #e8f0f7;
  color: #042c4c;
}
.faq-sidebar-topics li a.is-active {
  background: #4479a2;
  color: #fff;
}
.faq-sidebar-count {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
}
.faq-sidebar-topics li a.is-active .faq-sidebar-count {
  opacity: 0.85;
}

@media (max-width: 991px) {
  .faq-sidebar {
    margin-left: 0;
    margin-top: 40px;
    position: static;
  }
}
