/* General Styles */

/* Navigation Menu Styles */
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
  font-size: 15px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensures the navbar is above other content */
  background-color: #000; /* Adjust to match your theme */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
}

body {
  padding-top: 70px; /* Adjust based on navbar height to prevent content overlap */
}


.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0px;
  padding: 8px;
}

.sectionBlockLayout {
  min-height: auto;
}

.sectionBlockLayout[min-height="50px"] {
  min-height: 50px;
}

.sectionBlockLayout[min-height="15px"] {
  min-height: 15px;
}

/* START News Feed Banners */
/* Wrapper to handle spacing below the nav */
#newsWrapper {
  padding-top: 70px; /* This will still be managed by JS for navbar height */
}

/* Critical News Banner */
.news-critical-banner {
  width: 100%;
  overflow: hidden;
  background-color: rgba(179, 0, 0, 0.4);
  padding: 10px 0;
  color: white;
  position: sticky;
  top: 0;
  z-index: 999;
  margin-bottom: 0;
}

.news-critical-banner .news-ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-size: 1.2rem;
  animation: ticker 25s linear infinite;
  font-weight: bold;
  color: #ffcccc;
}

/* Normal News Banner */
.news-ticker-container {
  width: 100%;
  overflow: hidden;
  background-color: rgba(0, 74, 93, 0.4);
  padding: 10px 0;
  color: white;
  position: sticky;
  top: 40px; /* Adjust depending on the height of your critical banner */
  z-index: 998;
}

/* Shared ticker text animation */
.news-ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-size: 1.2rem;
  animation: ticker 15s linear 1;
  transition: transform 0.3s;
}

/* Pause animation on hover */
.news-critical-banner:hover .news-ticker-text,
.news-ticker-container:hover .news-ticker-text {
  animation-play-state: paused;
}

/* Styling for critical items in the list */
.news-critical {
  color: #ff4d4d;
  font-weight: bold;
}

/* Animation */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* END News Feed Banners */


/* News Page */
  .news-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }

  .news-header {
    border-bottom: 2px solid #004a5d;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #004a5d;
    text-align: center;
    padding-bottom: 10px;
  }

  .news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .news-icon {
    font-size: 24px;
    color: #004a5d;
    margin-top: 5px;
  }

  .news-content {
    flex-grow: 1;
  }

  .news-title {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
  }

  .news-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
  }

  .news-date {
    font-size: 12px;
    color: #999;
  }

  .critical .news-header {
    color: #b30000;
    border-color: #b30000;
  }

  .critical .news-icon {
    color: #ff4d4d;
  }
  /*NEWS PAGE END*/

  /*KB PAGE */
    .kb-container {
      padding: 20px;
      max-width: 1200px;
      margin: auto;
    }
  
    .kb-search-bar {
      margin-bottom: 20px;
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid #c00ec6;
      background-color: #fff;
      font-size: 16px;
      height: auto;
    }

    .kb-search-bar::placeholder {
      color: #000 !important;
      opacity: 1 !important;
    }    
  
    .kb-article {
      border: 1px solid #ddd;
      border-radius: 8px;
      margin-bottom: 12px;
      padding: 16px;
      background: #fff;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%; /* Optional if fixed card height is desired */
    }
    
    .kb-title {
      font-size: 18px;
      font-weight: bold;
      color: #2c3e50;
      margin-bottom: 8px;
    }
    
    .kb-description {
      font-size: 15px;
      color: #34495e;
      margin-bottom: auto; /* pushes meta to the bottom */
    }
    
    .kb-meta-row {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      font-size: 14px;
      color: #7f8c8d;
      margin-top: 12px;
    }
    
    .kb-meta-left,
    .kb-meta-right {
      margin-top: 4px;
    }
    
  /*KB PAGE END*/
  /* KB ARTICLE PAGE ONLY */
.kb-detail-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
}

.kb-detail-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.kb-detail-meta {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

.kb-detail-description {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 4px solid #0078d4;
}

.kb-detail-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/*TIMELINE*/
/* Fix background for even timeline notes */
.entity-timeline > div:nth-of-type(even) .note {
    background-color: #2d3e4f !important;  /* Match your dark scheme */
    color: #fff !important;
}

/* Ensure all notes (even and odd) have proper text color */
.entity-timeline .note {
    background-color: #2d3e4f !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}

/* Optional: Adjust timestamp/user text for readability */
.entity-timeline .note .note-header,
.entity-timeline .note .note-footer {
    color: #ccc !important;
}

/* Timeline Button */
/* Center the entire Add Comment button block */
.timelineheader {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    width: 100% !important;
    margin-bottom: 1rem;
    padding: 1rem 0;
    background: transparent !important;
}

/* Remove the grid layout restriction */
.timelineheader .buttoncontainer {
    width: auto !important;
    flex: 0 1 auto !important;
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
}

/* Ensure the button isn't restricted by inherited float/grid rules */
.timelineheader .addnote {
    display: inline-block !important;
    float: none !important;
    margin: 0 auto !important;
}

/* CASE VIEW */
.browserPreviewFrameBorder {
    background-color: rgb(233, 230, 234) !important; /* Slightly lighter to make black text readable */
   /* background-color: rgb(241, 181, 52) !important; /* Slightly lighter to make black text readable */
}

.browserPreviewFrameBorder {
    border-radius: 6px !important;
    padding: 10px !important;
}

/* Remove all borders from the Rich Text Editor preview */
html body div.MscrmControls\.RichTextEditor\.RichTextEditorControl iframe.browserPreviewFrame {
    border: none !important;
    box-shadow: none !important;
}

/* Fallback overrides for any remaining containers */
.browserPreviewFrameContainer,
.browserPreviewFrameBorder {
    border: none !important;
    box-shadow: none !important;
}

.containerOld {
  /*display: flex;*/
  /*flex-wrap: wrap;*/
  padding: 0px;
}

.columnBlockLayout {
  word-break: break-word;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  padding: 16px;
  margin: 20px 0px;
}

.columnBlockLayout.small-margin {
  margin: 10px 0px;
}

.columnBlockLayout.large-margin {
  margin: 30px 0px;
}

.text-center {
  text-align: center;
}

.smallText {
  font-size: 0.875em; /* Adjust as necessary */
}

.anchor-inherit-styles {
  text-decoration: underline;
}

.anchor-text-decoration-underline {
  text-decoration: underline;
}

/*[data-component-theme="portalThemeColor11"] {
  /* Add specific styles for portalThemeColor11 if needed */
/*}

/*[data-component-theme="portalThemeColor7"] {
  /* Add specific styles for portalThemeColor7 if needed */
/*}*/

.col-md-12 {
  margin: 5px 0px;
  padding: 16px;
}

.col-md-4 {
  width: calc(33.3333% + 0px);
  margin: 15px 0px;
}

.col-md-6 {
  width: calc(50% + 0px);
  margin: 20px 0px;
}

a.anchor-inherit-styles:hover {
  font-weight: 600;
}

a.anchor-inherit-styles.relative {
  position: relative;
}

img.trustpilot-logo {
  width: 22.44%;
  height: 87px;
  max-width: 100%;
}

h1, h2, h3, h5 {
  text-align: center;
}

.columnBlockLayout img {
  width: 100%;
  height: auto;
  max-width: 100%;
}
/* General Styling */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1em;
  color: #252525;
  overflow-x: hidden; /* Prevent horizontal scroll caused by offcanvas */
}

/* Footer Styling */
#sp-tm-footer {
  background: #1e1e1e;
  color: #fff;
  padding: 40px 0;
}

#sp-tm-footer .container-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#sp-tm-footer .column {
  margin-bottom: 20px;
}

#sp-tm-footer .column img {
  max-width: 100%;
  height: auto;
  opacity: 1;
  transition: all 0.3s ease;
}

#sp-tm-footer .column img:hover {
  opacity: 0.75;
}

#sp-tm-footer .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sp-tm-footer .menu li {
  display: inline-block;
  margin-right: 15px;
  position: relative;
}

#sp-tm-footer .menu li a {
  color: #555;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  transition: color 0.4s ease;
}

#sp-tm-footer .menu li a:hover {
  color: #888;
}

#sp-tm-footer .menu li a::after {
  content: '|';
  color: #333f48;
  margin-left: 1em;
  padding-left: 1em;
}

#sp-tm-footer .menu li:last-child a::after {
  content: '';
}

#sp-tm-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

#sp-tm-footer .copyright {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #333f48;
  margin-top: 20px;
}

/* Partner Logos */
#footer-partners-logos .row {
  justify-content: center;
  align-items: center;
}

#footer-partners-logos .column img {
  margin: 0 auto;
  display: block;
}

/* Legal Menu */
#tm-footer-legal-menu ul.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#tm-footer-legal-menu ul.menu li {
  list-style: none;
  margin: 0 15px;
}

#tm-footer-legal-menu ul.menu li a {
  color: #555;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  transition: color 0.4s ease;
}

#tm-footer-legal-menu ul.menu li a:hover {
  color: #888;
}

/* Offcanvas Menu */
.offcanvas-menu {
  background: #000;
  color: #eee;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.offcanvas-menu.active {
  transform: translateX(0);
}

.offcanvas-overlay {
  background: rgba(0, 0, 0, 0.75);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Scroll Up Button */
.tm-scroll-up {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #000;
  color: #fff;
  padding: 10px 15px;
  font-size: 20px;
  border-radius: 50%;
  display: none;
  z-index: 1000;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tm-scroll-up:hover {
  background-color: #555;
}

/* Podcast Banner */
section#podcast-banner {
  background:  url(https://www.technologymanagement.uk/tecman/tecman/images/template/images/transparent-patterns/dia-12.png) #f6b436 repeat scroll center center;
  padding: 25px 0;
  font-weight: 600;
}
section#podcast-banner .row {
  align-items: center;
  display: flex;
}
section#podcast-banner p {
  font-size: 1.15em;
  margin: 0;
}
section#podcast-banner .row .btn {
  background: #1ca6b3;
  color: #fff;
  float: right;
  border-radius: 8px; 
  padding: 10px 20px; 
  border: none; 
}
section#podcast-banner .row .btn span {
  margin-right: 0.5em;
}
@media (max-width: 767px) {
  section#podcast-banner {
    padding: 50px 35px;
  }
  section#podcast-banner .row {
    display: block;
    text-align: center;
  }
  section#podcast-banner .row .btn {
    display: block;
    float: none !important;
    margin: 30px 0 0;
    text-align: center;
  }
}






