* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #333;
  font-size: 14px;
}

a {
  color: #0874b8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 14px;
  background: #fff;
  border-bottom: 1px solid #d4d4d4;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-weight: bold;
  letter-spacing: -1px;
}

.logo .school {
  color: #d71920;
  font-size: 32px;
}

.logo .portal {
  color: #168245;
  font-size: 48px;
  line-height: 1;
}

.user-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #222;
  font-size: 14px;
}

.user-links a {
  color: #0b7f14;
  border-bottom: 1px dotted #0b7f14;
}

.divider {
  width: 1px;
  height: 28px;
  background: #cfcfcf;
}

.student-bar {
  min-height: 32px;
  background: #d3dadd;
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.identity-tag {
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 6px 18px;
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  padding: 14px 46px 42px 2px;
}

.sidebar {
  width: 300px;
}

.nav-card {
  border: 1px solid #ccc;
  margin-bottom: 10px;
  background: #fff;
}

.nav-title {
  background: #008000;
  color: #fff;
  font-weight: bold;
  padding: 10px 13px;
  font-size: 16px;
}

.nav-card a {
  display: block;
  padding: 9px 13px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

.nav-card a:hover,
.nav-card a.active {
  background: #f0f0f0;
  font-weight: bold;
}

.main {
  min-width: 700px;
}

h1 {
  color: #008bd2;
  font-size: 36px;
  font-weight: normal;
  margin: 15px 0 8px;
}

.intro {
  margin: 0 0 18px;
  color: #444;
  max-width: 1100px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.panel {
  border: 1px solid #d2d2d2;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  padding: 8px 9px 12px;
  min-height: 145px;
}

.panel h2 {
  font-size: 27px;
  line-height: 1.2;
  font-weight: normal;
  color: #666;
  margin: 6px 0 9px;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 9px;
}

.panel p {
  margin: 7px 0;
  line-height: 1.35;
}

.green-link {
  display: inline-block;
  margin-top: 12px;
  color: #008000;
  border-bottom: 1px dotted #008000;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0;
}

th {
  background: #007fa3;
  color: #fff;
  text-align: left;
  padding: 6px;
  font-size: 12px;
}

td {
  border: 1px solid #aeb7bf;
  padding: 6px;
  background: #f5f7fb;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #137333;
  font-size: 12px;
  font-weight: bold;
}

.badge.pending {
  background: #fff4df;
  color: #8a5a00;
}

.badge.danger {
  background: #ffe9e9;
  color: #a10000;
}

.wide-panel {
  grid-column: span 2;
  min-height: 220px;
}

.full-panel {
  grid-column: 1 / -1;
}

.message-box {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
  line-height: 1.3;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input,
select,
textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid #bbb;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
}

textarea {
  min-height: 110px;
}

button,
.btn {
  display: inline-block;
  background: #008000;
  color: #fff;
  border: 0;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.btn.secondary,
button.secondary {
  background: #007fa3;
}

.login-page {
  background: #eef2f4;
  min-height: 100vh;
}

.login-wrap {
  max-width: 440px;
  margin: 70px auto;
}

.login-card {
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  padding: 22px;
}

.flash {
  background: #fff4df;
  border: 1px solid #d7b46a;
  padding: 10px;
  margin: 10px 0;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  border-top: 1px solid #ccc;
  background: #fff;
  padding: 5px 0 8px;
  font-size: 13px;
  color: #555;
}

/* =====================================================
   STUDENT COURSE CONTENT PAGE
   ===================================================== */

.course-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  min-height: 620px;
}

.course-top-bar {
  border-bottom: 1px solid #d5d5d5;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.course-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid #d5d5d5;
  margin-bottom: 12px;
}

.course-tabs a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
}

.course-tabs a:hover {
  color: #008bd2;
  text-decoration: underline;
}

.course-left-menu {
  border-right: 1px solid #d4d4d4;
  padding-right: 12px;
  max-height: 720px;
  overflow-y: auto;
}

.course-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.course-search {
  width: 100%;
  padding: 9px 34px 9px 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 8px;
  color: #333;
}

.unit-block {
  margin-bottom: 12px;
}

.unit-card {
  width: 100%;
  border: 1px solid #b8c0c8;
  border-left: 5px solid #008b8b;
  background: #fff;
  padding: 13px 12px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  border-radius: 3px;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
}

.unit-card.active {
  border: 3px solid #008bd2;
  border-left: 6px solid #008000;
  box-shadow: 0 0 0 1px #005ea8;
}

.unit-arrow {
  font-size: 14px;
  color: #333;
  margin-top: 2px;
  min-width: 14px;
}

.unit-title-text {
  font-size: 14px;
  color: #222;
  line-height: 1.35;
}

.lesson-list {
  padding: 12px 0 4px 28px;
}

.lesson-link {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #333;
  text-decoration: none;
  padding: 9px 8px;
  margin: 4px 0;
  border: 1px solid transparent;
  border-bottom: 1px solid #dce3e8;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  background: #fff;
}

.lesson-link:hover {
  color: #333;
  text-decoration: none;
  background: #f5f8fb;
  border: 1px solid #b8c0c8;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.lesson-link.active {
  background: #f5f8fb;
  border: 1px solid #b8c0c8;
  border-radius: 6px;
}

.lesson-icon {
  color: #444;
  font-size: 18px;
  min-width: 18px;
}

.lesson-empty {
  color: #777;
  padding: 8px 0;
  font-size: 13px;
}

.course-content-area {
  max-width: 850px;
  margin: 0 auto;
}

.content-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.course-title-main {
  font-size: 34px;
  font-weight: normal;
  margin: 0 0 18px;
  color: #111;
}

.green-course-title {
  color: #008000;
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 4px;
}

.video-placeholder {
  width: 260px;
  height: 130px;
  background: #999;
  border-radius: 16px;
  margin: 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
}

.course-info-table {
  margin-top: 18px;
}

.assignment-block {
  border: 1px solid #cfd8dc;
  background: #f8fbff;
  padding: 12px;
  margin-bottom: 10px;
}

.assignment-block h3 {
  margin: 0 0 8px;
  color: #444;
}

.course-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 245px 1fr;
    padding-right: 14px;
  }

  .sidebar {
    width: 245px;
  }

  .dashboard-grid,
  .two-grid {
    grid-template-columns: 1fr;
  }

  .wide-panel {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .course-shell {
    grid-template-columns: 1fr;
  }

  .course-left-menu {
    border-right: 0;
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 12px;
  }
}

@media (max-width: 760px) {
  .top-header {
    height: auto;
    padding: 10px;
    align-items: flex-start;
  }

  .logo .school {
    font-size: 24px;
  }

  .logo .portal {
    font-size: 38px;
  }

  .user-links {
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .layout {
    display: block;
    padding: 10px 10px 55px;
  }

  .sidebar {
    width: 100%;
  }

  .main {
    min-width: 0;
  }

  h1 {
    font-size: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   PROFESSIONAL COURSE CONTENT LAYOUT FIX
   Makes left menu and main content aligned like ILC
   ===================================================== */

.course-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  min-height: calc(100vh - 190px);
  align-items: start;
}

/* Left course menu full professional height */
.course-left-menu {
  border-right: 1px solid #d4d4d4;
  padding: 10px 12px 24px 8px;
  height: calc(100vh - 170px);
  max-height: none;
  overflow-y: auto;
  background: #fff;
}

/* Main course content should not float too far right */
.course-content-area {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-right: 24px;
}

/* Course content cards better width */
.content-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 14px auto;
  border: 1px solid #d2d2d2;
  background: #fff;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

/* Make top navigation cleaner */
.course-top-bar {
  border-bottom: 1px solid #d5d5d5;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.course-tabs {
  padding: 8px 0;
  margin-bottom: 12px;
}

/* Left menu compact professional look */
.course-search-wrap {
  margin-bottom: 12px;
}

.course-search {
  height: 34px;
  font-size: 12px;
}

.unit-card {
  min-height: 50px;
  padding: 10px 11px;
}

.unit-title-text {
  font-size: 13px;
}

.lesson-list {
  padding: 8px 0 4px 28px;
}

.lesson-link {
  padding: 8px 8px;
  margin: 3px 0;
  font-size: 12.5px;
}

/* Better hover rectangle */
.lesson-link:hover {
  background: #f5f8fb;
  border: 1px solid #b8c0c8;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Video centered better */
.video-placeholder {
  margin: 22px auto;
}

/* Keep footer from covering course page */
.footer {
  position: static;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .course-shell {
    grid-template-columns: 1fr;
  }

  .course-left-menu {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 12px;
  }

  .course-content-area {
    padding-right: 0;
  }

  .content-card {
    max-width: 100%;
  }
}

/* =====================================================
   EDIT ACCOUNT PAGE
   ===================================================== */

.edit-account-box {
  width: 620px;
  max-width: 100%;
  background: #f7f7f7;
  border: 1px solid #d6d6d6;
  padding: 18px 20px 28px;
  margin-top: 12px;
}

.edit-account-form {
  max-width: 420px;
  margin: 0 auto;
}

.password-form {
  margin-top: 24px;
}

.account-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  margin-bottom: 10px;
}

.account-row label {
  text-align: right;
  padding-right: 6px;
  font-weight: bold;
  color: #666;
}

.account-row input {
  height: 28px;
  padding: 4px 6px;
  border: 1px solid #777;
  border-radius: 3px;
}

.required {
  color: #000;
}

.account-save-row {
  text-align: center;
  margin-top: 10px;
}

.rounded-save {
  background: #008b13;
  color: #fff;
  border: 0;
  border-radius: 22px;
  padding: 8px 42px;
  font-weight: bold;
  cursor: pointer;
}

.rounded-save:hover {
  background: #00720f;
}

/* =====================================================
   SCHEDULE FINAL TESTS PAGE
   ===================================================== */

.final-test-info {
  max-width: 1250px;
  font-size: 14px;
  line-height: 1.25;
}

.final-test-info p {
  margin: 10px 0;
}

.final-test-info ol,
.final-test-info ul {
  margin-top: 4px;
  margin-bottom: 10px;
  padding-left: 28px;
}

.final-test-info li {
  margin: 2px 0;
}

.final-test-button {
  display: inline-block;
  background: #008000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 22px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 12px;
}

.final-test-button:hover {
  background: #007000;
  text-decoration: none;
}

/* =====================================================
   FINAL TEST SCHEDULING
   ===================================================== */

.final-test-info {
  max-width: 1250px;
  font-size: 14px;
  line-height: 1.25;
}

.final-test-info p {
  margin: 10px 0;
}

.final-test-info ol,
.final-test-info ul {
  margin-top: 4px;
  margin-bottom: 10px;
  padding-left: 28px;
}

.final-test-info li {
  margin: 2px 0;
}

.final-test-button {
  display: inline-block;
  background: #008000;
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 12px;
}

.final-test-button:hover {
  background: #007000;
  text-decoration: none;
}

.final-test-form-box {
  max-width: 760px;
  background: #f7f7f7;
  border: 1px solid #d6d6d6;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* =====================================================
   WITHDRAW COURSES PAGE
   ===================================================== */

.withdraw-button {
  display: inline-block;
  background: #008000;
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: bold;
  text-decoration: none;
  margin: 12px 0;
}

.withdraw-button:hover {
  background: #007000;
}

.withdraw-form-box {
  max-width: 760px;
  background: #f7f7f7;
  border: 1px solid #d6d6d6;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* =====================================================
   COURSE GRADES DETAIL PAGE - ILC STYLE
   ===================================================== */

.grades-course-header {
  border-bottom: 1px solid #d5d5d5;
  margin-bottom: 12px;
}

.grades-course-header h1 {
  color: #111;
  font-size: 24px;
  font-weight: normal;
  margin: 8px 0;
}

.grades-course-tabs {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 8px 0 10px;
  font-size: 14px;
}

.grades-course-tabs a {
  color: #000;
  text-decoration: none;
}

.grades-course-tabs a:hover {
  color: #0874b8;
  text-decoration: underline;
}

.print-link {
  margin-left: auto;
  color: #0874b8 !important;
}

.grades-detail-title {
  color: #111;
  font-size: 28px;
  font-weight: normal;
  margin: 10px 0 24px;
}

.final-grade-box {
  margin-bottom: 28px;
}

.final-grade-box h2 {
  color: #111;
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 20px;
}

.final-grade-item {
  margin-bottom: 28px;
  line-height: 1.5;
  font-size: 13px;
}

.blue-grade {
  color: #0874b8;
  font-weight: bold;
}

.ilc-grades-table-box {
  width: 100%;
  max-width: 1180px;
  border: 1px solid #b9c7d3;
  background: #fff;
}

.ilc-grades-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
}

.ilc-grades-table th {
  background: #f8fbff;
  color: #333;
  border: 1px solid #b9c7d3;
  padding: 10px;
  font-size: 12px;
  font-weight: normal;
  text-align: left;
}

.ilc-grades-table td {
  background: #fff;
  border: 1px solid #b9c7d3;
  padding: 14px;
  vertical-align: top;
}

.grade-item-col {
  width: 300px;
  line-height: 1.45;
}

.weighted-score-col {
  width: 135px;
  text-align: center;
  white-space: nowrap;
}

.grade-percent-col {
  width: 100px;
  text-align: center;
  color: #008000;
  white-space: nowrap;
}

.comments-col {
  width: auto;
  line-height: 1.5;
}

.feedback-label {
  margin-bottom: 12px;
  font-weight: normal;
}

.feedback-content {
  max-width: 720px;
  white-space: normal;
}

.rubric-link {
  color: #0874b8;
  font-size: 12px;
}

.muted-text {
  color: #777;
}

@media print {
  .top-header,
  .student-bar,
  .sidebar,
  .footer,
  .grades-course-tabs {
    display: none !important;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .main {
    min-width: 0;
  }

  .ilc-grades-table-box {
    max-width: 100%;
  }
}

/* =====================================================
   VIEW GRADED RUBRIC PAGE
   ===================================================== */

.rubric-feedback-box {
  background: #fff;
  border: 1px solid #cfd8dc;
  padding: 16px;
  line-height: 1.5;
  max-width: 900px;
}

/* =====================================================
   STUDENT ACTIVITY PAGE
   ===================================================== */

.activity-search-box {
  border: 1px solid #d2d2d2;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  padding: 8px 10px 16px;
  margin-bottom: 14px;
  min-height: 270px;
  max-width: 100%;
}

.activity-search-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.activity-option {
  margin-bottom: 18px;
}

.activity-option > label {
  font-weight: bold;
}

.activity-period-row,
.activity-date-row {
  display: grid;
  grid-template-columns: 85px 160px;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0 20px;
}

.activity-period-row label,
.activity-date-row label {
  text-align: left;
  font-weight: bold;
}

.activity-period-row select,
.activity-date-row input {
  height: 30px;
  padding: 4px 6px;
}

.activity-button-row {
  text-align: center;
  margin-top: 22px;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.activity-table th {
  background: #e9e9e9;
  color: #222;
  border: 1px solid #d0d0d0;
  padding: 9px;
  font-size: 12px;
}

.activity-table td {
  border: 1px solid #d0d0d0;
  background: #fff;
  padding: 12px 6px;
}

.activity-table tr:nth-child(odd) td {
  background: #f0f0f8;
}

.activity-total-row td {
  background: linear-gradient(#e5e2ff, #ffffff) !important;
  font-weight: bold;
}

/* =====================================================
   ADMIN COURSE OUTLINE / TABLE DES MATIÈRES
   ===================================================== */

.course-outline-box {
  max-width: 720px;
  margin-top: 18px;
  background: #fff;
  padding: 10px 0 30px;
}

.outline-course-title {
  text-align: center;
  font-size: 18px;
  color: #000;
  margin-bottom: 8px;
}

.outline-small-line {
  width: 210px;
  height: 1px;
  background: #555;
  margin: 0 auto 45px;
}

.outline-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #666;
  font-size: 14px;
  background: #fff;
}

.outline-table th,
.outline-table td {
  border: 1px solid #777;
  padding: 7px 8px;
  background: #fff;
}

.outline-main-heading {
  text-align: center;
  color: #0000cc;
  text-decoration: underline;
  font-size: 18px;
  font-weight: bold;
  background: #fff;
}

.outline-welcome {
  text-align: center;
  color: red;
  font-weight: bold;
  text-decoration: underline;
  padding: 14px 8px !important;
}

.outline-unit-title {
  text-align: center;
  color: red;
  font-weight: bold;
  text-decoration: underline;
  padding: 13px 8px !important;
}

.outline-dot-cell {
  width: 45px;
  text-align: center;
}

.green-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #008000;
  border-radius: 50%;
}

.outline-lesson-number {
  width: 110px;
  text-align: right;
  font-weight: normal;
  white-space: nowrap;
}

.outline-empty {
  color: #777;
  font-style: italic;
}

/* Clickable lessons in admin course outline */
.outline-lesson-link {
  color: #000;
  text-decoration: none;
}

.outline-lesson-link:hover {
  color: #0874b8;
  text-decoration: underline;
}

/* Video count column in admin course outline */
.outline-video-count {
  width: 80px;
  text-align: center;
  font-weight: bold;
  color: #0874b8;
  white-space: nowrap;
}

.old-exercise-box {
  border: 1px solid #d0d0d0;
  background: #fff;
  padding: 14px;
  margin-bottom: 18px;
}

.old-exercise-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
}

.old-exercise-content,
.old-solution-content {
  background: #f8fbff;
  border: 1px solid #d6e3ec;
  padding: 12px;
  margin-top: 10px;
  line-height: 1.45;
}

.course-tabs {
  margin: 10px 0 14px;
}

.course-tabs a {
  margin-right: 18px;
  color: #005fa3;
  text-decoration: none;
}

.course-tabs a:hover {
  text-decoration: underline;
}

.course-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.course-left-panel {
  border-right: 1px solid #ccc;
  padding-right: 14px;
  max-height: 720px;
  overflow-y: auto;
}

.course-unit-box {
  border: 1px solid #b8c5d6;
  border-left: 5px solid #0087c1;
  background: #f5f8fc;
  padding: 12px;
  margin-bottom: 10px;
  font-weight: bold;
}

.course-unit-box.active {
  border: 2px solid #0087c1;
  border-left: 5px solid green;
  background: #f8fbff;
}

.lesson-list {
  margin-bottom: 16px;
  padding-left: 22px;
}

.lesson-item {
  padding: 9px 4px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.lesson-item a {
  color: #000;
  text-decoration: none;
}

.lesson-item a:hover {
  color: #0070c0;
  text-decoration: underline;
}

.course-main-panel .panel {
  max-width: 820px;
}

/* =====================================================
   ILC STYLE HOVER FOR LESSON TITLES
   ===================================================== */

.lesson-item {
  border: 1px solid transparent;
  border-bottom: 1px solid #dce3e8;
  border-radius: 4px;
  padding: 8px 8px;
  margin: 3px 0;
  transition: all 0.15s ease-in-out;
}

.lesson-item:hover {
  border: 1px solid #f28c28;      /* orange rectangle */
  background: #fff8ef;            /* light orange background */
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.lesson-item:hover a {
  color: #000;
  text-decoration: none;
}

.lesson-item a {
  display: inline-block;
  width: calc(100% - 28px);
  color: #000;
  text-decoration: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 130px;
  padding: 10px 22px;
  background: #ffffff;
  border-bottom: 1px solid #d0d0d0;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo-img {
  height: 110px;
  width: auto;
  display: block;
}

/* ================================
   Global Responsive Fixes
================================ */

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.panel,
.full-panel {
  overflow-x: auto;
}

/* Prevent big tables from breaking the page */
table th,
table td {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Header responsive */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .site-logo-img {
    height: 75px;
  }

  .user-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Sidebar + main content responsive */
@media (max-width: 900px) {
  .layout {
    display: block;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 12px;
  }

  .main {
    width: 100%;
    padding: 10px;
  }

  .nav-card a {
    display: block;
    padding: 10px;
  }
}

/* Forms responsive */
@media (max-width: 768px) {
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  input,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
  }

  button,
  .btn {
    margin-bottom: 6px;
  }
}

/* Student dashboard responsive */
@media (max-width: 1150px) {
  .student-dashboard-layout {
    grid-template-columns: 1fr !important;
  }

  .right-column {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .important-message-panel {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* Very small phones */
@media (max-width: 520px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .site-logo-img {
    height: 60px;
  }

  table {
    font-size: 12px;
  }

  .badge {
    font-size: 11px;
    padding: 3px 6px;
  }

  .mail-unread-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
  }
}