body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
    max-width: 1400px;
    margin: auto;
}
header, footer {
    color: black;
}

h2 {
    color: #444;
}
article {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

article h3 {
    margin-top: 0;
}

article ul {
    padding-left: 20px;
}

/* Toggle */

.language-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.language-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.language-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.language-toggle label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + label {
    background-color: #2196F3;
}

input:focus + label {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + label:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* details summary */

details summary { 
  cursor: pointer;
}

details summary > * {
  display: inline;
}

details > summary {
    list-style-type: '▶️';
}

details[open] > summary {
    list-style-type: '🔽';
}

details[open] summary ~ * {
  animation: sweep .5s ease-in-out;
}

@keyframes sweep {
  0%    {opacity: 0; margin-left: -10px}
  100%  {opacity: 1; margin-left: 0px}
}

/* Courses */
.courses-container {
    width: 100%;
    display: grid;
    grid-template-columns: 150px auto;
    gap: 0px;
    padding: 10px;
}
.course {
    display: contents;
}
.course-code, .course-name {
    padding: 10px;
}
.course-code {
    text-align: left;
    font-weight: bold;
}
.course-name {
    text-align: left;
    margin-right: 15px;
}

    /* Apply a background color to even-numbered children */
.course:nth-child(even) > * {
    background-color: #f2f2f2;
}
/* Apply a different background color to odd-numbered children */
.course:nth-child(odd) > * {
    background-color: #cecece;
}