/* Media Page Specific Styles */

.media-page {
  background: var(--bg, #F7F9F8);
  color: var(--text, #1F2933);
  font-family: inherit;
  line-height: 1.65;
  padding-top: 10px;
}

.media-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem 4rem;
}

/* Media Hero */
.media-hero {
  background: linear-gradient(135deg, rgba(46, 107, 78, 0.9), rgba(31, 79, 58, 0.8)), url('https://builtenvironmentindaba.africa/wp-content/uploads/2024/11/066A9790-scaled-1.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 18px;
  padding: var(--xxxl) var(--xxl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
  margin: 2.5rem 0 2rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.media-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(242, 183, 5, 0.15) 0, transparent 40%), radial-gradient(circle at 80% 70%, rgba(227, 74, 53, 0.18) 0, transparent 40%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.8rem;
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-copy p {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-highlight {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: var(--md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(242, 183, 5, 0.16);
  color: var(--gold, #F2B705);
  border: 1px solid rgba(242, 183, 5, 0.45);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  width: fit-content;
}

.hero-highlight h3 {
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
}

.hero-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.hero-highlight a {
  color: var(--gold, #F2B705);
  font-weight: 700;
  text-decoration: none;
}

.hero-highlight a:hover {
  text-decoration: underline;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--md);
  margin: 3rem 0 1rem;
}

.section-header h2 {
  color: var(--green-dark, #1F4F3A);
  margin: 0;
  font-size: 2rem;
}

/* Pill Tabs */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.pill-tabs button {
  border: 1px solid var(--border, #E3E7E5);
  background: var(--white, #ffffff);
  color: var(--green-dark, #1F4F3A);
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}

.pill-tabs button.active {
  background: var(--gold, #F2B705);
  color: var(--green-dark, #1F4F3A);
  border-color: var(--gold, #F2B705);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Media Categories */
.media-category {
  display: none;
  margin-top: 1.8rem;
}

.media-category.active {
  display: block;
}

/* Featured Row */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lg);
  margin-top: 1rem;
}

.feature-card {
  background: linear-gradient(135deg, var(--green-primary, #2E6B4E) 0%, var(--green-dark, #1F4F3A) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow, 0 15px 64px rgba(0,0,0,.08));
  display: grid;
  gap: var(--md);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 600px;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(242, 183, 5, 0.22) 0, transparent 35%);
  pointer-events: none;
}

.feature-card img {
  width: 100%;
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin: 0;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.feature-card a {
  color: var(--gold, #F2B705);
  font-weight: 700;
  text-decoration: none;
}

.feature-card a:hover {
  text-decoration: underline;
}

.feature-meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Headline Stack */
.headline-stack {
  background: var(--white, #ffffff);
  border: 1px solid var(--border, #E3E7E5);
  border-radius: 16px;
  box-shadow: var(--shadow, 0 15px 64px rgba(0,0,0,.08));
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: .85rem;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
}

.headline-item {
  padding: .65rem .75rem;
  border-radius: 12px;
  transition: background .15s ease, transform .15s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.headline-item:hover {
  background: var(--bg, #F7F9F8);
  transform: translateX(2px);
}

.headline-item strong {
  display: block;
  color: var(--green-dark, #1F4F3A);
  margin-bottom: .25rem;
}

.headline-item span {
  color: #6b7280;
  font-size: .92rem;
}

/* Press Grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.press-card {
  background: var(--white, #ffffff);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 15px 64px rgba(0,0,0,.08));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}

.press-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.press-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(46, 107, 78, 0.15), rgba(31, 79, 58, 0.25));
}

.press-content {
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.press-date {
  font-size: .9rem;
  color: #6b7280;
}

.press-content h3 {
  color: var(--green-dark, #1F4F3A);
  font-size: 1.12rem;
  margin: 0;
}

.press-content p {
  margin: 0;
  flex: 1;
  color: var(--muted, #6b7280);
}

.press-content a {
  font-weight: 700;
  color: var(--green-primary, #2E6B4E);
  text-decoration: none;
  border-bottom: 2px solid var(--gold, #F2B705);
  width: max-content;
}

/* Media Enquiry */
.media-enquiry {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #2E6B4E, #1F4F3A);
  border-radius: 18px;
  padding: var(--xxl) 2.5rem;
  color: #fff;
  box-shadow: var(--shadow, 0 15px 64px rgba(0,0,0,.08));
  display: grid;
  gap: var(--md);
}

.media-enquiry h2 {
  color: #fff;
  margin: 0;
}

.media-enquiry p {
  color: #e5efe9;
  margin: 0;
}

.media-enquiry-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.contact-card {
  background: #ffffff;
  color: #1F2933;
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-card strong {
  color: var(--green-dark, #1F4F3A);
  display: block;
  margin-bottom: var(--sm);
}

.contact-card a {
  color: var(--green-primary, #2E6B4E);
  font-weight: 700;
  text-decoration: none;
}

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

  .featured-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .headline-stack {
    max-height: 500px;
  }
}

@media(max-width: 768px) {
  .media-enquiry-grid {
    grid-template-columns: 1fr;
  }

  .media-hero {
    padding: var(--xxl) 1.8rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .feature-card,
  .headline-stack {
    max-height: 400px;
  }
}
