/* General styling for material items */
.material-item {
    font-size: 18px;
    text-decoration: none;
    color: #2980b9;
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer; /* Ensure the entire section is clickable */
}

/* Hover effect for material items */
.material-item:hover {
    background-color: #d1e8ff;
}

/* Styling for collapsible content */
#extra-material-links, #voortgang-links {
    display: none; /* Initially hidden */
    overflow: hidden; /* Hide overflow for smooth transitions */
}

/* Expanded state */
#extra-material-links.expanded, #voortgang-links.expanded {
    display: block; /* Show when expanded */
}

/* Icon rotation effect for expanded state */
#extra-material-icon, #voortgang-icon {
    transition: transform 0.3s ease; /* Smooth rotation */
    font-weight: bold;
}

#extra-material-icon.rotated, #voortgang-icon.rotated {
    transform: rotate(135deg); /* Rotate icon */
}

#extra-material .icon, #voortgang .icon {
    float: right;
    transition: transform 0.3s ease;
    font-weight: bold;
}

#extra-material-links.expanded ul li, #voortgang-links.expanded ul li {
    margin-top: 10px;
}

#study-material {
    margin: 20px 0;
    padding: 15px;
    border: 3px solid orange;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#study-material h1 {
    font-size: 24px;
    color: #2c3e50;
}

.material-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-item {
    font-size: 18px;
    text-decoration: none;
    color: #2980b9;
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.material-item:hover {
    background-color: #d1e8ff;
}

h1 {
    font-size: 2.5em;
    margin: 0;
    margin-bottom: -10px;
}

.week-planner h3 {
    margin-bottom: 5px;
}

.planner-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 40px;
}

.timeline-line {
    border-left: 2px dashed orange;
    margin-left: 10px;
}

.circle {
    position: relative;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 3.5px solid orange;
    border-radius: 50%;
    z-index: 2;
    margin-top: 20px; /* Adjust this to align circles with the content */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: -16px;
}

.circle .icon {
    font-size: 20px;
    font-family: "Roboto";
    font-weight: bold;
    color: orange;
    transition: transform 0.3s ease, color 0.3s ease, margin-bottom 0.3s ease, margin-right 0.3s ease, margin-top 0.3s ease;
    margin-top: -0.03125em;
    margin-right: -0.03125em;
    margin-bottom: 0;
}

.circle.expanded .icon {
    transform: rotate(135deg); /* Rotate the "+" to form an "x" */
    color: white;
    margin-bottom: -0.15em;
    margin-right: -0.075em;
    margin-top: -0.0625em;
}

.circle.expanded {
    background-color: orange;
    color: white;
}

.circle:hover {
    background-color: orange; /* Change background to orange */
    color: white; /* Ensure text inside the circle is white */
}

.circle:hover .icon {
    color: white; /* Change the plus symbol to white */
}

.week-planner {
    position: relative;
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-left: 20px; /* Creates space for the timeline */
    overflow: hidden; /* Ensure overflow is hidden for the animation */
    transition: max-height 0.3s ease, padding 0.3s ease; /* Transition both max-height and padding */
}

.headings {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.week-planner h2 {
    margin: 0;
}

.week-planner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.week-planner ul li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.week-planner ul li a {
    color: #ff9800;
    text-decoration: none;
}

.week-planner ul li a:hover {
    text-decoration: underline;
}

.collapsed .headings + ul {
    display: none;
}

.week-planner.collapsed {
    max-height: 75px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0;
    padding-bottom: 0;
}

.toggle-headings {
    cursor: pointer;
    padding-top: 20px;
    padding-bottom: 10px;
}

.week-planner.expanded {
    max-height: 1000px; /* Adjust based on content size */
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0;
    padding-bottom: 10px;
    transition: max-height 0.3s ease;
}

.button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#extra-links {
    display: none; /* Initially hidden */
}

#extra-links.expanded {
    display: block; /* Show when expanded */
}

#extra-links.expanded ul li {
    margin-top: 10px;
}

#extra-links.collapsed {
    display: none; /* Ensure it's hidden when collapsed */
}

#extra-material {
    cursor: pointer;
}

#extra-icon, #extra-material-icon, #voortgang-icon {
    transition: transform 0.3s ease; /* Smooth transition for rotation */
    font-family: "Roboto";
}

#extra-icon.rotated, #extra-material-icon.rotated {
    transform: rotate(135deg);
}


@media screen and (max-width: 768px) {

.content-border {
    width: 100%;
}

h1 {
    margin-bottom: -15px;
}

}