/* ==========================================================================
   VIDEOS & MULTIMEDIA SPECIFIC STYLES
   Modern Editorial Video Gallery, Pill Filters, and Player
   ========================================================================== */

/* Page Header & Title Section (White Background, No Hero) */
.videos-page-header {
  padding-top: 155px;
  padding-bottom: 2.25rem;
  background: #ffffff;
}

.videos-page-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: clamp(2.35rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: #001507;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1.75rem 0;
  text-align: center;
}

/* Filter Pills */
.videos-filter-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

.video-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.15rem;
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  user-select: none;
  white-space: nowrap;
}

.video-filter-pill:hover {
  color: #111827;
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.video-filter-pill.active {
  background: var(--color-emerald-600);
  color: #ffffff;
  border-color: var(--color-emerald-600);
  transform: translateY(-1px);
}

/* Featured Video Player */
.featured-video-wrap {
  padding: 1rem 0 3rem;
  background: #ffffff;
}

.video-player-container {
  background: #001507;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.responsive-video-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.responsive-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info-box {
  padding: 2rem 2.25rem;
  background: #001507;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.video-title-main {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.video-desc-main {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Video Grid Section */
.videos-grid-section {
  padding: 2rem 0 6rem;
  background: #ffffff;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

/* Video Editorial Card */
.video-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-fast, 0.2s) ease;
}

.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 0.85rem;
}

.video-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.video-card:hover .video-card-img {
  transform: scale(1.04);
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0, 21, 7, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding-left: 3px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-play-badge {
  background: var(--color-emerald-600);
  border-color: var(--color-emerald-600);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card-body {
  display: flex;
  flex-direction: column;
}

.video-category-tag {
  display: inline-block;
  width: fit-content;
  background: rgba(0, 149, 57, 0.186);
  color: #007a2d;
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.video-card-title {
  font-family: var(--font-heading, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: #111827;
  margin: 0 0 0.35rem 0;
  transition: color 0.2s ease;
}

.video-card:hover .video-card-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.video-card-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.video-card-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .videos-page-header {
    padding-top: 140px;
    padding-bottom: 2rem;
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .videos-page-header {
    padding-top: 125px;
    padding-bottom: 1.75rem;
  }

  .videos-page-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .videos-filter-pills-wrap {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    padding: 0.25rem var(--space-4);
    margin: 0 calc(-1 * var(--space-4));
  }

  .videos-filter-pills-wrap::-webkit-scrollbar {
    display: none;
  }

  .video-filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.35rem 0.95rem;
    font-size: 0.775rem;
  }

  .video-info-box {
    padding: 1.5rem 1.25rem;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .videos-grid-section {
    padding: 1rem 0 4rem;
  }
}
