/* ============================================
   Course Search Styles - Modern Design
   ============================================ */

.course-search-page {
    min-height: 100vh;
    background: #f5f5f5;
}

/* ============================================
   Fullscreen Loader
   ============================================ */

.course-fullscreen-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #8d1d39 0%, #6e1629 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.course-fullscreen-loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.course-fullscreen-loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.course-fullscreen-loader__logo {
    width: 90px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.course-fullscreen-loader__spinner {
    display: flex;
    gap: 0.5rem;
}

.course-fullscreen-loader__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    animation: loaderBounce 1.2s ease-in-out infinite;
}

.course-fullscreen-loader__dot:nth-child(2) {
    animation-delay: 0.15s;
}

.course-fullscreen-loader__dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.course-fullscreen-loader__text {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0;
    transition: opacity 0.2s ease;
}

/* ============================================
   API Unavailable Fullscreen
   ============================================ */

.course-unavailable {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8d1d39 0%, #6e1629 60%, #1a1a2e 100%);
    padding: 2rem;
}

.course-unavailable__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    max-width: 400px;
}

.course-unavailable__logo {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.course-unavailable__icon {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
}

.course-unavailable__icon svg {
    width: 100%;
    height: 100%;
}

.course-unavailable__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.course-unavailable__text {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.course-unavailable__divider {
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 1.5rem;
}

.course-unavailable__spinner {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.course-unavailable__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    animation: unavailable-bounce 1.4s infinite ease-in-out both;
}

.course-unavailable__dot:nth-child(1) { animation-delay: -0.32s; }
.course-unavailable__dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes unavailable-bounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.course-unavailable__status {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1rem;
}

.course-unavailable__hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    line-height: 1.5;
}

/* (Type bar removed - type switch is now in hero) */

/* ============================================
   Type Switch (in filter panel sidebar)
   ============================================ */

.course-inline-filters__type-switch {
    display: flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.course-type-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-type-switch svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.course-type-switch:hover {
    color: #333;
}

.course-type-switch--active {
    background: #8d1d39;
    color: white;
    box-shadow: 0 1px 3px rgba(141, 29, 57, 0.3);
}

.course-type-switch--active:hover {
    color: white;
}

/* Active Filter Chips (in inline filter bar) */
.course-inline-filters__chips {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
}

.course-inline-filters__chips::-webkit-scrollbar {
    display: none;
}

.course-header-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem 0.25rem 0.375rem;
    background: rgba(141, 29, 57, 0.08);
    border: 1px solid rgba(141, 29, 57, 0.2);
    border-radius: 100px;
    color: #8d1d39;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-header-chip:hover {
    background: rgba(141, 29, 57, 0.15);
}

.course-header-chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(141, 29, 57, 0.12);
    border-radius: 50%;
    flex-shrink: 0;
}

.course-header-chip__icon svg {
    width: 10px;
    height: 10px;
    opacity: 1;
}

.course-header-chip__label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-header-chip__label strong {
    opacity: 0.6;
    font-weight: 500;
}

.course-header-chip__close {
    width: 12px;
    height: 12px;
    opacity: 0.4;
    margin-left: 0.125rem;
    flex-shrink: 0;
}

.course-header-chip:hover .course-header-chip__close {
    opacity: 1;
}

.course-header-chip--clear {
    background: rgba(141, 29, 57, 0.05);
    border-style: dashed;
}

/* Filter Button (right) */
.course-sticky-header__btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    min-height: 44px;
    background: white;
    border: none;
    border-radius: 8px;
    color: #8d1d39;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.course-sticky-header__btn svg {
    width: 14px;
    height: 14px;
}

.course-sticky-header__btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Responsive Sticky Header */
@media (max-width: 768px) {
    .course-sticky-header__container {
        gap: 0.5rem;
    }

    .course-type-switch span {
        display: none;
    }

    .course-type-switch {
        padding: 0.375rem;
    }

    .course-sticky-header__btn span {
        display: none;
    }

    .course-sticky-header__btn {
        padding: 0.5rem;
    }

    .course-header-chip {
        font-size: 0.625rem;
        padding: 0.1875rem 0.375rem 0.1875rem 0.25rem;
    }

    .course-header-chip__icon {
        width: 16px;
        height: 16px;
    }

    .course-header-chip__icon svg {
        width: 9px;
        height: 9px;
    }

    .course-header-chip__label strong {
        display: none;
    }
}

@media (max-width: 480px) {
    .course-sticky-header {
        padding: 0.375rem 0;
    }

    .course-sticky-header__container {
        padding: 0 0.5rem;
    }

    .course-header-chip {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================
   Hero Section - 50/50 Layout
   ============================================ */

.course-hero {
    padding: 0;
}

/* Fullwidth background image hero - legacy (no longer used) */
.course-hero--fullbg {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Compact hero - NOT full viewport */
.course-hero--compact {
    position: relative;
    overflow: hidden;
    height: auto !important;
    min-height: 0 !important;
}

.course-hero--compact .course-hero__bg img {
    /* Ensure image covers but doesn't dictate height */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-hero--compact .course-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3.5rem 2rem 3rem;
    max-width: 700px;
    margin: 0 auto;
    height: auto !important;
    min-height: auto !important;
}

.course-hero--compact .course-hero__logo {
    position: static;
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.course-hero__controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Hero Type Switch */
.course-hero__type-switch {
    display: flex;
    flex-shrink: 0;
    border-right: 1px solid #e5e5e5;
}

.course-hero__type-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-hero__type-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.course-hero__type-btn:hover {
    color: #555;
    background: #fafafa;
}

.course-hero__type-btn--active {
    color: #8d1d39;
    background: rgba(141,29,57,0.06);
}

.course-hero__type-btn--active:hover {
    color: #8d1d39;
    background: rgba(141,29,57,0.08);
}

/* Search bar inside unified control - use flexbox instead of absolute positioning */
.course-hero__controls .course-search-bar {
    flex: 1;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.course-hero__controls .course-search-bar__icon {
    position: static;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #999;
    margin-left: 0.875rem;
    pointer-events: none;
}

.course-hero__controls .course-search-bar__input {
    flex: 1;
    padding: 0.875rem 0.5rem;
    font-size: 1rem;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    min-width: 0;
}

.course-hero__controls .course-search-bar__input:focus {
    box-shadow: none;
}

.course-hero__controls .course-search-bar__btn {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex-shrink: 0;
    width: 44px;
    height: 100%;
    margin: 0;
    border-radius: 0 14px 14px 0;
}

/* Tile Navigation (horizontal scroll under hero) */
.course-tile-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 0.75rem 0;
}

.course-tile-nav__scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
}

.course-tile-nav__scroll::-webkit-scrollbar {
    display: none;
}

.course-tile-nav .course-dept-tiles {
    display: none;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: max-content;
}

.course-tile-nav .course-dept-tiles.is-visible {
    display: flex;
}

.course-tile-nav .course-dept-tile {
    width: 150px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 8px;
    aspect-ratio: auto;
}

.course-tile-nav .course-dept-tile__name {
    font-size: 0.6875rem;
}

.course-tile-nav .course-dept-tile__count {
    display: none;
}

/* Background image layer */
.course-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.course-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay for readability */
.course-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(141, 29, 57, 0.92) 0%,
        rgba(110, 22, 41, 0.80) 40%,
        rgba(26, 26, 46, 0.75) 100%
    );
}

/* Hero loading overlay */
.course-hero__loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(110, 22, 41, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroLoadFadeIn 0.15s ease;
}

.course-hero__loading--fade {
    animation: heroLoadFadeOut 0.3s ease forwards;
}

.course-hero__loading-spinner {
    display: flex;
    gap: 0.5rem;
}

.course-hero__loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    animation: heroLoadBounce 1.2s ease-in-out infinite;
}

.course-hero__loading-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.course-hero__loading-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes heroLoadBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes heroLoadFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroLoadFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Content sits above overlay */
.course-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Top bar: stacked — logo+tabs row, then search centered below */
.course-hero__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 2rem 0;
    flex-shrink: 0;
}

.course-hero__bar-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-hero__bar .course-hero__logo {
    position: static;
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.course-hero__bar .course-type-tabs {
    flex-shrink: 0;
    margin-bottom: 0;
}

.course-hero__bar .course-type-tab {
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

.course-hero__bar .course-type-tab svg {
    width: 22px;
    height: 22px;
}

.course-hero__bar .course-type-tab__text strong {
    font-size: 0.875rem;
}

.course-hero__bar .course-type-tab__text small {
    font-size: 0.65rem;
}

.course-hero__bar .course-search-bar {
    width: 100%;
    max-width: 500px;
}

/* Tiles fill remaining space, vertically centered */
.course-hero__tiles {
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1.5rem 0.75rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.course-hero__tiles .course-dept-tiles {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.course-hero__tiles .course-dept-tile {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
}

.course-hero__tiles .course-dept-tile__name {
    font-size: 0.7rem;
}

.course-hero__tiles .course-dept-tile__count {
    display: none;
}

/* Hide old split layout elements */
.course-hero__compact-inner,
.course-hero__compact-image,
.course-hero__top {
    display: none;
}

@media (max-width: 1200px) {
    .course-hero__tiles .course-dept-tiles {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1024px) {
    .course-hero__tiles .course-dept-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
    .course-hero__bar {
        padding: 1rem;
    }
    .course-hero__tiles {
        padding: 0 1rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .course-hero--fullbg {
        height: auto;
        min-height: 0;
    }
    .course-hero__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    .course-hero__bar .course-hero__logo {
        width: 40px;
        align-self: flex-start;
    }
    .course-hero__bar .course-search-bar {
        max-width: none;
    }
    .course-hero__bar .course-type-tabs {
        width: 100%;
    }
    .course-hero__tiles .course-dept-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
    .course-hero__tiles {
        padding: 0 0.75rem 0.75rem;
    }
}

/* Legacy hero container - not used in compact layout */
.course-hero__container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.course-hero__filters {
    position: relative;
    padding: 2.5rem 2rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    max-width: 600px;
}

.course-hero__logo {
    position: absolute;
    top: 1.5rem;
    left: 4rem;
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
    .course-hero__logo {
        left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .course-hero__logo,
    .course-hero--compact .course-hero__logo {
        width: 40px;
    }
    .course-hero__compact-inner {
        padding: 1rem;
    }
}

/* ============================================
   Filter Sidebar
   ============================================ */

.course-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-sidebar-backdrop--open {
    display: block;
    opacity: 1;
}

.course-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    background: linear-gradient(180deg, #8d1d39 0%, #6e1629 100%);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
}

.course-sidebar--open {
    transform: translateX(0);
}

.course-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.course-sidebar__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.course-sidebar__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.course-sidebar__close:hover {
    background: rgba(255,255,255,0.25);
}

.course-sidebar__close svg {
    width: 18px;
    height: 18px;
}

.course-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.course-sidebar__filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-sidebar__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Filter open button in results header */
.course-filter-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.course-filter-open-btn:hover {
    border-color: #8d1d39;
    color: #8d1d39;
}

.course-filter-open-btn svg {
    width: 16px;
    height: 16px;
}

.course-filter-open-btn__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #8d1d39;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.course-results-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sidebar search field */
.course-sidebar__search {
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.course-sidebar__search-bar {
    position: relative;
}

.course-sidebar__search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #888;
    pointer-events: none;
}

.course-sidebar__search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.8125rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    outline: none;
}

.course-sidebar__search-input:focus {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.3);
}

/* Sidebar filter labels light on dark */
.course-sidebar .course-filter-label {
    color: rgba(255,255,255,0.7);
}

/* Sidebar weekday chips */
.course-sidebar .course-weekday-chip {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.course-sidebar .course-weekday-chip:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.course-sidebar .course-weekday-chip--active {
    background: white;
    border-color: white;
    color: #8d1d39;
}

.course-hero__header {
    margin-bottom: 0.5rem;
}

.course-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.course-hero__subtitle {
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.course-hero__image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
}

.course-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.course-hero__image:hover img {
    transform: scale(1.03);
}

.course-hero__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 2rem 3rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
    color: white;
}

.course-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.course-hero__subtitle {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ============================================
   Container
   ============================================ */

.course-search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

/* ============================================
   Department Info Section - Full Image Background
   ============================================ */

.course-department-info {
    background: #f5f5f5;
    padding: 3rem 1.5rem;
}

.course-department-info__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 10px 30px rgba(0,0,0,0.08);
}

/* Image as full background */
.course-department-info__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.course-department-info__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-department-info__container:hover .course-department-info__image img {
    transform: scale(1.03);
}

/* Dark overlay for text readability */
.course-department-info__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.2) 100%
    );
}

/* Text content overlay */
.course-department-info__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 3.5rem;
    min-height: 400px;
}

.course-department-info__name {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.course-department-info__description {
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 800px;
}

/* HTML content styling within description */
.course-department-info__description p {
    margin: 0 0 0.125rem;
    line-height: 1.6;
}

.course-department-info__description p:last-child {
    margin-bottom: 0;
}

.course-department-info__description br + br {
    display: none;
}

.course-department-info__description strong,
.course-department-info__description b {
    font-weight: 700;
    color: white;
}

.course-department-info__description h3,
.course-department-info__description h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0.75rem 0 0.125rem;
}

.course-department-info__description h3:first-child,
.course-department-info__description h4:first-child {
    margin-top: 0;
}

.course-department-info__description a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.course-department-info__description a:hover {
    opacity: 0.8;
}

/* Sport Types Pills */
.course-department-info__sports {
    margin-top: 1.25rem;
}

.course-department-info__sports-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin: 0 0 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-department-info__sports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-sport-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.course-sport-pill:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.course-sport-pill--active {
    background: white;
    color: #8d1d39;
    border-color: white;
    font-weight: 600;
}

.course-sport-pill--active:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9);
}

/* Contact info */
.course-department-info__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.course-department-info__contact-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.course-department-info__contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
}

.course-department-info__contact-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: border-color 0.2s ease;
}

.course-department-info__contact-link:hover {
    border-color: white;
}

@media (max-width: 1024px) {
    .course-department-info {
        padding: 2rem 1rem;
    }

    .course-department-info__container {
        min-height: 350px;
        border-radius: 20px;
    }

    .course-department-info__content {
        padding: 2.5rem;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .course-department-info {
        padding: 1.5rem 1rem;
    }

    .course-department-info__container {
        min-height: 320px;
        border-radius: 16px;
    }

    .course-department-info__image::after {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.3) 0%,
            rgba(0,0,0,0.7) 100%
        );
    }

    .course-department-info__content {
        padding: 2rem 1.5rem;
        min-height: 320px;
        max-width: 100%;
        justify-content: flex-end;
    }

    .course-department-info__name {
        font-size: 1.75rem;
    }

    .course-department-info__description {
        font-size: 1rem;
    }

    .course-department-info__sports {
        margin-top: 1rem;
    }

    .course-department-info__sports-label {
        font-size: 0.8125rem;
    }

    .course-sport-pill {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   Filter Card (in Hero)
   ============================================ */

.course-filter-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-filter-card__search {
    width: 100%;
}

.course-search-wrapper {
    position: relative;
    width: 100%;
}

.course-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #333;
    pointer-events: none;
}

.course-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    border: none;
    border-radius: 10px;
    background-color: white;
    transition: all 0.25s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-search-input::placeholder {
    color: #444;
}

.course-search-input:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.3);
}

.course-filter-card__filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
}

/* Weekday chips row spans full width */
.course-filter-group--weekdays {
    grid-column: 1 / -1;
}

/* Weekday multi-select chips */
.course-weekday-chips {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.course-weekday-chip {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    user-select: none;
}

.course-weekday-chip:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.course-weekday-chip--active {
    background: white;
    border-color: white;
    color: #8d1d39;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.course-filter-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.course-filter-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
}

.course-filter-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border: none;
    border-radius: 8px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    cursor: pointer;
    appearance: none;
    transition: all 0.25s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-filter-select:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.3);
}

/* Department header options (clickable, styled as headers) */
.course-filter-select option.dept-header {
    font-weight: 600;
    color: #8d1d39;
    background: #f9f5f6;
}

/* Sub-sport options (indented under department) */
.course-filter-select option.dept-sub {
    font-weight: normal;
    color: #333;
    background: white;
}

/* ============================================
   Custom Dropdown (Desktop only)
   ============================================ */

.cs-dropdown {
    position: relative;
    width: 100%;
}

/* Hide native select when custom dropdown is active */
.cs-dropdown .course-filter-select {
    display: none;
}

/* Trigger button (looks like the original select) */
.cs-dropdown__trigger {
    width: 100%;
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 8px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-dropdown__trigger:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.cs-dropdown--open .cs-dropdown__trigger {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.3);
}

/* Has active selection styling */
.cs-dropdown__trigger--has-value {
    color: #8d1d39;
    font-weight: 600;
}

/* Options list */
.cs-dropdown__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    max-height: 300px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(141,29,57,0.3) transparent;
}

.cs-dropdown--open .cs-dropdown__list {
    display: block;
}

.cs-dropdown__list::-webkit-scrollbar {
    width: 5px;
}
.cs-dropdown__list::-webkit-scrollbar-track {
    background: transparent;
}
.cs-dropdown__list::-webkit-scrollbar-thumb {
    background: rgba(141,29,57,0.25);
    border-radius: 3px;
}

/* Individual option */
.cs-dropdown__option {
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.cs-dropdown__option:first-child {
    padding-top: 0.625rem;
}

.cs-dropdown__option:last-child {
    border-radius: 0 0 10px 10px;
    padding-bottom: 0.75rem;
}

.cs-dropdown__option:hover {
    background: #f5f0f2;
    color: #8d1d39;
}

.cs-dropdown__option--selected {
    background: #f9f5f6;
    color: #8d1d39;
    font-weight: 600;
}

.cs-dropdown__option--selected::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8d1d39;
    flex-shrink: 0;
}

/* Department header option */
.cs-dropdown__option--header {
    font-weight: 600;
    color: #8d1d39;
    background: #faf7f8;
    border-top: 1px solid #f0e8eb;
}

.cs-dropdown__option--header:first-child {
    border-top: none;
}

/* Sub-option (indented) */
.cs-dropdown__option--sub {
    padding-left: 1.75rem;
    font-size: 0.8125rem;
}

/* Backdrop overlay to close dropdown */
.cs-dropdown__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
}

.cs-dropdown--open .cs-dropdown__backdrop {
    display: block;
}

/* On mobile: don't create custom dropdowns */
@media (max-width: 768px) {
    .cs-dropdown .course-filter-select {
        display: block;
    }
    .cs-dropdown__trigger,
    .cs-dropdown__list,
    .cs-dropdown__backdrop {
        display: none !important;
    }
}

.course-filter-card__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.125rem;
}

.course-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #8d1d39;
    background: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.course-search-button svg {
    width: 18px;
    height: 18px;
}

.course-search-button:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.course-search-button:active {
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.course-results-count {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* Reset Button */
.course-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-reset-button svg {
    width: 14px;
    height: 14px;
}

.course-reset-button:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

/* ============================================
   Type Tabs (Option 2 - Above Search)
   ============================================ */

.course-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.course-type-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    color: white;
}

.course-type-tab svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.8;
}

.course-type-tab__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.course-type-tab__text strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.course-type-tab__text small {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

.course-type-tab:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.course-type-tab--active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.course-type-tab--active svg {
    color: #fff;
    opacity: 1;
}

.course-type-tab--active .course-type-tab__text small {
    color: rgba(255,255,255,0.8);
    opacity: 1;
}

.course-type-tab--active:hover {
    transform: translateY(0);
}

/* ============================================
   Search Bar (Standalone)
   ============================================ */

.course-search-bar {
    position: relative;
    margin-bottom: 0.75rem;
}

.course-search-bar__icon {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #333;
    pointer-events: none;
    z-index: 1;
}

.course-search-bar {
    position: relative;
}

.course-search-bar__btn {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #8d1d39;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.course-search-bar__btn:hover {
    background: #a62548;
}

.course-search-bar__btn svg {
    width: 18px;
    height: 18px;
}

.course-search-bar__input {
    width: 100%;
    padding: 1rem 3.25rem 1rem 3.25rem;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    background: white;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
}

.course-search-bar__input::placeholder {
    color: #444;
}

.course-search-bar__input:focus {
    outline: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 0 3px rgba(255,255,255,0.4);
}

/* ============================================
   Course Type Selector (Legacy - keeping for compatibility)
   ============================================ */

.course-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.course-type-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.course-type-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.course-type-btn--active {
    background: white;
    border-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.course-type-btn--active:hover {
    transform: translateY(0);
}

.course-type-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.course-type-btn--active .course-type-btn__icon {
    background: linear-gradient(135deg, #8d1d39 0%, #6e1629 100%);
}

.course-type-btn__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.course-type-btn--active .course-type-btn__icon svg {
    color: white;
}

.course-type-btn__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.course-type-btn__title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.course-type-btn--active .course-type-btn__title {
    color: #1a1a1a;
}

.course-type-btn__desc {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
}

.course-type-btn--active .course-type-btn__desc {
    color: #333;
}

/* ============================================
   Department Tiles
   ============================================ */

.course-dept-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.course-dept-tiles--grouped {
    display: block !important;
}

/* Grouped department tiles by kurabu_group */
.course-dept-group {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
}

.course-dept-group__header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid #8d1d39;
}

.course-dept-group__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.course-dept-group__count {
    font-size: 0.65rem;
    color: #666;
    font-weight: 400;
}

.course-dept-group__tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
}

.course-dept-group + .course-dept-group {
    margin-top: 0.75rem;
}

.course-dept-tile {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 2;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-dept-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.course-dept-tile--active {
    border-color: #8d1d39;
    box-shadow: 0 2px 8px rgba(141,29,57,0.25);
}

.course-dept-tile--active .course-dept-tile__overlay {
    background: linear-gradient(to top, rgba(141,29,57,0.7) 0%, rgba(141,29,57,0.05) 100%);
}

.course-dept-tile--popular {
    border-width: 2px;
    border-style: solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Background: image or color gradient */
.course-dept-tile__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.course-dept-tile:hover .course-dept-tile__bg {
    transform: scale(1.05);
}

/* Dark overlay for text readability - transparent top, solid bottom banner */
.course-dept-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.05) 70%, transparent 100%);
}

/* Text content - banner at bottom */
.course-dept-tile__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.5rem;
}

.course-dept-tile__name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
    line-height: 1.25;
}

.course-dept-tile__count {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.05rem;
}

/* ============================================
   Grouped Results by Department
   ============================================ */

.course-group {
    margin-bottom: 1.5rem;
}

.course-group__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
    cursor: pointer;
}

.course-group__image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.course-group__image + .course-group__color {
    display: none;
}

.course-group__color {
    width: 4px;
    height: 28px;
    border-radius: 2px;
    flex-shrink: 0;
}

.course-group__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    flex-grow: 1;
}

.course-group__count {
    font-size: 0.8125rem;
    color: #888;
    font-weight: 500;
}

.course-group__toggle {
    width: 20px;
    height: 20px;
    color: #888;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.course-group--collapsed .course-group__toggle {
    transform: rotate(-90deg);
}

.course-group__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .course-group__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

.course-group--collapsed .course-group__items {
    display: none;
}

/* List view within groups */
.course-group__items--list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 1024px) {
    .course-dept-tiles {
        grid-template-columns: repeat(4, 1fr);
    }

    .course-dept-group__tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .course-dept-tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }

    .course-dept-group__tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }

    .course-dept-tile__name {
        font-size: 0.625rem;
    }

    .course-dept-tile__count {
        display: none;
    }

    .course-group__items {
        grid-template-columns: 1fr;
    }
}

/* Quick Filter Chips */
.course-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.course-quick-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-quick-filter:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

.course-quick-filter--active {
    background: white;
    color: #8d1d39;
    border-color: white;
}

.course-quick-filter--active:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
}

.course-quick-filter__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Public course quick filters */
.course-quick-filters--public {
    margin-bottom: 0.75rem;
}

.course-quick-filter--preset {
    gap: 0.25rem;
}

.course-quick-filter--preset svg {
    opacity: 0.8;
}

.course-quick-filter--featured {
    background: rgba(141, 29, 57, 0.15);
    border-color: rgba(141, 29, 57, 0.3);
    color: white;
    gap: 0.25rem;
}

.course-quick-filter--featured svg {
    color: #f59e0b;
}

.course-quick-filter--featured:hover {
    background: rgba(141, 29, 57, 0.25);
    border-color: rgba(141, 29, 57, 0.4);
}

.course-quick-filter--featured.course-quick-filter--active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1e293b;
}

.course-quick-filter--featured.course-quick-filter--active svg {
    color: #1e293b;
}

/* Popular search term pills (Beliebte Kurse - search shortcuts) */
.course-quick-filter--popular {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    gap: 0.375rem;
}

.course-quick-filter--popular .course-quick-filter__dot {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.course-quick-filter--popular:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.course-quick-filter--popular.course-quick-filter--active {
    background: white;
    border-color: white;
    color: #8d1d39;
}

.course-quick-filter--popular.course-quick-filter--active .course-quick-filter__dot {
    box-shadow: 0 0 0 2px rgba(141, 29, 57, 0.2);
}

/* Title filter pills */
.course-quick-filter--title {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.course-quick-filter--title:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: white;
}

.course-quick-filter--title.course-quick-filter--active {
    background: white;
    border-color: white;
    color: #8d1d39;
    font-weight: 600;
}

.course-quick-filter--title.course-quick-filter--active:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
}

/* Divider between filter groups */
.course-quick-filter-divider {
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.25);
    margin: 0 0.25rem;
    align-self: center;
}

/* Skeleton Loader */
.course-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.course-skeleton-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.course-skeleton-image {
    height: 160px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.course-skeleton-content {
    padding: 1.25rem;
}

.course-skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.course-skeleton-line--short {
    width: 40%;
}

.course-skeleton-line--medium {
    width: 70%;
}

.course-skeleton-line--long {
    width: 90%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Results Header with View Switcher
   ============================================ */

.course-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.course-results-info {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.course-view-switcher {
    display: flex;
    gap: 0.25rem;
    background: #f5f5f5;
    padding: 0.25rem;
    border-radius: 10px;
}

.course-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.course-view-btn svg {
    width: 20px;
    height: 20px;
}

.course-view-btn:hover {
    background: #e5e5e5;
    color: #333;
}

.course-view-btn--active {
    background: white;
    color: #8d1d39;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-view-btn--active:hover {
    background: white;
}

/* ============================================
   Cards View
   ============================================ */

.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.course-card-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.course-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
}

.course-card-item__header {
    padding: 1.25rem 1.25rem 0;
}

.course-card-item__department {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.course-card-item__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.course-card-item__age {
    font-size: 0.8125rem;
    color: #333;
    margin: 0;
}

.course-card-item__body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.course-card-item__schedules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-card-item__schedule {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 0.8125rem;
}

.course-card-item__schedule-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card-item__schedule-day {
    font-weight: 600;
    color: #1a1a1a;
}

.course-card-item__schedule-time {
    color: #8d1d39;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.75rem;
}

.course-card-item__schedule-location {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 0.125rem;
}

.course-card-item__schedule-location::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d1d39' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.course-card-item__schedule-leader {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 0.125rem;
}

.course-card-item__schedule-leader::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.course-card-item__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.course-card-item__meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.course-card-item__location {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #333;
    line-height: 1.4;
}

.course-card-item__location-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    opacity: 0.7;
}

.course-card-item__location-text {
    word-break: break-word;
}

.course-card-item__trainer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #333;
    line-height: 1.4;
}

.course-card-item__trainer-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    opacity: 0.6;
}

.course-card-item__trainer-text {
    word-break: break-word;
}

.course-card-item__action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8d1d39 0%, #a82346 100%);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: flex-end;
}

.course-card-item__action:hover {
    background: linear-gradient(135deg, #7a1831 0%, #8d1d39 100%);
    transform: translateX(2px);
}

.course-card-item__action svg {
    width: 14px;
    height: 14px;
}

/* Card Image */
.course-card-item__image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.course-card-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card-item:hover .course-card-item__image img {
    transform: scale(1.05);
}

.course-card-item--has-image .course-card-item__header {
    padding-top: 1rem;
}

/* Color header for cards without images */
.course-card-item__color-header {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8d1d39 0%, #a82346 100%);
}

.course-card-item__color-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ============================================
   List View (Compact)
   ============================================ */

.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-list-item {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-list-item:hover {
    background: #fafafa;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.course-list-item__main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.course-list-item__title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.course-list-item__name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.course-list-item__department {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.course-list-item__meta {
    font-size: 0.8125rem;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.course-list-item__location,
.course-list-item__trainer,
.course-list-item__age {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.course-list-item__icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.course-list-item__location {
    color: #333;
}

.course-list-item__trainer {
    color: #333;
}

.course-list-item__schedules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.course-list-item__schedule {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
    background: #f5f5f5;
    border-radius: 6px;
}

.course-list-item__schedule-main {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.course-list-item__schedule-day {
    font-weight: 600;
    color: #333;
}

.course-list-item__schedule-time {
    color: #8d1d39;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.75rem;
}

.course-list-item__schedule-location {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-list-item__schedule-location::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d1d39' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.course-list-item__schedule-leader {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-list-item__schedule-leader::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.course-list-item__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #8d1d39;
    background: rgba(141, 29, 57, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.course-list-item__action:hover {
    background: #8d1d39;
    color: white;
}

.course-list-item__action svg {
    width: 18px;
    height: 18px;
}

/* List Item Image */
.course-list-item--has-image {
    grid-template-columns: 100px 1fr auto auto;
    padding-left: 0;
}

.course-list-item__image {
    width: 100px;
    height: calc(100% + 2rem);
    margin: -1rem 0 -1rem 0;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.course-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .course-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-cards {
        grid-template-columns: 1fr;
    }

    .course-list-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .course-list-item--has-image {
        grid-template-columns: 1fr;
    }

    .course-list-item--has-image {
        padding-left: 1rem;
    }

    .course-list-item__image {
        width: calc(100% + 2.25rem);
        height: 140px;
        border-radius: 12px 12px 0 0;
        margin: -1rem -1.25rem 0.75rem -1rem;
    }

    .course-list-item__schedules {
        justify-content: flex-start;
    }

    .course-list-item__action {
        width: 100%;
        height: auto;
        padding: 0.5rem;
    }
}

/* ============================================
   Course Table
   ============================================ */

.course-table-wrapper {
    overflow-x: auto;
    background-color: var(--surface-1, #fff);
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.08),
        0 4px 12px rgba(0,0,0,0.05);
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.course-table__th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #666);
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.course-table__th--sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.course-table__th--sortable:hover {
    background-color: #f0f0f0;
}

.course-table__th--sortable.is-sorted-asc .course-table__sort-icon::after {
    content: ' \2191';
}

.course-table__th--sortable.is-sorted-desc .course-table__sort-icon::after {
    content: ' \2193';
}

.course-table__th--actions {
    width: 100px;
}

.course-table__tr {
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.course-table__tr:hover {
    background-color: rgba(141, 29, 57, 0.04);
}

.course-table__tr:hover .course-table__name {
    color: var(--accent-color, #8d1d39);
}

.course-table__tr:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.course-table__td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--text-primary, #333);
}

.course-table__name {
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    transition: color 0.2s ease;
}

.course-table__department {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.course-table__weekday {
    font-weight: 500;
}

.course-table__time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
}

.course-table__location {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary, #666);
}

.course-table__age {
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
}

.course-table__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8d1d39 0%, #a82346 100%);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(141, 29, 57, 0.2);
}

.course-table__link:hover {
    background: linear-gradient(135deg, #7a1831 0%, #8d1d39 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(141, 29, 57, 0.3);
}

/* Multiple schedule times */
.course-table__schedules {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.course-table__schedule-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.course-table__schedule-day {
    font-weight: 500;
    min-width: 80px;
}

.course-table__schedule-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    color: var(--text-secondary, #666);
}

/* Row highlighting for next occurrence */
.course-table__tr--next .course-table__schedule-row--next {
    color: var(--accent-color, #8d1d39);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .course-hero {
        min-height: 100vh;
    }

    .course-hero__container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .course-hero__filters {
        padding: 2rem 1.5rem;
        max-width: 100%;
        min-height: 60vh;
    }

    .course-hero__image {
        height: 40vh;
        order: -1; /* Show image first on mobile */
    }

    .course-hero__image-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .course-filter-card__filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .course-hero__filters {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .course-hero__image {
        height: 30vh;
    }

    .course-hero__image-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .course-hero__title {
        font-size: 1.75rem;
    }

    .course-hero__subtitle {
        font-size: 0.875rem;
    }

    .course-search-container {
        padding: 1.5rem 1rem;
    }

    .course-filter-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .course-filter-card__filters {
        grid-template-columns: 1fr;
    }

    .course-table__th,
    .course-table__td {
        padding: 0.75rem 0.75rem;
        font-size: 0.8125rem;
    }

    .course-table__location {
        max-width: 120px;
    }

    .course-table__link {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}


/* ============================================
   Results Header (Count + Sort)
   ============================================ */

.course-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.course-results-info {
    font-size: 0.9375rem;
    color: var(--text-secondary, #666);
}

.course-results-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-results-sort__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #333);
}

.course-results-sort__select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease;
}

.course-results-sort__select:hover {
    border-color: var(--accent-color, #8d1d39);
}

.course-results-sort__select:focus {
    outline: none;
    border-color: var(--accent-color, #8d1d39);
    box-shadow: 0 0 0 3px rgba(141, 29, 57, 0.1);
}

@media (max-width: 768px) {
    .course-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-results-sort {
        width: 100%;
    }

    .course-results-sort__select {
        flex: 1;
    }
}

/* ============================================
   Loading State
   ============================================ */

.course-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.course-loading__spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--accent-color, #8d1d39);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    margin-bottom: 1.5rem;
}

.course-loading p {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Course List
   ============================================ */

.course-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Legacy course-group styles removed - see grouped results section above */

.course-search-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    width: 100%;
}

.course-search-placeholder__icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.course-search-placeholder__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 0.375rem;
}

.course-search-placeholder__text {
    font-size: 0.9375rem;
    color: var(--text-secondary, #666);
}

.course-card {
    background-color: var(--surface-1, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-left: 3px solid var(--accent-color, #8d1d39);
    border-radius: 3px;
    padding: 1rem 1.25rem;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-card:hover {
    background-color: #fafafa;
    border-left-color: #6e1629;
}

.course-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-card__header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.course-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.course-card__favorite {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.125rem;
    line-height: 1;
    transition: transform 0.15s ease;
    opacity: 0.6;
}

.course-card__favorite:hover {
    transform: scale(1.2);
    opacity: 1;
}

.course-card__favorite.is-favorite {
    opacity: 1;
    animation: heartbeat 0.3s ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.course-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.course-card__badge {
    display: inline-block;
    padding: 0.1875rem 0.5625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.course-card__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.course-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.course-time-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-time-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: var(--surface-2, #f9f9f9);
    border-radius: 3px;
    border: 1px solid var(--border-color, #e0e0e0);
    min-width: 100px;
    position: relative;
    transition: all 0.15s ease;
}

.course-time-card--next {
    background-color: var(--accent-color, #8d1d39);
    border-color: var(--accent-color, #8d1d39);
    box-shadow: 0 2px 8px rgba(141, 29, 57, 0.3);
}

.course-time-card--next .course-time-card__day,
.course-time-card--next .course-time-card__time {
    color: white;
}

.course-time-card__next-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #22c55e;
    color: white;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.1875rem 0.4375rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.course-time-card__day {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 0.1875rem;
}

.course-time-card__time {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-color, #8d1d39);
}

.course-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.course-card__info-row {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
}

.course-card__info-icon {
    width: 16px;
    text-align: center;
    font-size: 0.8125rem;
}

.course-card__description {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary, #666);
    margin-top: 0.25rem;
}

.course-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 130px;
}

.course-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1875rem;
    font-size: 0.8125rem;
    color: var(--text-secondary, #666);
    text-align: right;
}

.course-card__link {
    color: var(--accent-color, #8d1d39);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.9;
}

.course-card__link:hover {
    text-decoration: underline;
}

/* ============================================
   No Results
   ============================================ */

.course-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.course-no-results__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-no-results__icon svg {
    width: 40px;
    height: 40px;
    color: #444;
}

.course-no-results__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin: 0 0 0.5rem;
}

.course-no-results__hint {
    font-size: 0.9375rem;
    color: var(--text-muted, #999);
    margin: 0 0 1.5rem 0;
}

.course-no-results__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8d1d39 0%, #a82346 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(141, 29, 57, 0.25);
}

.course-no-results__btn svg {
    width: 18px;
    height: 18px;
}

.course-no-results__btn:hover {
    background: linear-gradient(135deg, #7a1831 0%, #8d1d39 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(141, 29, 57, 0.35);
}

/* ============================================
   Course Detail Page
   ============================================ */

.course-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.course-detail-header {
    margin-bottom: 2rem;
}

.course-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color, #8d1d39);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    background: rgba(141, 29, 57, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.course-detail-back:hover {
    background: rgba(141, 29, 57, 0.15);
    transform: translateX(-2px);
}

.course-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.course-detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.course-detail-title-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-detail-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.3125rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.course-detail-section {
    background-color: var(--surface-1, #fff);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.75rem;
}

.course-detail-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 1.5rem;
}

.course-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.course-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-detail-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-detail-info-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
}

.course-detail-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary, #666);
}

.course-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-detail-contact-card,
.course-detail-department-card {
    background-color: var(--surface-1, #fff);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.course-detail-contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.8125rem;
    color: var(--text-secondary, #666);
}

.course-detail-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-detail-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.course-detail-contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #666);
}

.course-detail-contact-link {
    color: var(--accent-color, #8d1d39);
    text-decoration: none;
    font-weight: 500;
}

.course-detail-contact-link:hover {
    text-decoration: underline;
}

.course-detail-contact-fallback {
    font-size: 0.9375rem;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

.course-detail-department-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-detail-team-name {
    font-size: 1rem;
    color: var(--text-secondary, #666);
}

.course-detail-location-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-detail-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #4285f4 0%, #5a95f5 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.course-detail-maps-link:hover {
    background: linear-gradient(135deg, #357ae8 0%, #4285f4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.course-detail-export-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #8d1d39 0%, #a82346 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(141, 29, 57, 0.3);
}

.course-detail-export-link:hover {
    background: linear-gradient(135deg, #7a1831 0%, #8d1d39 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(141, 29, 57, 0.4);
}

.course-detail-kurabu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #8d1d39 0%, #a82346 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(141, 29, 57, 0.3);
}

.course-detail-kurabu-link:hover {
    background: linear-gradient(135deg, #7a1831 0%, #8d1d39 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141, 29, 57, 0.4);
}

/* ============================================
   Weekly Schedule
   ============================================ */

.course-weekly-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-weekly-schedule-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color, #8d1d39);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.course-weekly-schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.course-weekly-schedule-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
}

.course-weekly-schedule-time {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color, #8d1d39);
}

.course-weekly-schedule-location,
.course-weekly-schedule-trainer {
    font-size: 0.9375rem;
    color: var(--text-secondary, #666);
}

/* ============================================
   Occurrences Horizontal Scroll
   ============================================ */

.course-occurrences-horizontal {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.course-occurrences-horizontal::-webkit-scrollbar {
    height: 8px;
}

.course-occurrences-horizontal::-webkit-scrollbar-track {
    background: var(--surface-2, #f9f9f9);
    border-radius: 4px;
}

.course-occurrences-horizontal::-webkit-scrollbar-thumb {
    background: var(--border-color, #ddd);
    border-radius: 4px;
}

.course-occurrences-horizontal::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color, #8d1d39);
}

.course-occurrence-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 12px;
    border: 1px solid #eee;
    border-left: 4px solid var(--accent-color, #8d1d39);
    min-width: 100px;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.course-occurrence-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: var(--accent-color, #8d1d39);
}

.course-occurrence-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-occurrence-card__day {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    line-height: 1;
}

.course-occurrence-card__month {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
}

.course-occurrence-card__weekday {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #666);
    text-transform: capitalize;
}

.course-occurrence-card__time {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-color, #8d1d39);
}

/* ============================================
   Occurrences List (legacy - kept for compatibility)
   ============================================ */

.course-occurrences-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-occurrence-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--surface-2, #f9f9f9);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color, #8d1d39);
}

.course-occurrence-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background-color: var(--accent-color, #8d1d39);
    color: white;
    border-radius: 8px;
    text-align: center;
}

.course-occurrence-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.course-occurrence-month {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.course-occurrence-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-occurrence-weekday {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.course-occurrence-time {
    font-size: 1rem;
    color: var(--text-secondary, #666);
    font-weight: 500;
}

.course-occurrence-location,
.course-occurrence-trainer {
    font-size: 0.9375rem;
    color: var(--text-secondary, #666);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .course-detail {
        grid-template-columns: 1fr;
    }

    .course-detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .course-search-container {
        padding: 2rem 1rem;
    }

    .course-filter-select {
        max-width: 100%;
    }

    .course-card {
        padding: 1rem;
    }

    .course-card__body {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .course-card__footer {
        align-items: flex-start;
    }

    .course-card__meta {
        align-items: flex-start;
        text-align: left;
    }

    .course-detail-title {
        font-size: 1.75rem;
    }

    .course-detail {
        gap: 2rem;
    }

    .course-detail-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Navigation Buttons (Floating/Sticky)
   ============================================ */

.course-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.course-nav-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.course-nav-button:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Wrapper for scroll-down button */
.course-nav-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #f5f5f5 60%, transparent 100%);
    margin-top: 1rem;
}

/* Button to scroll down */
.course-nav-button--down {
    background: linear-gradient(135deg, #8d1d39 0%, #a82346 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(141, 29, 57, 0.3);
    text-shadow: none;
}

.course-nav-button--down:hover {
    background: linear-gradient(135deg, #7a1831 0%, #8d1d39 100%);
    box-shadow: 0 6px 20px rgba(141, 29, 57, 0.4);
}

/* Results Footer */
.course-results-footer {
    margin-top: 3rem;
    padding: 0;
    border-top: 1px solid #e5e5e5;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
}

/* Summary Section */
.course-results-footer__summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 1rem;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.course-results-footer__text {
    margin: 0;
    color: #333;
    font-size: 0.9375rem;
}

.course-results-footer__text span {
    font-weight: 600;
    color: #8d1d39;
}

.course-results-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 2px solid #8d1d39;
    border-radius: 8px;
    color: #8d1d39;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-results-footer__btn svg {
    width: 14px;
    height: 14px;
}

.course-results-footer__btn:hover {
    background: #8d1d39;
    color: white;
}

/* Suggestions Section */
.course-results-footer__suggestions {
    padding: 2rem 1rem;
    text-align: center;
}

.course-results-footer__heading {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.course-results-footer__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.course-footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 100px;
    color: #444;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-footer-chip:hover {
    background: #8d1d39;
    border-color: #8d1d39;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 29, 57, 0.25);
}

.course-footer-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.course-footer-chip:hover .course-footer-chip__dot {
    background-color: white !important;
}

/* CTA Section */
.course-results-footer__cta {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #8d1d39 0%, #6e1629 100%);
}

.course-results-footer__cta-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.course-results-footer__cta-text {
    color: white;
}

.course-results-footer__cta-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.course-results-footer__cta-text p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.4;
}

.course-results-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: none;
    border-radius: 10px;
    color: #8d1d39;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.course-results-footer__cta-btn svg {
    width: 18px;
    height: 18px;
}

.course-results-footer__cta-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .course-nav-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .course-results-footer__summary {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    .course-results-footer__btn {
        width: 100%;
        justify-content: center;
    }

    .course-results-footer__suggestions {
        padding: 1.5rem 1rem;
    }

    .course-results-footer__chips {
        gap: 0.375rem;
    }

    .course-footer-chip {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .course-results-footer__cta {
        padding: 1.5rem 1rem;
    }

    .course-results-footer__cta-content {
        flex-direction: column;
        text-align: center;
    }

    .course-results-footer__cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Public Course Cards Styles
   ============================================ */

/* Public course status badges */
.course-public-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    z-index: 5;
}

.course-public-status--bookable {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.course-public-status--sold-out {
    background: rgba(141, 29, 57, 0.85);
    color: white;
}

.course-public-status--small {
    position: static;
    padding: 0.2rem 0.4rem;
    font-size: 0.625rem;
}

/* Public course cards */
.course-card-item--public {
    position: relative;
}

.course-card-item__color-header--public {
    background: linear-gradient(135deg, #8d1d39 0%, #6b1529 100%);
}

.course-card-item__date-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.course-card-item__date-badge svg {
    width: 16px;
    height: 16px;
    color: #8d1d39;
    margin-top: 1px;
    flex-shrink: 0;
}

.course-card-item__date-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}

.course-card-item__date-primary {
    font-weight: 500;
}

.course-card-item__date-range {
    font-size: 0.72rem;
    font-weight: 600;
    color: #8d1d39;
    opacity: 0.85;
    letter-spacing: 0.01em;
}

.course-card-item__location {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.course-card-item__location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #8d1d39;
}

/* Trainer icon for public courses */
.course-card-item--public .course-card-item__trainer svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #8d1d39;
}

.course-card-item__footer--public {
    flex-direction: column;
    gap: 1rem;
}

.course-card-item__action--book {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    background: linear-gradient(135deg, #8d1d39 0%, #6e1629 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
}

.course-card-item__action--book:hover {
    background: linear-gradient(135deg, #a12346 0%, #8d1d39 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 29, 57, 0.3);
}

.course-card-item__action--disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pricing display */
.course-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.course-pricing__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.course-pricing__row--member {
    color: #1a1a1a;
}

.course-pricing__row--public {
    color: #333;
}

.course-pricing__label {
    font-weight: 500;
}

.course-pricing__price {
    font-weight: 700;
    color: #8d1d39;
}

.course-pricing--compact {
    font-size: 0.875rem;
    font-weight: 700;
    color: #8d1d39;
}

/* Public course list items */
.course-list-item--public {
    display: grid;
    grid-template-columns: 80px 1fr auto 48px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
}

.course-list-item__date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.course-list-item__date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.course-list-item__time {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.course-list-item__date-range {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8d1d39;
    line-height: 1.2;
    margin-top: 2px;
}

.course-list-item__price-col {
    text-align: right;
}

.course-list-item__action--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.course-list-item__location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #333;
}

/* Responsive type tabs and search */
@media (max-width: 640px) {
    .course-type-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .course-type-tab {
        padding: 0.875rem 1rem;
    }

    .course-type-tab svg {
        width: 24px;
        height: 24px;
    }

    .course-type-tab__text strong {
        font-size: 0.9375rem;
    }

    .course-type-tab__text small {
        font-size: 0.6875rem;
    }

    .course-search-bar__input {
        padding: 0.875rem 1rem 0.875rem 2.75rem;
        font-size: 0.9375rem;
    }

    .course-search-bar__icon {
        left: 0.875rem;
        width: 18px;
        height: 18px;
    }

    .course-type-selector {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .course-type-btn {
        padding: 1rem 1.25rem;
    }

    .course-type-btn__icon {
        width: 40px;
        height: 40px;
    }

    .course-type-btn__icon svg {
        width: 20px;
        height: 20px;
    }

    .course-list-item--public {
        grid-template-columns: 60px 1fr auto;
        gap: 0.75rem;
    }

    .course-list-item--public .course-list-item__action {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .course-type-tab__text strong {
        font-size: 0.9375rem;
    }

    .course-type-tab__text small {
        font-size: 0.6875rem;
    }
}

/* ============================================
   Grouped Public Courses - Multiple Dates Badge
   ============================================ */

.course-public-dates-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(141, 29, 57, 0.85);
    color: white;
    border-radius: 4px;
    z-index: 5;
    letter-spacing: 0.02em;
}

.course-public-dates-badge--small {
    position: static;
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.625rem;
    background: rgba(141, 29, 57, 0.75);
}

/* ============================================
   Card Description
   ============================================ */

.course-card-item__description {
    font-size: 0.8125rem;
    color: #333;
    line-height: 1.5;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Capacity Indicator
   ============================================ */

.course-card-item__capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #333;
    padding: 0.375rem 0.625rem;
    background: #f0f1f3;
    border-radius: 9999px;
    margin-top: 0.5rem;
}

.course-card-item__capacity--low {
    color: #8d1d39;
    background: rgba(141, 29, 57, 0.1);
    font-weight: 600;
}

.course-card-item__capacity--sold-out {
    color: #8d1d39;
    background: rgba(141, 29, 57, 0.1);
    font-weight: 500;
}

/* ============================================
   Public Course Card Clickable
   ============================================ */

.course-card-item--public {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card-item--public:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.course-list-item--public {
    cursor: pointer;
    transition: background 0.2s;
}

.course-list-item--public:hover {
    background: #f8f9fa;
}

/* Public list item trainer */
.course-list-item--public .course-list-item__trainer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #333;
}

/* ============================================
   Featured Badge
   ============================================ */

.course-public-featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 20px;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-public-featured-badge::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.course-public-featured-badge--small {
    position: static;
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    margin-left: 0.5rem;
}

.course-public-featured-badge--small::before {
    width: 10px;
    height: 10px;
}

/* Featured card styling */
.course-card-item--featured {
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.course-card-item--featured:hover {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.2);
}

.course-list-item--featured {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
    border-left: 3px solid #f59e0b;
}

/* Adjust badge position when featured badge is present */
.course-card-item--featured .course-public-dates-badge {
    left: auto;
    right: 1rem;
    top: 3.5rem;
}

/* ============================================
   Detailed Pricing Options
   ============================================ */

.course-pricing--detailed {
    padding: 0.75rem;
    background: #fafafa;
}

.course-pricing__options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1rem;
    margin-top: 0.375rem;
    border-left: 2px solid #e0e0e0;
}

.course-pricing__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #333;
}

.course-pricing__option-name {
    font-weight: 400;
}

.course-pricing__option-price {
    font-weight: 600;
    color: #8d1d39;
}

.course-pricing__option--has-info {
    position: relative;
    cursor: help;
}

.course-pricing__info-icon {
    font-size: 0.625rem;
    color: #444;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.course-pricing__option--has-info:hover .course-pricing__info-icon {
    color: #8d1d39;
}

.course-pricing__option--has-info:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.375rem;
    padding: 0.5rem 0.625rem;
    background: #1a1a1a;
    color: white;
    font-size: 0.6875rem;
    line-height: 1.4;
    border-radius: 0.375rem;
    z-index: 100;
    white-space: normal;
    font-weight: 400;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================================
   Error State
   ============================================ */

.course-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

.course-error__icon {
    width: 48px;
    height: 48px;
    color: #dc2626;
}

.course-error__message {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0;
}

.course-error__retry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #8d1d39;
    background: white;
    border: 2px solid #8d1d39;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.course-error__retry:hover {
    background: #8d1d39;
    color: white;
}

.course-error__retry svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Inline Filters (above results)
   ============================================ */

/* ============================================
   Two-Column Layout: Filter Panel + Results
   ============================================ */

.course-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: 60vh;
}

.course-filter-panel {
    background: white;
    border-right: 1px solid #e5e5e5;
}

.course-filter-panel__sticky {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    scrollbar-width: thin;
}

.course-filter-panel__section {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.course-filter-panel__section:last-child {
    border-bottom: none;
}

.course-filter-panel__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin: 0 0 0.375rem;
}

.course-filter-panel__type-switch {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 3px;
    width: 100%;
}

.course-filter-panel__type-switch .course-type-switch {
    flex: 1;
    justify-content: center;
}

.course-filter-panel__search {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.15s;
}

.course-filter-panel__search:focus-within {
    border-color: #8d1d39;
    background: white;
}

.course-filter-panel__search svg {
    width: 14px;
    height: 14px;
    color: #999;
    flex-shrink: 0;
}

.course-filter-panel__search-input {
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: #333;
    outline: none;
    width: 100%;
}

.course-filter-panel__select {
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    margin-bottom: 0.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.course-filter-panel__select:focus {
    outline: none;
    border-color: #8d1d39;
}

.course-filter-panel__reset {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8d1d39;
    background: rgba(141,29,57,0.06);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.course-filter-panel__reset:hover {
    background: rgba(141,29,57,0.12);
}

.course-filter-panel__reset svg {
    width: 14px;
    height: 14px;
}

.course-filter-panel__count {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.375rem;
}

.course-layout__main {
    padding: 1rem 1.5rem;
    min-width: 0;
}

.course-inline-filters__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-inline-filters__row--top {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: nowrap;
}

.course-inline-filters__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Department Tabs */
.course-dept-tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
}

.course-dept-tabs::-webkit-scrollbar {
    display: none;
}

/* Vertical layout in sidebar */
.course-dept-tabs--vertical {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 280px;
    scrollbar-width: thin;
}

.course-dept-tabs--vertical .course-dept-tab {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
}

.course-dept-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.course-dept-tab:hover {
    border-color: #8d1d39;
    color: #8d1d39;
}

.course-dept-tab--active {
    background: #8d1d39;
    border-color: #8d1d39;
    color: white;
    font-weight: 600;
}

.course-dept-tab--active:hover {
    background: #7a1831;
    color: white;
}

.course-dept-tab__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.course-dept-tab--active .course-dept-tab__dot {
    opacity: 0.6;
}

.course-dept-tab__count {
    font-size: 0.6875rem;
    opacity: 0.6;
}

/* Inline Weekday Chips */
.course-inline-weekdays {
    display: flex;
    gap: 0.25rem;
}

.course-inline-weekday {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.course-inline-weekday:hover {
    border-color: #8d1d39;
    color: #8d1d39;
}

.course-inline-weekday--active {
    background: #8d1d39;
    border-color: #8d1d39;
    color: white;
}

/* ============================================
   Sortable Table View
   ============================================ */

.course-sortable-table {
    width: 100%;
    border-collapse: collapse;
}

.course-sortable-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.course-sortable-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    background: #f8f8f8;
    border-bottom: 2px solid #e5e5e5;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.course-sortable-table th:hover {
    background: #f0f0f0;
    color: #333;
}

.course-sortable-table th .sort-arrow {
    margin-left: 0.25rem;
    opacity: 0.3;
    transition: opacity 0.15s;
}

.course-sortable-table th.is-sorted .sort-arrow {
    opacity: 1;
    color: #8d1d39;
}

.course-sortable-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.course-sortable-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.course-sortable-table tbody tr:hover {
    background: rgba(141, 29, 57, 0.04);
}

.course-sortable-table tbody tr:hover .course-tbl__name {
    color: #8d1d39;
}

/* Table: Name cell with color border */
.course-tbl__name-cell {
    border-left: 3px solid #8d1d39;
    padding-left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.course-tbl__name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a1a;
    transition: color 0.15s;
    line-height: 1.3;
}

.course-tbl__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    flex-wrap: wrap;
}

.course-tbl__dept-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.course-tbl__trainer-label {
    color: #888;
}

.course-tbl__trainer-label::before {
    content: '\00b7';
    margin-right: 0.5rem;
    color: #ccc;
}

/* Table: Schedule chips */
.course-tbl__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.course-tbl__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.75rem;
}

.course-tbl__chip-day {
    font-weight: 700;
    color: #333;
}

.course-tbl__chip-time {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.6875rem;
    color: #8d1d39;
    font-weight: 500;
}

/* Table: Other cells */
.course-tbl__td-location {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #555;
    font-size: 0.8125rem;
}

.course-tbl__td-age {
    font-size: 0.8125rem;
    color: #888;
    white-space: nowrap;
}

.course-tbl__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #8d1d39;
    background: rgba(141, 29, 57, 0.06);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.course-tbl__action:hover {
    background: #8d1d39;
    color: white;
}

.course-tbl__action svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Mobile Optimierung
   ============================================ */

/* ============================================
   Readmore Button (department description, mobile)
   ============================================ */
.course-dept-readmore {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.25rem;
}

.course-dept-readmore:hover {
    background: rgba(255,255,255,0.3);
}

.course-dept-readmore svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.course-dept-readmore.is-expanded svg {
    transform: rotate(180deg);
}

/* ============================================
   Mobile Filter Button
   ============================================ */
.course-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8d1d39;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.course-mobile-filter-btn svg {
    width: 16px;
    height: 16px;
}

.course-mobile-filter-btn__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: #8d1d39;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-results-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   RESPONSIVE: Tablet ≤ 900px
   ============================================ */
@media (max-width: 900px) {
    /* Hide desktop sidebar, show mobile filter button */
    .course-layout {
        grid-template-columns: 1fr;
    }
    .course-filter-panel {
        display: none;
    }
    .course-mobile-filter-btn {
        display: flex;
    }
    .course-layout__main {
        padding: 0.75rem;
    }

    /* Cards 2 columns on tablet */
    .course-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   RESPONSIVE: Mobile ≤ 768px
   ============================================ */
@media (max-width: 768px) {
    /* --- Hero --- */
    .course-hero--compact .course-hero__content {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
        align-items: center;
    }
    .course-hero--compact .course-hero__logo {
        width: 50px;
    }
    .course-hero__controls {
        flex-direction: column;
        border-radius: 12px;
    }
    .course-hero__type-switch {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }
    .course-hero__type-btn {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
    /* Search row: icon hidden, input full width, button flush right */
    .course-hero__controls .course-search-bar {
        margin-bottom: 0;
        width: 100%;
    }
    .course-hero__controls .course-search-bar__icon {
        display: none;
    }
    .course-hero__controls .course-search-bar__input {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    .course-hero__controls .course-search-bar__btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        margin: 0.25rem 0.375rem;
    }

    /* --- Tile Nav: 2-row horizontal scroll --- */
    .course-tile-nav {
        padding: 0.5rem 0;
        background: #eee;
    }
    .course-tile-nav__scroll {
        padding: 0 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .course-tile-nav .course-dept-tiles {
        flex-wrap: wrap;
        gap: 0.375rem;
        width: max-content !important;
        max-height: 170px;
    }
    .course-tile-nav .course-dept-tiles.is-visible {
        display: flex;
    }
    .course-tile-nav .course-dept-tile {
        width: 110px;
        height: 78px;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        flex-shrink: 0;
    }
    .course-tile-nav .course-dept-tile__name {
        font-size: 0.5625rem;
        font-weight: 700;
    }
    .course-tile-nav .course-dept-tile__overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    }

    /* --- Results --- */
    .course-results-header {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .course-results-info {
        font-size: 0.875rem;
        white-space: nowrap;
    }
    .course-layout__main {
        padding: 0.5rem;
    }

    /* View switcher compact */
    .course-view-btn {
        width: 34px;
        height: 34px;
    }
    .course-view-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Cards: single column */
    .course-cards {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    /* Card images smaller */
    .course-card-item__image {
        height: 140px;
    }
    .course-card-item__color-header {
        height: 60px;
    }

    /* --- Table --- */
    .course-sortable-table th,
    .course-sortable-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8125rem;
    }
    .course-tbl__th-location,
    .course-tbl__td-location,
    .course-tbl__th-age,
    .course-tbl__td-age {
        display: none;
    }
    .course-tbl__name-cell {
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
    .course-tbl__name {
        font-size: 0.8125rem;
    }
    .course-tbl__meta {
        font-size: 0.625rem;
    }
    .course-tbl__chip {
        padding: 0.125rem 0.3125rem;
        font-size: 0.625rem;
    }
    .course-tbl__chip-time {
        font-size: 0.5625rem;
    }
    .course-tbl__action {
        width: 26px;
        height: 26px;
    }
    .course-tbl__action svg {
        width: 12px;
        height: 12px;
    }

    /* --- Table wrapper horizontal scroll --- */
    .course-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .course-sortable-table {
        min-width: 480px;
    }

    /* --- Department info: compact card on mobile --- */
    .course-department-info {
        padding: 0.75rem;
    }
    .course-department-info__container {
        min-height: 0;
        border-radius: 12px;
    }
    .course-department-info__content {
        padding: 1.25rem;
        min-height: 0;
        gap: 0.75rem;
    }
    .course-department-info__name {
        font-size: 1.375rem;
    }
    /* Truncate description on mobile - show "Weiterlesen" */
    .course-department-info__description {
        font-size: 0.875rem;
        max-height: 4.5em;
        overflow: hidden;
        position: relative;
    }
    .course-department-info__description.is-expanded {
        max-height: none;
    }
    .course-department-info__description:not(.is-expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2em;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
    }
    .course-department-info__sports {
        margin-top: 0;
    }
    .course-department-info__sports-label {
        font-size: 0.75rem;
    }
    .course-dept-readmore {
        display: inline-flex;
    }

    /* --- List items --- */
    .course-list-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .course-list-item--has-image {
        grid-template-columns: 1fr;
        padding-left: 1rem;
    }
    .course-list-item__image {
        width: calc(100% + 2.25rem);
        height: 120px;
        border-radius: 12px 12px 0 0;
        margin: -1rem -1.25rem 0.5rem -1rem;
    }
    .course-list-item__schedules {
        justify-content: flex-start;
    }
    .course-list-item__action {
        width: 100%;
        height: auto;
        padding: 0.5rem;
    }

    /* --- Footer --- */
    .course-results-footer__cta-content {
        flex-direction: column;
        text-align: center;
    }
    .course-results-footer__cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Fullscreen loader --- */
    .course-fullscreen-loader__logo {
        width: 70px;
    }
    .course-fullscreen-loader__text {
        font-size: 0.8125rem;
    }

    /* Legacy fullbg hero */
    .course-hero--fullbg {
        height: auto;
        min-height: 0;
    }
}

/* ============================================
   RESPONSIVE: Small Mobile ≤ 480px
   ============================================ */
@media (max-width: 480px) {
    .course-hero--compact .course-hero__content {
        padding: 1rem 0.75rem;
    }
    .course-hero--compact .course-hero__logo {
        width: 40px;
    }
    .course-hero__type-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    .course-hero__type-btn svg {
        width: 14px;
        height: 14px;
    }
    .course-hero__controls .course-search-bar__input {
        font-size: 0.8125rem;
        padding: 0.625rem 2.5rem 0.625rem 2.25rem;
    }

    .course-tile-nav .course-dept-tile {
        width: 95px;
        height: 68px;
    }
    .course-tile-nav .course-dept-tile__name {
        font-size: 0.5rem;
    }
    .course-tile-nav .course-dept-tiles {
        max-height: 148px;
    }

    .course-mobile-filter-btn span {
        display: none;
    }
    .course-mobile-filter-btn {
        padding: 0.5rem;
    }

    .course-card-item__header {
        padding: 1rem 1rem 0;
    }
    .course-card-item__body {
        padding: 0.75rem 1rem;
    }
    .course-card-item__footer {
        padding: 0.75rem 1rem;
    }
    .course-card-item__name {
        font-size: 1rem;
    }
}
