/* --------------------------------------------------------------------------
   DP World ILT20 - Videos Section & Master Videos Hub
   Matches Reference UI, 4-Card Responsive Grid, & Interactive Video Modal
   -------------------------------------------------------------------------- */

.videos-section {
  position: relative;
  background-color: var(--color-bg-base, #1c0235);
  padding: 40px 0px 60px;
  /* background-image: url("assets/stoties-section-bg.png"); */
  background-size: inherit;
  background-repeat: no-repeat;
  display: flex !important;
}

.videos-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Videos Media Cards Grid */
.videos-section .media-cards-grid,
.videos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
}

@media (min-width: 992px) {

  .videos-section .media-cards-grid,
  .videos-gallery-grid {
    grid-template-columns: repeat(4, minmax(0px, 1fr));
  }
}

@media (max-width: 991px) and (min-width: 601px) {

  .videos-section .media-cards-grid,
  .videos-gallery-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media (max-width: 600px) {

  .videos-section .media-cards-grid,
  .videos-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Video Card Styling (Matching Reference Image 1) */
.video-card,
.videos-section .video-card,
.videos-gallery-grid .video-card {
  position: relative;
  background: rgb(40, 5, 72);
  border: 1px solid var(--color-border-purple);
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: rgba(0, 0, 0, 0.45) 0px 10px 25px; */
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0px !important;
  flex: 1 1 100% !important;
  height: 350px;
}

@media (max-width: 600px) {

  .video-card,
  .videos-section .video-card,
  .videos-gallery-grid .video-card {
    height: auto !important;
  }
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(237, 27, 118, 0.6);
  box-shadow: rgba(0, 0, 0, 0.65) 0px 14px 35px, rgba(237, 27, 118, 0.25) 0px 0px 22px;
}

.video-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.video-card .media-card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
  background: rgb(20, 2, 36);
}

@media (max-width: 600px) {
  .video-card .media-card-img-wrap {
    height: 100% !important;
  }
}

.video-card .media-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-card:hover .media-card-thumb {
  transform: scale(1.08);
}

/* Play Button Overlay (DP World Hot Pink Glowing Button) */
.video-card .play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(237, 27, 118, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(237, 27, 118, 0.85);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 3;
  pointer-events: none;
}

.video-card .play-btn-overlay svg {
  /* margin-left: 3px; */
  transition: transform 0.3s ease;
}

.video-card:hover .play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--color-lime-primary, #b9e249);
  color: #140324;
  box-shadow: 0 0 25px rgba(185, 226, 73, 0.95);
}

.video-card:hover .play-btn-overlay svg {
  transform: scale(1.1);
}

/* Card Caption Area - Matches .news-card-overlay shade UI */
.media-card-caption,
.video-card .media-card-caption {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  padding: 56px 14px 14px;
  background: linear-gradient(180deg, rgba(20, 2, 32, 0) 0%, var(--color-bg-card, #2f0557) 35%, var(--color-border-card, #6d1b9c) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  z-index: 2;
  box-sizing: border-box;
  transition: var(--transition-smooth, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.video-card:hover .media-card-caption,
.media-card:hover .media-card-caption {
  background: linear-gradient(180deg, rgba(20, 2, 32, 0) 0%, var(--color-bg-purple, #421066) 30%, var(--color-bg-purple, #421066) 100%);
}

.video-card .media-card-tag,
.media-card-caption .news-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body, 'Cutmark', sans-serif);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--color-lime-primary, #b9e249);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.video-card .media-card-title {
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 1px;
}

.video-card .card-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-pink-primary), var(--color-lime-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 4;
}

.video-card:hover .card-bottom-line {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Master Videos Page Hero & Grid
   -------------------------------------------------------------------------- */
.videos-hero-banner {
  background: url('assets/photo-hero-bg.png') center center / cover no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 44px 0px;
}

.videos-content-section {
  position: relative;
  background-color: var(--color-bg-base, #1c0235);
  padding: 30px 0 60px;
  min-height: 50vh;
}

.videos-gallery-grid {
  margin-top: 25px;
}

/* --------------------------------------------------------------------------
   Video Play Modal (Sleek High-End Lightbox)
   -------------------------------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 2, 22, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  background: #17032a;
  border: 1px solid rgba(237, 27, 118, 0.45);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(237, 27, 118, 0.25);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.video-modal.is-open .video-modal-dialog {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s ease;
}

.video-modal-close svg {
  pointer-events: none;
}

.video-modal-close:hover {
  background: var(--color-pink-primary, #ed1b76);
  border-color: #ed1b76;
  transform: rotate(90deg) scale(1.1);
}

.video-modal-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000000;
}

.video-modal-player-wrap iframe,
.video-modal-player-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-info {
  padding: 18px 24px;
  background: #140224;
  border-top: 1px solid rgba(109, 27, 156, 0.3);
}

.video-modal-title {
  margin: 0;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: 0.3px;
}