@import url(./font-face.css);

* {
  box-sizing: border-box;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s;
}

.video-thumbnail:hover img {
  opacity: 0.8;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  opacity: 0.8;
  transition: all 0.3s;
}

.video-thumbnail:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-iframe-container {
  width: 100%;
  height: 247px;
}

.video-iframe-container iframe {
  width: 100%;
  height: 100%;
}

/* Loading spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

#loading {
  margin-top: 20px;
}

/* program eadc Section START */
.program-eadc {
  background-color: var(--color-body-primary);
  margin-top: 100px;
}

.program-eadc .title-text {
  color: var(--color-branding-primary);
  font-family: "poppinssemibold";
}

.program-eadc .row img {
  object-fit: cover;
}

.program-eadc img.card-img-top {
  aspect-ratio: 16/9;
  height: auto;
}

.program-eadc .card-img-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: 1s;
  cursor: pointer;
}

.program-eadc .card-img-overlay:hover {
  opacity: 1;
}

.program-eadc .card-img-overlay a {
  color: var(--color-body-primary);
  transform: translateY(10px);
  transition: 1s;
  text-decoration: none;
}

.program-eadc .card-img-overlay a:hover {
  transform: translateY(0);
}

.program-eadc .card-img-overlay a p:nth-child(1) {
  font-size: 20px;
  font-weight: 700;
}

/* update */
.program-eadc .card {
  border: none !important;
  position: relative;
}

.program-eadc iframe {
  width: 100%;
  height: 100%;
}


.program-eadc .card img {
  border: 0.5px solid var(--color-branding-primary);
}

.program-eadc .card-body {
  background-color: var(--color-branding-primary);
  color: var(--color-body-primary);
  border-radius: 0 0 5px 5px;
  padding: 5px;
  margin: 0 0 18px 0;
}

.program-eadc h2 {
  color: #830c11;
  font-weight: bold;
}

.program-eadc h2 span {
  color: black;
}

.program-eadc .card-body a {
  text-decoration: none;
  color: inherit;
  font-size: 16px;
  height: 2.9rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  text-overflow: ellipsis;
  white-space: normal;
  overflow: hidden;
  position: relative;
  -webkit-box-orient: vertical;
  line-height: 21px;
  width: 90%;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

#loading {
  margin-top: 20px;
}

.video-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* program eadc Section END */

/* breakpoint star */

@media (max-width: 576px) {
  .program-eadc .card-img-overlay {
    background: none;
    opacity: 1;
    height: 100%;
    margin-top: 3%;
  }

  .program-eadc .card-img-overlay a {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    padding: 20px;
  }

  .program-eadc .card-img-overlay:hover {
    opacity: 1;
  }

  .program-eadc .card-img-overlay a {
    color: var(--color-body-primary);
    transform: translateY(0);
  }

  /* .program-eadc .card-img-overlay a:hover {
    transform: translateY(0);
  } */
  .program-eadc .card-img-overlay a p:nth-child(1) {
    font-size: 14px;
    font-weight: 700;
  }

  .program-eadc .card-img-overlay a p:nth-child(2) {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .program-eadc .row {
    padding: 0;
  }
}

@media (min-width: 768px) {
  .program-eadc .row {
    padding: 0 10%;
  }
}

/* @media (max-width: 1300px) {
  .program-eadc .row {
    padding: 0;
  }
}

@media (min-width: 1400px) {
  .program-eadc .row {
    padding: 0 20%;
  }
} */