/* Assets card Css */
.asset-card-sec .assets-card{
  border: 2px solid #EDEBE4;
  border-radius: 8px;
  max-width: 345px;
  margin: 30px 0;
  position: relative;
}

/* Info Icon Styling */
.asset-card-sec .assets-card .card-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.asset-card-sec .card-info-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background-color: #061f80;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.asset-card-sec .card-info-icon:hover {
  background-color: #061f80;
}

.asset-card-sec .card-info-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Modal Styling */
.asset-card-sec .asset-info-modal .modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.asset-card-sec .asset-info-modal .modal-header {
  border-bottom: 1px solid #EDEBE4;
  padding: 20px 25px;
}

.asset-card-sec .asset-info-modal .modal-title {
  font-family: "RethinkSans-SemiBold";
  font-size: 20px;
  color: #000E56;
}

.asset-card-sec .asset-info-modal .modal-body {
  padding: 25px;
}

.asset-card-sec .asset-info-modal .asset-modal-content p {
  margin-bottom: 10px;
  font-family: "RethinkSans-Regular";
  font-size: 14px;
  color: #292C31;
}

.asset-card-sec .asset-info-modal .asset-modal-content p strong {
  font-family: "RethinkSans-SemiBold";
  color: #000E56;
}

.asset-card-sec .asset-info-modal .asset-modal-content a {
  color: #061f80;
  text-decoration: underline;
}

.asset-card-sec .asset-info-modal .asset-modal-content a:hover {
  color: #061f80;
}

/* custom modal dimensions and appearance requested */
.asset-card-sec .asset-info-modal .modal-dialog {
  max-width: 1155px;
  width: 1155px;
}
.asset-card-sec .asset-info-modal .modal-content {
  background-color: #EDEBE4;
  width: 1155px;
  height: 494px;
}
.asset-card-sec .asset-info-modal .modal-header {
  border: none;
  padding: 0;
}
.asset-card-sec .asset-info-modal .modal-header .btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
  color: #ffffff;
}
.asset-card-sec .check-box-sec {
  position: absolute;
  left: 25px;
  top: 24px;
}

.asset-card-sec input#library-check {
  min-width: 20px;
  min-height: 20px;
}

.asset-card-sec input#library-check[type="checkbox"]{
  -webkit-appearance: initial;
  appearance: initial;
  border: 1px solid #8f9699;
  position: relative;
  border-radius: 4px;
}
.asset-card-sec input#library-check[type="checkbox"]:checked {
  accent-color: #061f80;
}
.asset-card-sec input#library-check[type="checkbox"]:checked:after {
  background-color: #061f80;
  content: "";
  color: #fff;
  position: absolute;
  background-image: url(/wp-content/themes/ipsen-main/dist/images/tick.png);
  background-repeat: no-repeat;
  background-size: 11.6px 8.9px;
  background-position: center;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.asset-card-sec .card-content {
  padding: 20px 25px;
  border-top: 2px solid #EDEBE4;
}
.asset-card-sec .card-content p {
  font-family: "RethinkSans-SemiBold";
  font-size: 20px;
  line-height: 24px;
  color: #000E56;
  margin-bottom: 0;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.asset-card-sec .card-download-sec {
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
  border-radius: 0px 0px 8px 8px;
}
.asset-card-sec .card-download-sec p {
  margin-bottom: 0;
  font-family: "RethinkSans-SemiBold";
  font-size: 14px;
  line-height: 16.8px;
  color: #5d6265;
}
.asset-card-sec .assets-card:hover .card-img img, 
.asset-card-sec .assets-card:focus .card-img img {
  transform: scale(1.2);
  cursor: pointer;
}
.asset-card-sec .assets-card .card-img img {
  transition: transform 0.2s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-card-sec .assets-card .card-img {
  height: 100%;
  overflow: hidden;
}
.asset-card-sec .assets-card:hover .card-download-sec, 
.asset-card-sec .assets-card:focus .card-download-sec {
  background-color: #EDEBE4;
}
.asset-card-sec .card-download-sec p {
  margin-bottom: 0;
  font-family: "RethinkSans-SemiBold";
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: #000E56;
}
.asset-card-sec .card-type-one .card-img-outer, 
.asset-card-sec .card-type-four .card-img-outer {
  padding: 25px;
  height: 250px;
}
.asset-card-sec .card-type-two .card-img-outer {
  padding: 0;
  height: 250px;
}
.asset-card-sec .card-type-three .card-img-outer {
  padding: 0;
  height: 250px;
}

/* Asset Card Video Styling */
.asset-card-video-type,
.single-video-card-type{
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.asset-card-video-type .video-overlay,
.single-video-card-type .video-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background-color 0.3s ease;
}

.asset-card-video-type .video-overlay:hover,
.single-video-card-type .video-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.asset-card-video-type .video-play-btn,
.single-video-card-type .video-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease;
}

.asset-card-video-type .video-play-btn:hover,
.single-video-card-type .video-play-btn:hover {
  transform: scale(1.1);
}

.asset-card-video-type .video-play-btn img,
.single-video-card-type .video-play-btn img {
  width: 60px;
  height: 60px;
}

.asset-card-video-type .video-container,
.single-video-card-type .video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.asset-card-video-type a,
.single-video-card-type a{
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
}

.asset-card-video-type a video,
.single-video-card-type video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-card-video-type a .vp-center{
  align-items: start;
  height: 100%;
  width: 100%;
}

.asset-card-video-type a iframe{
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  top: 0;
  border: none;
}

.asset-card-video-type a img{
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5; /* was 999 — lowered below the overlay (z-index: 20) so overlay and play button remain clickable */
}

/* Hide default video controls */
.asset-card-video-type video::-webkit-media-controls {
  display: none !important;
}

.asset-card-video-type video::-moz-media-controls {
  display: none !important;
}

.asset-card-video-type video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-container video::-webkit-media-controls {
  display: none !important;
}

.video-container video::-webkit-media-controls-panel {
  display: none !important;
}

.video-container video::-webkit-media-controls-play-button {
  display: none !important;
}

.video-container video::-webkit-media-controls-mute-button {
  display: none !important;
}

.video-container video::-webkit-media-controls-timeline {
  display: none !important;
}

.video-container video::-webkit-media-controls-current-time-display {
  display: none !important;
}

.video-container video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

/* Video playing - hide overlay */
.asset-card-video-type.playing .video-overlay {
  display: none;
}

/* Additional video container types */
.single-video-card-type,
.related-video-card-type {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.related-video-card-type {
  height: 240px;
}

.single-video-card-type .video-overlay,
.related-video-card-type .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background-color 0.3s ease;
}

.single-video-card-type .video-overlay:hover,
.related-video-card-type .video-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.single-video-card-type .video-play-btn,
.related-video-card-type .video-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease;
  z-index: 21;
}

.single-video-card-type .video-play-btn:hover,
.related-video-card-type .video-play-btn:hover {
  transform: scale(1.1);
}

.single-video-card-type .video-play-btn img,
.related-video-card-type .video-play-btn img {
  width: 60px;
  height: 60px;
}

.single-video-card-type .video-container,
.related-video-card-type .video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.single-video-card-type .video-container iframe,
.single-video-card-type .video-container video,
.related-video-card-type .video-container iframe,
.related-video-card-type .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-video-card-type.playing .video-overlay,
.related-video-card-type.playing .video-overlay {
  display: none;
}
/* Video date CSS */
.asset-card-sec span.time-stamp {
  color: #000E56;
  font-size: 13px;
  line-height: 16px;
  margin-right: 5px;
  white-space: nowrap;
  font-family: 'RethinkSans-Regular';
  margin-bottom: 10px;
}

/* desktop queries */
@media only screen and (min-width: 768px){
  .asset-card-sec .asset-cards {
    max-width: 330px;
  }
}

/** Category line CSS**/
.asset-list-btn a {
  padding: 9px 24px !important;
  border: 1px solid #000E56;
  border-radius: 25px;
  color: #000E56 !important;
  text-decoration: none;
  white-space: nowrap;
  font-family: "RethinkSans-Regular" !important;
  font-weight: 400;
  font-size: 13px !important;
  line-height: 16px !important;
}
.asset-list-btn {
  padding: 0;
  display: flex;
  align-items: center;
  text-align: left;
  margin-right: 15px
}
.asset-list-btn:focus a,
.asset-list-btn:hover a,
.asset-list-btn.active a {
  background-color: #000E56;
  color: #fff !important;
}
.asset-card-sec .text-asset-heading h3{
  margin-bottom: 24px !important; 
}
.asset-card-sec .text-asset-para{
  margin-bottom: 24px !important;
}
#asset-results-container .assets-card{
  max-width: 100%;
  margin: 30px 0 0;
}
@media only screen and (min-width: 768px) {
  .asset-list-btn-div {
    overflow:uset;
    margin-bottom: 55px;
  }
  .asset-card-sec ul.assetcard-list-btn {
    overflow: unset
  }
  .asset-card-sec ul.list-btn {
    overflow: unset;
    display: flex;
    flex-direction: row;
  }
}

/* CTA link/button */
.asset-card-sec .more-result-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 35px;
}
  
.btn-link.section-btn.cta-visible:hover{
  color: #fff;
}

.asset-card-sec .more-result-btn a.more-cta-link{
  font-family: 'RethinkSans-SemiBold';
  font-size: 18px;
  line-height: 22px;
  color: #061f80;
}

.asset-card-sec .more-result-btn a.more-cta-link:hover{
  font-family: 'RethinkSans-SemiBold';
  font-size: 18px;
  line-height: 22px;
  color: #061f80;
  text-decoration: underline;
}

.asset-card-sec .text-asset-heading{
  max-width: 1020px;
}

.asset-card-sec .text-asset-heading h2{
  font-family: 'Rethinksans-bold';
  font-size: 39px;
  line-height: 46px;
  margin-bottom: 20px;
  color: #292C31;
}

.asset-card-sec .text-asset-para{
  font-family: 'RethinkSans-Regular';
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 32px;
  font-weight: 400;
}

/* desktop */
@media only screen and (min-width: 992px){
  .asset-card-sec .text-asset-heading h3 {
      margin-bottom: 0px;
      font-family: 'Rethinksans-bold';
      font-weight: 700;
      font-size: 32px;
      line-height: 36px;
      color: #000E56;
      padding: 0;
  }
  .asset-card-sec .text-asset-para {
      font-size: 16px;
      line-height: 20px;
      margin-bottom: 50px;
  }

}

/* ipad */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
{
  .asset-card-sec .text-asset-heading h2 {
      font-size: 32px;
      line-height: 125%;
      margin-bottom: 30px;
      color: #292C31;
  }
}

@media only screen and (max-width: 767px){
  .asset-card-sec .more-result-btn{
    justify-content: left;
  }

  /** Video date css **/
  .asset-card-sec span.time-stamp {
    margin: 0px 5px;
    white-space: nowrap;
  }
  .asset-card-sec ul.list-btn li{
    padding-left: 15px;
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* Asset Card Popup */
.assets-card .asset-info-modal .btn-link.section-btn{
  display: block;
  padding: 15px 25px;
}

.assets-card .asset-info-modal .asset-info-checkbox{
  padding-left: 20px;
}

.assets-card .asset-info-modal .asset-info-checkbox p{
  margin-bottom: 24px;
}

.assets-card .asset-info-modal .asset-popup-right-column{
  padding-left: 35px;
}

.assets-card .asset-info-modal .asset-popup-right-column p.date-added{
  margin-bottom: 5px;
}

.assets-card .asset-info-modal .asset-popup-left-column img{
  width: 360px;
  height: auto;
  max-width: 100%;
}

.assets-card .asset-info-modal .modal-body{
  display: flex;
  justify-content: center;
  align-items: center;
}

.assets-card .asset-info-modal .form-check-input[type="checkbox"]{
  margin-right: 16px;
}

.assets-card .asset-info-modal .btn-close{
  right: 150px !important;
  top: 70px !important;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
}

@media only screen and (max-width: 1399px) {
  .asset-card-sec .assets-card .card-img img {
    height: auto;
  }
}

@media only screen and (max-width: 991px) {
  .asset-card-sec ul.list-btn{
    display: contents;
  }
}

/* Asset Card Video Styling */
.asset-card-video-type {
    width: 100%;
    height: 100%;
    display: flex;
}
.asset-card-video-type a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    flex: 1;
}
.asset-card-video-type a video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.asset-card-video-type a .vp-center {
    align-items: start;
    height: 100%;
    width: 100%;
}
.asset-card-video-type a iframe {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    top: 0;
    border: none;
}
.modal.fade.asset-info-modal.show input[type=checkbox]{
  appearance: auto !important;
}