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

.media-page {
  --md-pad: clamp(1.5rem, 3vw, 2.25rem);
  overflow-x: hidden;
}

.md-hero {
  position: relative;
  overflow: hidden;
}

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

.md-hero__bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #010728 0%, #0a2560 45%, #1378f3 100%);
}

.md-hero__bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 40%, rgba(76, 147, 228, 0.4) 0%, transparent 65%);
  pointer-events: none;
}

.md-hero__bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
}

.md-hero__bg-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: calc(var(--header-h, 80px) + 1.25rem) 0 2rem;
}

.md-hero__text { color: #fff; }

.md-hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

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

.md-hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin: 0;
}

.md-hero__visual {
  display: flex;
  justify-content: center;
}

.md-hero__visual img {
  width: min(100%, 420px);
  max-height: 320px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.md-breadcrumb {
  background: #f7f9fc;
  border-bottom: 1px solid rgba(15, 40, 80, 0.08);
  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__sep { opacity: 0.5; }

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

.md-main {
  padding: var(--md-pad) 0;
  background: linear-gradient(180deg, #f4f8fd 0%, #eef4fb 100%);
}

.md-panel {
  margin-bottom: 2rem;
}

.md-panel:last-child {
  margin-bottom: 0;
}

.md-panel__header {
  margin-bottom: 1.25rem;
  max-width: 44rem;
}

.md-panel__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #0a1f44;
  letter-spacing: -0.02em;
}

.md-panel__lead {
  margin: 0;
  color: #3d4f6a;
  line-height: 1.65;
}

.md-list {
  display: grid;
  gap: 0.85rem;
}

.md-item {
  background: #fff;
  border: 1px solid rgba(15, 40, 80, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(10, 40, 90, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.md-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(10, 40, 90, 0.08);
}

.md-item__date { color: #1378f3; }

.md-item__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a1f44;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.md-item--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.md-item__body {
  min-width: 0;
  flex: 1;
}

.md-item--row .md-item__date {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.md-item--row .md-item__title {
  margin-bottom: 0.35rem;
}

.md-readmore {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: #1378f3;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(19, 120, 243, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.md-readmore:hover {
  background: #0d5fc4;
  transform: translateY(-1px);
}

.md-empty {
  background: #fff;
  border: 1px dashed rgba(15, 40, 80, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #5b6b85;
}

.md-pagination {
  margin-top: 1.5rem;
}

/* ---- Media Detail (story) ---- */

.media-detail-page {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 28%);
}

.md-breadcrumb--detail {
  padding-top: calc(var(--header-h, 80px) + 0.85rem);
  background: transparent;
  border-bottom: none;
}

.md-story {
  padding: 0.5rem 0 2.75rem;
}

.md-story__wrap {
  max-width: 760px;
}

.md-story__header {
  margin-bottom: 1.5rem;
}

.md-story__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.md-story__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #1378f3;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

.md-story__back svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.md-story__back:hover {
  text-decoration: underline;
}

.md-story__date {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(19, 120, 243, 0.1);
  color: #1378f3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.md-story__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0a1f44;
}

.md-story__lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #3d4f6a;
  max-width: 40rem;
}

.md-story__figure {
  margin: 0 0 1.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 40, 80, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(10, 37, 96, 0.08);
}

.md-story__figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: #f3f6fb;
}

.md-story__body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #3d4f6a;
}

.md-story__body p {
  margin: 0 0 1.1rem;
}

.md-story__footer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 40, 80, 0.08);
}

.md-story__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #1378f3;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(19, 120, 243, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.md-story__cta svg {
  width: 1rem;
  height: 1rem;
}

.md-story__cta:hover {
  background: #0d5fc4;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .md-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 2.25rem;
  }

  .md-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .md-hero__visual img {
    max-height: 240px;
  }

  .md-item--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .md-readmore {
    width: 100%;
  }

  .md-story {
    padding-bottom: 2rem;
  }

  .md-story__figure {
    padding: 0.65rem;
    border-radius: 14px;
  }

  .md-story__figure img {
    max-height: 360px;
  }

  .md-story__cta {
    width: 100%;
    justify-content: center;
  }
}
