@use "../../../plugins/bootstrap-5.1.3/scss/functions";
@use "../../../plugins/bootstrap-5.1.3/scss/variables";
@use "../../../plugins/bootstrap-5.1.3/scss/mixins";
@use "../../../plugins/bootstrap-5.1.3/scss/utilities";
@use "../../../plugins/bootstrap-5.1.3/scss/reboot";
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: auto !important;
  }
}

:root {
  --primary: #CD0511;
  --consumed-by-js: $primary;
  --bs-primary: #CD0511;
  --bs-primary-rgb: 205, 5, 17;
  --success: #179149;
  --consumed-by-js: $success;
  --bs-success: #179149;
  --bs-success-rgb: 23, 145, 73;
  --bs-dark: #161616;
  --bs-dark-rgb: 22, 22, 22;
  --bs-font-open-sans:'Open Sans', sans-serif;
  --bs-body-font-family: var(--bs-font-open-sans);
  --bs-body-color: #161616;
  --bs-link-color: $primary;
}

@use "../../../plugins/bootstrap-5.1.3/scss/bootstrap";
.author-date .tags img {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.body-lang-vn .events .nav-tabs .nav-item .nav-link {
  min-width: max-content;
}

body {
  overflow-x: hidden;
}

#analysis .side-title,
#analysis .title {
  font-size: 20px;
  font-weight: 600;
}

#analysis .categories-title {
  font-size: 30px;
  font-weight: 700;
}

#analysis .category-section {
  border-bottom: solid 1px #f4f4f4;
  margin-bottom: 50px;
}

#analysis .category-section:last-of-type {
  border: 0;
}

#related-articles {
  border-bottom: solid 1px #f4f4f4;
}

.main-post-container {
  margin-right: 30px !important;
}

.body-lang-rtl .main-post-container {
  margin-right: unset !important;
  margin-left: 30px !important;
}

/* Search Bar & Results */
#top-5-search-results:has(#search-loader:not(.d-none)),
#top-5-search-results:has(#top-5-post-list),
#top-5-search-results:has(.zero) {
  min-width: 100%;
  max-height: 50vh;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 11;
  list-style-type: none;
  position: absolute;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
  border: solid 1px #eee;
  background-color: white;
}

#top-5-search-results:has(#search-loader:not(.d-none)),
#top-5-search-results:has(.zero) {
  overflow-y: auto !important;
}

#top-5-post-list li {
  border-bottom: solid 1px #F4F4F4;
}

#top-5-post-list li p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

#top-5-post-list li:last-of-type {
  border-bottom: 0;
}

/* end */
.btn-show-more {
  border: solid 1px #EEE;
  border-radius: 15px;
  padding: 10px 20px;
}

.no-posts-message {
  text-align: center;
  color: #555;
  padding: 20px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-top: 10px;
}

.no-posts-message i {
  margin-right: 5px;
  color: #721c24;
}

#post .trade-now a .btn {
  border-radius: 4px;
  background: #179149 !important;
}

.slick-arrow.slick-disabled {
  opacity: 0.5;
  cursor: unset;
}

.category-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  color: #000;
  margin-left: 5px;
  background-color: #FFFFFF;
  font-size: 10px;
  border: 1px solid #EEE;
}

.item-tag {
  white-space: nowrap;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 12px;
  margin-right: 5px;
  border: 1px solid #EEE;
  margin-top: 4px;
}

.main-post-container {
  flex: 2 1 60%;
}

.side-posts-container {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#top-5-post-list li a,
.main-post a,
.side-post a,
.post a,
.view-all {
  color: #000 !important;
}

.main-intro {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  height: 97px !important;
}

.intro {
  /* For category posts intro */
  color: #777;
}

.author {
  color: #808080;
  font-weight: bold;
  font-size: 14px;
}

.date {
  color: #808080;
  font-size: 14px;
}

.main-title,
.title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-intro,
.intro {
  font-size: 0.9rem;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post img {
  aspect-ratio: 2;
}

.post .title {
  min-height: 50px;
}

.slick-arrow.slick-disabled {
  opacity: 0.5;
  cursor: unset;
}

.tooltip-text {
  background-color: #161616;
  color: #FFFFFF;
  border-radius: 4px;
  padding: 5px;
  font-size: 12px;
  position: absolute;
  z-index: 1;
}

.all-categories ul {
  width: 101%;
}

.main-title {
  font-size: 50px;
}

.topbar .nav-tabs .nav-link {
  transition: unset !important;
}

.topbar .nav-tabs .nav-link.active {
  background: #CD0511;
  color: #FFFFFF;
}

.topbar .nav-tabs .nav-link.active > .text-primary {
  color: #ffffff !important;
}

.rendered-body-wrap button:has(img) {
  background: none;
  border: none;
}

#post img {
  max-width: 100% !important;
  height: 100% !important;
}

#post .social .social-links {
  color: #A5A5A5;
}

.author-info {
  font-size: smaller;
}

.seminar-flag {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

#author-profile {
  border-bottom: solid 1px #F4F4F4 !important;
  border-top: solid 1px #F4F4F4 !important;
}

#author-img {
  max-width: 115px;
}

.categories .nav-item .nav-link {
  border: solid 1px #EEE;
  margin-top: 10px !important;
  border-radius: 15px;
  padding: 10px 18px;
  color: #161616;
}

.categories .nav-item .nav-link:hover {
  background: #F4F4F4;
}

.categories .nav-item .nav-link:active, .categories .nav-item .nav-link.active {
  background: #CD0511;
  color: #FFFFFF !important;
}

.categories .nav-item .nav-link:active:hover, .categories .nav-item .nav-link.active:hover {
  background: #CD0511;
  color: #FFFFFF;
}

.search {
  border: solid 1px #EEE;
  margin-top: 10px !important;
  border-radius: 15px;
  padding: 10px 18px;
}

.events hr {
  color: #dee2e6;
}

.events .nav-tabs .nav-item .nav-link {
  padding: 15px;
  border: 0;
  min-width: 110px;
  text-align: center;
  font-size: 14px;
}

@-moz-document url-prefix() {
  .events .nav-tabs .nav-item .nav-link .firefox {
    min-width: 100% !important;
  }
}

.events .nav-tabs .nav-item .nav-link .active, .events .nav-tabs .nav-item .nav-link.active, .events .nav-tabs .nav-item .nav-link:active {
  border-bottom: 4px solid #A5A5A5 !important;
  font-weight: 700;
  padding-bottom: 15px;
  width: max-content;
  margin: auto;
  background: transparent !important;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-tabs .nav-item .nav-link:not(.home) {
    min-width: 100px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-tabs .nav-item .nav-link:not(.home) {
    min-width: 110px !important;
  }
}

@media (min-width: 1200px) {
  .main-article-title {
    font-size: 40px !important;
    font-family: "Open Sans" !important;
    min-height: 98px !important;
  }
}

@media (max-width: 1199.98px) {
  .main-title {
    font-size: 24px;
  }
}

@media (max-width: 991.98px) {
  #related-posts-container .image-container,
  #more-from-author .image-container {
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .events .categories .nav-item .nav-link:hover {
    background: transparent;
  }
  .events .categories .nav-item .nav-link:active:hover, .events .categories .nav-item .nav-link.active:hover {
    background: transparent;
    color: #161616;
  }
  .topbar .nav-tabs {
    overflow: scroll;
    padding: 10px 0;
  }
  #related-posts-container .title,
  #more-from-author .title {
    height: 55px !important;
  }
  .events {
    min-height: 405px !important;
  }
  .sticky-column {
    position: relative !important;
    top: unset !important;
  }
  .main-post-container {
    margin-right: unset !important;
  }
  #related-posts-container .image-container,
  #more-from-author .image-container {
    width: 100% !important;
  }
}

.para-content {
  width: 100% !important;
  margin: 0 !important;
}

.main-post-container .image-container {
  height: 56% !important;
}

.main-post-container .image-container img {
  height: 100% !important;
  object-fit: none !important;
}

.side-image-container img {
  object-fit: cover !important;
  height: 167px !important;
  width: 100%;
}

.main-article-title {
  display: block;
  margin-top: 20px;
  margin-bottom: 20px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  color: black;
}

.image-container img {
  height: 210px !important;
  object-fit: cover;
}

#analysis_categories .title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

#analysis_categories .intro {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sticky-column {
  position: sticky;
  top: 20px;
  /* Adjust based on your layout */
  height: max-content !important;
}

.date {
  font-size: 12px;
}

.sticky-column {
  position: sticky;
  top: 20px;
  /* Adjust based on your layout */
  height: max-content !important;
}

.image-container img {
  height: 210px !important;
  width: 100%;
  object-fit: cover;
}

.span-trancate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

#author-profile p,
#post p {
  text-align: justify;
}

#related-posts-container .title,
#more-from-author .title {
  height: 68px;
}

.wp-caption {
  display: table !important;
}

#analysis .side-title,
#analysis .title {
  font-size: 20px;
  font-weight: 600;
  height: 48px;
  font-family: "Open Sans" !important;
}

.events {
  min-height: 300px;
  height: max-content;
  position: relative;
}

#seminars p,
#webinars p {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  color: grey;
}

.focus-class {
  border: solid 1px #878787;
  transition: 0.3s;
}

.view_all {
  position: relative !important;
  top: unset !important;
  color: black !important;
  transform: unset !important;
  width: 100% !important;
  left: unset !important;
  margin-bottom: 0px !important;
}

input:-internal-autofill-selected {
  background-color: transparent !important;
}

/* Search Bar & Results */
#top-5-search-results:has(#search-loader:not(.d-none)),
#top-5-search-results:has(#top-5-post-list),
#top-5-search-results:has(.zero) {
  min-width: 100%;
  max-height: 50vh;
  overflow-y: scroll;
  overflow-x: hidden;
  z-index: 11;
  list-style-type: none;
  position: absolute;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
  border: solid 1px #eee;
  background-color: white;
}

#top-5-search-results:has(#search-loader:not(.d-none)),
#top-5-search-results:has(.zero) {
  overflow-y: auto !important;
}

#top-5-post-list li p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

#top-5-post-list li {
  border-bottom: solid 1px #f4f4f4;
}

#top-5-post-list li:last-of-type {
  border-bottom: 0;
}

.hfm-banner img {
  width: 100%;
}

.snap-container {
  border-bottom: 1px solid #d1d1d1;
  padding: 20px 0;
}

.snap-content .title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.4;
  text-decoration: none;
}

.snap-footer .date {
  font-size: 14px;
  color: #999;
}

.snap-container {
  border-bottom: 1px solid #d1d1d1;
  padding: 20px 0;
}

.snap-footer .date {
  font-size: 14px;
  color: #999;
}

.lazy-loader-box .loader-img {
  height: 210px !important;
  width: 100%;
  background-color: #e9e9e9;
  display: block;
}

.dummy-loader {
  height: 210px !important;
  width: 90%;
  background-color: #e9e9e9;
  display: block;
  position: absolute;
}

.lazy-loader-box .loader-text {
  background-color: #e9e9e9;
  height: 24px !important;
}

.lazy-loader-box .loader-details {
  height: 10px;
  background-color: #e9e9e9;
}

.overlay-screen {
  position: absolute;
  top: 0;
  z-index: 100;
  width: 96%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.6);
}

.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px #ddd solid;
  border-top: 4px #2e93e6 solid;
  border-radius: 50%;
  animation: sp-anime 0.8s infinite linear;
}

.skeleton-card {
  height: 410px !important;
  transition: all 200ms ease-in-out;
  position: relative;
  background-color: white !important;
  overflow: hidden !important;
}

.skeleton-card .award-title,
.skeleton-card .award-source {
  background-color: #f1f1f1;
  height: 25px;
  display: block;
}

.skeleton-card .award-img {
  height: 150px;
  background-color: #f1f1f1;
  width: 190px;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 30px;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-98%);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
  animation: load 1s infinite;
}

.dummy-loader::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-98%);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
  animation: load 1s infinite;
  z-index: 9;
}

.skeleton-card-img {
  background-color: #e5e5e5;
  background-size: cover;
  background-repeat: no-repeat;
}

@keyframes load {
  100% {
    transform: translateX(100%);
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  .skeleton-card::after {
    animation: none;
  }
}

@keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}

.is-hide {
  display: none;
}

.image-container img {
  z-index: 10;
  position: relative;
}

#post figcaption {
  font-size: 12px;
  color: #a5a5a5;
  text-align: left;
  font-family: "Open Sans";
}

.image-container.fade-effect img {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.image-container.fade-effect img.loaded {
  opacity: 1;
}

.side-image-container.fade-effect img {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.side-image-container.fade-effect img.loaded {
  opacity: 1;
}

.loader-related-posts {
  max-width: 245px;
}

@media (min-width: 1400px) {
  .loader-related-posts {
    max-width: 290px;
  }
  .loader-related-posts-single {
    max-width: unset;
  }
}

@media (max-width: 1399.98px) {
  .loader-related-posts {
    max-width: 245px;
  }
  .loader-related-posts-single {
    max-width: 245px;
  }
}

@media (max-width: 1199.98px) {
  .loader-related-posts {
    max-width: 174px;
  }
  .loader-related-posts-single {
    width: 90%;
    max-width: 275px;
  }
}

@media (max-width: 991.98px) {
  .loader-related-posts {
    max-width: 200px;
  }
  .loader-main-post {
    max-width: 666px;
  }
  .loader-related-posts-single {
    max-width: 316px;
  }
}

@media (max-width: 767.98px) {
  .loader-related-posts {
    max-width: 516px;
  }
  .loader-related-posts-single {
    width: 100%;
    max-width: 242px;
  }
}

@media (max-width: 575.98px) {
  .loader-related-posts {
    display: none;
  }
  .loader-related-posts-single {
    width: 100% !important;
    max-width: 100%;
  }
}

/* Dynamic Image Styles  */
.richtext-image.full-width {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

.richtext-image.original {
  width: auto !important;
  height: auto !important;
  display: block;
}

.richtext-image.left {
  text-align: left;
  float: left;
  width: 50%;
  margin-right: auto;
}

.richtext-image.right {
  text-align: right;
  float: right;
  width: 50%;
  margin-left: auto;
}

.richtext-image.bodytext-image {
  max-width: 100% !important;
  height: auto !important;
}

.richtext-image.bodytext-image + figcaption {
  color: var(--text-dark) !important;
  padding: 5px 10px;
  font-size: 14px;
  text-align: center !important;
  font-style: italic;
}

#post .ratio iframe {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.news-results .title {
  line-height: normal;
  height: unset !important;
}

.news-results .img-col img {
  width: 100%;
  height: 125px;
  max-height: 125px;
  min-height: 95px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .news-results .img-col img {
    max-height: 250px;
    min-height: 250px;
  }
}

.slick-slide .tags img,
.tags img {
  aspect-ratio: auto;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.author-date,
.side-author-date {
  margin-bottom: 0.5rem;
}

/* end */
