/* =====================================================================
   Orchid University — Media (News / Articles / Blogs) + Press styling.
   Used by the CMS-driven detail, listing and press pages. Self-contained
   (depends only on the brand tokens already set in styles.css).
   ===================================================================== */
.media-article { max-width: 1180px; margin: 0 auto; padding: 26px 20px 80px; }
.media-list    { max-width: 1180px; margin: 0 auto; padding: 26px 20px 90px; }

/* ---------- detail: hero ---------- */
.md-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.md-crumb a { color: var(--muted); text-decoration: none; }
.md-crumb a:hover { color: var(--green); }
.md-crumb span { opacity: .5; }

.md-hero { display: block; margin-bottom: 26px; }
.md-hero.has-img { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.md-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.md-title { font-family: 'aesthet-nova', serif; color: var(--navy); font-size: clamp(28px, 4vw, 46px); line-height: 1.08; margin: 0 0 14px; }
.md-sub { color: #3a4166; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; margin: 0 0 16px; max-width: 42ch; }
.md-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.md-meta span { position: relative; }
.md-meta span + span::before { content: '·'; position: absolute; left: -10px; opacity: .6; }
.md-hero__actions { display: flex; gap: 12px; margin-top: 22px; }
.md-btn { display: inline-flex; align-items: center; background: var(--navy); color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 14px; text-decoration: none; transition: filter .15s ease; }
.md-btn:hover { filter: brightness(1.13); }
.md-btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.md-hero__img { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: #e7ebf3; }
.md-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- detail: body / blocks ---------- */
.md-body { max-width: 760px; margin: 0 auto; }
.md-body > * { margin-left: auto; margin-right: auto; }
.md-body h2 { font-family: 'aesthet-nova', serif; color: var(--navy); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; margin: 42px 0 14px; }
.md-body h3 { font-family: 'aesthet-nova', serif; color: var(--navy); font-size: clamp(19px, 2vw, 23px); margin: 32px 0 10px; }
.md-body p { color: #2b3350; font-size: 18px; line-height: 1.78; margin: 0 0 20px; }
.md-figure { margin: 30px 0; }
.md-figure img { width: 100%; border-radius: 14px; display: block; }
.md-figure figcaption, .md-carousel figcaption { color: var(--muted); font-size: 13.5px; margin-top: 9px; text-align: center; }
.md-grid { display: grid; gap: 12px; margin: 30px 0; }
.md-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.md-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.md-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.md-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 4/3; }
.md-quote { border-left: 4px solid var(--green); margin: 34px 0; padding: 6px 0 6px 26px; font-family: 'aesthet-nova', serif; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; color: var(--navy); }
.md-quote cite { display: block; margin-top: 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 700; color: var(--green); }
.md-tablewrap { overflow-x: auto; margin: 26px 0; }
.md-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.md-table th { background: #f5f7fb; color: var(--navy); font-weight: 700; }
.md-cols { display: grid; gap: 26px; margin: 30px 0; }
.md-cols.c2 { grid-template-columns: repeat(2, 1fr); }
.md-cols.c3 { grid-template-columns: repeat(3, 1fr); }
.md-col h4 { color: var(--navy); font-size: 16px; margin: 0 0 10px; }
.md-col ul { margin: 0; padding-left: 20px; }
.md-col li { color: #2b3350; font-size: 16.5px; line-height: 1.7; margin-bottom: 9px; }
.md-body > .md-cols.c1 .md-col, .md-body ul { }
.md-cols.c1 { grid-template-columns: 1fr; }

/* ---------- carousel ---------- */
.md-carousel { position: relative; margin: 30px 0; }
.md-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 14px; gap: 0; -ms-overflow-style: none; scrollbar-width: none; }
.md-carousel__track::-webkit-scrollbar { display: none; }
.md-carousel__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.md-carousel__slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; display: block; }
.md-carousel__nav { position: absolute; top: calc(50% - 20px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(15,20,45,.6); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.md-carousel__nav.prev { left: 12px; } .md-carousel__nav.next { right: 12px; }
.md-carousel__nav:hover { background: var(--navy); }
.md-carousel__dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.md-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.md-dot.on { background: var(--green); width: 22px; border-radius: 5px; }

/* ---------- In the Press band ---------- */
.md-press { max-width: 900px; margin: 56px auto 0; border-top: 1px solid var(--line); padding-top: 34px; }
.md-press__h .kicker { color: var(--green); font-weight: 700; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.md-press__h h2 { font-family: 'aesthet-nova', serif; color: var(--navy); font-size: clamp(22px, 2.4vw, 27px); margin: 8px 0 22px; }
.md-press__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.md-press__item { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; background: #fff; }
.md-press__item:hover { border-color: var(--green); transform: translateY(-2px); }
.md-press__clip { flex: none; width: 66px; height: 46px; border-radius: 8px; overflow: hidden; background: #e7ebf3; }
.md-press__clip img { width: 100%; height: 100%; object-fit: cover; }
.md-press__mark { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--pale-green-3); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.md-press__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.md-press__meta b { color: var(--navy); font-size: 14px; line-height: 1.25; word-break: break-word; }
.md-press__go { color: var(--green); font-size: 12.5px; font-weight: 600; }

/* ---------- listing pages ---------- */
.media-list__head { margin-bottom: 26px; }
.media-list__head .kicker { color: var(--green); font-weight: 700; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.media-list__head h1 { font-family: 'aesthet-nova', serif; color: var(--navy); font-size: clamp(30px, 4vw, 46px); margin: 8px 0 6px; }
.media-list__head p { color: var(--muted); font-size: 16px; max-width: 60ch; }
.media-filter { display: inline-flex; background: #eceef3; border-radius: 12px; padding: 4px; gap: 4px; margin: 18px 0 30px; }
.media-filter button { border: none; background: none; border-radius: 9px; padding: 9px 18px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.media-filter button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 6px -2px rgba(20,28,70,.25); }
.md-cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.md-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.md-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(20,28,70,.45); }
.md-card__thumb { height: 172px; background: #e7ebf3; overflow: hidden; }
.md-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-card__thumb.ph img { object-fit: contain; opacity: .5; padding: 20px; }
.md-card__body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; }
.md-card__cat { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 3px 10px; }
.md-card__cat.news { background: #e4ecff; color: #2942a8; }
.md-card__cat.article { background: var(--pale-green-3); color: #1c7a2f; }
.md-card__cat.blog { background: #f3e6fb; color: #7a2fa8; }
.md-card__title { color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.28; }
.md-card__ex { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.md-card__date { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- press wall ---------- */
.md-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.md-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.md-pcard:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(20,28,70,.45); }
.md-pcard__clip { aspect-ratio: 16/10; background: #e7ebf3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.md-pcard__clip img { width: 100%; height: 100%; object-fit: cover; }
.md-pcard__clip.ph span { font-size: 34px; opacity: .5; }
.md-pcard__body { display: flex; flex-direction: column; gap: 5px; padding: 15px 18px 18px; }
.md-pcard__body b { color: var(--navy); font-size: 16px; }
.md-pcard__on { color: var(--muted); font-size: 12.5px; }
.md-pcard__go { color: var(--green); font-size: 13px; font-weight: 600; margin-top: 2px; }

@media (max-width: 900px) {
  .md-hero.has-img { grid-template-columns: 1fr; }
  .md-hero__img { order: -1; }
  .md-cardgrid, .md-pgrid { grid-template-columns: repeat(2, 1fr); }
  .md-cols.c2, .md-cols.c3 { grid-template-columns: 1fr; }
  .md-grid.g3, .md-grid.g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .md-cardgrid, .md-pgrid { grid-template-columns: 1fr; }
  .md-body p, .md-col li { font-size: 16.5px; }
}
