/* ===================================================================
   Blog Demo (Listing) Template Styles
   Breakpoint: 974px (matches site convention)
   =================================================================== */

/* -------------------------------------------------------
   Base
   ------------------------------------------------------- */
/* .svglogoNoMorph {
  fill: var(--white);
} */

.blogPage img {
  width: 100%;
}

.blogListingWrap,
.blogArticleView {
  transition: opacity 0.4s ease;
}

.blogArticleView {
  display: none;
}

.blogArticleView.is-active {
  display: block;
}

.blogListingWrap.is-hidden {
  display: none;
}

/* -------------------------------------------------------
   Blog Hero
   ------------------------------------------------------- */
.blogHeroWrap {
  width: 100%;
}

.blogHeroBg {
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.blogHeroImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blogHeroTitle {
  padding: 2.5rem 2rem;
}

.blogHeroTitle h1 {
  font-size: 1.75rem;
  font-family: var(--light);
  line-height: 1.3;
  text-transform: lowercase;
}

.blogHeroTitle h1::before {
  content: '';
  display: block;
  height: 3px;
  width: 80px;
  background-color: var(--black);
  margin-bottom: 1rem;
}

/* -------------------------------------------------------
   Blog Intro Text
   ------------------------------------------------------- */
.blogIntroWrap {
  padding: 0 10rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blogIntroWrap span.light {
  font-family: var(--light);
  font-size: 1.2rem;
}

.blogIntroWrap h2 {
  font-size: 1.5rem;
  line-height: 1.5;
}

/* -------------------------------------------------------
   Category Label & Date
   ------------------------------------------------------- */
.blogCategory {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: var(--medium);
  letter-spacing: 0.08em;
  color: #888;
}

.blogDate {
  font-size: 0.75rem;
  font-family: var(--light);
  color: #999;
  text-transform: uppercase;
}

/* -------------------------------------------------------
   Read More Link
   ------------------------------------------------------- */
.blogReadMore {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: var(--medium);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--black);
  width: fit-content;
  padding-bottom: 0.35rem;
  transition: opacity 200ms ease;
  cursor: pointer;
}

.blogReadMore:hover {
  opacity: 0.6;
}

/* -------------------------------------------------------
   Featured Article
   ------------------------------------------------------- */
.blogFeatured {
  display: flex;
  flex-direction: column;
  background-color: #f2f2f2;
  cursor: pointer;
}

.blogFeaturedThumbWrap {
  overflow: hidden;
}

.blogFeaturedThumbWrap .blogThumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition:
    transform 400ms ease,
    filter 400ms ease;
}

.blogFeatured:hover .blogFeaturedThumbWrap .blogThumb {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.blogFeaturedText {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.blogFeaturedText h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.blogFeaturedText p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* -------------------------------------------------------
   Article Grid
   ------------------------------------------------------- */
.blogGrid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  margin: 0;
}

.blogCard {
  background-color: #f2f2f2;
  cursor: pointer;
}

.blogCardThumbWrap {
  display: block;
  overflow: hidden;
}

.blogCardThumbWrap .blogThumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition:
    transform 400ms ease,
    filter 400ms ease;
}

.blogCard:hover .blogCardThumbWrap .blogThumb {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.blogCardText {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.blogCardText h3 {
  font-size: 1.15rem;
  font-family: var(--medium);
  line-height: 1.3;
}

.blogCardText p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.blogThumb.blogMissingPhoto {
  color: #919191;
  display: grid;
  place-content: center;
}

.loader {
  margin: 0.75rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid #000000;
  border-right-color: transparent;
  border-radius: 100vw;
  animation: spin infinite 1s linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===================================================================
   Mobile ( <= 974px )
   =================================================================== */
@media (max-width: 974px) {
  .blogFeatured {
    margin: 0 2rem 2rem;
  }

  .blogGrid {
    padding: 0 2rem 2rem;
  }
}

/* ===================================================================
   Desktop ( >= 974px )
   =================================================================== */
@media (min-width: 974px) {
  .blogHeroTitle {
    padding: 8rem 14rem 2rem;
  }

  .blogHeroTitle h1 {
    font-size: 2.5rem;
  }

  /* Intro */
  .blogIntroWrap {
    padding: 0 14rem 4rem;
    gap: 1.5rem;
  }

  .blogIntroWrap span.light {
    font-size: 1.5rem;
  }

  .blogIntroWrap h2 {
    max-width: 500px;
  }

  /* Featured Article */
  .blogFeatured {
    display: grid;
    grid-template-columns: 3fr 2fr;
    margin: 0 14rem 3rem;
    height: 750px;
  }

  .blogFeaturedThumbWrap .blogThumb {
    height: 100%;
    aspect-ratio: unset;
  }

  .blogFeaturedText {
    padding: 4rem;
    gap: 1.25rem;
    justify-content: center;
  }

  .blogFeaturedText h2 {
    font-size: 2rem;
  }

  .blogFeaturedText p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
  }

  /* Article Grid */
  .blogGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 14rem 4rem;
  }

  .blogCardText {
    padding: 1.5rem;
  }

  .blogCardText h3 {
    font-size: 1.15rem;
  }
}
