/* This file is for overriding css for non-admin pages */

/* @font-face {
  font-family: Oswald;
  src: url('../fonts/Oswald-Regular.ttf');
}

@font-face {
  font-family: Dosis;
  src: url('../fonts/Dosis-Medium.ttf');
} */

.custom-ads-carousel-title {
  color: black;
}

.custom-latest-news-list-item {
  text-align: left;
  display: inline-block;
  overflow: hidden;
}

.custom-latest-news-carousel-section {
  display: inline-block !important;
  vertical-align: top;
}

.custom-latest-news-list-section {
  display: inline-block;
}

/* For smartphone */
@media (max-width: 900px) {
  .custom-latest-news-list-section {
    display: none;
  }

  .custom-latest-news-carousel-section {
    width: 100%;    
  }

  .custom-latest-news-list-item img {
    width: 100%;
    border-radius: 0 !important;
    position: absolute;
    top: 0;
  }

  .custom-latest-news-list-item {
    width: 100%;
    padding-top: 56.25%;
    box-shadow: none;
    margin: 0 !important;
  }

  .custom-ads-carousel-title {
    color: white;
  }
}

/* For PC and tablet */
@media (min-width: 900px) {
  .custom-latest-news-list-section {
    line-height: 15px;
    width: 50%;
  }

  .custom-latest-news-carousel-section {
    width: 50%;
    z-index: 0;
  }

  .custom-latest-news-list-item img {
    width: 100%;
    border-radius: 0 !important;
    position: absolute;
    top: 0;
  }

  .custom-latest-news-carousel-section .custom-latest-news-list-item {
    width: 100%;
    padding-top: 56.25%;
    box-shadow: none;
    margin: 0 !important;
  }

  .custom-latest-news-list-section .custom-latest-news-list-item {
    line-height: 30px;
    width: 49.5%;
    padding-top: 27.9%;
    margin-left: 0.5%;
  }
}

.custom-latest-news-list-item-title-overlay {
  width: 100%;
  height: 40%;
  position: absolute;
  bottom: 0;
}

.custom-latest-news-carousel {
  display: inline-block !important;
}

.custom-latest-news-list-item-desc-container {
  width: 100%;
  padding: 10px;
  position: absolute;
  bottom: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), black);
}

.custom-latest-news-item-title {
  font-style: normal;
  color: white;
  font-family: Oswald, sans-serif;
  font-size: 16px;
  line-height: 20.8px;
  max-height: 41.6px;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.custom-latest-news-item-time {
  color: white;
  font-family: Dosis, sans-serif;
}

/* Styling for NewsWithSquareImgList */
.custom-square-news-container {
  text-align: left;
}

.custom-square-news-list-item {
  margin-top: 10px;
  box-shadow: 1px 1px 3px #dadada;
}

.custom-square-news-list-item img {
  display: inline-block;
  width: 30%;
}

.custom-square-news-item-time {
  color: black;
  font-family: Dosis, sans-serif;
}

.custom-square-news-list-item .info-section {
  display: inline-block;
  width: 70%;
  text-align: left;
  padding: 0 5px;
  vertical-align: top;
}

.custom-square-news-item-title {
  font-family: Oswald, sans-serif;
  font-size: 14px;
  line-height: 20px;
  max-height: 40px;
  color: black;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* For PC and tablet medium size */
@media (min-width: 650px) and (max-width: 1000px) {
  .custom-square-news-list-item {
    display: inline-block;
    width: 49.5%;
  }

  .custom-square-news-list-item.left2 {
    margin-right: 0.5%;
  }

  .custom-square-news-list-item.right2 {
    margin-left: 0.5%;
  }
}

/* For PC and tablet large size */
@media (min-width: 1000px) {
  .custom-square-news-list-item {
    display: inline-block;
    width: 32%;
  }

  .custom-square-news-list-item.left3 {
    margin-right: 1%;
  }

  .custom-square-news-list-item.right3 {
    margin-left: 1%;
  }

  .custom-square-news-list-item.middle3 {
    margin-left: 1%;
    margin-right: 1%;
  }
}

/* Styling for NewsWithBlurbList */

.custom-blub-news-list-item {
  max-width: 900px;
  border-bottom: 1px solid rgb(221, 221, 221);
  margin-bottom: 20px;
  text-align: left;
  display: inline-block;
}

.custom-blurb-news-item-time {
  color: black;
  font-family: Dosis, sans-serif;
}

.custom-blurb-news-item-title {
  font-style: normal !important;
  color: #3d3d3d;
  font-family: Oswald, sans-serif !important;
  font-size: 17px !important;
  line-height: 30.8px !important;
}

.custom-blurb-news-item-desc p {
  font-style: normal !important;
  color: rgb(61, 61, 61);
  font-family: Dosis, sans-serif;
  font-size: 15px !important;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.custom-blurb-news-tag {
  background-color: black;
  padding-left: 5px;
  padding-right: 5px;
  font-family: Dosis, sans-serif;
  color: white;
  border-radius: 2px !important;
  margin-left: 5px;
  display: inline-block;
  line-height: 20px;
}

.custom-blurb-news-tag-container {
  color: black;
  line-height: 23px;
  margin-bottom: 3px;
  margin-top: 3px;
}

.custom-blub-news-img-container {
  width: 100%;
  background-color: black;
  overflow: hidden;
}

.custom-blub-news-img-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  overflow: hidden;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .custom-blub-news-img-container {
    height: 40vw;
  }
}

@media (min-width: 900px) {
  .custom-blub-news-img-container {
    height: 40vw;
  }
}

/* Overriding the framework css for home page */
.owl-carousel .owl-item img {
  border-radius: 5px;
  z-index: 0;
}

.content-strip {
  padding: 0 !important;
  z-index: 0;
}

.custom-content-strip {
  margin-top: -1px !important;
  margin-bottom: 0 !important;
}

/* Overriding  featured news gallery */
.custom-content-featured-news {
  margin: 20px 20px 10px 20px !important;
}

.custom-content-featured-news .one-third {
  width: 30%;
  margin-right: 5%;
  line-height: 17px;
  margin-bottom: 5px !important;
}

.custom-content-latest-issue {
  margin: 20px 20px 10px 20px !important;
}

.custom-content-latest-issue .gallery {
  margin-top: 15px;
}

.custom-content-latest-issue .one-third {
  width: 30%;
  margin-right: 5%;
  line-height: 17px;
}

.custom-gallery-effect {
  border-radius: 2px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 5px !important;
}

.custom-call-action {
  margin-bottom: 0 !important;
}

.custom-gallery-issue-h2 {
  margin-bottom: 20px;
}

.custom-gallery-issue-item {
  text-align: center;
}

.custom-gallery-news-item {
  text-align: center;
}

.custom-gallery-news-title {
  font-family: serif;
  height: 40px !important;
}

.button-center {
  width: 180px !important;
}

/* Overriding pop up ads box for small mobile */
@media (max-width: 400px) {
  .mobile-ad-box {
    width: 100%;
    left: 0 !important;
    margin-left: 0 !important;
  }
}

.mobile-ad-dark .close-mobile-ad {
  font-size: 1.5em !important;
  background: transparent !important;
}

/* Styling for EventCalendar */

.custom-calendar {
  max-width: 100vw !important;
  border-radius: 0 !important;
  margin-left: 10px;
  margin-right: 10px;
}

.custom-calendar-date-box-number {
  margin-left: 0.5vh;
  font-size: 1.5vh;
}

.custom-calendar-date-box {
  line-height: 10px !important;
  text-align: left !important;
  padding-top: 0.5vh !important;
  height: 10vh !important;
  width: 14.2857142857% !important;
  overflow: unset !important;
  overflow-x: visible !important;
  overflow-y: hidden;
}

.custom-cal-days a {
  width: 14.2857142857% !important;
}

.calendar-event-placeholder {
  width: calc(100% + 2px);
  height: 1.5vh;
  font-size: 1.3vh;
  line-height: 1.3vh;
  vertical-align: middle;
  position: absolute;
  margin-left: -1px;
  color: black;
  padding: 2px 0 0 2px;
}

/* For PC and tablet */
@media (min-width: 900px) {
  .custom-event-cal-left-section {
    display: inline-block;
    width: 60%;
    vertical-align: top;
  }

  .custom-event-cal-right-section {
    display: inline-block;
    width: 40%;
    vertical-align: top;
  }
}

.cal-title,
.cal-sub-title {
  background-color: #1a72b5 !important;
  font-family: Oswald, sans-serif;
  font-size: 20px;
  text-align: center;
}

.custom-calendar-event-info-container {
  width: 100%;
  padding: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  color: rgb(34, 34, 34);
}

@media (min-width: 500px) and (max-width: 900px) {
  .custom-calendar-event-info-container {
    display: inline-block;
    width: 48%;
    margin-left: 1%;
    margin-right: 1%;
    vertical-align: top;
    font-size: 12px;
    line-height: 25px;
    margin-bottom: 13px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    padding: 5px;
  }

  .custom-calendar-event-detail .event-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .custom-calendar-event-detail {
    margin-top: -5px;
  }
}

.custom-calendar-event-img {
  width: 30%;
  display: inline-block;
  vertical-align: top;
}

.custom-calendar-event-detail {
  display: inline-block;
  width: 70%;
  padding-left: 10px;
}

.custom-calendar-event-detail .event-title {
  font-family: Oswald, sans-serif;
  text-shadow: 2px 1px 1px rgba(0, 0, 0, 0.1);
}

.custom-calendar-event-detail .timing-detail {
  font-family: Dosis, sans-serif;
  margin-top: -6px;
}

.custom-calendar-event-detail .remark-detail {
  font-family: Dosis, sans-serif;
  line-height: 16px;
  white-space: pre-wrap;
}

.custom-calendar-event-detail .event-location {
  font-family: Dosis, sans-serif;
  margin-top: -6px;
}

.event-box-scroll-anchor {
  position: absolute;
  z-index: -1;
  top: -50px;
}

.cal-today {
  background-color: #e74c3c;
  color: white;
  font-weight: bold;
  padding: 1px;
}

.custom-cta {
  color: #1a72b6;
}

.custom-publication-image {
  width: 100%;
  height: 30%;
  max-width: 437px;
  vertical-align: middle;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 5px 5px 0 lightgrey;
  border: 2px solid;
  border-color: lightgrey;
}

/* Styling for AdCarousel */
@media (min-width: 900px) {
  .custom-ads-carousel .overlay {
    visibility: hidden;
    z-index: 0;
  }
}

/* This is a hack to counter the bug in owlcarousel autoheight */
.custom-ads-carousel .owl-stage-outer {
  min-height: 200px;
}

.custom-ads-carousel .container {
  padding-bottom: 10px;
}

.straight-line {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 80%;
  width: 90%;
  display: block;
}

/**
  Custom for sticky publication detail section in Publication page
  From below instruction
  https://www.w3schools.com/howto/howto_js_sticky_header.asp
*/
@media (min-width: 1200px) {
  .custom-sticky-publication-left-sect {
    position: fixed;
    float: left;
    clear: left;

    /* top: 54px; */
    width: calc(20% - 15px);
  }
}

@media (min-width: 900px) and (max-width: 1200px) {
  .custom-sticky-publication-sponsor-sect {
    position: fixed;
    top: 54px;
    width: calc(30% - 15px);
  }
}

.custom-news-side-list-item {
  margin-top: 10px;
  box-shadow: 1px 1px 3px #dadada;
}

.custom-news-side-list-item img {
  display: inline-block;
  width: 30%;
}

.custom-news-side-list-item .info-section {
  display: inline-block;
  width: 70%;
  text-align: left;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: top;
}

/* Styling for NewsWithSquareImgList */
.custom-news-side-list-container {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left;
}

/* For PC and tablet medium size */
@media (max-width:900px) {
  .custom-news-side-list-container {
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.supplier-container {
  display: inline-block;
  padding: 0 !important;
  margin-bottom: 10px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.supplier-contentPageCustom {
  padding: 0 !important;
}

.supplier-filterContainer {
  display: inline-block;
  width: 220px;
  margin-bottom: 0px!important;
}

.supplier-contactLink {
  display: inline;
}

.supplier-searchContainer {
  display: inline-block;
  width: 220px;
  float: right;
  margin-bottom: 0px!important;
}

@media (max-width: 440px) {
  .supplier-searchContainer {
    display: inline-block;
    width: 220px;
    float: left;
    margin-bottom: 0px!important;
  }
}

.supplier-sectionTitle {
  font-family: Oswald;
  display: inline-block;
  font-size: 22px;
  text-transform: uppercase;

  /* background-color: black; */
  color: #1a72b5;
  padding: 10px;
  margin-left: -10px;
}

.supplier-mobile-sub-comp {
  text-align: center;
  padding: 0 10px;
}

/**
  Custom for loader status of the page
  The spinner is in HTML.js
*/

#page-load-spinner-icon {
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #1a73b5;
  border-bottom: 3px solid #1a73b5;
  width: 60px;
  height: 60px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.8;
  z-index: 999;
  display: flex;
}

#page-load-spinner-icon {
  margin: auto;
  text-align:center;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.custom-menu-logo a {
  display: block;
}

.custom-menu-logo {
  text-align: center;
}

.custom-menu-logo {
  background-color: #1a72b5;
  color: white;
}

.custom-menu-logo-title{
  font-family: Oswald, sans-serif;
  font-weight: bold;
}

.custom-menu-logo-desc {
  font-family: Roboto, sans-serif;
  font-size: 10px;
  margin-top: -10px;
}


#news-read-carousel > div.owl-nav {
  top: 27vw;
}

@media (min-width: 900px) {
  /* At this point, max-width of imageContainer is 700px */
  #news-read-carousel > div.owl-nav {
    top: 200px;
  }
}

#news-read-carousel > div.owl-nav > div {
  height: 23px;
  line-height: 23px;
  margin: 0;
  padding: 0;
  background-color: #0074c2;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-color: #0074c2 !important;
}

#news-read-carousel > div.owl-nav > div:hover {
  border-color: rgba(255, 255, 255, 0.7) !important;
}

#news-read-carousel > div.owl-nav > div:active {
  border-color: white !important;
}

#news-read-carousel > div.owl-nav > div:active > i {
  font-weight: bolder;
}

#news-read-carousel > div.owl-nav > div.owl-next {
  border-radius: 10px 0 0 10px;
  border-left: 1px solid;
}

#news-read-carousel > div.owl-nav > div.owl-prev {
  border-radius: 0 10px 10px 0;
  border-right: 1px solid;
}

#news-read-carousel > div.owl-nav > div > i {
  font-size: 20px;
}

.Modal {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  background-color: papayawhip;
  z-index: 9999999;
}

.Overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rebeccapurple;
}

#ads-carousel {
  z-index: 0;
}

.actionBtn {
  border-radius: 4px;
  background-color: #4a89dc;
  border: solid 2px #4a89dc;
  color: #fff;
  height: 25px;
  text-align: center;
  font-size: 12px;
  margin: 10px auto;
  padding: 0 20px;
  display: block;
  font-weight: bold;
}

#latest-news-list-carousel {
  z-index: 0;
}

.embedded-video-16-9 {
  width: 60vw;
  height: 33.75vw;
  margin: 0 auto;
}

@media (min-width: 300px) and (max-width: 900px) {
  .embedded-video-16-9 {
    width: 60vw;
    height: 33.75vw;
    margin: 0 auto;
  }
}

.videoDescription {
  overflow-wrap: break-word;
  width:90%
}

.ReactModalPortal {
  z-index: 995;
}
