/* styles/blog.css */

/* ==========================================
   BLOG PAGE
========================================== */

.blog-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
}

/* ==========================================
   BLOG HERO
========================================== */

.blog-hero {
  padding: 90px 5% 50px;
  text-align: center;
  position: relative;
}

.blog-hero::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.6),
    transparent
  );
}

.blog-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.blog-eyebrow {
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-bottom: 18px;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.blog-intro {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

/* ==========================================
   BLOG FEATURED + GRID
========================================== */

.blog-featured,
.blog-grid-section,
.blog-cta {
  padding: 70px 5%;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.featured-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  margin-bottom: 16px;
}

.featured-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.2;
}

.featured-copy p {
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
}

.blog-read-more {
  width: fit-content;
  min-width: 180px;
}

.featured-image-wrap {
  min-height: 100%;
  background: #050505;
}

.featured-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================
   BLOG GRID
========================================== */

.blog-section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.blog-section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.blog-section-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.blog-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.blog-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.blog-card-body p {
  margin: 0 0 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.blog-link {
  color: #d4af37;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ==========================================
   BLOG CTA
========================================== */

.blog-cta {
  padding-top: 20px;
  padding-bottom: 90px;
}

.blog-cta-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.blog-cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
}

.blog-cta-inner p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* ==========================================
   HOME BLOG PREVIEW
========================================== */

.home-blog-preview {
  padding: 88px 0 40px;
}

.home-blog-preview-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.home-blog-preview-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.home-blog-preview-heading .blog-eyebrow {
  margin-bottom: 12px;
}

.home-blog-preview-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: #fff;
}

.home-blog-preview-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

#home-blog-featured-root,
#home-blog-grid-root {
  width: 100%;
  max-width: 100%;
}

/* ==========================================
   FEATURED HOME ARTICLE
========================================== */

.home-featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.96), rgba(8, 8, 8, 0.96));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.home-featured-image-wrap {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  min-height: 320px;
  background: #050505;
}

.home-featured-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
}

.home-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-featured-copy .post-meta {
  margin: 0 0 12px;
  color: #d4af37;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-featured-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.14;
  color: #fff;
}

.home-featured-copy h3 a,
.home-blog-card-body h3 a {
  color: #fff;
  text-decoration: none;
  border-bottom: none;
}

.home-featured-copy h3 a:hover,
.home-featured-copy h3 a:focus,
.home-blog-card-body h3 a:hover,
.home-blog-card-body h3 a:focus {
  color: #d4af37;
  text-decoration: none;
  outline: none;
}

.home-featured-copy p:not(.post-meta) {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.home-featured-copy .blog-read-more {
  width: fit-content;
  min-width: 180px;
  text-decoration: none;
}

.home-featured-copy .blog-read-more,
.home-featured-copy .blog-read-more:link,
.home-featured-copy .blog-read-more:visited,
.home-featured-copy .blog-read-more:hover,
.home-featured-copy .blog-read-more:focus,
.home-featured-copy .blog-read-more:active {
  text-decoration: none;
}

/* ==========================================
   LATEST ARTICLES GRID
========================================== */

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.95), rgba(8, 8, 8, 0.95));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.home-blog-card:hover,
.home-blog-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(212, 175, 55, 0.07);
}

.home-blog-card > a {
  display: block;
  text-decoration: none;
}

.home-blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.home-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.home-blog-card-body .post-meta {
  margin: 0;
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-blog-card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.34;
}

.home-blog-card-body .blog-link {
  width: fit-content;
  margin-top: 4px;
  color: #d4af37;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.home-blog-card-body .blog-link:hover,
.home-blog-card-body .blog-link:focus-visible {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.55);
  outline: none;
}

/* ==========================================
   HOME PREVIEW CTA
========================================== */

.home-blog-preview-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.home-blog-preview-cta .secondary-cta,
.home-blog-preview-cta .secondary-cta:link,
.home-blog-preview-cta .secondary-cta:visited,
.home-blog-preview-cta .secondary-cta:hover,
.home-blog-preview-cta .secondary-cta:focus,
.home-blog-preview-cta .secondary-cta:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  max-width: 100%;
  padding: 14px 26px;
  margin: 0 auto;
  text-decoration: none;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {
  .home-featured-post {
    grid-template-columns: 1fr;
  }

  .home-featured-image-wrap,
  .home-featured-image-wrap img {
    min-height: 280px;
  }
}

@media (max-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-image-wrap img {
    height: 360px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 70px 5% 40px;
  }

  .blog-featured,
  .blog-grid-section,
  .blog-cta {
    padding: 55px 5%;
  }

  .featured-copy {
    padding: 26px 22px;
  }

  .featured-image-wrap img {
    height: 260px;
  }

  .blog-card img {
    height: 220px;
  }

  .blog-card-body {
    padding: 20px;
  }

  .blog-cta-inner {
    padding: 30px 22px;
  }

  .home-blog-preview {
    padding: 52px 0 24px;
  }

  .home-blog-preview-inner {
    padding-left: var(--mobile-page-gutter);
    padding-right: var(--mobile-page-gutter);
  }

  .home-blog-preview-heading {
    margin-bottom: 24px;
  }

  .home-featured-post {
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .home-featured-image-wrap {
    border-radius: 14px;
    min-height: 220px;
  }

  .home-featured-image-wrap img {
    min-height: 220px;
  }

  .home-featured-copy h3 {
    font-size: 1.4rem;
    line-height: 1.24;
  }

  .home-blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-blog-card {
    border-radius: 16px;
  }

  .home-blog-card-body {
    padding: 18px;
  }

  .home-blog-card-body h3 {
    font-size: 1.08rem;
  }

  .home-blog-preview-cta {
    margin-top: 22px;
  }

  .home-blog-preview-cta .secondary-cta,
  .home-blog-preview-cta .secondary-cta:link,
  .home-blog-preview-cta .secondary-cta:visited,
  .home-blog-preview-cta .secondary-cta:hover,
  .home-blog-preview-cta .secondary-cta:focus,
  .home-blog-preview-cta .secondary-cta:active {
    min-width: 220px;
    padding: 14px 24px;
  }
}
