
/* ================================================================
   Citrine Blog Automation
   ================================================================ */

.ctrs-section {
  background: #ffffff;
  padding: 90px 0;
}

.ctrs-section .ctb-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.ctrs-section .ctb-heading > span {
  color: #9a6100;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ctrs-section .ctb-heading h2 {
  margin: 13px 0 0;
  color: #0d1b31;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.ctrs-section .ctb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.ctrs-section .ctb-related-grid a {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  border: 1px solid #dce4ed;
  background: #ffffff;
  padding: 27px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ctrs-section .ctb-related-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(7, 19, 38, .08);
}

.ctrs-section .ctb-related-grid a > span {
  color: #2e5fb8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ctrs-section .ctb-related-grid h3 {
  margin: 38px 0 15px;
  color: #0d1b31;
  font-size: 21px;
  line-height: 1.35;
}

.ctrs-section .ctb-related-grid p {
  margin: 0 0 24px;
  color: #506178;
  font-size: 12px;
  line-height: 1.72;
}

.ctrs-section .ctb-related-grid strong {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  color: #0d1b31;
  font-size: 12px;
}

.ctrs-section .ctb-related-grid i {
  color: #9a6100;
  font-style: normal;
}

/* Dynamic archive fallback visuals. */
.ctba-dynamic-root {
  position: relative;
}

.ctba-filter-item[hidden] {
  display: none !important;
}

.ctarchive-featured-visual > img,
.ctarchive-card-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ctba-fallback-visual {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(79, 140, 247, .2), transparent 25%),
    linear-gradient(135deg, #071326, #173b60);
  color: #ffffff;
}

.ctba-visual-grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.ctba-visual-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 28px 65px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

.ctba-visual-icon svg {
  width: 96px;
  height: 96px;
  fill: none;
  stroke: #ffbc30;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctba-fallback-visual > span {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 21px;
  left: 24px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.ctba-no-posts a {
  display: inline-flex;
  margin-top: 18px;
  background: #0d1b31;
  color: #ffffff;
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 620px) {
  .ctrs-section {
    padding: 72px 0;
  }

  .ctrs-section .ctb-related-grid {
    grid-template-columns: 1fr;
  }

  .ctba-visual-icon {
    width: 115px;
    height: 115px;
    border-radius: 24px;
  }

  .ctba-visual-icon svg {
    width: 72px;
    height: 72px;
  }
}
