/* ==========================================================================
   MEDIA & NEWS STYLES - ZUARI ENVIEN PROJECT
   ========================================================================== */

.media-news-page {
  padding: 40px 0;
  background-color: #ffffff;
}

/* --- HERO SECTION --- */
.media-hero {
  height: 75vh;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  color: #ffffff;
  margin: 0 60px 60px 60px;

  /* Flex Layout for Vertical Centering */
  display: flex;
  align-items: center;
}

/* Dark Overlay for Text Readability */
.media-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  z-index: 1;
}

.source {
  background-color: #d9e8f2;
  padding: 4px 20px;
  border-radius: 5px;
}

/* Container Fix: Prevents the text from being centered */
.media-hero .zuari-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.media-hero {
  position: relative;
  display: flex;
  align-items: flex-end; /* push content to bottom */
  justify-content: flex-start; /* keep it on left */
  height: 500px; /* adjust as needed */
  border-radius: 20px;
}

/* Content Positioning */
.media-hero-content {
  z-index: 2;
  width: 100%;
  max-width: 800px;
  padding-left: 80px;
  padding-bottom: 40px; /* space from bottom */
  text-align: left;
}

/* .media-hero-content p {
  font-size: 20px;
  opacity: 0.9;
  line-height: 1.6;
} */

/* --- SECTION TAG (Pill Style) --- */
.section-tag-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.pill-tag {
  border: 1px solid #34a853;
  color: #34a853;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- NEWS GRID --- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-bottom: 100px;
  margin: 0; /* Aligns with hero section margins */
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-thumb img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.news-details {
  padding: 30px;
}

.news-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2b56;
  margin-bottom: 15px;
}

.news-card h3 {
  font-size: 24px;
  line-height: 1.4;
  color: #1a2b56;
  margin-bottom: 20px;
  font-weight: 700;
}

.read-more {
  color: #34a853;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* --- RESPONSIVE MOBILE VIEW --- */
@media (max-width: 768px) {
  .media-news-page {
    padding: 0;
  }

  .news-grid {
    margin: 20px 15px;
    grid-template-columns: 1fr;
  }

  .media-hero {
    margin: 0 15px 40px 15px;
    height: 65vh;
    align-items: flex-end; /* Drops text to the bottom */
    padding-bottom: 50px;
  }

  .media-hero .zuari-container {
    align-items: flex-end;
  }

  .media-hero::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  }

  .media-hero-content {
    padding-left: 30px;
    padding-right: 20px;
  }

  .media-hero-content h1 {
    font-size: 36px;
  }
}
