
/* =====================================================
   VIDEO SHOWCASE
===================================================== */

.video-showcase {

  padding: 45px 0 100px;

  background: white;
}


.video-section-heading {

  text-align: center;

  max-width: 700px;

  margin: 0 auto 60px;
}


.video-section-heading span {

  display: block;

  margin-bottom: 12px;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 3px;

  color: #075985;
}


.video-section-heading h2 {

  margin: 0 0 15px;

  font-size: clamp(35px, 5vw, 55px);

  color: #063f63;
}


.video-section-heading p {

  margin: 0;

  color: #667085;

  font-size: 16px;
}



/* =====================================================
   VIDEO GRID
===================================================== */

.video-grid {

  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 20px;
}



/* =====================================================
   VIDEO CARD
===================================================== */

.video-card {

  position: relative;

  background: white;

  border: 1px solid #e4edf2;

  border-radius: 16px;

  overflow: hidden;

  cursor: pointer;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.06);

  opacity: 0;

  transform: translateY(50px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.35s ease;
}


.video-card.visible {

  opacity: 1;

  transform: translateY(0);
}


.video-card:hover {

  transform: translateY(-6px);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.12);
}



/* =====================================================
   VIDEO THUMBNAIL
===================================================== */

.video-thumbnail {

   position: relative;

  width: 100%;

  height: 270px;

  overflow: hidden;

  background: #f4f7f9;
}


.video-thumbnail video {

   width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.7s
    cubic-bezier(.16,1,.3,1);
}


.video-card:hover
.video-thumbnail video {

  transform: scale(1.08);
}



/* =====================================================
   VIDEO OVERLAY
===================================================== */

.video-overlay {

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    rgba(0,0,0,0.20);

  transition:
    background 0.3s ease;
}


.video-card:hover
.video-overlay {

  background:
    rgba(0,0,0,0.32);
}


.play-button {

  width: 75px;

  height: 75px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding-left: 4px;

  border-radius: 50%;

  background: rgba(255,255,255,0.94);

  color: #075985;

  font-size: 25px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.20);

  transition:
    transform 0.35s ease;
}


.video-card:hover
.play-button {

  transform:
    scale(1.12);
}



/* =====================================================
   CARD NUMBER
===================================================== */

.video-card-number {

  position: absolute;

  top: 15px;

  right: 17px;

  font-size: 42px;

  line-height: 1;

  font-weight: 900;

  color:
    rgba(255,255,255,0.35);

  transition:
    transform 0.4s ease;
}



/* =====================================================
   CARD CONTENT
===================================================== */

.video-card-content {

  padding: 25px 28px 28px;
}


.video-card-content span {

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2px;

  color: #075985;
}


.video-card-content h3 {

  margin: 8px 0 8px;

  font-size: 23px;

  color: #063f63;
}


.video-card-content p {

  margin: 0;

  font-size: 14px;

  line-height: 1.6;

  color: #667085;
}



/* =====================================================
   VIDEO MODAL
===================================================== */

.video-modal {

  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px;

  background:
    rgba(0,0,0,0.82);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}


.video-modal.active {

  opacity: 1;

  visibility: visible;
}


.video-modal-content {

  position: relative;

  width: min(1100px, 92vw);

  transform:
    scale(0.82);

  transition:
    transform 0.45s
    cubic-bezier(.16,1,.3,1);
}


.video-modal.active
.video-modal-content {

  transform:
    scale(1);
}


.video-modal-content video {

  display: block;

  width: 100%;

  max-height: 82vh;

  border-radius: 12px;

  background: black;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.45);
}



/* =====================================================
   CLOSE BUTTON
===================================================== */

.video-close {

  position: absolute;

  z-index: 5;

  top: -45px;

  right: 0;

  width: 38px;

  height: 38px;

  border: none;

  border-radius: 50%;

  background: rgba(255,255,255,0.15);

  color: white;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}


.video-close:hover {

  background: rgba(255,255,255,0.3);

  transform:
    rotate(90deg);
}



/* =====================================================
   HERO ANIMATION
===================================================== */

@keyframes videoHeroReveal {

  from {

    opacity: 0;

    transform:
      translateY(45px);
  }

  to {

    opacity: 1;

    transform:
      translateY(0);
  }
}



/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .video-grid {

    grid-template-columns: 1fr;

  }

  .video-thumbnail {

    height: 380px;

  }

}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .video-hero {

    min-height: 470px;

  }


  .video-hero .container {

    padding:
      80px 20px;

  }


  .video-hero h1 {

    font-size: 43px;

  }


  .video-hero p {

    font-size: 15px;

  }


  .video-showcase {

    padding:
      75px 0;

  }


  .video-section-heading {

    margin-bottom: 40px;

  }


  .video-grid {

    gap: 30px;

  }


  .video-thumbnail {

    height: 240px;

  }


  .play-button {

    width: 62px;

    height: 62px;

    font-size: 20px;

  }


  .video-card-content {

    padding:
      20px;

  }


  .video-card-content h3 {

    font-size: 20px;

  }


  .video-modal {

    padding: 20px;

  }


  .video-modal-content {

    width: 96vw;

  }


  .video-close {

    top: -45px;

    right: 0;

  }

}