/* Single Course addon - hides the multi-course entry points.
   Linked from the active theme only while the addon is active. */

/* Header: the "Courses" dropdown (categories + All Courses). */
.main-nav-wrap .nav-item:has(#navbarDropdown1),
.main-nav-wrap .nav-item:has(> a[href*="home/courses"]) {
    display: none !important;
}

/* Any remaining link into the catalogue, header or footer. */
a[href*="home/courses"],
.ft2-nav-link[href*="home/courses"] {
    display: none !important;
}

/* The footer's "Top categories" column: with its links hidden the heading
   floats over empty space and the footer grid looks misaligned. Category
   links carry ?category=, which the Useful-links column never does, so this
   targets only that column. */
.lms2-footer-section [class*="col-"]:has(a[href*="courses?category="]) {
    display: none !important;
}

/* Search. With one course there is nothing to search for, and /home/search is
   routed to that course anyway - so the box could only ever look like it had
   done nothing. Desktop and mobile variants. */
.header-search,
.search-container,
.search-input,
.header-search-icon,
.search-item,
.m-search-icon,
.mobile-search,
.search-btn {
    display: none !important;
}

/* Home page blocks that list many courses or categories. */
.lms-category-type1,
.home1-section-title:has(+ .row .lms-category-type1) {
    display: none !important;
}