/* ============================================
   ARICA — Media Centre Page
   ============================================ */

.media-page {
  --md-ink: #1a1a1a;
  --md-muted: #8a8a8a;
  --md-accent: #1378f3;
  --md-accent-dark: #0d5fc4;
  --md-line: rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
}

.md-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(200px, 28vw, 300px);
}

.md-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #010728;
}

.md-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.md-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1, 7, 40, 0.78) 0%,
    rgba(1, 7, 40, 0.45) 45%,
    rgba(1, 7, 40, 0.18) 100%
  );
  pointer-events: none;
}

.md-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(200px, 28vw, 300px);
  padding: calc(var(--header-h, 80px) + 1.25rem) 0 1.75rem;
  color: #fff;
}

.md-hero__heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.md-breadcrumb {
  background: #f7f9fc;
  border-bottom: 1px solid var(--md-line);
  padding: 0.6rem 0;
}

.md-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #5b6b85;
}

.md-breadcrumb__list a {
  color: #1378f3;
  text-decoration: none;
}

.md-breadcrumb__list a:hover {
  text-decoration: underline;
}

.md-breadcrumb__sep {
  opacity: 0.5;
}

.md-breadcrumb__current {
  color: #0a1f44;
  font-weight: 600;
}

/* ---- News grid (3 per row) ---- */
.md-news {
  background: #f7f5f2;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.md-news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.md-news__title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #0a1f44;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.md-news__viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--md-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.md-news__viewall:hover {
  background: var(--md-accent-dark);
  transform: translateY(-1px);
}

.md-news__viewall--ghost {
  background: transparent;
  color: var(--md-accent);
  border: 1.5px solid var(--md-accent);
}

.md-news__viewall--ghost:hover {
  background: var(--md-accent);
  color: #fff;
}

.md-news__viewall-icon {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.md-news__viewall-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

.md-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}

.md-news__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--md-muted);
}

.md-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.md-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(72px, 9vw, 92px);
  border-radius: 0.3rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--md-line);
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.85rem;
  box-sizing: border-box;
}

.md-card__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 48px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.md-card__date {
  display: block;
  font-size: 0.88rem;
  color: var(--md-muted);
  margin-bottom: 0.55rem;
}

.md-card__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--md-ink);
  flex: 1;
}

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

.md-card__title a:hover {
  color: var(--md-accent);
}

.md-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--md-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  width: fit-content;
}

.md-card__more:hover {
  color: var(--md-accent-dark);
}

.md-card__more-icon {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--md-accent);
  color: #fff;
}

.md-card__more:hover .md-card__more-icon {
  background: var(--md-accent-dark);
}

.md-card__more-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

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

@media (max-width: 600px) {
  .md-news__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .md-news__grid {
    grid-template-columns: 1fr;
  }
}

/* Detail page (fallback when no external URL) */
.md-story {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: #fff;
}

.md-story__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1378f3;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.md-story__date {
  display: block;
  color: var(--md-muted);
  margin-bottom: 0.5rem;
}

.md-story__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--md-ink);
  margin: 0 0 1rem;
}

.md-story__excerpt {
  color: #5a6f8c;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.md-story__image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.md-story__content {
  color: #3a4a63;
  font-size: 1.05rem;
  line-height: 1.8;
}
