/* ====================================================
   BLOG STYLES — 1031 Ivy Exchange
   ==================================================== */

/* BLOG HERO */
.blog-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 60px;
  text-align: center;
}
.blog-hero__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.08;
  margin-bottom: 18px;
}
.blog-hero__title em { font-style: italic; color: var(--ivy); }
.blog-hero__sub { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }

/* BREADCRUMB */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.breadcrumb__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-light);
}
.breadcrumb__inner a { color: var(--ivy); }
.breadcrumb__inner a:hover { color: var(--ivy-mid); text-decoration: underline; }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--text-mid); font-weight: 500; }

/* BLOG INDEX */
.blog-index { padding: 80px 0 100px; background: var(--white); }
.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* BI CARDS */
.bi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.bi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.bi-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 360px;
}
.bi-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.bi-card__img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.bi-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}
.bi-card:hover .bi-card__img img { transform: scale(1.04); }

.bi-card--featured .bi-card__img { width: 45%; height: auto; }
.bi-card--wide .bi-card__img { width: 35%; min-height: 240px; }
.bi-card__img--sm { height: 200px; }

.bi-card__tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ivy);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.bi-card__body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bi-card--featured .bi-card__body { padding: 48px 44px; }

.bi-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.bi-card__cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivy-mid);
}
.bi-card__dot { color: var(--border-dark); }
.bi-card__read { font-size: 0.68rem; color: var(--text-light); }

.bi-card__body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}
.bi-card--featured .bi-card__body h2 { font-size: 2rem; }
.bi-card--wide .bi-card__body h2 { font-size: 1.5rem; }
.bi-card__body h2 a:hover { color: var(--ivy); }

.bi-card__body p {
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 20px;
}
.bi-card__link {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.bi-card__link:hover { gap: 10px; }

/* BLOG CTA */
.blog-cta {
  background: var(--ivy-pale);
  border-top: 1px solid var(--ivy-pale2);
  border-bottom: 1px solid var(--ivy-pale2);
  padding: 60px 0;
}
.blog-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.blog-cta__inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}
.blog-cta__inner h2 em { font-style: italic; color: var(--ivy); }
.blog-cta__inner p { font-size: 0.88rem; color: var(--text-mid); }

/* ====================================================
   ARTICLE PAGE
   ==================================================== */
.article-layout {
  padding: 64px 0 100px;
  background: var(--white);
}
.article-layout__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

/* ARTICLE HEADER */
.article-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}
.article-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  max-width: 760px;
}
.article-header__cat {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ivy);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.article-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 20px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.article-header__author { font-weight: 600; color: var(--text-mid); }
.article-header__sep { opacity: 0.4; }

/* ARTICLE HERO IMG */
.article-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 48px;
  display: block;
}

/* ARTICLE BODY */
.article-body { font-size: 1rem; line-height: 1.9; color: var(--text-body); }
.article-body p { margin-bottom: 24px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 40px 0 16px;
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 32px 0 12px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.article-body li { margin-bottom: 10px; line-height: 1.75; }
.article-body strong { font-weight: 600; color: var(--text-dark); }
.article-body em { font-style: italic; color: var(--ivy); }

.article-pull {
  border-left: 3px solid var(--ivy);
  padding: 20px 24px;
  background: var(--ivy-pale);
  border-radius: 0 4px 4px 0;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ivy);
  line-height: 1.6;
}

.article-key-points {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin: 36px 0;
}
.article-key-points h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivy-mid);
  margin-bottom: 16px;
}
.article-key-points ul { list-style: none; padding: 0; margin: 0; }
.article-key-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  margin: 0;
}
.article-key-points li:last-child { border-bottom: none; }
.article-key-points li::before {
  content: '✓';
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--ivy);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* NAV BETWEEN POSTS */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 260px;
}
.article-nav__link--next { text-align: right; }
.article-nav__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
}
.article-nav__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivy);
  line-height: 1.3;
}
.article-nav__title:hover { color: var(--ivy-mid); text-decoration: underline; }

/* SIDEBAR */
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.sidebar-cta {
  background: var(--ivy);
  border-radius: 8px;
  padding: 36px 28px;
  color: #fff;
  margin-bottom: 24px;
}
.sidebar-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}
.sidebar-cta p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.sidebar-cta .btn--primary { background: var(--gold-mid); color: var(--text-dark); width: 100%; justify-content: center; }
.sidebar-cta .btn--primary:hover { background: var(--gold-light); }
.sidebar-cta__info { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-cta__info-item { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.65); }

.sidebar-posts { background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.sidebar-posts h4 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivy-mid);
  margin-bottom: 20px;
}
.sidebar-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post__img { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.sidebar-post__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.sidebar-post__title a:hover { color: var(--ivy); }
.sidebar-post__cat { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivy-mid); display: block; margin-bottom: 4px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .article-layout__inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .bi-card--featured, .bi-card--wide { flex-direction: column; }
  .bi-card--featured .bi-card__img, .bi-card--wide .bi-card__img { width: 100%; height: 260px; }
}
@media (max-width: 680px) {
  .blog-index__grid { grid-template-columns: 1fr; }
  .blog-cta__inner { flex-direction: column; text-align: center; }
  .article-hero-img { height: 240px; margin-bottom: 32px; }
  .article-layout__inner { padding: 0 20px; }
  .article-header__inner { padding: 0 20px; }
  .blog-hero__inner { padding: 0 20px; }
  .article-nav { flex-direction: column; gap: 12px; }
  .article-nav__link--next { text-align: left; }
}
