/* ==========================================================================
   RUDRA THE PRACTICAL SCHOOL - MEDIA & PRESS ROOM STYLESHEET
   Features:
   1. Emerald & Gold Editorial Hero Banner
   2. Media Impact Stats Ribbon
   3. Flagship Annual Events & Milestones Grid
   4. Newspaper Clippings & Print Coverage Lightbox Gallery
   5. Press Contact & Official Media Kit Card
   6. Mobile-First Fluid Responsiveness
   ========================================================================== */

.media-page {
  background-color: #fbfbf9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== 1. MEDIA HERO ==================== */
.media-hero {
  background: linear-gradient(135deg, #092c24 0%, #124e3f 55%, #1b6352 100%);
  color: #ffffff;
  padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.media-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.media-hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.media-hero-title {
  font-family: var(--font-primary, sans-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

.media-hero-title span.accent {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.media-hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== 2. STATS RIBBON ==================== */
.media-stats-section {
  margin-top: -32px;
  position: relative;
  z-index: 3;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.media-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  padding: 24px 32px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(18, 78, 63, 0.08);
  border: 1px solid #edf2f7;
}

.media-stat-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid #edf2f7;
}

.media-stat-item:last-child {
  border-right: none;
}

.media-stat-number {
  font-family: var(--font-primary, sans-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: #124e3f;
  line-height: 1.1;
  margin-bottom: 4px;
}

.media-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

/* ==================== 3. FLAGSHIP EVENTS ==================== */
.media-events-section {
  padding: 0 0 clamp(48px, 6vw, 76px);
}

.media-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.media-section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 8px;
}

.media-section-header p {
  color: #64748b;
  font-size: 0.98rem;
  margin: 0;
}

.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-feature-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 78, 63, 0.06);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(18, 78, 63, 0.12);
}

.event-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  overflow: hidden;
}

.event-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-feature-card:hover .event-card-img-wrap img {
  transform: scale(1.08);
}

.event-icon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #124e3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.event-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-category {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f59e0b;
  margin-bottom: 6px;
}

.event-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
}

.event-card-body p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* ==================== 4. PRESS CLIPPINGS GALLERY ==================== */
.media-press-section {
  padding: clamp(48px, 6vw, 76px) 0;
  background: #f1f5f3;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.press-clipping-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.press-clipping-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  border-color: #124e3f;
}

.press-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  overflow: hidden;
}

.press-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.press-clipping-card:hover .press-img-wrap img {
  transform: scale(1.06);
}

.press-zoom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 44, 36, 0.9) 0%, rgba(9, 44, 36, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.press-clipping-card:hover .press-zoom-overlay {
  opacity: 1;
}

.press-zoom-btn {
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: #124e3f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.press-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.press-meta-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #124e3f;
  margin-bottom: 4px;
}

.press-card-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 6px;
}

.press-card-body p {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== 5. PRESS INQUIRIES & MEDIA KIT ==================== */
.media-contact-section {
  padding: clamp(48px, 6vw, 76px) 0;
}

.media-contact-card {
  background: linear-gradient(135deg, #092c24 0%, #124e3f 100%);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 60px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: 0 16px 40px rgba(18, 78, 63, 0.18);
  position: relative;
  overflow: hidden;
}

.media-contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.media-contact-info {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.media-contact-info h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.media-contact-info p {
  color: #d1fae5;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.media-contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: #fef08a;
}

.media-contact-details a {
  color: #ffffff;
  text-decoration: underline;
}

.media-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* ==================== 6. RESPONSIVE ==================== */
@media (max-width: 992px) {
  .media-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .media-stat-item:nth-child(2) {
    border-right: none;
  }

  .events-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .events-cards-grid,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .media-stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
  }

  .media-contact-card {
    padding: 28px 20px;
  }

  .media-contact-actions {
    width: 100%;
  }

  .media-contact-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
