.banner-section .bottom-rotten-curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 35px;
  z-index: 2;
  background: url('/images/background/rotten-curve-5.png') center bottom no-repeat;
  background-size: 100% 35px;
}

.main-header .header-upper .logo-box .logo {
  min-height: 190px;
}

.main-header .header-upper .logo img {
  max-width: 165px;
}

.site-support-strip {
  background: #f7faf9;
  padding: 42px 0;
}

.site-support-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(37, 40, 58, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(28, 42, 54, 0.08);
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 26px 30px;
}

.site-support-card > span {
  color: #626575;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.site-support-logos {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.site-support-logos img {
  display: block;
  height: 58px;
  max-width: min(70vw, 460px);
  object-fit: contain;
  width: auto;
}

.site-support-logos img:first-child {
  height: 58px;
}

.site-support-logos img:last-child {
  height: 58px;
}

.download-pwa-section {
  padding: 90px 0;
}

.call-to-action-box {
  color: #fff;
  display: block;
  text-decoration: none;
}

.call-to-action-box:hover {
  color: #fff;
  text-decoration: none;
}

.cta-link-text {
  color: #fff;
  display: inline-block;
  font-weight: 800;
  margin-top: 20px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.cta-detail-hero {
  background:
    linear-gradient(135deg, rgba(25, 146, 121, 0.92), rgba(45, 167, 139, 0.84)),
    url('/bilder/pwa/trygghet-start.png') center / cover no-repeat;
  padding: 120px 0 90px;
}

.cta-detail-grid {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.cta-detail-title,
.cta-detail-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(28, 42, 54, 0.12);
  padding: 38px;
}

.cta-detail-title h1,
.cta-detail-card h2 {
  color: #25283a;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 18px;
}

.cta-detail-title p,
.cta-detail-card p,
.cta-note-box p,
.cta-step-card p {
  color: #626575;
}

.cta-intro-section,
.cta-steps-section {
  padding: 90px 0;
}

.cta-note-box {
  background: #f7faf9;
  border: 1px solid rgba(24, 168, 135, 0.18);
  border-radius: 8px;
  padding: 30px;
}

.cta-step-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-step-card {
  background: #fff;
  border: 1px solid rgba(37, 40, 58, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(28, 42, 54, 0.08);
  padding: 26px;
}

.cta-step-card h3 {
  color: #169c83;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.cta-step-card ul {
  color: #25283a;
  font-weight: 700;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.cta-step-card li {
  border-top: 1px solid rgba(37, 40, 58, 0.08);
  padding: 10px 0;
}

.download-pwa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: -18px 0 34px;
}

.pwa-auth-links form {
  display: inline;
  margin: 0;
}

.pwa-auth-links button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.download-pwa-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-pwa-card {
  background: #fff;
  border: 1px solid rgba(37, 40, 58, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(28, 42, 54, 0.08);
  padding: 34px;
}

.video-player-box {
  background: #111827;
  box-shadow: 0 22px 60px rgba(28, 42, 54, 0.18);
}

.home-video-player {
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 20px;
  display: block;
  width: 100%;
}

.event-details .image-box.event-detail-hero-image {
  background: #eef4f2;
  border-radius: 8px;
  margin-bottom: 28px;
  max-height: 420px;
  overflow: hidden;
}

.event-details .image-box.event-detail-hero-image .image {
  margin: 0;
}

.event-details .image-box.event-detail-hero-image img {
  display: block;
  height: min(42vh, 420px);
  min-height: 260px;
  object-fit: cover;
  width: 100%;
}

.event-registration-box {
  background: #f7fbf9;
  border: 1px solid rgba(24, 168, 135, 0.18);
  border-radius: 8px;
  margin-top: 34px;
  padding: 24px;
}

.event-registration-box h3 {
  color: #25283a;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.event-registration-box p {
  color: #626575;
  margin-bottom: 18px;
}

.event-registration-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-registration-box label {
  color: #25283a;
  display: block;
  font-weight: 800;
  margin-bottom: 16px;
}

.event-registration-box label span {
  color: #7b7f8e;
  font-size: 13px;
  font-weight: 600;
}

.event-registration-box input,
.event-registration-box textarea {
  background: #fff;
  border: 1px solid rgba(37, 40, 58, 0.12);
  border-radius: 8px;
  display: block;
  margin-top: 8px;
  padding: 13px 14px;
  width: 100%;
}

.event-registration-error {
  background: #fff4f2;
  border: 1px solid #ffd1ca;
  border-radius: 8px;
  color: #b42318;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.event-registration-success {
  background: #f4fbf5;
}

.event-registration-success pre {
  background: #fff;
  border: 1px solid rgba(37, 40, 58, 0.1);
  border-radius: 8px;
  color: #25283a;
  font: inherit;
  line-height: 1.55;
  margin: 18px 0;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.event-admin-registrations {
  background: #ffffff;
  border: 1px solid rgba(37, 40, 58, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(28, 42, 54, 0.08);
  margin-top: 28px;
  overflow: hidden;
}

.event-admin-registrations-head {
  align-items: center;
  background: #f4fbf8;
  border-bottom: 1px solid rgba(37, 40, 58, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.event-admin-registrations h3 {
  color: #25283a;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.event-admin-registrations-head span {
  color: #16876f;
  font-weight: 800;
  white-space: nowrap;
}

.event-admin-registrations-table {
  overflow-x: auto;
}

.event-admin-registrations table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.event-admin-registrations th,
.event-admin-registrations td {
  border-bottom: 1px solid rgba(37, 40, 58, 0.08);
  color: #25283a;
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.event-admin-registrations th {
  color: #6f7485;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-admin-registrations-empty {
  color: #626575;
  margin: 0;
  padding: 18px 20px 20px;
}

@media (max-width: 767px) {
  .event-details .image-box.event-detail-hero-image {
    max-height: 280px;
  }

  .event-details .image-box.event-detail-hero-image img {
    height: 260px;
    min-height: 220px;
  }

  .event-registration-grid {
    grid-template-columns: 1fr;
  }
}

.download-pwa-icon {
  align-items: center;
  background: #e6f6f1;
  border-radius: 999px;
  color: #169c83;
  display: flex;
  font-size: 34px;
  height: 74px;
  justify-content: center;
  margin-bottom: 20px;
  width: 74px;
}

.download-pwa-card h3 {
  color: #25283a;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
}

.download-pwa-card ol {
  color: #25283a;
  counter-reset: steps;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.download-pwa-card li {
  counter-increment: steps;
  margin-bottom: 12px;
  min-height: 34px;
  padding-left: 46px;
  position: relative;
}

.download-pwa-card li::before {
  align-items: center;
  background: #20aa88;
  border-radius: 999px;
  color: #fff;
  content: counter(steps);
  display: flex;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: -2px;
  width: 30px;
}

.download-pwa-card p,
.download-pwa-note p {
  color: #626575;
  margin: 0;
}

.download-pwa-note {
  align-items: flex-start;
  background: #f7faf9;
  border: 1px solid rgba(24, 168, 135, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 20px 22px;
}

.download-pwa-note > span {
  color: #169c83;
  font-size: 24px;
  margin-top: 2px;
}

.download-pwa-note strong {
  color: #25283a;
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.education-lesson-details {
  background: #fbfdfc;
  border: 1px solid rgba(37, 40, 58, 0.08);
  border-radius: 8px;
  margin-top: 14px;
  padding: 16px;
}

.education-lesson-detail + .education-lesson-detail,
.education-lesson-detail + .education-lesson-takeaway {
  margin-top: 14px;
}

.education-lesson-detail strong,
.education-lesson-takeaway strong {
  color: #25283a;
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.education-lesson-detail p,
.education-lesson-takeaway p {
  color: #626575;
  margin-bottom: 8px;
}

.education-lesson-detail ul {
  margin: 0;
  padding-left: 18px;
}

.education-lesson-detail li {
  color: #626575;
  margin-bottom: 6px;
}

.education-lesson-takeaway {
  background: #eef9f5;
  border-radius: 8px;
  padding: 13px 14px;
}

.education-module-list {
  display: grid;
  gap: 18px;
}

.education-module-card {
  background: #fff;
  border: 1px solid rgba(37, 40, 58, 0.10);
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(28, 42, 54, 0.08);
  overflow: hidden;
}

.education-module-card summary,
.education-lesson-item summary {
  cursor: pointer;
  list-style: none;
}

.education-module-card summary::-webkit-details-marker,
.education-lesson-item summary::-webkit-details-marker {
  display: none;
}

.education-module-toggle {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr auto;
  padding: 20px 22px;
}

.education-module-number {
  align-items: center;
  background: #20aa88;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.education-module-toggle strong {
  color: #25283a;
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.education-module-toggle small,
.education-lesson-toggle small {
  color: #6f7485;
  display: block;
  font-weight: 700;
  margin-top: 3px;
}

.education-toggle-icon {
  color: #16876f;
  transition: transform 0.2s ease;
}

.education-module-card[open] > .education-module-toggle .education-toggle-icon,
.education-lesson-item[open] > .education-lesson-toggle .education-toggle-icon {
  transform: rotate(180deg);
}

.education-module-body {
  border-top: 1px solid rgba(37, 40, 58, 0.08);
  padding: 22px;
}

.education-module-image {
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  height: 260px;
  margin: 0 0 22px;
}

.education-module-headline {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.education-module-headline h3 {
  color: #25283a;
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.education-module-summary {
  color: #626575;
  margin-bottom: 16px;
}

.education-lesson-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.education-lesson-item {
  align-items: flex-start;
  background: #f8fbfa;
  border: 1px solid rgba(37, 40, 58, 0.08);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  overflow: hidden;
  padding: 15px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.education-lesson-item:hover {
  border-color: rgba(32, 170, 136, 0.38);
  box-shadow: 0 10px 26px rgba(28, 42, 54, 0.08);
  color: inherit;
  transform: translateY(-1px);
}

.education-lesson-item.is-complete {
  background: #f1fbf6;
}

.education-lesson-item.is-started {
  background: #f5fbf8;
}

.education-lesson-item.is-locked {
  cursor: not-allowed;
  opacity: 0.48;
}

.education-lesson-item > .fa-check-circle {
  color: #c5ccd4;
  margin-top: 4px;
}

.education-lesson-item.is-started > .fa-check-circle,
.education-lesson-item.is-complete > .fa-check-circle {
  color: #20aa88;
}

.education-lesson-toggle {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 15px 16px;
}

.education-lesson-toggle > .fa-check-circle {
  color: #20aa88;
}

.education-lesson-toggle strong {
  color: #25283a;
  display: block;
  font-weight: 800;
}

.education-lesson-body {
  border-top: 1px solid rgba(37, 40, 58, 0.08);
  padding: 16px;
}

.education-lesson-body > p {
  color: #626575;
  margin-bottom: 12px;
}

.education-progress-badge {
  align-self: flex-start;
  background: #eef2f5;
  border-radius: 999px;
  color: #5f6675;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  white-space: nowrap;
}

.education-progress-badge::before {
  align-items: center;
  background: #aeb7c2;
  border-radius: 999px;
  color: #fff;
  content: "";
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 14px;
  justify-content: center;
  margin-right: 7px;
  width: 14px;
}

.education-progress-badge.small {
  font-size: 12px;
  margin-top: 2px;
  padding: 8px 10px;
}

.education-progress-badge.is-started {
  background: #e8f8f2;
  color: #16824f;
}

.education-progress-badge.is-started::before {
  background: #20aa88;
}

.education-progress-badge.is-complete {
  background: #e7f8ef;
  color: #16824f;
}

.education-progress-badge.is-complete::before {
  background: #20aa88;
  content: "✓";
}

.education-next-locked.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: auto;
}

.education-lesson-page {
  background: #fff;
  border: 1px solid rgba(37, 40, 58, 0.10);
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(28, 42, 54, 0.08);
  padding: 34px;
}

.education-back-link {
  color: #16876f;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 20px;
}

.education-lesson-page h2 {
  color: #25283a;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}

.education-lesson-lead {
  color: #626575;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.education-lesson-nav {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 24px;
}

.education-lesson-footer {
  border-top: 1px solid rgba(37, 40, 58, 0.08);
  margin-top: 28px;
  padding-top: 22px;
}

.education-lesson-status-row {
  align-items: center;
  background: #f7fbf9;
  border: 1px solid rgba(32, 170, 136, 0.16);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.education-complete-button {
  min-width: 210px;
}

.education-module-index-link {
  color: inherit;
}

.education-module-index-link:hover {
  color: inherit;
}

.education-module-index-link.is-locked {
  cursor: not-allowed;
  opacity: 0.48;
}

.education-module-index-link.is-started .education-piece-state {
  background: #e8f8f2;
  color: #16824f;
}

.education-module-index-link.is-complete .education-piece-state {
  background: #20aa88;
  color: #fff;
}

.education-panel-count {
  color: #6f7485;
  font-size: 13px;
  font-weight: 800;
  margin: -8px 0 14px;
  text-transform: uppercase;
}

@media only screen and (max-width: 991px) {
  .main-header .nav-outer .mobile-nav-toggler2 {
    display: block !important;
  }

  .main-header .nav-outer .main-menu {
    display: none !important;
  }

  .download-pwa-grid {
    grid-template-columns: 1fr;
  }

  .cta-detail-grid,
  .cta-step-grid {
    grid-template-columns: 1fr;
  }

  .cta-detail-title h1 {
    font-size: 42px;
  }

  .site-support-card {
    display: grid;
    gap: 18px;
    padding: 24px 18px;
    text-align: center;
  }

  .site-support-card > span {
    white-space: normal;
  }

  .education-lesson-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .education-complete-button {
    min-width: 0;
    width: 100%;
  }

  .education-lesson-nav {
    align-items: stretch;
    flex-direction: column;
  }
}

@media only screen and (min-width: 992px) {
  .main-header .nav-outer .mobile-nav-toggler2 {
    display: none !important;
  }

  .main-header .nav-outer .main-menu {
    display: block !important;
  }

  .main-menu .navigation > li {
    margin-right: 28px;
  }
}
