/* ==========================================================================
   VIDEO GALLERY PAGE STYLES - EXACT REFERENCE DESIGN
   Adrushya Estates Mukteshwar
   ========================================================================== */

/* Main Section Container */
.video-gallery-page-section {
  background-color: #FFFFFF;
  padding: 50px 0 90px;
  position: relative;
}

/* --------------------------------------------------------------------------
   1. Category Filter Navigation Bar
   -------------------------------------------------------------------------- */
.video-filter-nav-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 8px;
}

.video-filter-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.video-filter-nav li {
  position: relative;
  padding: 0 4px;
}

.video-filter-nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background-color: #E2E8F0;
}

.video-filter-btn {
  background: none;
  border: none;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.video-filter-btn:hover {
  color: #b717a1;
}

.video-filter-btn.active {
  color: #b717a1;
  font-weight: 600;
}

.video-filter-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background-color: #b717a1;
  transition: width 0.3s ease;
}

.video-filter-btn.active::after {
  width: 48px;
}

/* --------------------------------------------------------------------------
   2. Top Featured Section (2 Columns: Featured Video & Our Story)
   -------------------------------------------------------------------------- */
.video-featured-row {
  margin-bottom: 50px;
}

/* Featured Video Card (Left) */
.featured-video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 290px;
  max-height: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: #0A1210;
}

.featured-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

.featured-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

/* Big Center Play Button */
.featured-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
  padding-left: 3px;
  text-decoration: none;
  z-index: 3;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.featured-video-card:hover .featured-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(155, 27, 48, 0.85);
  border-color: #FFFFFF;
  box-shadow: 0 6px 25px rgba(155, 27, 48, 0.5);
}

/* Featured Bottom Content */
.featured-video-content {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 80px;
  z-index: 2;
}

.featured-video-kicker {
  color: #F87171;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.featured-video-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.featured-video-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.45;
}

.featured-time-badge {
  position: absolute;
  bottom: 18px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* Our Story Card (Right) */
.story-info-card {
  background-color: #F8F7F4;
  border: 1px solid #ECE7E1;
  border-radius: 16px;
  height: 100%;
  min-height: 290px;
  max-height: 320px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Botanical Leaf Art Image */
.story-leaf-decor {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  max-height: 90%;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
  filter: brightness(0.9) contrast(1.1);
}

.story-card-content {
  position: relative;
  z-index: 2;
}

.story-card-kicker {
  color: #b717a1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.story-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.22;
  color: #162825;
  margin: 0 0 10px;
}

.story-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #5E6C68;
  margin: 0 0 20px;
  max-width: 290px;
}

.story-card-btn {
  background-color: #8B1E3F;
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(139, 30, 63, 0.28);
  transition: all 0.3s ease;
  width: fit-content;
}

.story-card-btn:hover {
  background-color: #731733;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 30, 63, 0.4);
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   3. Section Heading Row ("Explore Our Videos")
   -------------------------------------------------------------------------- */
.video-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.video-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 600;
  color: #162825;
  margin: 0;
}

.video-section-subheading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #64748B;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Video Grid Cards (8 Cards, 4 Columns)
   -------------------------------------------------------------------------- */
.video-grid-item {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.video-grid-card {
  position: relative;
}

/* Thumbnail Wrapper */
.video-card-thumb-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #0E1A17;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

.video-grid-card:hover .video-card-thumb-img {
  transform: scale(1.07);
}

.video-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.video-grid-card:hover .video-card-thumb-overlay {
  background: rgba(0, 0, 0, 0.28);
}

/* Thumbnail Center Play Button */
.video-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 13px;
  padding-left: 3px;
  z-index: 2;
  transition: all 0.3s ease;
}

.video-grid-card:hover .video-card-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(155, 27, 48, 0.9);
  border-color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(155, 27, 48, 0.5);
}

/* Time Badge */
.video-card-time {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.68);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

/* Information Below Thumbnail */
.video-card-info {
  padding-top: 12px;
}

.video-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #162825;
  margin: 0 0 3px;
}

.video-card-title a {
  color: #162825;
  text-decoration: none;
  transition: color 0.3s ease;
}

.video-card-title a:hover,
.video-grid-card:hover .video-card-title a {
  color: #b717a1;
}

.video-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   5. Video Lightbox Modal (Custom Popup)
   -------------------------------------------------------------------------- */
.video-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 18, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.video-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-lightbox-container {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-lightbox-modal.active .video-lightbox-container {
  transform: scale(1);
}

.video-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 5px;
}

.video-lightbox-close:hover {
  color: #F87171;
  transform: rotate(90deg);
}

.video-lightbox-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .featured-video-card {
    min-height: 340px;
    margin-bottom: 24px;
  }
  .story-info-card {
    min-height: auto;
    padding: 32px 28px;
  }
  .story-card-title {
    font-size: 26px;
  }
  .featured-video-title {
    font-size: 24px;
  }
  .video-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 767px) {
  .video-filter-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .video-filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .featured-video-card {
    min-height: 280px;
  }
  .featured-video-content {
    left: 18px;
    bottom: 18px;
    right: 70px;
  }
  .featured-video-title {
    font-size: 20px;
  }
  .featured-video-desc {
    display: none;
  }
  .story-leaf-decor {
    width: 90px;
    opacity: 0.25;
  }
  .video-section-heading {
    font-size: 24px;
  }
}
