.container-programmes {
    display: flex;
    width: 100%;
    gap: 20px;
}

.sidebar-programmes,
.content-programmes {
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar-programmes {
    /* adjust this value to change the width of the sidebar */
    width: 40%;
    /* changed this value */
    background: #f8f9fa;
}

.table-programmes {
    background: #f8f9fa;
}

.sidebar-programmes ul {
    list-style: none;
    padding: 0;
}

.sidebar-programmes ul li {
    margin: 10px 0;
    padding: 10px;
    background: #345276;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.sidebar-programmes ul li:hover {
    transform: translateX(10px);
    background: #007bff;
}

.sidebar-programmes ul li a {
    text-decoration: none;
    color: white;
    display: block;
    font-size: 13px;
}


/* Loading Animation */

.programmes-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #5539b4;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5539b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Programme Links */

.programme-link {
    color: #5539b4;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin: 3px 0;
    padding: 2px 5px;
    border-radius: 3px;
}

.programme-link:hover {
    color: white;
    background-color: #5539b4;
    transform: translateX(3px);
}


/* View More Button */

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 26px 5px 15px;
    background-color: #5539b4;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background-color: #3a2780;
    transform: scale(1.05);
}

.view-more-btn span {
    font-size: 0.8em;
}


/* Empty and Error States */

.no-programmes-found,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.no-programmes-found img,
.error-state img {
    width: 100px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.no-programmes {
    color: #666;
    font-style: italic;
}

.retry-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #5539b4;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.retry-btn:hover {
    background-color: #3a2780;
}


/* Sidebar Load Animation */

.sidebar-programmes.loaded ul li {
    animation: fadeInLeft 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Add delay for each list item */

.sidebar-programmes.loaded ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.sidebar-programmes.loaded ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.sidebar-programmes.loaded ul li:nth-child(3) {
    animation-delay: 0.3s;
}


/* Add more as needed */


/* first faculty link active by defaul */

.sidebar-programmes ul li.active-faculty {
    background-color: orange !important;
}

.sidebar-programmes ul li.active-faculty a {
    color: #333 !important;
}

.sidebar-programmes ul li.active-faculty:hover {
    background-color: orange !important;
    transform: translateX(10px);
}

.content-programmes {
    flex: 1;
}

.title-programmes {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    padding-left: 30px;
    color: #5539b4;
}

.title-programmes::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #5539b4;
    clip-path: polygon(0 1, 100% 0, 0 100%);
}

.note-programmes {
    margin-top: 20px;
    padding: 10px;
    background: #ffefba;
    color: black;
    border-left: 4px solid orange;
}


/* Toggle Link */

.toggle-container-programmes {
    max-width: 600px;
    margin-bottom: 10px;
    display: inline-block;
}

.toggle-wrapper-programmes {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: sans-serif;
    background-color: #fdfdfd;
    transition: background-color 0.3s;
    /* ...existing styles... */
    border-bottom: 1px solid #0a0909;
    /* underline */
    margin-top: 20px;
}

.toggle-wrapper-programmes,
.toggle-content-programmes {
    border-bottom: 1px solid #0a0909;
    /* You can change the color as needed */
    padding-bottom: 10px;
    /* Optional: adds spacing between text and underline */
    margin-bottom: 10px;
    /* Optional: adds spacing below the underline */
}

.toggle-title-programmes {
    color: #0a0909;
}

.toggle-content-programmes li {
    color: #0a0909;
}

.toggle-wrapper-programmes:hover {
    background-color: #f0f0f0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    width: 20px;
}

.bookmark-icon {
    width: 20px;
}

.toggle-wrapper-programmes.active .toggle-icon {
    transform: rotate(90deg);
}

.toggle-content-programmes {
    display: none;
    animation: slideIn 0.4s forwards;
    margin-top: 6px;
    /* ...existing styles... */
    border-bottom: 1px solid #131212;
    /* underline */
    padding-bottom: 10px;
}

.toggle-wrapper-programmes.active+.toggle-content-programmes {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle-content-programmes ul {
    margin: 0;
    padding: 0;
}

.toggle-content-programmes li {
    text-align: left;
    /* Ensures left alignment */
}

.toggle-content-programmes a {
    display: inline-block;
    color: #da7f1f;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.3s, text-decoration 0.3s;
}

.toggle-content-programmes a:hover {
    color: #0056b3;
}

@media (min-width: 800px) {
    .itemprogram.activeprogram .item-contentprogram {
        padding: 30px;
    }
}


/* adding an arrow */

.animated_link4 a:before {
    position: relative;
    content: "";
    transition: ease .5s;
    color: grey;
    font-size: 0em;
}

.animated_link4 a:hover:before {
    font-family: "FontAwesome";
    font-size: 1em;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    color: white;
    transition: ease .5s;
}