/**
 * Blog & utility templates.
 *
 * Styling for the supporting theme templates (single post, category/tag/date
 * archives, author archive, 404, thank-you). Built to match the existing design
 * system in style.css — it reuses the shared tokens (.goc-container, .blog-card,
 * .h2-heading, .breadcrumb, .view-btn, brand blues) and only adds the layouts
 * style.css never needed: the post meta row, author box, numbered pagination,
 * the 404, and the thank-you page.
 *
 * Everything here is scoped under `.goc-blog` (set as a body class by the
 * templates) so it can never touch the 18 converted pages.
 */

/* ── Shared header (post + archives) ─────────────────────────────────────── */
.goc-blog .blog-hero {
  padding: 56px 0 60px;
  background: linear-gradient(90deg, #bdfff6 0%, #dbdcff 100%);
  text-align: center;
}

.goc-blog .blog-hero .breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
  margin-bottom: 18px;
  font-size: 15px;
}

.goc-blog .blog-hero .breadcrumb a {
  color: #2554d8;
  text-decoration: none;
}

.goc-blog .blog-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.goc-blog .blog-hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4349ed;
  margin-bottom: 14px;
}

.goc-blog .blog-hero__title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.2;
  color: #171b5c;
  margin: 0 auto 18px;
  max-width: 900px;
}

.goc-blog .blog-hero__desc {
  font-size: 18px;
  line-height: 1.6;
  color: #3c3e4b;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Post meta row (author · date · category) ────────────────────────────── */
.goc-blog .goc-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 22px;
  font-size: 16px;
  color: #4e4b7e;
}

.goc-blog .goc-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.goc-blog .goc-post-meta__item + .goc-post-meta__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a9a7cb;
  margin-right: 14px;
}

.goc-blog .goc-post-meta__item a {
  color: #2554d8;
  text-decoration: none;
  font-weight: 600;
}

.goc-blog .goc-post-meta__item a:hover {
  text-decoration: underline;
}

.goc-blog .goc-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: #4349ed;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.goc-blog .goc-cat-pill:hover {
  background: #2530d8;
}

/* ── Single post ─────────────────────────────────────────────────────────── */
.goc-blog .single-post {
  padding: 64px 0 72px;
  background: #fff;
}

.goc-blog .single-post__inner {
  max-width: 820px;
  margin: 0 auto;
}

.goc-blog .single-post__media {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(23, 27, 92, 0.12);
}

.goc-blog .single-post__media img {
  width: 100%;
  height: auto;
  display: block;
}

.goc-blog .single-post__body {
  font-size: 18px;
  line-height: 1.75;
  color: #45435f;
}

.goc-blog .single-post__body > *:first-child {
  margin-top: 0;
}

.goc-blog .single-post__body p {
  margin: 0 0 24px;
  color: #45435f;
}

.goc-blog .single-post__body h2 {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #171b5c;
  margin: 44px 0 18px;
}

.goc-blog .single-post__body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #171b5c;
  margin: 34px 0 14px;
}

.goc-blog .single-post__body ul,
.goc-blog .single-post__body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.goc-blog .single-post__body li {
  margin-bottom: 10px;
}

.goc-blog .single-post__body a {
  color: #2554d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.goc-blog .single-post__body blockquote {
  margin: 32px 0;
  padding: 18px 26px;
  border-left: 4px solid #4349ed;
  background: #f2f3ff;
  border-radius: 0 12px 12px 0;
  color: #2c2a52;
  font-style: italic;
}

.goc-blog .single-post__body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* ── Author box (below single content) ───────────────────────────────────── */
.goc-blog .author-box {
  max-width: 820px;
  margin: 56px auto 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4f5ff 0%, #eef7ff 100%);
  border: 1px solid #e2e4ff;
}

.goc-blog .author-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  background: linear-gradient(135deg, #4349ed, #6c33ff);
  object-fit: cover;
  overflow: hidden;
}

.goc-blog .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.goc-blog .author-box__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a67a0;
  margin-bottom: 4px;
}

.goc-blog .author-box__name {
  font-size: 22px;
  font-weight: 700;
  color: #171b5c;
  margin: 0 0 10px;
}

.goc-blog .author-box__name a {
  color: inherit;
  text-decoration: none;
}

.goc-blog .author-box__name a:hover {
  color: #4349ed;
}

.goc-blog .author-box__bio {
  font-size: 16px;
  line-height: 1.65;
  color: #4e4b7e;
  margin: 0 0 14px;
}

.goc-blog .author-box__link {
  font-size: 15px;
  font-weight: 600;
  color: #2554d8;
  text-decoration: none;
}

.goc-blog .author-box__link:hover {
  text-decoration: underline;
}

/* ── Post navigation (prev / next) ───────────────────────────────────────── */
.goc-blog .post-nav {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.goc-blog .post-nav a {
  flex: 1 1 45%;
  min-width: 240px;
  padding: 18px 22px;
  border: 1px solid #e2e4ff;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.3s ease;
  background: #fff;
}

.goc-blog .post-nav a:hover {
  border-color: #4349ed;
  box-shadow: 0 10px 24px rgba(67, 73, 237, 0.12);
}

.goc-blog .post-nav .post-nav__dir {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a88b3;
  margin-bottom: 6px;
}

.goc-blog .post-nav .post-nav__title {
  font-size: 17px;
  font-weight: 600;
  color: #171b5c;
  line-height: 1.4;
}

.goc-blog .post-nav .post-nav--next {
  text-align: right;
}

/* ── Related / archive section wrapper ───────────────────────────────────── */
.goc-blog .related-section {
  padding: 72px 0;
  background: linear-gradient(90deg, #bdfff6 0%, #dbdcff 100%);
}

.goc-blog .archive-listing {
  padding: 64px 0 72px;
  background: #fff;
}

/* Reuses the existing .blog-grid / .blog-card system from style.css, with a
   few additions so cards carry meta + excerpt on the listing pages. */
.goc-blog .blog-card .blog-image {
  position: relative;
}

.goc-blog .blog-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 27, 92, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  z-index: 2;
}

.goc-blog .blog-card__cat:hover {
  background: #4349ed;
}

.goc-blog .blog-card__meta {
  font-size: 14px;
  color: #6a67a0;
  margin-bottom: 10px;
}

.goc-blog .blog-card__meta a {
  color: #2554d8;
  text-decoration: none;
  font-weight: 600;
}

.goc-blog .blog-card__meta a:hover {
  text-decoration: underline;
}

.goc-blog .blog-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.goc-blog .blog-content h3 a:hover {
  color: #4349ed;
}

.goc-blog .blog-card__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #4e4b7e;
  margin-bottom: 18px;
}

/* ── Numbered pagination ─────────────────────────────────────────────────── */
.goc-blog .goc-pagination {
  margin-top: 56px;
}

.goc-blog .goc-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.goc-blog .goc-pagination .nav-links li {
  list-style: none;
  margin: 0;
}

.goc-blog .goc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d9dbf3;
  color: #171b5c;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;
}

.goc-blog .goc-pagination a.page-numbers:hover {
  border-color: #4349ed;
  color: #4349ed;
}

.goc-blog .goc-pagination .page-numbers.current {
  background: #4349ed;
  border-color: #4349ed;
  color: #fff;
}

.goc-blog .goc-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

.goc-blog .goc-pagination .page-numbers.prev,
.goc-blog .goc-pagination .page-numbers.next {
  font-weight: 700;
}

/* ── Empty state (no posts) ──────────────────────────────────────────────── */
.goc-blog .no-posts {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.goc-blog .no-posts p {
  font-size: 18px;
  color: #4e4b7e;
  margin-bottom: 26px;
}

/* ── Search form (404 + no-results) ──────────────────────────────────────── */
.goc-blog .goc-search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.goc-blog .goc-search-form label {
  flex: 1;
  margin: 0;
}

.goc-blog .goc-search-form .search-field {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 1px solid #d9dbf3;
  border-radius: 10px;
  font-size: 16px;
  color: #171b5c;
  background: #fff;
  outline: none;
  transition: border-color 0.25s ease;
}

.goc-blog .goc-search-form .search-field:focus {
  border-color: #4349ed;
  box-shadow: 0 0 0 3px rgba(67, 73, 237, 0.12);
}

.goc-blog .goc-search-form .search-submit {
  flex-shrink: 0;
  height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: #4349ed;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease;
}

.goc-blog .goc-search-form .search-submit:hover {
  background: #2530d8;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.goc-blog .error-404-hero {
  padding: 90px 0 100px;
  background: linear-gradient(160deg, #eef7ff 0%, #e7e8ff 100%);
  text-align: center;
}

.goc-blog .error-404__code {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 140px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #4349ed, #6c33ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.goc-blog .error-404__title {
  font-size: 34px;
  font-weight: 800;
  color: #171b5c;
  margin: 0 0 16px;
}

.goc-blog .error-404__text {
  font-size: 18px;
  line-height: 1.6;
  color: #3c3e4b;
  max-width: 560px;
  margin: 0 auto 34px;
}

.goc-blog .error-404__actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shared brand button used by 404 + thank-you (mirrors .hero-btn / .view-btn). */
.goc-blog .goc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 54px;
  padding: 0 30px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.goc-blog .goc-btn--primary {
  background: #4349ed;
  color: #fff;
}

.goc-blog .goc-btn--primary:hover {
  background: #171b5c;
  color: #fff;
}

.goc-blog .goc-btn--ghost {
  background: transparent;
  color: #4349ed;
  border: 2px solid #4349ed;
}

.goc-blog .goc-btn--ghost:hover {
  background: #4349ed;
  color: #fff;
}

/* ── Thank-you page ──────────────────────────────────────────────────────── */
.goc-blog.goc-thankyou .thankyou-hero {
  padding: 96px 0 104px;
  background: linear-gradient(160deg, #eafff6 0%, #e3e8ff 100%);
  text-align: center;
}

.goc-blog .thankyou__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: #22a06b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(34, 160, 107, 0.32);
}

.goc-blog .thankyou__icon svg {
  width: 46px;
  height: 46px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

.goc-blog .thankyou__title {
  font-size: 40px;
  font-weight: 800;
  color: #171b5c;
  margin: 0 0 16px;
}

.goc-blog .thankyou__text {
  font-size: 19px;
  line-height: 1.6;
  color: #3c3e4b;
  max-width: 600px;
  margin: 0 auto 36px;
}

.goc-blog .thankyou__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .goc-blog .blog-hero__title {
    font-size: 34px;
  }
  .goc-blog .error-404__code {
    font-size: 104px;
  }
  .goc-blog .single-post,
  .goc-blog .archive-listing {
    padding: 48px 0 56px;
  }
}

@media (max-width: 767px) {
  .goc-blog .blog-hero {
    padding: 40px 0 44px;
  }
  .goc-blog .blog-hero__title {
    font-size: 28px;
  }
  .goc-blog .single-post__body {
    font-size: 17px;
  }
  .goc-blog .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 22px;
  }
  .goc-blog .post-nav a {
    flex: 1 1 100%;
  }
  .goc-blog .post-nav .post-nav--next {
    text-align: left;
  }
  .goc-blog .error-404__code {
    font-size: 84px;
  }
  .goc-blog .error-404__title,
  .goc-blog .thankyou__title {
    font-size: 26px;
  }
  .goc-blog .goc-search-form {
    flex-direction: column;
  }
  .goc-blog .goc-search-form .search-submit {
    width: 100%;
  }
}
