/* Kunskapsbank – Layout och styling för leanverktyg.html */
.kb-header-intro {
  max-width: 840px;
  margin: 0 auto 1.8em auto;
  font-size: 1.15em;
  line-height: 1.6em;
  color: #4a5568;
  text-align: center;
}

/* Kategori-navigering */
.kb-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.2em;
  padding: 0.5em 0;
}

.kb-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6em 1.25em;
  background-color: #629DD1;
  color: #ffffff !important;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(98, 157, 209, 0.25);
  transition: all 0.2s ease;
  line-height: 1.3;
}

.kb-nav-btn:hover {
  background-color: #4e91cb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(78, 145, 203, 0.35);
}

.kb-nav-btn.books-btn {
  background-color: #ED7D31;
  box-shadow: 0 2px 8px rgba(237, 125, 49, 0.35);
}

.kb-nav-btn.books-btn:hover {
  background-color: #d96a1e;
  box-shadow: 0 4px 12px rgba(217, 106, 30, 0.45);
}

/* Boksektion – Bokförsäljning */
.kb-books-section {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border: 2px solid #fbd0b0;
  border-radius: 12px;
  padding: 2.2em 1.8em;
  margin-bottom: 2.5em;
  box-shadow: 0 6px 20px rgba(237, 125, 49, 0.1);
  scroll-margin-top: 30px;
}

.kb-books-header {
  text-align: center;
  margin-bottom: 1.8em;
}

.kb-books-header h2 {
  font-size: 1.6em;
  color: #192024;
  margin-bottom: 0.3em;
}

.kb-books-header p {
  font-size: 1.05em;
  color: #555;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.5em;
}

.kb-books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 1.6em;
}

.kb-book-card {
  flex: 1 1 280px;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kb-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(237, 125, 49, 0.18);
  border-color: #ED7D31;
}

.kb-book-cover {
  margin-bottom: 1em;
}

.kb-book-cover img {
  max-width: 170px;
  height: auto;
  aspect-ratio: 300 / 426;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
}

.kb-book-card h3 {
  font-size: 1.2em;
  color: #192024;
  margin-bottom: 0.2em;
}

.kb-book-subtitle {
  font-size: 0.88em;
  font-weight: 600;
  color: #ED7D31;
  margin-bottom: 0.6em;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-book-desc {
  font-size: 0.88em;
  color: #555;
  line-height: 1.45em;
  margin-bottom: 1em;
  flex-grow: 1;
}

.kb-book-price {
  font-size: 1.15em;
  font-weight: 700;
  color: #192024;
  margin-bottom: 0.8em;
}

.kb-book-price span {
  font-size: 0.75em;
  font-weight: normal;
  color: #666;
}

.kb-book-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kb-btn-order {
  display: block;
  width: 100%;
  background-color: #ED7D31;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9em;
  padding: 0.6em 1em;
  border-radius: 6px;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.kb-btn-order:hover {
  background-color: #d96a1e;
}

.kb-sample-link {
  font-size: 0.85em;
  color: #4a5568;
  text-decoration: none;
}

.kb-sample-link:hover {
  text-decoration: underline;
  color: #192024;
}

/* Huvudlayout för innehåll */
.kb-main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 1em;
}

.kb-content-column {
  flex: 1 1 580px;
  min-width: 0;
}

.kb-sidebar-column {
  flex: 0 0 380px;
  min-width: 300px;
}

@media (max-width: 980px) {
  .kb-sidebar-column {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Sektionskort */
.kb-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.8em;
  margin-bottom: 2em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  scroll-margin-top: 30px;
}

.kb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #629DD1;
  padding-bottom: 0.6em;
  margin-bottom: 1.2em;
}

.kb-section-header h2 {
  font-size: 1.35em;
  color: #192024;
  margin: 0;
}

/* Inbäddat bokerbjudande i relevant sektion */
.kb-context-book {
  background: #fff8f3;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ED7D31;
  border-radius: 6px;
  padding: 0.85em 1.1em;
  margin-top: 1.4em;
  margin-bottom: 0.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.kb-context-book-text {
  font-size: 0.9em;
  color: #2d3748;
  line-height: 1.4em;
}

.kb-context-book-text strong {
  color: #c05621;
}

.kb-context-book-btn {
  display: inline-block;
  background: #ED7D31;
  color: #ffffff !important;
  font-size: 0.82em;
  font-weight: 600;
  padding: 0.4em 0.9em;
  border-radius: 4px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.kb-context-book-btn:hover {
  background: #d96a1e;
}

/* Resurslistor */
.kb-group-title {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #718096;
  margin: 1.2em 0 0.5em 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kb-resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kb-resource-item {
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.kb-resource-item:hover {
  background-color: #f1f5f9;
  transform: translateX(3px);
}

.kb-resource-item a {
  display: block;
  width: 100%;
  padding: 8px 12px;
  color: #2d3748;
  text-decoration: none;
  font-size: 0.95em;
  line-height: 1.4;
}

.kb-resource-item a:hover {
  color: #1a56db;
}

.kb-icon {
  font-size: 1.1em;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

/* Sidopanel / Videor */
.kb-sidebar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5em;
  margin-bottom: 2em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  scroll-margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .kb-sidebar-box {
    padding: 1.2em 0.9em;
  }
}

/* Knapp: Se alla webinarier & presentationsmaterial - responsiv för att förhindra överskridning av sidbredd på mobil */
.kb-webinars-btn,
.kb-sidebar-box .button.fit {
  white-space: normal !important;
  height: auto !important;
  min-height: 2.85em;
  line-height: 1.45em !important;
  padding: 0.75em 1em !important;
  text-indent: 0 !important;
  letter-spacing: 0.05em !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-break: normal;
}

.kb-sidebar-box h3 {
  font-size: 1.25em;
  color: #192024;
  margin-top: 0;
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #ED7D31;
}

/* Responsiva videor */
.kb-video-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.3em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kb-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.kb-video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.kb-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kb-video-info {
  padding: 0.7em 0.9em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  font-size: 0.85em;
}

.kb-video-title {
  font-weight: 600;
  color: #2d3748;
}

.kb-pdf-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e2e8f0;
  color: #2d3748 !important;
  font-size: 0.8em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.kb-pdf-tag:hover {
  background: #cbd5e1;
}

/* Snabb-köp-kort i sidopanelen */
.kb-sidebar-bookpromo {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 2px solid #fed7aa;
  border-radius: 10px;
  padding: 1.4em;
  margin-bottom: 2em;
  text-align: center;
  box-shadow: 0 4px 14px rgba(237, 125, 49, 0.12);
}

.kb-sidebar-bookpromo h3 {
  font-size: 1.2em;
  color: #192024;
  margin-bottom: 0.3em;
  border-bottom: none;
  padding-bottom: 0;
}

.kb-sidebar-bookpromo p {
  font-size: 0.88em;
  color: #666;
  margin-bottom: 1em;
  line-height: 1.4em;
}

.kb-sidebar-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.2em;
}

.kb-sidebar-thumbs img {
  width: 65px;
  height: auto;
  aspect-ratio: 300 / 426;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid #ddd;
}

