/* ── CretaHub Master — Blog Page ───────────────────────────── */

:root {
  --che-primary:            #004d70;
  --che-primary-dark:       #003552;
  --che-secondary:          #895200;
  --che-amber:              #FDA53A;
  --che-surface:            #fcf9f8;
  --che-surface-white:      #ffffff;
  --che-on-surface:         #1b1c1c;
  --che-on-surface-variant: #3e4850;
  --che-outline-variant:    #bec8d2;
  --che-font-headline:      "Noto Serif", Georgia, serif;
  --che-font-body:          "Plus Jakarta Sans", sans-serif;
}

#che-blog-wrap, #che-blog-wrap * { box-sizing: border-box; }

#che-blog-wrap {
  background: #fcf9f8;
  color: #1b1c1c;
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
}

/* ── Layout helpers ──────────────────────────────────────── */
#che-blog-wrap .che-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
#che-blog-wrap .che-eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #895200;
  display: block;
  margin-bottom: 12px;
}
#che-blog-wrap .che-heading {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1b1c1c;
  margin: 0;
}

/* ── Animated gradient border ─────────────────────────────── */
@property --che-ga {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes che-spin { to { --che-ga: 360deg; } }

#che-blog-wrap .che-gbc {
  background-image:
    linear-gradient(#fff, #fff),
    conic-gradient(from var(--che-ga), #004d70 0%, #FDA53A 30%, #FFD080 50%, #FDA53A 70%, #004d70 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  border-radius: 20px;
}
#che-blog-wrap .che-gbc:hover {
  animation: che-spin 4s linear infinite;
}

/* ── Hero ────────────────────────────────────────────────── */
/* Hero styles → premium-hero.css */
/* ── Grid section ────────────────────────────────────────── */
#che-blog-grid-section {
  padding: 80px 0 120px;
  background: #fcf9f8;
}

/* ── Image inner (zoomable) ──────────────────────────────── */
#che-blog-wrap .che-blog-img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.1s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* ── Featured post ───────────────────────────────────────── */
#che-blog-wrap .che-blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  text-decoration: none !important;
  color: inherit !important;
  margin-bottom: 72px;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
  border-radius: 22px;
}
#che-blog-wrap .che-blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,77,112,.22);
}
#che-blog-wrap .che-blog-featured__img {
  border-radius: 20px 0 0 20px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(135deg,#004d70 0%,#006894 50%,#0088b8 100%);
}
#che-blog-wrap .che-blog-featured:hover .che-blog-img-inner {
  transform: scale(1.06);
}
#che-blog-wrap .che-blog-featured__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,.04) 100%);
  pointer-events: none; z-index: 1;
}
#che-blog-wrap .che-blog-featured__body {
  padding: 40px 44px;
  background: #fff;
  border-radius: 0 20px 20px 0;
  display: flex; flex-direction: column; justify-content: center;
}
#che-blog-wrap .che-blog-featured__title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400; line-height: 1.18; letter-spacing: -.015em;
  color: #1b1c1c;
  margin: 0 0 18px;
  transition: color .25s ease;
}
#che-blog-wrap .che-blog-featured:hover .che-blog-featured__title { color: #004d70; }
#che-blog-wrap .che-blog-featured__excerpt {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .875rem; font-weight: 300; line-height: 1.78;
  color: #3e4850; margin: 0 0 28px;
}
#che-blog-wrap .che-blog-featured__meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
#che-blog-wrap .che-blog-meta-info {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .78rem; color: #6f7881;
}

/* ── Section header ──────────────────────────────────────── */
#che-blog-wrap .che-blog-section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 40px;
}

/* ── Category filter ─────────────────────────────────────── */
#che-blog-wrap .che-blog-filter { display: flex; gap: 8px; flex-wrap: wrap; }

#che-blog-wrap .che-blog-pill {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 9999px;
  border: 1.5px solid #bec8d2;
  background: transparent; color: #3e4850;
  cursor: pointer;
  transition: all .22s ease;
}
#che-blog-wrap .che-blog-pill:hover,
#che-blog-wrap .che-blog-pill--active {
  border-color: #004d70;
  background: #004d70;
  color: #fff !important;
}

/* ── Cards grid ──────────────────────────────────────────── */
#che-blog-wrap .che-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
#che-blog-wrap .che-blog-card {
  display: flex; flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
  border-radius: 20px;
}
#che-blog-wrap .che-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0,77,112,.20);
}
#che-blog-wrap .che-blog-card__image {
  height: 210px;
  border-radius: 18px 18px 0 0;
  position: relative; overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg,#004d70,#006894);
}
#che-blog-wrap .che-blog-card:hover .che-blog-img-inner {
  transform: scale(1.08);
}
#che-blog-wrap .che-blog-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.32) 100%);
  z-index: 1; pointer-events: none;
  transition: opacity .35s ease;
}
#che-blog-wrap .che-blog-card:hover .che-blog-card__overlay {
  opacity: 1.3;
}
#che-blog-wrap .che-blog-card__body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; flex: 1;
  background: #fff;
  border-radius: 0 0 18px 18px;
}
#che-blog-wrap .che-blog-card__title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.12rem; font-weight: 400;
  line-height: 1.25; letter-spacing: -.01em;
  color: #1b1c1c;
  margin: 0 0 12px;
  transition: color .25s ease;
}
#che-blog-wrap .che-blog-card:hover .che-blog-card__title { color: #004d70; }
#che-blog-wrap .che-blog-card__excerpt {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .83rem; font-weight: 300; line-height: 1.75;
  color: #3e4850; margin: 0 0 20px; flex: 1;
}
#che-blog-wrap .che-blog-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #bec8d2; padding-top: 16px;
}
#che-blog-wrap .che-blog-card__author { display: flex; flex-direction: column; gap: 2px; }
#che-blog-wrap .che-blog-card__author-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .78rem; font-weight: 500; color: #1b1c1c;
}
#che-blog-wrap .che-blog-card__date {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .72rem; color: #6f7881;
}
/* ── Read More button (animated arrow) ───────────────────── */
#che-blog-wrap .che-read-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #004d70 !important;
  background: transparent !important;
  border: 1.5px solid #004d70 !important;
  border-radius: 9999px !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background .22s ease, color .22s ease, border-color .22s ease !important;
  white-space: nowrap !important;
}
#che-blog-wrap .che-blog-card:hover .che-read-more {
  background: #004d70 !important;
  color: #fff !important;
}
#che-blog-wrap .che-read-more svg.che-read-more__arrow {
  transition: transform .22s ease !important;
  opacity: 0.65;
  flex-shrink: 0;
  display: inline-block;
}
#che-blog-wrap .che-blog-card:hover .che-read-more svg.che-read-more__arrow,
#che-blog-wrap .che-blog-featured:hover .che-read-more svg.che-read-more__arrow {
  transform: translateX(4px) !important;
  opacity: 1;
}
#che-blog-wrap .che-read-more--primary {
  color: #fff !important;
  background: #004d70 !important;
  border-color: #004d70 !important;
  border-radius: 9999px !important;
  padding: 12px 22px !important;
  box-shadow: 0 4px 16px rgba(0,77,112,.3) !important;
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease !important;
}
#che-blog-wrap .che-blog-featured:hover .che-read-more--primary {
  background: #003552 !important;
  border-color: #003552 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0,77,112,.45) !important;
}

/* ── Badges ──────────────────────────────────────────────── */
#che-blog-wrap .che-blog-badge {
  position: absolute; top: 14px; left: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: #fff !important;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  z-index: 2;
}
#che-blog-wrap .che-blog-badge--featured {
  color: #FDA53A !important;
  border-color: rgba(253,165,58,.4);
}
#che-blog-wrap .che-blog-loc {
  position: absolute; bottom: 14px; right: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.9) !important;
  z-index: 2;
}
#che-blog-wrap .che-blog-cat-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: #FDA53A; display: block; margin-bottom: 16px;
}

#che-blog-wrap .che-blog-btn-outline {
  display: inline-block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: #004d70 !important; background: transparent;
  border: 1.5px solid #004d70;
  padding: 14px 36px; border-radius: 9999px;
  cursor: pointer; text-decoration: none;
  transition: all .25s ease;
}
#che-blog-wrap .che-blog-btn-outline:hover {
  background: #004d70;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,77,112,.3);
}

/* ── Load more / empty ───────────────────────────────────── */
#che-blog-wrap .che-blog-loadmore { text-align: center; margin-top: 56px; }
#che-blog-wrap .che-blog-empty {
  text-align: center; padding: 80px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .9rem; color: #6f7881;
}

/* ── Hidden cards ────────────────────────────────────────── */
#che-blog-wrap .che-blog-card--hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  #che-blog-wrap .che-container { padding: 0 32px; }
  #che-blog-wrap .che-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  #che-blog-wrap .che-blog-featured { grid-template-columns: 1fr; }
  #che-blog-wrap .che-blog-featured__img { border-radius: 20px 20px 0 0; min-height: 220px; }
  #che-blog-wrap .che-blog-featured__body { border-radius: 0 0 20px 20px; padding: 28px 24px; }
}
@media (max-width: 700px) {
  #che-blog-wrap .che-blog-grid { grid-template-columns: 1fr; }
  #che-blog-wrap .che-blog-section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
  /* .che-premium-hero responsive → premium-hero.css */
  #che-blog-wrap .che-container { padding: 0 20px; }
}