
/* =================== Global =================== */



/* ========== Typography ========== */


.dark-section a {
    color: #EB0089 !important;
}


/* Paragraph spacing fix */
p:last-child {
    margin-bottom: 0;
}

/* Bullet colours */
li::marker {
  color: #D7007F;
}

/* Spacing after bullets */
.elementor-widget-text-editor ul {
    margin-bottom: 0.9rem; /* Adjust as needed */
    margin-block-end: 0.9rem; /* Future-proof for logical spacing */
}

/* Spacing between bullets */
.elementor-widget-text-editor li {
    margin-bottom: 0.6rem; /* Adjust as needed */
    margin-block-end: 0.6rem; /* Future-proof for logical spacing */
}

/* Headings spacing */
.elementor-widget-text-editor h1:not(:first-child),
.elementor-widget-text-editor h2:not(:first-child),
.elementor-widget-text-editor h3:not(:first-child) {
    margin-top: 1.8rem; /* Extra space above only if a heading follows something */
}

/* Smaller space below headings to keep them visually attached to the paragraph */
.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3 {
    margin-bottom: 0.9rem; /* Adjust as needed */
}


/*Chevron size on button */
.elementor-button-icon .e-font-icon-svg {
    height:20px !important;
}





/* =================== Courses Menu Sidebar =================== */


/* Sidebar container */
.courses-sidebar {
    width: 100%;
    background: #EDEEEE;
    padding: 30px 30px 10px 30px;
}

/* Top-level menu */
.course-levels {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Level item */
.course-levels .level-item {
    margin-bottom: 30px;
}

/* Header wrapping the level link & toggle button */
.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*background: #005177;
    padding: 10px;*/
    border-radius: 3px;
}

/* Level name (links to archive page) */
.level-title {
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    flex-grow: 1; /* Ensures it takes up remaining space */
}

/* Hover effect */
.level-title:hover,
.level-title:focus {
    text-decoration: underline;
    color: #000000;
}

/* Toggle button */
.toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 !important;
    background: none !important;
}

/* Arrow styling */
.toggle-button .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    color: #000000;
}

/* Rotate arrow when menu is open */
.course-levels .level-item.open .toggle-button .arrow {
    transform: rotate(180deg);
}

/* Keep menu open if level is active */
.course-levels .level-item.open .course-list {
    display: block !important;
}

/* Course list */
.course-list {
    list-style: none;
    margin: 0;
    padding-left: 15px;
    display: none;
}

/* Default hidden state */
.course-list[hidden] {
    display: none !important;
}

/* Course items */
.course-list li {
    margin-top: 5px;
}

/* Course links */
.course-list li a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    border-radius: 3px;
    transition: background 0.3s ease;
}

/* Hover & focus states */
.course-list li a:hover,
.course-list li a:focus {
    text-decoration: underline;
}

/* Highlight active course */
.course-list li .current-course {
    color: #bd006e;
    font-weight: bold;
    display: block;
    padding: 5px 10px;
}