/* Blog Styles — Hoog Op Maps */

/* ======================== */
/* Category Filter Pills     */
/* ======================== */
.blog-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.blog-cats::-webkit-scrollbar { display: none; }

.blog-cat-btn {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.blog-cat-btn:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}
.blog-cat-btn--active {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* ======================== */
/* Search Bar                */
/* ======================== */
.blog-search {
  position: relative;
  max-width: 400px;
  width: 100%;
}
.blog-search__input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  font-size: 14px;
  font-family: inherit;
  color: #202124;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.blog-search__input:focus {
  border-color: #1a73e8;
  background: #fff;
}
.blog-search__input::placeholder { color: #9aa0a6; }
.blog-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a6;
  pointer-events: none;
}

/* ======================== */
/* Featured Post Hero        */
/* ======================== */
.blog-featured {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(135deg, #1557b0 0%, #1a73e8 50%, #4285f4 100%);
  transition: box-shadow 0.3s;
}
.blog-featured:hover {
  box-shadow: 0 8px 32px rgba(26,115,232,0.25);
}
.blog-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.blog-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.blog-featured__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 360px;
  padding: 32px;
}
.blog-featured__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: #1a73e8;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-featured__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 600px;
}
.blog-featured__excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 500px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.blog-featured__meta span { display: flex; align-items: center; gap: 4px; }

/* ======================== */
/* Blog Card                 */
/* ======================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 4px 16px rgba(60,64,67,0.12);
  border-color: #1a73e8;
  transform: translateY(-2px);
}

.blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f8f9fa;
}

.blog-card__placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f3f4;
  font-size: 12px;
  color: #5f6368;
}
.blog-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card__reading-time {
  margin-left: auto;
  color: #9aa0a6;
}

/* ======================== */
/* Blog Post Content         */
/* ======================== */
.blog-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  font-size: 17px;
  line-height: 1.85;
  color: #3c4043;
}

.blog-post-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #202124;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eaed;
  scroll-margin-top: 80px;
}

.blog-post-content h3 {
  font-size: 21px;
  font-weight: 600;
  color: #202124;
  margin: 36px 0 12px;
}

.blog-post-content p { margin-bottom: 18px; }

.blog-post-content ul, .blog-post-content ol {
  margin: 0 0 18px 24px;
}

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

.blog-post-content li strong {
  background: #e8f0fe;
  padding: 1px 6px;
  border-radius: 4px;
}

.blog-post-content a { color: #1a73e8; text-decoration: none; }
.blog-post-content a:hover { text-decoration: underline; }

.blog-post-content strong { color: #202124; }

.blog-post-content blockquote {
  border-left: 4px solid #1a73e8;
  padding: 20px 24px;
  margin: 32px 0;
  background: #f0f6ff;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  position: relative;
}
.blog-post-content blockquote::before {
  content: "\201C";
  font-size: 48px;
  color: #1a73e8;
  opacity: 0.3;
  position: absolute;
  top: -8px;
  left: 16px;
  font-family: Georgia, serif;
  line-height: 1;
}

.blog-post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 28px 0;
  box-shadow: 0 2px 12px rgba(60,64,67,0.1);
}
.blog-post-content figure {
  margin: 28px 0;
}
.blog-post-content figcaption {
  font-size: 13px;
  color: #9aa0a6;
  text-align: center;
  margin-top: 8px;
}

/* ======================== */
/* Related Posts             */
/* ======================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ======================== */
/* CTA A: Inline Card        */
/* ======================== */
.blog-cta-inline {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-left: 4px solid #1a73e8;
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 36px 0;
  background: #f0f6ff;
}
.blog-cta-inline__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #1a73e8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-cta-inline__icon svg { width: 22px; height: 22px; }
.blog-cta-inline__body { flex: 1; }
.blog-cta-inline__title {
  font-size: 18px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 6px;
}
.blog-cta-inline__text {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 14px;
  line-height: 1.6;
}
.blog-cta-inline__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-cta-inline__btn:hover { background: #1557b0; }
@media (max-width: 640px) {
  .blog-cta-inline { flex-direction: column; gap: 14px; padding: 20px; }
}

/* ======================== */
/* CTA B: Service Button     */
/* ======================== */
.blog-cta-service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  margin: 24px 0;
}
.blog-cta-service-btn:hover {
  background: #d2e3fc;
  box-shadow: 0 2px 8px rgba(26,115,232,0.15);
  text-decoration: none;
}

/* ======================== */
/* CTA C: Mid-Content Banner */
/* ======================== */
.blog-cta-mid {
  background: linear-gradient(135deg, #1557b0 0%, #1a73e8 50%, #4285f4 100%);
  border-radius: 16px;
  padding: 40px 36px;
  margin: 44px 0;
  text-align: center;
}
.blog-cta-mid__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.blog-cta-mid__text {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.blog-cta-mid__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-cta-mid__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #fff;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.blog-cta-mid__btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.blog-cta-mid__btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.blog-cta-mid__btn--outline:hover {
  border-color: #fff;
  box-shadow: none;
}

/* ======================== */
/* CTA D: Sidebar CTA        */
/* ======================== */
.blog-sidebar-cta {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 0 24px 24px;
  text-align: center;
  overflow: hidden;
}
.blog-sidebar-cta__gradient-top {
  height: 4px;
  background: linear-gradient(90deg, #1a73e8, #4285f4, #7baaf7);
  margin: 0 -24px 20px;
}
.blog-sidebar-cta__icon {
  width: 40px;
  height: 40px;
  background: #e8f0fe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.blog-sidebar-cta__icon svg { width: 20px; height: 20px; }
.blog-sidebar-cta__title {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
}
.blog-sidebar-cta__text {
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 16px;
  line-height: 1.5;
}
.blog-sidebar-cta__btn {
  display: block;
  padding: 12px 20px;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-sidebar-cta__btn:hover { background: #1557b0; }
.blog-sidebar-cta__trust {
  font-size: 12px;
  color: #1e8e3e;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ======================== */
/* CTA E: Bottom Banner      */
/* ======================== */
.blog-cta-bottom {
  background: linear-gradient(135deg, #1557b0 0%, #1a73e8 40%, #4285f4 100%);
  padding: 56px 24px;
}
.blog-cta-bottom__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.blog-cta-bottom__content { flex: 1; }
.blog-cta-bottom__title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.blog-cta-bottom__text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 420px;
}
.blog-cta-bottom__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}
.blog-cta-bottom__btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.blog-cta-bottom__trust {
  max-width: 960px;
  margin: 16px auto 0;
  display: flex;
  gap: 24px;
  justify-content: center;
}
.blog-cta-bottom__trust span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 768px) {
  .blog-cta-bottom__inner { flex-direction: column; text-align: center; }
  .blog-cta-bottom__text { margin: 0 auto; }
}

/* ======================== */
/* Post Hero (Redesigned)    */
/* ======================== */
.post-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  max-width: 1060px;
  margin: 24px auto 0;
  border-radius: 16px;
}
@media (max-width: 1108px) {
  .post-hero { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 768px) {
  .post-hero { min-height: 320px; margin-top: 16px; border-radius: 12px; }
}
.post-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.1) 100%);
}
.post-hero__gradient {
  position: absolute;
  inset: 0;
}
.post-hero__body {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  width: 100%;
}
@media (max-width: 768px) {
  .post-hero__body { padding: 40px 20px 28px; }
}
.post-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.post-hero__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 14px;
  border-radius: 20px;
}
/* Mobile: horizontal swipeable tags with dividers */
@media (max-width: 768px) {
  .post-hero__badges {
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 14px;
    padding-bottom: 2px;
  }
  .post-hero__badges::-webkit-scrollbar { display: none; }
  .post-hero__badge {
    font-size: 9px;
    font-weight: 400;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
    color: rgba(255,255,255,0.85);
  }
  .post-hero__badge + .post-hero__badge {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.3);
  }
}
.post-hero__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
  max-width: 720px;
}
.post-hero__meta {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-hero__meta-sep {
  opacity: 0.5;
}

/* Hero gradient backgrounds per category */
.post-hero--blue    { background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 30%, #4285f4 60%, #7baaf7 80%, #aecbfa 100%); }
.post-hero--green   { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 30%, #4caf50 60%, #81c784 80%, #c8e6c9 100%); }
.post-hero--red     { background: linear-gradient(135deg, #b71c1c 0%, #e53935 30%, #ef5350 60%, #ef9a9a 80%, #ffcdd2 100%); }
.post-hero--gold    { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #f9a825 60%, #ffca28 80%, #fff8e1 100%); }
.post-hero--purple  { background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 30%, #ab47bc 60%, #ce93d8 80%, #f3e5f5 100%); }

/* When post has a hero image, gradient is used as overlay only */
.post-hero--has-image { background: none; }
.post-hero--has-image .post-hero__gradient { display: none; }

/* ======================== */
/* Article + Sidebar Layout  */
/* ======================== */
.post-layout {
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}
.post-layout__flex {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.post-layout__article {
  flex: 1;
  min-width: 0;
}
.post-layout__sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
}
@media (max-width: 1023px) {
  .post-layout__sidebar { display: none; }
  .post-layout__flex { gap: 0; }
}

/* ======================== */
/* Table of Contents (TOC)   */
/* ======================== */
.blog-toc {
  margin-bottom: 28px;
}
.blog-toc__heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa0a6;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8eaed;
}
.blog-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-toc__link {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 13px;
  color: #5f6368;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.blog-toc__link:hover {
  color: #1a73e8;
}
.blog-toc__link--active {
  color: #1a73e8;
  font-weight: 600;
  border-left-color: #1a73e8;
}

/* No results */
.blog-no-results {
  text-align: center;
  padding: 48px 24px;
  color: #5f6368;
}
.blog-no-results h3 {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 8px;
}
