/* Nihar in Media — Figma match */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=M+PLUS+Rounded+1c:wght@700&display=swap');

:root {
  --md-navy: #000080;
  --md-gold: #dda126;
  --md-gold-border: #d4af37;
  --md-text: #000000;
  --md-sans: 'Inter', 'Open Sans', Arial, sans-serif;
}

.page-media-redesign {
  font-family: var(--md-sans);
  color: var(--md-text);
  background: #ffffff;
}

.page-media-redesign .site-footer-nav .container {
  width: 98% !important;
  max-width: 98% !important;
}

.md-page {
  width: 98%;
  max-width: 98%;
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* Title */
.md-hero {
  text-align: center;
  margin: 12px 0 28px;
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.md-hero h1 {
  margin: 0 0 12px;
  font-family: var(--md-sans);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: #000000;
}

.md-hero-rule {
  width: 121px;
  height: 5px;
  margin: 0 auto;
  background: #dda126;
  border: none;
}

.md-hero p {
  display: none;
}

/* Outer Print Media panel */
.md-panel {
  box-sizing: border-box;
  width: 100%;
  background: #ffffff;
  border: 2px solid #d4af37;
  border-radius: 13px;
  padding: 28px 18px 24px;
  position: relative;
}

.md-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 45px;
  padding: 0 18px;
  margin: 0 0 22px 8px;
  background: #ffffff;
  border: 2px solid #d4af37;
  border-radius: 9px;
  font-family: var(--md-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: #000000;
}

/* 3-column card grid */
.md-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.md-card {
  box-sizing: border-box;
  background: #ffffff;
  border: 3px solid #d4af37;
  border-radius: 10px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.md-card-img {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}

.md-card-img img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.md-card h2 {
  margin: 0 0 8px;
  font-family: var(--md-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
  color: #000000;
}

.md-card p {
  margin: 0;
  font-family: var(--md-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 18px;
  color: #000000;
  flex: 1;
}

.md-card a {
  color: inherit;
  text-decoration: none;
}

.md-card a:hover h2 {
  color: #000080;
}

@media (max-width: 991px) {
  .md-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .md-panel {
    padding: 20px 12px 16px;
  }
}
