/* Custom overrides for this course export */
.banner-img {
  min-height: 12px;
}

.col-sm-10.offset-sm-1 {
  padding: 0;
}

.list-group-item-action:focus {
  outline: 3px solid rgba(15, 76, 92, 0.35);
  outline-offset: 2px;
}

.flip-card-content:focus {
  outline: 3px solid rgba(15, 76, 92, 0.35);
  outline-offset: 4px;
}
:root {
  --brand: #1f5ea8;
  --brand-accent: #2aa7b5;
  --accent: #f59d0d;
  --success: #6cb33f;
  --brand-rgb: 31, 94, 168;
  --brand-accent-rgb: 42, 167, 181;
  --accent-rgb: 245, 157, 13;
  --success-rgb: 108, 179, 63;
  --bg: #f7f9fc;
  --bg-alt: #eef4f8;
  --text: #1f2933;
  --muted: #52616b;
  --border: #d6e0e6;
  --card: #ffffff;
  font-family: Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.course-hero h1,
.course-section-title,
.sidebar-hero-title,
.sidebar-hero-subtitle,
.course-row-title,
.callout-title {
  font-family: Arial, sans-serif !important;
}

.course-hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(var(--brand-rgb), 0.85),
    rgba(var(--brand-rgb), 0.35)
  );
}

.sidebar-hero-overlay {
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.35),
    rgba(var(--brand-rgb), 0.55),
    rgba(var(--brand-rgb), 0.9)
  );
}

.course-progress-track {
  background: rgba(var(--brand-rgb), 0.12);
}

.course-sidebar .course-row.is-active {
  border-color: rgba(var(--brand-rgb), 0.2);
  background: rgba(var(--brand-rgb), 0.08);
}

.course-nav-link,
.course-practice .placeholder,
.practice-badge,
.practice-reset {
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand);
}

.practice-feedback-correct {
  background: rgba(var(--success-rgb), 0.18);
  color: #2d4f1c;
}

.practice-feedback-incorrect,
.practice-feedback-warning {
  background: rgba(var(--accent-rgb), 0.18);
  color: #7a3f00;
}

.course-hero h1 {
  font-family: Arial, sans-serif !important;
}

footer img {
  display: none;
}

.course-brand img,
footer img {
  max-width: 160px;
  height: auto;
}

.course-brand img {
  padding-bottom: 12px;
}

.course-index .course-row-title::before {
  display: none;
}

.course-index .course-row-title {
  padding-left: 10px;
}

.course-index .course-section-title {
  margin-top: 20px;
}

body:not(.course-index) .col-sm-10.offset-sm-1 > h1 {
  text-align: center;
  font-size: 2.4rem;
  margin: 8px 0 24px;
  padding-bottom: 18px;
  position: relative;
}

body:not(.course-index) .col-sm-10.offset-sm-1 > h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 4px;
  background: var(--brand);
  margin: 16px auto 0;
  border-radius: 999px;
}

/* Hide per-page header images (easy to revert). */
body:not(.course-index) .banner-img {
  display: none;
}

.course-nav {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  gap: 16px;
}

.course-nav-link {
  min-width: 160px;
  justify-content: center;
}

/* Page-scoped nav sizing for pages with exported markup that stretches nav too wide. */
.course-nav.course-nav-compact {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 910px) {
  .course-nav {
    justify-content: center;
  }

  .course-nav.course-nav-compact {
    width: 100%;
  }

  .course-nav > .course-nav-link:nth-child(1) {
    order: 1;
  }

  .course-nav > .course-nav-link:nth-child(3) {
    order: 2;
  }

  .course-nav > .course-nav-link:nth-child(2) {
    order: 3;
    flex: 0 1 220px;
  }

  .course-nav > .course-nav-link:nth-child(1),
  .course-nav > .course-nav-link:nth-child(3) {
    flex: 1 1 calc(50% - 8px);
    max-width: 220px;
  }

}

.course-sidebar .course-row-title::before {
  display: none;
}

.course-sidebar .course-row-title {
  font-size: 0.85rem;
}

.sidebar-hero-title {
  color: #ffffff;
  text-decoration: none;
}

.sidebar-hero-title:hover,
.sidebar-hero-title:focus {
  text-decoration: underline;
}

.course-index .course-hero {
  background-image: none;
  background: linear-gradient(
    120deg,
    rgba(var(--brand-rgb), 0.92),
    rgba(var(--brand-accent-rgb), 0.7)
  );
  min-height: 260px;
}

.course-index .course-hero-overlay {
  display: none;
}

.course-index .course-hero h1 {
  font-size: 3.1rem;
  letter-spacing: -0.01em;
}

.course-index .course-hero-kicker {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  font-weight: 600;
}

.course-index .container-fluid {
  padding-top: 24px;
}

.course-public-note {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(var(--brand-rgb), 0.08),
    rgba(var(--brand-accent-rgb), 0.06)
  );
  box-shadow: 0 14px 32px rgba(var(--brand-rgb), 0.08);
}

.course-public-note-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.course-public-note p {
  margin: 0;
  line-height: 1.6;
}

.course-index .course-summary {
  margin-top: 24px;
}

.course-summary-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.course-summary-actions .course-reset-button {
  margin-top: 0;
}

.course-sidebar .course-reset-button {
  margin-top: 16px;
  margin-bottom: 0;
}

.sidebar-hero-content {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
}

.sidebar-hero {
  min-height: 250px;
}

.sidebar-hero-logo {
  display: block;
  width: 88px;
  height: auto;
  margin-bottom: 10px;
}

.sidebar-hero-logo-link {
  display: inline-block;
  width: fit-content;
}

.sidebar-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sidebar-hero-actions .course-nav-button,
.sidebar-hero-actions .course-reset-button {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  text-align: center;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-hero-actions .course-nav-button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sidebar-hero-actions .course-reset-button {
  margin-top: 0;
}

.flip-card-front,
.flip-card-back {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.08), rgba(var(--accent-rgb), 0.1));
  border-color: rgba(var(--brand-rgb), 0.18);
  transition: transform 0.5s ease, opacity 0.4s ease;
  transform-origin: center;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  inset: 0;
  padding: 16px;
  box-sizing: border-box;
}

.flip-card-front {
  transform: rotateY(0deg);
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.flip-card-content {
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
  min-height: 230px;
}

.flip-card-content.is-flipped .flip-card-front {
  transform: rotateY(-180deg);
  opacity: 0;
}

.flip-card-content.is-flipped .flip-card-back {
  transform: rotateY(0deg);
  opacity: 1;
}

.flip-card-front-body,
.flip-card-back-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  text-align: center;
  height: 100%;
  flex: 1;
}

.flip-card-wrapper .flip-card-front-body {
  padding-top: 0;
}

.flip-card-front.img-wrapper {
  gap: 12px;
  align-items: stretch;
}

.flip-card-front.img-wrapper img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.flip-card-front.img-wrapper .flip-card-front-body {
  min-height: 160px;
  height: 100%;
  flex: 1;
  justify-content: center;
}

.flip-card-front-title,
.flip-card-back-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.flip-card-front-body p {
  margin: 0;
}

.flip-card-front .flip-icon,
.flip-card-back .flip-icon {
  margin-top: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
}

.flip-card-front .flip-icon::before,
.flip-card-back .flip-icon::before {
  content: "";
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.4);
}

.flip-card-back .flip-icon {
  display: none;
}

.accordion .card {
  border: 1px solid var(--border);
  border-radius: 16px !important;
  background: #f1f4f7;
  overflow: hidden;
}

.accordion .card-header {
  background: transparent;
  border: 0;
  border-radius: 0 !important;
}

.accordion .collapse {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

.accordion > .card,
.accordion > .card:not(:first-of-type),
.accordion > .card:not(:last-of-type) {
  border-radius: 16px !important;
  border-bottom: 1px solid var(--border) !important;
}

.accordion > .card:not(:last-of-type) {
  margin-bottom: 12px;
}

.accordion > .card .card-header:first-child,
.accordion > .card .card-header {
  border-radius: 16px !important;
}

/* Tighten spacing before flip-card instructions on the responsibilities page. */
.flip-card-wrapper .instruction {
  margin-top: 0;
}

.tabs-wrapper .tab-pane.centered-list ul {
  list-style-position: outside;
  padding-left: 20px;
  margin: 0 auto;
  text-align: left;
}

.tabs-wrapper .tab-pane.centered-list li {
  margin: 6px 0;
}

.tabs-wrapper .tab-content {
  min-height: 150px;
  transition: min-height 0.25s ease;
}

.tabs-wrapper .tab-pane.centered-list {
  padding: 8px 0;
}

.tabs-wrapper.tabs-centered .tab-content {
  min-height: 0;
  height: auto;
}

.tabs-wrapper.tabs-centered .tab-pane.active > div {
  width: 100%;
}

.timeline .timeline-body img {
  display: block;
  margin: 0 auto;
  max-width: 75%;
  height: auto;
}

.timeline .timeline-body img {
  width: 75%;
  height: 180px;
  object-fit: contain;
}

.timeline .timeline-panel {
  text-align: left !important;
}

.timeline .timeline-body,
.timeline .timeline-body p,
.timeline .timeline-body ul,
.timeline .timeline-body li {
  text-align: left !important;
}

.timeline .timeline-body ul {
  list-style-position: outside;
  padding-left: 14px;
  margin-left: 0;
  margin-top: 2px;
  margin-bottom: 0;
}

.timeline .timeline-body li {
  margin-bottom: 0;
  line-height: 1.25;
  padding-left: 2px;
}

.card-graphic .card-body {
  align-items: center;
}

.card-graphic .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
}

.practice-option {
  align-items: center;
}

.practice-option input {
  margin-top: 0;
}

.course-sidebar .course-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-sidebar .course-link {
  display: flex;
  align-items: center;
  flex: 1;
}

.course-sidebar .course-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.course-shell-body .course-sidebar {
  overflow: hidden;
}

body.course-shell-body .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

@media (min-width: 769px) {
  body.course-shell-body .course-shell {
    display: block;
  }

  body.course-shell-body .course-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    height: auto;
    z-index: 20;
  }

  body.course-shell-body .course-main {
    margin-left: 300px;
    min-height: 100vh;
  }
}

.mobile-sidebar-toggle,
.mobile-sidebar-backdrop {
  display: none;
}

.accordion .card-body {
  background: transparent;
}

.course-practice-static {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
  box-shadow: var(--shadow);
  margin: 16px 0 24px;
}

body:not(.course-index) {
  padding-bottom: 52px;
}

.public-summary-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding: 9px 16px;
  border-top: 1px solid rgba(var(--brand-rgb), 0.2);
  background: rgba(247, 249, 252, 0.96);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(6px);
}

body.course-shell-body .public-summary-banner {
  left: 300px;
}

@media (max-width: 768px) {
  .course-index .course-summary-actions {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .course-index .course-summary-actions .course-start-button,
  .course-index .course-summary-actions .course-reset-button {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
    padding: 12px 14px;
    font-size: 0.95rem;
    text-align: center;
    justify-content: center;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1060;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(var(--brand-rgb), 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand);
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.14);
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(16, 24, 40, 0.32);
  }

  body.course-shell-body .sidebar-hero-logo-link {
    display: inline-block;
    width: fit-content;
    margin-left: 72px;
  }

  body.course-shell-body .sidebar-hero-logo {
    margin-left: 0;
    margin-right: 0;
  }

  body.course-shell-body.sidebar-open .mobile-sidebar-backdrop {
    display: block;
  }

  body.course-shell-body .public-summary-banner {
    left: 0;
  }

  body.course-shell-body .course-sidebar {
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 85vw);
    height: auto;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 12px 0 30px rgba(16, 24, 40, 0.18);
  }

  body.course-shell-body.sidebar-open .course-sidebar {
    transform: translateX(0);
  }

  body.course-shell-body .sidebar-nav {
    overflow-y: auto;
  }

  body.course-shell-body .course-main {
    margin-left: 0;
    min-height: 0;
  }
}

/* Communications page: square image-first flip cards. */
.page-communications .communications-flipcards .flip-card-set {
  grid-template-columns: 1fr;
}

.page-communications .communications-flipcards .flip-card {
  grid-row-start: auto !important;
  grid-row-end: auto !important;
  grid-column-start: auto !important;
  grid-column-end: auto !important;
}

.page-communications .communications-flipcards .flip-card-content {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.page-communications .communications-flipcards .flip-card-front.img-wrapper {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.page-communications .communications-flipcards .flip-card-front img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.page-communications .communications-flipcards .flip-card-front .flip-card-front-body {
  display: none;
}

.page-communications .communications-flipcards .flip-card-front .flip-icon {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  bottom: 14px;
}

.page-communications .communications-flipcards .flip-card-front .flip-icon::before {
  background: rgba(255, 255, 255, 0.75);
}

@media (min-width: 992px) {
  .page-communications .communications-flipcards .flip-card-set {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Corporate Stewardship page: replace hotspot with square flip cards. */
.stewardship-flipcards .flip-card-set {
  grid-template-columns: 1fr;
}

.stewardship-flipcards .flip-card {
  grid-row-start: auto !important;
  grid-row-end: auto !important;
  grid-column-start: auto !important;
  grid-column-end: auto !important;
}

.stewardship-flipcards .flip-card-content {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.stewardship-flipcards .flip-card-front.img-wrapper {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.stewardship-flipcards .flip-card-front img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.stewardship-flipcards .flip-card-front .flip-card-front-body {
  display: none;
}

.stewardship-flipcards .flip-card-front .flip-icon {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  bottom: 14px;
}

.stewardship-flipcards .flip-card-front .flip-icon::before {
  background: rgba(255, 255, 255, 0.75);
}

@media (min-width: 992px) {
  .stewardship-flipcards .flip-card-set {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
