/* Force table widths - nuclear option */
.md-typeset table:not([class]) {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 100% !important;
}

.md-typeset table:not([class]) td:first-child,
.md-typeset table:not([class]) th:first-child {
  width: 20% !important;
  min-width: 20% !important;
}

.md-typeset table:not([class]) td:nth-child(2),
.md-typeset table:not([class]) th:nth-child(2) {
  width: 25% !important;
  min-width: 25% !important;
}

.md-typeset table:not([class]) td:nth-child(3),
.md-typeset table:not([class]) th:nth-child(3) {
  width: 55% !important;
  min-width: 55% !important;
}

.modal-bg {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.0);
  justify-content: center; align-items: center;
}
.modal-bg.active { display: flex; }
.modal-content,
.modal-content h2,
.modal-content h4,
.modal-content p {
  color: #fff;
}
.modal-content {
  background: rgba(0,0,0,0.9); /* transparent popup */
  padding: 32px;
  border-radius: 12px;
  max-width: 600px;
  min-width: 400px;
  text-align: center;
  border: 2px solid #fff;           /* white border */
  box-shadow: 0 4px 24px rgba(0,0,0,0.3); /* subtle shadow */
  position: relative;
}
.modal-content p {
  text-align: left;        /* Left align description */
  margin-top: 16px;
}
.close-btn {
  position: absolute;
  top: -12px; right: 4px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

/* Beginner - Green */
.grid.cards.newcomer > ul > li:hover {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.grid.cards.newcomer > ul > li {
    border-left-color: #4CAF50 !important;
}

/* Intermediate - Orange/Yellow */
.grid.cards.intermediate > ul > li:hover {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: #FF9800;
}

.grid.cards.intermediate > ul > li {
    border-left-color: #FF9800 !important;
}

/* Advanced - Red */
.grid.cards.proficient > ul > li:hover {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #F44336;
}

.grid.cards.proficient > ul > li {
    border-left-color: #F44336 !important;
}