/* ═══════════════════════════════════════
   Ambasadoriai — Archive & Single
═══════════════════════════════════════ */

/* ─── Archive wrapper ─── */
.amb-archive {
  background: #f3f8f4;
  min-height: 80vh;
  padding: 72px 0 100px;
}

.amb-archive__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Archive header ─── */
.amb-archive__header {
  margin-bottom: 64px;
  background: none;
  position: relative;
  z-index: 1;
  box-shadow: none;
}

.amb-archive__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2d6b40;
  margin-bottom: 16px;
}

.amb-archive__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #2d6b40;
  flex-shrink: 0;
}

.amb-archive__heading {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #111e14;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.amb-archive__sub {
  font-size: 1rem;
  color: #4a6651;
  margin: 0;
}

/* ─── List ─── */
.amb-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ─── Card ─── */
.amb-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  transition:
    box-shadow 0.28s,
    transform 0.28s;
}

.amb-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.13);
  transform: translateY(-3px);
}

/* ─── Visual side ─── */
.amb-card__visual {
  position: relative;
  overflow: hidden;
  background: #d8edd9;
  min-height: 320px;
}

.amb-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.amb-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.amb-card:hover .amb-card__img {
  transform: scale(1.04);
}

.amb-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  color: #2d6b40;
}

/* "Video" badge on image */
.amb-card__play-hint {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 26, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
}

/* ─── Content side ─── */
.amb-card__body {
  padding: 44px 52px 44px 52px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.amb-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d6b40;
  background: #e8f5ea;
  padding: 4px 12px;
  border-radius: 100px;
  align-self: flex-start;
}

.amb-card__title {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #111e14;
  margin: 0;
}

.amb-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.amb-card__title a:hover {
  color: #2d6b40;
}

.amb-card__excerpt {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #4a5e50;
  margin: 0;
}

/* ─── Buttons ─── */
.amb-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.amb-btn-video {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2d6b40;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(45, 107, 64, 0.28);
}

.amb-btn-video:hover {
  background: #245534;
  box-shadow: 0 6px 22px rgba(45, 107, 64, 0.38);
  transform: translateY(-1px);
}

.amb-btn-video:active {
  transform: translateY(0);
}

.amb-btn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #2d6b40;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 107, 64, 0.35);
  padding-bottom: 2px;
  transition:
    border-color 0.2s,
    gap 0.2s;
}

.amb-btn-more:hover {
  border-color: #2d6b40;
  gap: 9px;
}

/* ─── Empty state ─── */
.amb-empty {
  color: #4a6651;
  font-size: 1rem;
  padding: 40px 0;
}

/* ─── Pagination ─── */
.amb-pagination {
  margin-top: 64px;
}

.amb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ═══════════════════════════════════════
   Video Modal
═══════════════════════════════════════ */

.amb-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.amb-modal[hidden] {
  display: none;
}

.amb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 8, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.amb-modal__box {
  position: relative;
  z-index: 1;
  background: #0f1a14;
  border: 1px solid rgba(45, 107, 64, 0.2);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  animation: ambModalIn 0.25s ease;
}

@keyframes ambModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.amb-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.amb-modal__title {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amb-modal__close {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}

.amb-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.amb-modal__video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}

.amb-modal__video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ═══════════════════════════════════════
   Single Ambassador – dark skin
═══════════════════════════════════════ */

.single-post--ambassador {
  background: #f3f8f4;
}

.single-post--ambassador .single-post__intro {
  background: #e4f0e6;
  position: relative;
  z-index: 1;
}

.single-post--ambassador .single-post__body {
  background: #f3f8f4;
}

.single-post--ambassador .single-post__container {
  max-width: none;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

/* Sidebar – light theme */
.single-post--ambassador .single-post__sidebar {
  background: transparent;
}

.single-post--ambassador .sidebar__heading {
  color: #2d6b40;
  border-bottom-color: #2d6b40;
}

.single-post--ambassador .sidebar__link {
  color: #111e14;
  &:hover .sidebar__title {
    color: #2d6b40;
  }
}

.single-post--ambassador .sidebar__title {
  color: #111e14;
}

.single-post--ambassador .sidebar__date {
  color: rgba(17, 30, 20, 0.5);
}

.single-post--ambassador .sidebar__item {
  border-bottom-color: rgba(17, 30, 20, 0.1);
}

/* Header colours */
.single-post--ambassador .single-post__header {
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 40px 52px;
  background: none;
  box-shadow: none;
}

.single-post--ambassador .single-post__meta {
  justify-content: flex-start;
}

.single-post--ambassador .single-post__category {
  color: #2d6b40;

  &::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #2d6b40;
    flex-shrink: 0;
    margin: 0;
  }

  &::after {
    display: none;
  }

  &:hover {
    color: #1a4828;
  }
}

.single-post--ambassador .single-post__title {
  color: #111e14;
}

.single-post--ambassador .single-post__date,
.single-post--ambassador .single-post__readtime {
  color: rgba(17, 30, 20, 0.55);
}

.single-post--ambassador .single-post__meta-dot {
  background: rgba(17, 30, 20, 0.2);
}

/* Content */
.single-post--ambassador .single-post__content {
  color: #333;

  h2,
  h3,
  h4 {
    color: #111e14;
  }

  a {
    color: #2d6b40;
    &:hover {
      color: #1a4828;
    }
  }

  blockquote {
    background: #e4f0e6;
    color: #4a5e50;
    border-left-color: #2d6b40;
  }
}

/* Footer */
.single-post--ambassador .single-post__footer {
  border-top-color: #d0e8d3;
}

.single-post--ambassador .single-post__back {
  color: #2d6b40;
  &:hover {
    color: #1a4828;
  }
}

/* Inline video section */
.single-amb-video {
  margin: 40px 0;
}

.single-amb-video__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2d6b40;
  margin-bottom: 16px;
}

.single-amb-video__label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #2d6b40;
}

.single-amb-video__player {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1a14;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.single-amb-video__player video,
.single-amb-video__player .plyr {
  width: 100%;
  height: 100%;
  display: block;
}

/* ═══════════════════════════════════════
   Plyr – green theme overrides
═══════════════════════════════════════ */
:root {
  --plyr-color-main: #2d6b40;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #fff;
  --plyr-video-control-background-hover: #2d6b40;
  --plyr-range-fill-background: #2d6b40;
  --plyr-range-thumb-background: #2d6b40;
  --plyr-video-progress-buffered-background: rgba(45, 107, 64, 0.3);
  --plyr-font-family: 'Work Sans', Arial, sans-serif;
  --plyr-font-size-base: 13px;
  --plyr-control-spacing: 10px;
  --plyr-video-controls-background: linear-gradient(rgba(0, 0, 0, 0), rgba(5, 20, 10, 0.82));
}

/* Poster image – cover full player */
.plyr--video .plyr__poster {
  background-size: cover;
  background-position: center;
}

/* Large play button */
.plyr--video .plyr__control--overlaid {
  background: rgba(45, 107, 64, 0.85);
  border-radius: 50%;
  padding: 20px;
  transform: translate(-50%, -50%) scale(1);
  transition:
    background 0.2s,
    transform 0.2s;
}

.plyr--video .plyr__control--overlaid:hover {
  background: #2d6b40;
  transform: translate(-50%, -50%) scale(1.08);
}

/* Inline player rounded corners */
.single-amb-video__player .plyr {
  border-radius: 12px;
}

/* Modal player – no radius needed */
.amb-modal__video-wrap .plyr {
  border-radius: 0;
  height: 100%;
}

/* ─── Responsive ─── */
@media (max-width: 1000px) {
  .amb-card {
    grid-template-columns: 340px 1fr;
  }

  .amb-card__body {
    padding: 36px 36px;
  }
}

@media (max-width: 780px) {
  .amb-card {
    grid-template-columns: 1fr;
  }

  .amb-card__visual {
    min-height: 240px;
  }

  .amb-card__body {
    padding: 28px 24px 32px;
  }

  .amb-archive__container {
    padding: 0 20px;
  }

  .amb-archive {
    padding: 52px 0 72px;
  }
}

@media (max-width: 500px) {
  .amb-card__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
