/* styles.css */

.accordion-collapse {
  transition: none !important;
}

/* ===== CATEGORY CARD ===== */
.category-card {
  background: #f8f9fa;
  border-radius: 1rem;
}

/* ===== SINGLE HORIZONTAL ROW (Netflix style) ===== */
.scroll-row-wrapper{
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
  scroll-behavior: smooth;

  flex: 1 1 auto;
  min-width: 0;
}

.scroll-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  min-width: max-content;

  /* ===== OPTIONAL: scroll snap ===== */
  scroll-snap-type: x mandatory;
}

/* ===== CARD WRAP (width + snap) ===== */
.course-card-wrap {
  flex: 0 0 200px;
  width: 200px;

  /* scroll snap */
  scroll-snap-align: start;
}

/* ===== CARD (fixed sizing + hover) ===== */
.course-card {
  width: 200px;

  /* keep EXACT current behavior (fixed height) */
  min-height: 275px;
  max-height: 275px;
  height: 275px;

  border-radius: 0.85rem;
  border: 1px solid #ececec !important;

  display: flex;
  flex-direction: column;

  /* effective transition in your file (0.15s wins) */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.course-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== SCROLLBAR ===== */
.scroll-row-wrapper::-webkit-scrollbar {
  height: 10px;
}

.scroll-row-wrapper::-webkit-scrollbar-track {
  background: #ececec;
  border-radius: 8px;
}

.scroll-row-wrapper::-webkit-scrollbar-thumb {
  background: #c9c9c9;
  border-radius: 8px;
}

.scroll-row-wrapper::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ===== TITLE HOVER ===== */
.course-title-link {
  transition: color 0.2s ease !important;
  cursor: pointer !important;
  font-size: 0.99rem;
}

.course-title-link:hover {
  color: #4a709f !important;
}

.scroll-row-shell{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.category-header-fixed{
  flex: 0 0 165px;
  width: 165px;
  margin: 0;          /* optional, but stabilizes */
}

/* Make all Add Courses rows share the same left edge */
.add-courses-row{
  margin: 0 0 1.5rem 0;   /* keeps your mb-4-ish spacing */
  padding: 0 !important;
}

/* Inner padding: consistent for EVERY row */
.add-courses-row .scroll-row-shell{
  padding-left: .75rem !important;   /* flush */
  padding-right: 0 !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#collapseThree .accordion-body{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#collapseOne .accordion-body{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#collapseTwo .accordion-body{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#collapseFour .accordion-body{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#collapseFive .accordion-body{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* codex start */
#collapseSix .accordion-body{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* codex end */

/* codex start */
/* Keep the left sidebar content fixed without changing the column layout. */
.account-test-sidebar-content {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}
/* codex end */

/* codex start */
/* Keep the currently open account tab button highlighted. */
a.btn.btn-outline-primary[data-bs-toggle="collapse"][aria-expanded="true"] {
  color: #ffffff !important;
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}
/* codex end */

/* codex start */
/* Price calculator section styling for account_test. */
.account-price-card {
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 43, 70, 0.06);
  padding: 1rem 1.1rem;
}

.account-price-card__header {
  margin-bottom: 0.9rem;
}

.account-price-card__title {
  color: #102b46;
  font-size: 1.2rem;
  line-height: 1.2;
}

.account-price-card__subtitle {
  color: #5b6f85;
  font-size: 0.88rem;
}

.account-price-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.account-price-card__summary {
  border: 1px solid #e2eaf3;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.85rem 0.95rem;
}

.account-price-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: #173758;
  line-height: 1.1;
}

.account-price-card__meta {
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.account-price-card__slider-wrap {
  padding: 0 0.15rem;
}

.account-price-card__scale {
  display: flex;
  justify-content: space-between;
}

.account-price-card__form {
  margin-top: 0.1rem;
}

.account-price-card__button {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
}
/* codex end */

/* codex start */
/* Account information panel refinements. */
.account-info-panel__subtitle {
  margin-top: 0.2rem;
  color: #5b6f85;
  font-size: 0.88rem;
}

.account-info-panel__readonly,
.account-info-panel__section {
  border: 1px solid #e2eaf3;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.95rem 1rem;
}

.account-info-panel__readonly {
  background: #f8fbff;
}

.account-info-panel__readonly-label {
  margin-bottom: 0.8rem;
  color: #5f7590;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-info-panel__readonly-note {
  color: #5f7590;
  font-size: 0.84rem;
  line-height: 1.4;
}

.account-info-panel__locked[readonly] {
  background-color: #eef3f8;
  border-color: #d7e2ee;
  color: #4c6580;
}

.account-info-panel__section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.account-info-panel__section-title {
  color: #173758;
  font-size: 1rem;
  line-height: 1.2;
}

.account-info-panel__section-note {
  color: #6a7f96;
  font-size: 0.8rem;
}

.account-info-panel .form-label {
  font-weight: 600;
  color: #284764;
  margin-bottom: 0.35rem;
}

.account-info-panel__actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

@media (max-width: 768px) {
  .account-info-panel__section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
/* codex end */
.course-library-v2 {
  --library-border: #dbe3f0;
  --library-bg: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
  --library-title: #0f2942;
  --library-subtle: #5a6b81;
  --library-accent: #1f6fb2;

  background: var(--library-bg);
  border: 1px solid var(--library-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(15, 41, 66, 0.08);
}

.course-library-v2__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.course-library-v2__title {
  color: var(--library-title);
  font-size: 1.2rem;
}

.course-library-v2__subtitle {
  color: var(--library-subtle);
  font-size: 0.93rem;
}

.course-library-v2__stats {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.course-library-v2__pill {
  border: 1px solid #c7d3e5;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  background: #fff;
  color: #3e516b;
  white-space: nowrap;
}

.course-library-v2__pill--accent {
  border-color: #8ec5ff;
  color: #0f4f88;
  background: #eef7ff;
}

.course-library-v2__toolbar {
  margin-bottom: 0.55rem;
}

.course-library-v2__list {
  display: grid;
  gap: 0.75rem;
}

.course-library-v2__item {
  background: #fff;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  padding: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-library-v2__item:hover {
  border-color: #9db8d8;
  box-shadow: 0 8px 18px rgba(12, 55, 94, 0.08);
}

.course-library-v2__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
}

.course-library-v2__item-title {
  color: #133150;
  font-size: 1.02rem;
}

.course-library-v2__badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.course-library-v2__summary {
  color: #3f4c5f;
  font-size: 0.92rem;
}

.course-library-v2__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.course-library-v2__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 140px;
}

.course-library-v2__details {
  border-top: 1px dashed #c6d2e4;
  padding-top: 0.75rem;
}

.course-library-v2__detail-actions {
  max-width: 420px;
}

@media (max-width: 768px) {
  .course-library-v2 {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .course-library-v2__header {
    flex-direction: column;
    gap: 0.55rem;
  }

  .course-library-v2__stats {
    justify-content: flex-start;
  }

  .course-library-v2__main {
    grid-template-columns: 1fr;
  }

  .course-library-v2__actions {
    flex-direction: row;
    min-width: 0;
  }

  .course-library-v2__actions .btn {
    flex: 1 1 auto;
  }
}
/* -------------------------------------------------------------------------- */
/* Codex: Add Courses v3                                                      */
/* - Cleaner, denser layout for modern catalog browsing                       */
/* - Table-like compact rows with expandable detail drawer                    */
/* -------------------------------------------------------------------------- */

.course-library-v3 {
  --v3-border: #d9e3ef;
  --v3-border-strong: #c7d5e6;
  --v3-bg: #ffffff;
  --v3-bg-soft: #f5f8fc;
  --v3-text: #102b46;
  --v3-subtle: #5b6f85;
  --v3-accent: #2b78c5;

  /* border: 1px solid var(--v3-border); */
  /* border-radius: 14px; */
  /* background: linear-gradient(180deg, #fafcff 0%, var(--v3-bg) 100%); */
  /* box-shadow: 0 6px 20px rgba(16, 43, 70, 0.06); */

  /* codex start */
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  /* codex end */
}

.course-library-v3__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.course-library-v3__title {
  color: var(--v3-text);
  /* font-size: 1.1rem; */
  /* codex start */
  font-size: 1.45rem;
  /* codex end */
  line-height: 1.2;
}

.course-library-v3__subtitle {
  color: var(--v3-subtle);
  font-size: 0.88rem;
}

.course-library-v3__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.course-library-v3__chip {
  font-size: 0.74rem;
  border: 1px solid var(--v3-border-strong);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  background: #fff;
  color: #3e5570;
}

.course-library-v3__chip--accent {
  border-color: #8ec2f3;
  background: #edf6ff;
  color: #145291;
}

.course-library-v3__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.course-library-v3__toolbar .input-group {
  max-width: 520px;
}

.course-library-v3__table {
  border: 1px solid var(--v3-border);
  border-radius: 10px;
  overflow: hidden;
}

.course-library-v3__thead,
.course-library-v3__row {
  display: grid;
  /* codex start */
  /* grid-template-columns: minmax(0, 2.1fr) minmax(56px, 0.35fr) minmax(110px, 0.55fr) minmax(170px, 0.9fr) minmax(180px, 0.95fr); */
  /* gap: 0.45rem; */
  grid-template-columns: minmax(0, 2.3fr) minmax(56px, 0.3fr) minmax(95px, 0.45fr) minmax(145px, 0.7fr) minmax(165px, 0.8fr);
  gap: 0.35rem;
  /* codex end */
  align-items: center;
}

.course-library-v3__thead {
  padding: 0.5rem 0.7rem;
  background: var(--v3-bg-soft);
  border-bottom: 1px solid var(--v3-border);
}

.course-library-v3__th {
  color: #47617c;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.course-library-v3__tbody {
  background: #fff;
}

/* codex start */
/* Keep long non-bundle sections compact by scrolling inside the table body. */
.course-library-v3__tbody--scrollable {
  max-height: 930px; /* ~15 compact rows before scrolling */
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  /* codex start */
  direction: rtl; /* moves vertical scrollbar to the left side */
  /* codex end */
}

.course-library-v3__tbody--scrollable::-webkit-scrollbar {
  width: 10px;
}

.course-library-v3__tbody--scrollable::-webkit-scrollbar-track {
  background: #edf3fa;
}

.course-library-v3__tbody--scrollable::-webkit-scrollbar-thumb {
  background: #c0d0e4;
  border-radius: 8px;
}

/* .course-library-v3__tbody--scrollable.course-library-v3__tbody--has-overflow {
  box-shadow: inset 0 -34px 22px -22px rgba(20, 58, 96, 0.35);
}

.course-library-v3__scroll-hint {
  margin-top: 0.45rem;
  text-align: center;
  font-size: 0.78rem;
  color: #355779;
  background: #eef5fc;
  border: 1px solid #d2dfed;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  display: inline-block;
} */

/* codex start */
/* Keep row content left-to-right while scrollbar stays on the left. */
.course-library-v3__tbody--scrollable > .course-library-v3__item {
  direction: ltr;
}
/* codex end */
/* codex end */

.course-library-v3__item {
  border-bottom: 1px solid #edf2f8;
}

.course-library-v3__item:last-child {
  border-bottom: 0;
}

.course-library-v3__row {
  /* codex start */
  /* padding: 0.48rem 0.7rem; */
  /* min-height: 62px; */
  padding: 0.34rem 0.7rem;
  min-height: 50px;
  /* codex end */
}

.course-library-v3__row:hover {
  background: #f8fbff;
}

/* codex start */
.course-library-v3 .course-library-v3__course-link.btn-link,
.course-library-v3 .course-library-v3__course-link.btn-link:visited,
.course-library-v3 .course-library-v3__course-link.btn-link:focus,
.course-library-v3 .course-library-v3__course-link.btn-link:active {
  color: #0b5ed7 !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  text-align: left;
  /* codex start */
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* codex end */
}

.course-library-v3 .course-library-v3__course-link.btn-link:hover {
  color: #0b5ed7 !important;
  text-decoration: underline !important;
}
/* codex end */

.course-library-v3__subline {
  margin-top: 0.08rem;
  font-size: 0.75rem;
}

.course-library-v3__credits {
  font-weight: 700;
  color: #1d446b;
  white-space: nowrap;
}

/* codex start */
.course-library-v3__cell {
  min-width: 0;
}

.course-library-v3__cell--course {
  min-width: 0;
}
/* codex end */

.course-library-v3__th,
.course-library-v3__cell {
  white-space: nowrap;
}

.course-library-v3__cell--actions {
  display: flex;
  /* codex start */
  /* justify-content: flex-end; */
  justify-content: flex-start;
  /* codex end */
  gap: 0.35rem;
  white-space: nowrap;
}

/* codex start */
.course-library-v3__cell audio.audio-preview {
  margin-top: 0 !important;
}
/* codex end */

.course-library-v3__details {
  padding: 0.6rem 0.7rem 0.75rem;
  border-top: 1px dashed #d4dfec;
  background: #fbfdff;
  font-size: 0.87rem;
}

.course-library-v3__detail-meta {
  font-size: 0.76rem;
}

/* codex start */
.course-library-v3__modal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7590;
  margin-bottom: 0.35rem;
}

.course-library-v3__modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #173758;
  line-height: 1.35;
}

.course-library-v3__modal-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #60758e;
}

.course-library-v3__modal-summary {
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.7rem 0.85rem;
}

.course-library-v3__modal-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #294966;
}

.course-library-v3__modal-summary-row + .course-library-v3__modal-summary-row {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid #e3ebf5;
}

.course-library-v3__modal-footer {
  justify-content: flex-start;
}

.course-library-v3__add-modal,
.course-library-v3__add-modal .modal-dialog,
.course-library-v3__add-modal .modal-content,
.course-library-v3__add-modal .modal-header,
.course-library-v3__add-modal .modal-body,
.course-library-v3__add-modal .modal-footer {
  direction: ltr;
  text-align: left;
}
/* codex end */

@media (max-width: 992px) {
  .course-library-v3__thead,
  .course-library-v3__row {
    /* codex start */
    /* grid-template-columns: minmax(0, 1.8fr) minmax(50px, 0.3fr) minmax(90px, 0.45fr) minmax(150px, 0.8fr) minmax(165px, 0.85fr); */
    grid-template-columns: minmax(0, 1.9fr) minmax(48px, 0.28fr) minmax(82px, 0.4fr) minmax(135px, 0.68fr) minmax(150px, 0.78fr);
    /* codex end */
  }
}

@media (max-width: 768px) {
  .course-library-v3 {
    padding: 0.7rem;
  }

  .course-library-v3__header,
  .course-library-v3__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .course-library-v3__thead {
    display: none;
  }

  .course-library-v3__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.65rem;
    min-height: 0;
  }

  .course-library-v3__cell--actions {
    justify-content: flex-start;
  }
}

/* codex start */
/* -------------------------------------------------------------------------- */
/* Bundle shelf (single-row horizontal scroller)                              */
/* -------------------------------------------------------------------------- */
.course-library-v3__bundle-panel {
  border: 1px solid var(--v3-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 43, 70, 0.06);
  padding: 1rem;
}

.course-library-v3__bundle-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.course-library-v3__bundle-aside {
  display: flex;
  align-self: stretch;
}

.course-library-v3__bundle-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.course-library-v3__bundle-main {
  min-width: 0;
}

.course-library-v3__bundle-toolbar {
  display: flex;
  /* justify-content: space-between; */
  /* align-items: center; */
  /* codex start */
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  /* codex end */
  gap: 0.75rem;
}

.course-library-v3__bundle-shelf {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.15rem 0.55rem;
  scroll-snap-type: x mandatory;
}

.course-library-v3__bundle-shelf::-webkit-scrollbar {
  height: 10px;
}

.course-library-v3__bundle-shelf::-webkit-scrollbar-track {
  background: #e8eef6;
  border-radius: 8px;
}

.course-library-v3__bundle-shelf::-webkit-scrollbar-thumb {
  background: #bccde2;
  border-radius: 8px;
}

.course-library-v3__bundle-card {
  flex: 0 0 175px;
  /* codex start */
  /* min-height: 215px; */
  min-height: 235px !important;
  /* codex start */
  max-height: 235px !important;
  height: 235px !important;
  /* codex end */
  /* codex end */
  border-radius: 12px;
  border: 1px solid #cfdbeb;
  color: #fff;
  /* codex start */
  /* background: linear-gradient(180deg, #173758 0%, #244b74 100%); */
  background: transparent;
  /* codex end */
  /* codex start */
  /* padding: 0.7rem; */
  /* padding: 0.4rem; */
  padding: 0.28rem;
  /* codex end */
  scroll-snap-align: start;
  box-shadow: 0 7px 18px rgba(18, 49, 78, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.course-library-v3__bundle-card--tax { background: linear-gradient(165deg, #1d6fa8 0%, #12436a 100%); }
.course-library-v3__bundle-card--accounting { background: linear-gradient(165deg, #2a7b66 0%, #18483c 100%); }
.course-library-v3__bundle-card--business { background: linear-gradient(165deg, #7c5f2e 0%, #4a381a 100%); }
.course-library-v3__bundle-card--auditing { background: linear-gradient(165deg, #70549d 0%, #3f2f60 100%); }
.course-library-v3__bundle-card--ethics { background: linear-gradient(165deg, #85633a 0%, #523b21 100%); }
.course-library-v3__bundle-card--other { background: linear-gradient(165deg, #3d698f 0%, #24405a 100%); }

.course-library-v3__bundle-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.course-library-v3__bundle-title {
  /* codex start */
  /* margin: 0.65rem 0 0.4rem; */
  /* margin: 0.35rem 0 0.2rem; */
  margin: 0.22rem 0 0.12rem;
  /* codex end */
  font-size: 0.96rem;
  line-height: 1.32;
}

.course-library-v3__bundle-meta {
  font-size: 0.76rem;
  opacity: 0.92;
  /* codex start */
  margin-bottom: auto;
  /* codex end */
}

/* codex start */
.course-library-v3__bundle-summary {
  margin-top: 0.1rem;
}

.course-library-v3__bundle-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-library-v3__bundle-audio-fixed {
  /* codex start */
  /* margin-top: 0.45rem !important; */
  /* margin-top: 0.2rem !important; */
  margin-top: 0.08rem !important;
  /* codex end */
  padding-bottom: 6px;
  display: block;
}
/* codex end */

@media (max-width: 768px) {
  .course-library-v3__bundle-panel {
    padding: 0.8rem;
  }

  .course-library-v3__bundle-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .course-library-v3__bundle-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .course-library-v3__bundle-card {
    flex-basis: 200px;
    min-height: 215px;
  }
}
/* codex end */
 body {
      background-color: #f0f0f0;
    }
    .certificate-container {
      background-color: white;
      border: 10px solid #1f2a57;
      padding: 30px;
      margin: 20px auto;
      max-width: 900px;
      text-align: center;
      position: relative;
    }
    .certificate-container::before,
    .certificate-container::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 15px;
/*      background: linear-gradient(to bottom, #f1c40f, #1f2a57, #f1c40f);*/
    }
    .certificate-container::before {
      left: 0;
    }
    .certificate-container::after {
      right: 0;
    }
    .certificate-header {
      text-align: center;
      margin-bottom: 30px;
    }
    .certificate-header img {
      max-width: 100px;
    }
    .certificate-title {
      font-size: 2em;
      font-weight: bold;
      margin-bottom: 10px;
    }
    .certificate-subtitle {
      font-size: 1.2em;
      margin-bottom: 20px;
    }
    .certificate-body {
      font-size: 1.2em;
      margin-bottom: 40px;
    }
    .certificate-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 40px;
    }
    .signature {
      max-width: 200px;
    }
    .address {
      text-align: left;
      font-size: 0.9em;
    }
/* -------------------------------------------------------------------------- */
/* Completion Certificates v3                                                  */
/* Style goal: match add_courses/orders visual language                        */
/* -------------------------------------------------------------------------- */

.certificates-library-v3 {
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(16, 43, 70, 0.06);
}

.certificates-library-v3__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid #e4ebf5;
}

.certificates-library-v3__title {
  color: #102b46;
  /* font-size: 1.08rem; */
  /* codex start */
  font-size: 1.2rem;
  /* codex end */
  line-height: 1.2;
}

.certificates-library-v3__chip {
  font-size: 0.76rem;
  border: 1px solid #c7d5e6;
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  background: #fff;
  color: #3e5570;
}

.certificates-library-v3__tabs {
  margin: 0.75rem 0.8rem 0.5rem;
  gap: 0.35rem;
}

.certificates-library-v3__tabs .nav-link {
  border: 1px solid #cfdaea;
  color: #31506f;
  font-size: 0.86rem;
  padding: 0.3rem 0.72rem;
}

.certificates-library-v3__tabs .nav-link.active {
  border-color: #9db9d8;
  color: #163f66;
  background: #eef5fc;
}

.certificates-library-v3__table-wrap {
  padding: 0.15rem 0.35rem 0.4rem;
}

.certificates-library-v3__table thead th {
  background: #f5f8fc;
  color: #49627c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 600;
  border-bottom: 1px solid #d9e3ef;
  white-space: nowrap;
}

.certificates-library-v3__table tbody td {
  border-color: #edf2f8;
  font-size: 0.92rem;
  color: #1f344c;
  vertical-align: middle;
}

.certificates-library-v3__table tbody tr:hover {
  background: #f8fbff;
}

.certificates-library-v3__table tbody td:nth-child(3) {
  max-width: 440px;
}

.certificates-library-v3__action {
  min-width: 96px;
}

@media (max-width: 768px) {
  .certificates-library-v3 {
    border-radius: 10px;
  }

  .certificates-library-v3__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .certificates-library-v3__tabs {
    margin: 0.65rem 0.55rem 0.45rem;
  }

  .certificates-library-v3__table thead th,
  .certificates-library-v3__table tbody td {
    font-size: 0.84rem;
  }
}
/* Main Container for the Book Cover */
.book-cover {
  width: 8.5in;
  height: 11in;
  background-color: #f5f5f5;
  border: 2px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Banner Section */
.cover-banner {
  background: linear-gradient(45deg, #4a90e2, #d7263d);
  padding: 40px;
  color: white;
  text-align: center;
  position: relative;
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.banner-text h1 {
  font-size: 2.8rem;
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.banner-text h2 {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 300;
  opacity: 0.8;
}

/* Middle Content Section */
.cover-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
}

.cover-info {
  text-align: left;
}

.course-name {
  font-size: 1.5rem;
  color: #4a90e2;
  font-weight: bold;
  margin: 0;
}

.author {
  font-size: 1rem;
  color: #666;
  margin-top: 5px;
  font-weight: 500;
}

.abstract {
  margin-top: 20px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  background: #f8f8f8;
  padding: 15px;
  border-left: 5px solid #4a90e2;
  border-radius: 4px;
}

/* Footer Decoration */
.cover-footer {
  background-color: #e0e0e0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-decor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.decor-circle {
  width: 20px;
  height: 20px;
  background-color: #d7263d;
  border-radius: 50%;
}

.decor-bar {
  width: 100px;
  height: 6px;
  background-color: #4a90e2;
  border-radius: 3px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .banner-text h1 {
    font-size: 2.2rem;
  }
  
  .banner-text h2 {
    font-size: 1rem;
  }
  
  .course-name {
    font-size: 1.2rem;
  }

  .author, .abstract {
    font-size: 0.9rem;
  }
}

.exam-q-hover:hover {
  font-weight: bold;
/*  color: green;*/
}

.custom-backdrop {
  background-color: grey !important;
  opacity: .97 !important;
}


/*Modals*/
/* Keep rows from bleeding outside the modal padding */
#infoModal .modal-body { overflow-x: hidden; }
/* Slightly smaller gutters inside this modal for tighter look */
#infoModal .modal-body .row { --bs-gutter-x: 1rem; --bs-gutter-y: .75rem; }
/* Uniform compact controls */
#infoModal .form-control-sm, #infoModal .form-select-sm { font-size: .9rem; }
/* Extra right padding so password/manager icons don't collide */
#infoModal input.form-control { padding-right: 2.25rem; }

/* Modals — opt-in */
.modal-tidy .modal-body { overflow-x: hidden; }

.modal-tidy .modal-body .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: .75rem;
}

.modal-tidy .form-control-sm,
.modal-tidy .form-select-sm { font-size: .9rem; }

.modal-tidy input.form-control { padding-right: 2.25rem; }



  /* Exam Icon */
  .exam-option { position: relative; padding-left: 1.5rem; display: inline-block; }

  /* green check when selected */
  .exam-option.is-selected::before {
    content: "✓";
    color: #198754;            /* Bootstrap green */
    position: absolute;
    left: 0.2rem;
    top: 0.4rem;
    font-weight: 700;
    line-height: 1;
  }
  .exam-option.is-selected { font-weight: 700; }  /* <- bold the chosen option text */


  /* make the “selected” text green and small */
  .saved-text { color: #198754; font-weight: 600; font-size: .9rem; }


  

/* Override buttons */
.btn-primary {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #004999 !important;
  border-color: #004999 !important;
}

/* Override text colors */
a.text-primary {
  color: #0056b3 !important;
}

a.text-primary:hover,
a.text-primary:focus {
  color: #0d6efd !important;
  text-decoration: underline;
}

/* Override background colors */
.bg-primary {
  background-color: #0056b3 !important;
}
/* Override table colors */
.table thead.table-primary th {
  background-color: #0056b3 !important;
  color: #fff;
}

/* Outline Primary Button Overrides */
.btn-outline-primary {
  color: #0056b3 !important;
  border-color: #0056b3 !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #ffffff !important;
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}


.course-title {
  color: #0056b3 !important;
}

input {
/*  width: 100%;*/
  padding: 8px;
  margin-bottom: 16px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  min-width:300px;
}

input[type="checkbox"] {
  margin: 0;
  padding: 0;
  width: auto; /* Remove width */
  min-width: initial; /* Remove min-width */
  vertical-align: middle; /* Align vertically with other inputs */
}

.custom-select {
  padding: 8px;
  margin-bottom: 16px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  min-width: 300px;
}

.card-shadow-account {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media print {
  .no-print {
    display: none;
  }
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.custom-input {
  height: 50px; /* Adjust this value as needed */
}

.custom-button {
  height: 50px; /* Adjust this value as needed */
  font-size: 18px; /* Adjust this value as needed for button text size */
}

input[readonly] {
  background-color: #f5f5f5; /* Light grey background */
  color: #6c757d;           /* Grey text color */
  cursor: not-allowed;      /* 'Not allowed' cursor icon */
}


/* Ensure the footer sits on top and spans the width */
#site-footer {
  height: var(--footer-h);
  z-index: 1030; /* below Bootstrap modals (1055), above content */
  left: 0; right: 0;
}


/* ===================================================== */
/* BASE                                                   */
/* ===================================================== */

html, body {
  height: 100%;
  margin: 0;
}


/* ===================================================== */
/* HERO SECTION                                           */
/* ===================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
}

/* Height tuning */
@media (min-width: 1200px) {
  .hero { height: 60vh; }
}
@media (min-width: 1400px) {
  .hero { height: 58vh; }
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content layout */
.hero-content {
  width: 100%;
  max-width: 1100px;
  padding: 3rem 1rem 0rem 1rem;
  text-align: center;
  display: grid;
  gap: clamp(1rem, 2.5vh, 2rem);
}

/* Title */
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0F2A44;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
}

/* Subtitle */
.hero-subtitle {
  color: #0F2A44;
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  margin: 0;
}

/* Signup */
.hero-signup {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

/* Redeem */
.hero-redeem {
  font-size: 0.95rem;
  color: white;
}
.hero-redeem a {
  color: white;
  text-decoration: underline;
  margin-left: 0.25rem;
}

/* Logos */
.hero-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-logos img {
  height: 65px;
}

/* ===================================================== */
/* GLOBAL UI                                              */
/* ===================================================== */
.btn-xs {
  padding: 2px 6px !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  border-radius: 0.2rem !important;
}

.btn-xxs {
  padding: 1px 5px !important;
  font-size: 0.7rem !important;
  line-height: 1.1 !important;
  border-radius: 0.15rem !important;
}

.navbar {
  padding: 1rem 2rem;
}

.signup-container {
  width: min(850px, 100%);
  margin: 0 auto;
}

.btn-primary {
  background-color: #007bff;
  border: none;
}
.btn-primary:hover {
  background-color: #0056b3;
}


/* ===================================================== */
/* STATS / TESTIMONIALS                                   */
/* ===================================================== */

.stats-section{
  background-color:#f8f9fa;
  padding-top: 2rem;
  padding-bottom: 0;  /* <-- key */
  text-align:center;
}
.stats-section .price-card {
  height: 100%;
}

.stats-image-wrap{
  height: 100%;
  display: flex;
  align-items: flex-end;   /* push image to bottom */
  height: calc(100% + 1.5rem);
}

.stats-image{
  width: 100%;
  height: auto;            /* IMPORTANT: don't force 100% height */
  max-height: 100%;        /* never exceed column height */
  object-fit: contain;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 2rem 0;
}

.testimonial {
  padding: 2rem;
}
.testimonial img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial .quote {
  font-size: 1.5rem;
  font-style: italic;
}
.testimonial .author {
  font-weight: bold;
}

.pb-4-5 {
  padding-bottom: 2rem; /* between 1.5rem (p-4) and 3rem (p-5) */
}


/* ===================================================== */
/* INFO CARDS                                             */
/* ===================================================== */

.info-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #0A2540;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-title {
  font-weight: 600;
}

.audio-preview {
  max-width: 300px;
  height: 32px;
}

@media (min-width: 576px) {
  .audio-preview {
    max-width: 260px;
    height: 30px;
  }
}


/* ===================================================== */
/* PRICING SLIDER                                         */
/* ===================================================== */

.form-range::-webkit-slider-thumb,
.form-range::-moz-range-thumb {
  background-color: #0A2540;
}


/* ===================================================== */
/* COURSE LIBRARY                                         */
/* ===================================================== */

.course-library {
  background-color: #f8f9fa;
}

.course-list {
  max-height: 260px;
  overflow-y: auto;
}

.course-item {
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  text-align: left;
}
.course-item:hover {
  background-color: #f5f7fa;
}

/* Accordion cleanup */
.course-accordion {
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: inherit;
  --bs-accordion-btn-focus-box-shadow: none;
}

.course-accordion .accordion-item {
  background-color: transparent;
}

.course-accordion .accordion-button,
.course-accordion .accordion-button:not(.collapsed),
.course-accordion .accordion-button:hover,
.course-accordion .accordion-button:focus,
.course-accordion .accordion-button:active {
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.course-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(90deg);
}

.audio-inline {
  height: 26px;        
  max-width: 250px;
  display: inline-block;
  vertical-align: middle;
}


/* ===================================================== */
/*Footer
/* ===================================================== */

.site-footer {
  background: #0f2a44; /* deep blue */
  color: #e6ecf1;
}

.site-footer a {
  color: #9ec5fe;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 360px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #cbd5e1;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.footer-link {
  font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Orders Table v3                                                             */
/* Style goal: visually align order receipts with add_courses_3 language       */
/* -------------------------------------------------------------------------- */

.orders-library-v3 {
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(16, 43, 70, 0.06);
  /* codex start */
  margin: 0;
  /* codex end */
}

.orders-library-v3__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  /* padding: 0.85rem 0.95rem; */
  /* codex start */
  padding: 0.85rem 0.75rem;
  /* codex end */
  border-bottom: 1px solid #e4ebf5;
}

.orders-library-v3__title {
  color: #102b46;
  /* font-size: 1.08rem; */
  /* codex start */
  font-size: 1.2rem;
  /* codex end */
  line-height: 1.2;
}

.orders-library-v3__chip {
  font-size: 0.76rem;
  border: 1px solid #c7d5e6;
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  background: #fff;
  color: #3e5570;
}

.orders-library-v3__table-wrap {
  /* padding: 0.2rem 0.3rem 0.35rem; */
  /* codex start */
  padding: 0.2rem 0 0.35rem;
  /* codex end */
}

.orders-library-v3__table thead th {
  background: #f5f8fc;
  color: #49627c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 600;
  border-bottom: 1px solid #d9e3ef;
  white-space: nowrap;
}

.orders-library-v3__table tbody td {
  border-color: #edf2f8;
  font-size: 0.92rem;
  color: #1f344c;
  vertical-align: middle;
}

.orders-library-v3__table tbody tr:hover {
  background: #f8fbff;
}

.orders-library-v3__type {
  display: inline-block;
  border-radius: 999px;
  padding: 0.16rem 0.56rem;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.orders-library-v3__type--credits {
  background: #ecf5ff;
  border-color: #c7ddf6;
  color: #21578a;
}

.orders-library-v3__type--bonus {
  background: #edf9f2;
  border-color: #cfead8;
  color: #256344;
}

.orders-library-v3__type--ethics {
  background: #fff6e8;
  border-color: #f1dcc0;
  color: #7a551f;
}

.orders-library-v3__type--refund {
  background: #fff0f0;
  border-color: #f0d1d1;
  color: #8f2f2f;
}

.orders-library-v3__type--other {
  background: #f3f4f6;
  border-color: #dde1e8;
  color: #445162;
}

@media (max-width: 768px) {
  .orders-library-v3 {
    border-radius: 10px;
  }

  .orders-library-v3__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .orders-library-v3__table thead th,
  .orders-library-v3__table tbody td {
    font-size: 0.84rem;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


