/* MEDIA — built on the ProvidusUnity Bank design system
   (gold #fdb813 · dark #212529 · Montserrat + Inter) */

/* SECTION HEAD (title left, link right) */
.md-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.md-sec-head .section-h2 {
  margin-top: 10px;
}

.md-sec-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  padding-bottom: 4px;
}

.md-sec-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
}

.md-sec-link:hover svg {
  transform: translateX(4px);
}

/* News grid */
.md-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.md-news-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s,
    border-color 0.3s;
}

.md-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 31px rgba(0, 0, 0, 0.06);
  border-color: rgba(253, 184, 19, 0.4);
}

.md-news-img {
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1200 0%, #0d0d0d 100%);
}

.md-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.md-news-card:hover .md-news-img img {
  transform: scale(1.06);
}

.md-news-img-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 58% 44%, rgba(253, 184, 19, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #1a1200 0%, #0d0d0d 100%);
}

.md-news-img-dark svg {
  width: 44px;
  height: 44px;
  color: rgba(253, 184, 19, 0.5);
}

.md-news-body {
  padding: 20px 22px 24px;
}

.md-news-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.md-news-body h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: #1a1a1a;
}

/* Sme program banner */
.md-sme {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 44px;
  background: linear-gradient(135deg, #fdb813 0%, #f0a90c 100%);
  border: 1px solid rgba(26, 18, 0, 0.1);
  border-radius: 22px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.md-sme:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 39px rgba(20, 16, 0, 0.1);
}

.md-sme::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.md-sme-tag {
  position: relative;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1200;
  margin-bottom: 10px;
}

.md-sme h3 {
  position: relative;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 25px);
  color: #1a1200;
  max-width: 640px;
  margin-bottom: 8px;
}

.md-sme p {
  position: relative;
  font-size: 13.5px;
  color: rgba(26, 18, 0, 0.68);
  max-width: 560px;
  margin-bottom: 18px;
}

.md-sme-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1200;
}

.md-sme-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
}

.md-sme:hover .md-sme-link svg {
  transform: translateX(4px);
}

/* Video grid */
.md-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.md-video-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s,
    border-color 0.3s;
}

.md-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 31px rgba(0, 0, 0, 0.06);
  border-color: rgba(253, 184, 19, 0.4);
}

.md-video-thumb {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1200 0%, #0d0d0d 100%);
}

.md-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.md-video-card:hover .md-video-thumb img {
  transform: scale(1.06);
}

.md-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 3, 0.15);
}

.md-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(253, 184, 19, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s;
}

.md-video-card:hover .md-video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.md-video-play svg {
  width: 17px;
  height: 17px;
  color: #1a1200;
  margin-left: 2px;
}

.md-video-body {
  padding: 16px 18px 20px;
}

.md-video-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.md-video-body h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  color: #1a1a1a;
}

/* Speech list */
.md-speech-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.md-speech-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s,
    border-color 0.3s;
}

.md-speech-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: rgba(253, 184, 19, 0.4);
}

.md-speech-av {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a1200;
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.md-speech-body h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.md-speech-body p {
  font-size: 12.5px;
  color: #76766f;
}

.md-speech-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.md-speech-meta span:first-child {
  font-size: 11.5px;
  font-weight: 600;
  color: #5e5e57;
}

.md-speech-date {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

/* PHOTO ALBUMS (gallery teaser cards) */
.md-albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.md-album {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s,
    border-color 0.3s;
}

.md-album:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 31px rgba(0, 0, 0, 0.06);
  border-color: rgba(253, 184, 19, 0.4);
}

.md-album-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1200 0%, #0d0d0d 100%);
}

.md-album-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.md-album:hover .md-album-img img {
  transform: scale(1.06);
}

.md-album-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 8, 3, 0.65);
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 20px;
}

.md-album-body {
  padding: 18px 20px 22px;
}

.md-album-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.md-album-body p {
  font-size: 13px;
  line-height: 1.6;
  color: #5e5e57;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* EMPTY STATE (videos / speeches with no items yet) */
.md-empty {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
}

.md-empty-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.md-empty-ico svg {
  width: 24px;
  height: 24px;
  color: #b37a00;
}

.md-empty h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.md-empty p {
  font-size: 13px;
  line-height: 1.6;
  color: #76766f;
  max-width: 420px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1100px) {
  .md-news,
  .md-albums,
  .md-video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .md-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .md-news,
  .md-albums,
  .md-video-grid {
    grid-template-columns: 1fr;
  }

  .md-speech-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .md-speech-meta {
    align-items: flex-start;
    text-align: left;
  }

  .md-sme {
    padding: 30px 26px;
  }

  .md-empty {
    padding: 40px 24px;
  }
}
