/* ============================================================
   newsroom.css — Mastery Logistics Systems
   Newsroom / Resources listing page-specific styles.
   Global styles live in style.css.
   Desktop styles first. Mobile overrides at the bottom.

   COMPONENT REUSE:
   - .cta-banner — standard closing CTA (from other pages).
   - .btn-primary-lg — global button style.
   - .container — global width wrapper.

   NEW COMPONENTS INTRODUCED HERE:
   - .featured — dark featured-post hero. Content column is
     fixed width on the left; image column extends to the
     right edge of the section with only the left corners
     rounded, giving the thumbnail a less-restricted feel.
   - .image-placeholder — reusable placeholder for images not
     yet sourced. Delete each occurrence when the real image
     replaces it.
   - .filter-bar — sticky category tab strip. Underlined active
     tab uses a copper gradient bar.
   - .grid-section / .grid / .card — 3-column post grid. Each
     card is a full-tile clickable anchor. Hover lifts the
     image and shifts the title toward copper.
   - .load-more — centered "Load More" button below the grid.
   - .btn-secondary-lg — ghost-style CTA used for Load More.

   PAGE STRUCTURE:
   1. Featured post hero (dark, image extends right)
   2. Filter bar (sticky, underlined tabs)
   3. Post grid (3-column with Load More)
   4. CTA banner (dark)
============================================================ */


/* ============================================================
   IMAGE PLACEHOLDER
   Reusable for images not yet sourced.
============================================================ */
.image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #e8ddd4, #d4c8bf);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 1rem;
  text-align: center;
}

.image-placeholder--dark {
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 147, 101, 0.14), transparent 65%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
}

.image-placeholder__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.01em;
}

.image-placeholder--dark .image-placeholder__label {
  color: rgba(255, 255, 255, 0.75);
}

.image-placeholder__note {
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder--dark .image-placeholder__note {
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   SECTION 1 — FEATURED POST HERO
   Dark. Two-column with content LEFT and image RIGHT.
   Note the padding: 0 on the right so the image can extend
   to the section edge. Content stays comfortably inset on
   the left. Only the LEFT corners of the image are rounded.
============================================================ */
.featured {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-left: 3.25rem;
  padding-right: 3.25rem;
}

.featured__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 65%, rgba(178, 93, 66, 0.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.featured__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.featured__content {
  max-width: 440px;
}

.featured__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(252, 147, 101, 0.14);
  border: 0.5px solid rgba(252, 147, 101, 0.35);
  color: #fc9365;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.featured__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fc9365;
}

.featured__headline {
  color: var(--color-white);
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
}

.featured__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #fc9365;
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}

.featured__link:hover {
  color: #fdbea3;
}

.featured__link-arrow {
  transition: transform 0.2s;
  display: inline-flex;
}

.featured__link:hover .featured__link-arrow {
  transform: translateX(4px);
}

.featured__media {
  position: relative;
  width: 100%;
}

.featured__image {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

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


/* ============================================================
   SECTION 2 — FILTER BAR
   White. Sticky. Underlined tab strip.
============================================================ */
.filter-bar {
  background: var(--color-white);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 3.25rem;
  position: sticky;
  top: 56px; /* sit below the fixed nav bar */
  z-index: 10;
}

.filter-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.filter-tab {
  position: relative;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--color-text-primary);
}

.filter-tab--active {
  color: var(--color-copper);
}

.filter-tab--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #fc9365, #b25d42);
  border-radius: 2px;
}


/* ============================================================
   SECTION 3 — POST GRID
   White. 3 columns desktop, 2 tablet, 1 mobile.
============================================================ */
.grid-section {
  background: var(--color-white);
  padding-top: 3.75rem;
  padding-bottom: 5rem;
  padding-left: 3.25rem;
  padding-right: 3.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

.card__image {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.125rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover .card__image {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

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

.card__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.card__category {
  font-size: 0.5625rem;
  color: var(--color-copper);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.card__date {
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  font-weight: var(--weight-medium);
}

.card__title {
  font-size: 1.0625rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  transition: color 0.2s;
}

.card:hover .card__title {
  color: var(--color-copper);
}

.card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-copper);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.card__read-arrow {
  display: inline-flex;
  transition: transform 0.2s;
}

.card:hover .card__read-arrow {
  transform: translateX(3px);
}


/* ============================================================
   LOAD MORE
   Centered ghost-style button below the grid.
============================================================ */
.load-more {
  text-align: center;
  margin-top: 3.5rem;
}

.btn-secondary-lg {
  display: inline-block;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  padding: 0.8125rem 1.75rem;
  border-radius: 10px;
  border: 1px solid rgba(178, 93, 66, 0.3);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary-lg:hover {
  border-color: var(--color-copper);
  color: var(--color-copper);
}


/* ============================================================
   SECTION 4 — CTA BANNER
   Dark. Standard closing.
============================================================ */
.cta-banner {
  background: #0a0a0a;
  border-top: 0.5px solid #1f1f1f;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(178, 93, 66, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: 1rem;
}


/* ============================================================
   RESPONSIVE — MOBILE OVERRIDES
============================================================ */
@media (max-width: 1024px) {

  /* Grid — 2 columns on tablet */
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Featured — reduce content column width slightly */
  .featured__inner {
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
  }

  .featured__headline {
    font-size: 2rem;
  }

}


@media (max-width: 768px) {

  /* Featured — stack vertically, image below content */
  .featured {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 0;
    padding-right: 0;
  }

  .featured__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
  }

  .featured__content {
    max-width: 100%;
  }

  .featured__headline {
    font-size: 1.75rem;
  }

  /* Filter bar — allow horizontal scroll on small screens */
  .filter-bar {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .filter-bar__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
  }

  /* Grid — 1 column on mobile */
  .grid-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* CTA */
  .cta-banner__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

}
