/* Froala editor display overrides */
.fr-view img {
  margin-bottom: 5px;
}

@media only screen and (max-width:  820px) {
  .fr-view img {
    width: 100% !important;
  }
}

.blockquote {
  border-left: 4px solid #0096d7;
  padding-left: 1rem;
  color: #00425e;
}

.select2-search__field::-webkit-input-placeholder,
.select2-search__field::placeholder {
    color: #000;
}

.insight-title {
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  .insight-title {
    font-size: 1.5rem!important;
  }
}

.text-hover-white:hover input,
.text-hover-white:hover {
  color: #fff!important;
}

/* Metadata sections styling */
.metadata-section {
  margin-bottom: 1rem;
}

.metadata-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metadata-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Tag and region button styling */
.metadata-items .btn-outline-secondary.rounded-pill {
  margin: 0;
  font-size: 0.875rem;
}

/* More/Less toggle styling */
.more-tags-toggle {
  color: #6c757d;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
}

.more-tags-toggle:hover {
  color: #495057;
  text-decoration: underline;
}

/* Hashtag links in content */
.hashtag-link {
  color: #0096d7;
  text-decoration: none;
  font-weight: 500;
}

.hashtag-link:hover {
  text-decoration: underline;
  color: #0077a8;
}

.reaction-toolbar .btn,
.btn.hover-gray {
  border: none;
}

.reaction-toolbar .join-text {
  display: none;
}

.reaction-toolbar .btn-like {
  color: #000;
}

.reaction-toolbar .btn-like.btn-primary:hover,
.reaction-toolbar .btn-like:hover {
  background-color: #ddd;
  color: #000!important;
}

.tooltip-btn-comment {
  border-radius: 50px!important;
}

.tooltip-btn-comment .tooltip-inner {
  padding: .5rem 1rem!important;
  width: 250px!important;
}

.synopsis,
.paywall-content p:not(.h3):not(.h4),
.fr-view p:not(.h3):not(.h4),
.fr-view ol li,
.fr-view ul li {
  font-size: 1.075rem!important;
}

.paywall-content p:not(.h3):not(.h4),
.fr-view p:not(.h3):not(.h4),
.fr-view ol li,
.fr-view ul li {
  line-height: 1.65!important;
}

@media (min-width: 768px) {
  .synopsis,
  .paywall-content p:not(.h3):not(.h4),
  .fr-view p:not(.h3):not(.h4),
  .fr-view ol li,
  .fr-view ul li {
    font-size: 1.15rem!important;
  }

  .paywall-content p:not(.h3):not(.h4),
  .fr-view p:not(.h3):not(.h4),
  .fr-view ol li,
  .fr-view ul li {
    line-height: 1.85!important;
  }
}

.paywall-content p:not(.h3):not(.h4),
.fr-view p:not(.h3):not(.h4) {
  margin-left: 0!important;
}

.fr-view .h2,
.fr-view .h4 {
  margin-bottom: 1.15rem;
}

.paywall-container {
  position: relative;
  overflow: hidden;
  height: 200px; /* Set the desired height for the visible content */
}

.paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Set the desired height for the faded content (20% visible) */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
  z-index: 2;
}

.paywall-content {
  position: relative;
  z-index: 1;
  height: 100%; /* Match the height of the paywall-container */
  overflow-y: hidden; /* Enable scrolling for the remaining content */
}

.login-prompt {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  z-index: 3;
}

@media (max-width: 767px) {
  .like-text {
    display: none;
  }

  .reaction-toolbar .button-label {
    display: none;
  }

  .article-bottom .insight-vendor-logo {
    max-width: 100px!important;
  }
}

.text-small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-body {
    max-width: 230px!important;
    text-align: center!important;
}

@media (min-width: 768px) {
  .tns-outer {
    --blur-color: rgba(230, 230, 230, 1);
  }

  .tns-outer.blur-left::before,
  .tns-outer.blur-right::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 1;
  }

  .tns-outer.blur-left::before {
    left: 0;
    background: linear-gradient(to right, var(--blur-color), rgba(230, 230, 230, 0));
  }

  .tns-outer.blur-right::after {
    right: 0;
    background: linear-gradient(to left, var(--blur-color), rgba(230, 230, 230, 0));
  }
}

/* Sidebar carousel sections — insight + video carousels in the sidebar */
.sidebar-carousel-section {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
}

.sidebar-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #001D32;
  border-radius: 0.375rem;
}

.sidebar-carousel-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-carousel-nav {
  display: flex;
  gap: 0.25rem;
}

.sidebar-carousel-nav button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
}

.sidebar-carousel-nav button i {
  font-size: 0.5rem;
}

.sidebar-carousel-nav button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-carousel-nav button:disabled,
.sidebar-carousel-nav button[disabled] {
  opacity: 0.25;
  cursor: default;
}

.sidebar-carousel-nav button:disabled:hover,
.sidebar-carousel-nav button[disabled]:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.sidebar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.375rem;
  overflow: hidden;
  background: white;
  border: 1px solid #e9ecef;
  transition: border-color 0.15s ease;
}

.sidebar-card:hover {
  border-color: #9ca3af;
  text-decoration: none;
  color: inherit;
}

.sidebar-card:hover .sidebar-card-title {
  color: #0696d6;
}

.sidebar-card-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f3f5;
}

.sidebar-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sidebar-card-duration {
  position: absolute;
  bottom: 0.375rem;
  right: 0.375rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.sidebar-card-body {
  padding: 0.625rem;
}

.sidebar-card-title {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.25rem;
  color: #212529;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-card-meta {
  font-size: 0.6875rem;
  color: #adb5bd;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav dots — custom-built below the carousel cards via JS */
.sidebar-carousel-dots {
  text-align: center;
  padding: 0.5rem 0 0;
}

.sidebar-carousel-dots button {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  background: #dee2e6;
  margin: 0 2px;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-carousel-dots button.active {
  background: #0696d6;
}
