/*body{*/

/*background:#f4f6fb;*/

/*font-family:'Segoe UI',sans-serif;*/

/*transition:.3s;*/

/*}*/

/*.main-content{*/

/*min-height:90vh;*/

/*}*/

/*.footer{*/

/*padding:20px;*/

/*background:#0d6efd;*/

/*color:white;*/

/*}*/

/*.dark{*/

/*background:#121212;*/

/*color:white;*/

/*}*/

/*.dark .navbar{*/

/*background:#1f1f1f !important;*/

/*}*/

/*.dark .footer{*/

/*background:#1f1f1f;*/

/*}*/
:root {
  --stu-ink: #152f45;
  --stu-blue: #075b94;
  --stu-blue-deep: #083b63;
  --stu-red: #e94f4b;
  --stu-orange: #ef8a3c;
  --stu-green: #19876d;
  --stu-paper: #f2f6f8;
  --stu-line: #dbe5eb;
  --stu-muted: #6e7e89;
  --sidebar-width: 252px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--stu-paper);
  color: var(--stu-ink);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

.stu-navbar {
  position: sticky;
  z-index: 1030;
  top: 0;
  height: 68px;
  background: var(--stu-blue-deep);
  box-shadow: 0 4px 18px rgba(8, 59, 99, 0.16);
}

.stu-navbar .navbar-brand img {
  object-fit: contain;
}
.stu-navbar .navbar-brand span {
  font-size: 0.94rem;
}

.wrapper {
  display: flex;
  min-height: calc(100vh - 68px);
}

.sidebar {
  position: sticky;
  top: 68px;
  display: flex;
  flex: 0 0 var(--sidebar-width);
  flex-direction: column;
  width: var(--sidebar-width);
  height: calc(100vh - 68px);
  padding: 20px 14px 14px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--stu-line);
  transition:
    flex-basis 0.24s ease,
    width 0.24s ease,
    margin 0.24s ease;
}

.sidebar-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 9px 22px;
}
.sidebar-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--stu-blue);
  color: #fff;
  font-size: 19px;
}
.sidebar-identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.sidebar-identity-copy strong {
  color: var(--stu-ink);
  font-size: 0.9rem;
}
.sidebar-identity-copy small {
  color: var(--stu-muted);
  font-size: 0.72rem;
}
.sidebar-label {
  margin: 0 10px 9px;
  color: #8997a1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sidebar-label-spaced {
  margin-top: 22px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  color: #425360;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.sidebar-nav a i {
  width: 20px;
  color: #72828d;
  font-size: 1rem;
  text-align: center;
}
.sidebar-nav a:hover {
  transform: translateX(2px);
  background: #eef5f8;
  color: var(--stu-blue-deep);
}
.sidebar-nav a.active {
  background: #e7f1f7;
  color: var(--stu-blue-deep);
  font-weight: 700;
}
.sidebar-nav a.active i {
  color: var(--stu-red);
}
.sidebar-nav .nav-external {
  margin-left: auto;
  font-size: 0.75rem;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 10px 2px;
  color: var(--stu-muted);
  font-size: 0.7rem;
}
.sidebar-footer strong {
  margin-left: auto;
  color: #9ba8b0;
  font-size: 0.67rem;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35a67e;
  box-shadow: 0 0 0 3px #e3f4ed;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 42px);
}
.sidebar.hide {
  flex-basis: 0;
  width: 0;
  min-width: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  border-right: 0;
  overflow: hidden;
}
.stu-footer,
.footer {
  padding: 14px;
  background: var(--stu-blue-deep);
  color: #e9f2f7;
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 767.98px) {
  .stu-navbar {
    height: 60px;
  }
  .wrapper {
    min-height: calc(100vh - 60px);
  }
  .sidebar {
    position: fixed;
    z-index: 1020;
    top: 60px;
    bottom: 0;
    height: calc(100vh - 60px);
    box-shadow: 12px 0 28px rgba(8, 59, 99, 0.11);
    transform: translateX(0);
    transition: transform 0.24s ease;
  }
  .sidebar.hide {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    margin-left: 0;
    padding-right: 14px;
    padding-left: 14px;
    border-right: 1px solid var(--stu-line);
    transform: translateX(-100%);
  }
  .content {
    width: 100%;
    padding: 19px 14px;
  }
}
/*Code CSS cho courses*/

/* =========================================================
   STU ONLINE EXAM - COURSE PAGE
   Chỉ áp dụng cho trang courses.html
========================================================= */

.course-page {
    --course-primary: #0756b5;
    --course-primary-light: #eaf3ff;
    --course-success: #168653;
    --course-border: #e5eaf0;
    --course-text: #243247;
    --course-muted: #778397;

    padding-top: 32px !important;
    padding-bottom: 48px !important;
    color: var(--course-text);
}

/* =========================
   PAGE HEADER
========================= */

.course-page h2 {
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -0.5px;
    color: #172b4d;
}

.course-page .text-muted {
    color: var(--course-muted) !important;
}

.course-page .badge.rounded-pill {
    font-weight: 650;
    letter-spacing: 0.1px;
}

/* =========================
   COURSE CARD
========================= */

.course-page > .row > [class*="col-"] > .card {
    border: 1px solid var(--course-border) !important;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 55, 90, 0.055) !important;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.course-page > .row > [class*="col-"] > .card:hover {
    transform: translateY(-4px);
    border-color: #cbdcf2 !important;
    box-shadow: 0 12px 28px rgba(25, 55, 90, 0.11) !important;
}

.course-page > .row > [class*="col-"] > .card > .card-body {
    padding: 24px !important;
}

.course-page .card-title,
.course-page h5 {
    color: #172b4d;
    line-height: 1.45;
    letter-spacing: -0.2px;
}

.course-page h5 {
    font-size: 1.12rem;
    font-weight: 750;
}

.course-page .card-body > p {
    font-size: 0.9rem;
    line-height: 1.65;
}

/* =========================
   BADGES
========================= */

.course-page .badge.bg-primary-subtle {
    background: #e8f1ff !important;
    color: #0756b5 !important;
}

.course-page .badge.bg-light {
    background: #f1f4f8 !important;
    color: #68768a !important;
    font-weight: 650;
}

.course-page .badge.bg-white {
    background: #fff !important;
}

/* =========================
   SECTION HEADINGS
========================= */

.course-page h6 {
    font-size: 0.96rem;
    font-weight: 750;
    color: #26364b;
}

.course-page h6 i {
    font-size: 1rem;
}

.course-page hr {
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0.65;
}

/* =========================
   OFFERING CARD
========================= */

.course-page .bg-light.bg-opacity-50 {
    background: #f8faff !important;
}

.course-page .border.rounded-3 {
    border-color: var(--course-border) !important;
    border-radius: 11px !important;
}

.course-page .bg-light.bg-opacity-50 {
    padding: 14px !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.course-page .bg-light.bg-opacity-50:hover {
    background: #f0f6ff !important;
    border-color: #c9ddf7 !important;
}

/* =========================
   EMPTY STATE
========================= */

.course-page .text-center.py-3 {
    background: #f8fafc !important;
    border: 1px dashed #d7e0eb !important;
    border-radius: 10px !important;
    padding: 18px 12px !important;
}

.course-page .text-center.py-3 i {
    font-size: 1.1rem;
    color: #8996a8 !important;
}

.course-page .text-center.py-3 p {
    margin-top: 6px !important;
    font-size: 0.85rem;
}

/* =========================
   EXAM ITEM
========================= */

.course-page .d-flex.flex-column.gap-2 > .border {
    padding: 15px !important;
    background: #fff;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.course-page .d-flex.flex-column.gap-2 > .border:hover {
    border-color: #c6d9f3 !important;
    background: #fcfdff;
    box-shadow: 0 3px 10px rgba(25, 55, 90, 0.045);
}

.course-page .d-flex.flex-column.gap-2 > .border > .fw-semibold {
    font-size: 0.94rem;
    line-height: 1.5;
    color: #26364b;
}

/* =========================
   ACTION BUTTONS
========================= */

.course-page .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 650;
    transition: all 0.2s ease;
}

.course-page .btn-primary {
    background: #0965cf;
    border-color: #0965cf;
}

.course-page .btn-primary:hover {
    background: #064fa8;
    border-color: #064fa8;
    transform: translateY(-1px);
}

.course-page .btn-success {
    background: #168653;
    border-color: #168653;
}

.course-page .btn-success:hover {
    background: #106c42;
    border-color: #106c42;
    transform: translateY(-1px);
}

.course-page .btn-outline-success {
    color: #168653;
    border-color: #168653;
    background: #fff;
}

.course-page .btn-outline-success:hover {
    color: #fff;
    background: #168653;
    border-color: #168653;
}

/* =========================
   CARD FOOTER
========================= */

.course-page .card-footer {
    padding-top: 12px !important;
    padding-bottom: 18px !important;
    border-top: 1px solid #f0f2f5 !important;
}

.course-page .card-footer .small {
    font-size: 0.77rem;
    line-height: 1.55;
    color: #8792a2 !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 767.98px) {

    .course-page {
        padding-top: 20px !important;
    }

    .course-page h2 {
        font-size: 1.45rem;
    }

    .course-page > .row > [class*="col-"] > .card > .card-body {
        padding: 18px !important;
    }

    .course-page .d-flex.flex-wrap.gap-2 {
        gap: 8px !important;
    }

    .course-page .btn {
        min-height: 38px;
    }
}

@media (max-width: 380px) {

    .course-page .d-flex.flex-wrap.gap-2 > .btn {
        width: 100%;
    }
}
