/* =========================================================
   GLOBAL / UTILITIES
========================================================= */
.text-primary {
    color: #1b4167 !important;
}

.row {
    --bs-gutter-x: inherit;
}

main {
    padding-top: 0;
}

p.notes {
    margin-bottom: 1rem;
}


/* =========================================================
   TYPOGRAPHY & LABELS
========================================================= */
.card-title {
    font-size: 1.2rem;
    font-weight: 400;
}
.small {
    font-size: .9rem;
}

label.form-label,
form fieldset,
form legend,
form .form-check-label {
    font-size: 1rem;
}

    form .form-label + .form-control,
    form .form-label + .form-select,
    form legend + .form-control,
    form legend + .form-select {
        margin-top: .5rem;
    }


/* =========================================================
   BUTTONS
========================================================= */
.btn {
    font-size: 1rem;
}

    .btn.btn-dark {
        border: .1875rem solid #000;
    }

        .btn.btn-dark:hover {
            border: .1875rem solid #000; /* same on hover */
        }

.btn-success {
    background-color: #296039;
}

/* Toggle button */
.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    color: #006400;
}

    .toggle-btn:focus {
        outline: 2px solid #006400;
        outline-offset: 2px;
    }

.toggle-panel {
    margin-top: 0.5rem;
}


/* =========================================================
   FORMS / CHECKS
========================================================= */
form .form-check-input[type=checkbox],
form .form-check-input[type=radio] {
    width: 1rem;
    height: 1rem;
}

form .form-check:first-of-type {
    margin-top: .875rem;
}

form .form-check-label {
    font-weight: normal;
}


/* =========================================================
   PAGINATION
========================================================= */
li.page-item {
    margin-right: 5px;
}

.page-link {
    font-size: 1rem;
    font-weight: normal;
}


/* =========================================================
   ACCORDIONS
========================================================= */
.accordion-button::after {
    display: none !important;
    content: "" !important;
}

.card-body:before {
    border: none;
}


/* =========================================================
   STICKY HEADER & GLOBAL STRUCTURE
========================================================= */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    padding: 10px 0 10px 20px;
}


/* =========================================================
   ACTION BAR (NOVA YELLOW)
========================================================= */
.action-bar {
    background: #ffc20b;
    width: 100%;
    padding: 8px 0 8px 20px;
    margin-top: 8px;
    text-align: left;
    color: black;
}

.action-link {
    color: black;
    font-weight: 700;
    text-decoration: none;
    padding-right: 10px;
}

    .action-link:hover {
        text-decoration: underline;
    }


/* =========================================================
   OFFCANVAS (Filter Panel)
========================================================= */
#filterPanel.offcanvas {
    z-index: 3000 !important;
}
.offcanvas-start, .offcanvas-end {
    --bs-offcanvas-width: 87.5%;
}

.card-body {
    padding: 1.2rem 1rem;
    margin: 0;
}
/* =========================================================
   DESKTOP LAYOUT ONLY
========================================================= */
@media (min-width: 768px) {
    .small {
        font-size: 1rem;
    }
    .card-title {
        font-size: 1.375rem;
        font-weight: 600;
    }

    /* Left sidebar as sticky container */
    #filterPanel.offcanvas-start {
        position: sticky !important;
        top: 112px; /* matches sticky header height */
        transform: none !important;
        visibility: visible !important;
        border-right: 1px solid #ddd;
        width: 100%;
        max-width: 360px;
        min-width: 260px;
        background: #fff;
        height: calc(100vh - 112px);
        overflow: hidden;
    }

    /* Scrollable inner area */
    #filterPanel .offcanvas-body {
        height: 100%;
        overflow-y: auto;
        padding-bottom: 2rem;
    }

    /* Hide bootstrap offcanvas header (mobile only) */
    #filterPanel .offcanvas-header {
        display: none !important;
    }

    /* Center results column */
    .results-wrapper {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .card-body {
        margin-right: 2.4375rem;
        margin-bottom: 1.125rem;       
        padding-left: 1.875rem;
        padding-top: 1.5625rem;
        padding-right: 0;
        padding-bottom: 0;
    }
}


.h2:before, h2:before {
    background-color: transparent
}


#searchResultsContent {
    --nova-navy: #1b4167;
    --nova-blue: #1b4167;
    --nova-muted: #7d8797;
    --nova-border: #c9cdd3;
    --nova-soft-border: #d9dde3;
    --nova-card-bg: #ffffff;
    --nova-page-bg: #eef0f2;
}

#searchResultsContent .nova-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

#searchResultsContent .nova-course-card {
    background: var(--nova-card-bg);
    border: 1px solid #dde1e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    padding: 2.25rem 2.5rem;
    color: var(--nova-navy);
}

#searchResultsContent .nova-course-title {
    color: black;
    font-size: 1.75rem;
    font-weight:600; 
    line-height: 1.2;
    margin-bottom: 0;
}

#searchResultsContent .nova-course-subtitle {
    color: #5f6876; 
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

#searchResultsContent .nova-divider {
    border: 0;
    border-top: 1px solid var(--nova-border);
    margin: 0 0 1.55rem;
    opacity: 1;
}

#searchResultsContent .nova-section-divider {
    border: 0;
    border-top: 1px solid var(--nova-border);
    margin: 1.55rem 0;
    opacity: 1;
}

#searchResultsContent .nova-label {
    color: var(--nova-muted);
    font-size: .875rem;
    line-height: 1.2;
    margin-bottom: .55rem;
    text-transform: uppercase;
    font-weight: 600;
}

#searchResultsContent .nova-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3.25rem;
    row-gap: 1.25rem;
    margin-bottom: .15rem;
}

#searchResultsContent .nova-meta-value {
    color: #07162f;  
    line-height: 1.25;
}

    #searchResultsContent .nova-meta-value .bi {
        color: var(--nova-blue);
        margin-right: .35rem;
    }

#searchResultsContent .nova-schedule-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

#searchResultsContent .nova-schedule-row {
    align-items: center;
    background: #f7f8fa;
    border: 1px solid var(--nova-soft-border);
    border-radius: .45rem;
    display: grid;
    grid-template-columns: 7rem minmax(12rem, 1fr) auto;
    gap: 1rem;
    min-height: 2rem;
    padding: 1rem 1.6rem;
}

#searchResultsContent .nova-schedule-day,
#searchResultsContent .nova-schedule-time,
#searchResultsContent .nova-schedule-location {
    color: var(--nova-navy); 
    line-height: 1.2;
}

#searchResultsContent .nova-schedule-location {
    color: #626b78;
    justify-self: end;
    white-space: nowrap;
}

    #searchResultsContent .nova-schedule-location .bi {
        color: var(--nova-blue);
        margin-right: .4rem;
    }

#searchResultsContent .nova-notes-text {
    color: #07162f;
    font-size: clamp(1.05rem, 1.55vw, 1rem);
    line-height: 1.65;
    margin-top: 1.1rem;
    max-width: 100%;
}

#searchResultsContent .nova-show-more {
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--nova-blue) !important;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font: inherit;   
    font-weight: 600;
    margin-top: .85rem;
    padding: 0 !important;
    text-decoration: none !important;
}

    #searchResultsContent .nova-show-more:hover,
    #searchResultsContent .nova-show-more:focus {
        color: #164a99 !important;
        text-decoration: underline !important;
    }

#searchResultsContent .nova-details-panel {
    margin-top: 1rem;
}

#searchResultsContent .nova-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.05rem;
}

#searchResultsContent .nova-register-button {
    align-items: center;
    background: var(--nova-blue) !important;
    border: 1px solid var(--nova-blue) !important;
    border-radius: .4rem;
    box-shadow: none !important;
    color: #ffffff !important;
    display: inline-flex;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    font-weight: 800;
    gap: .75rem;
    justify-content: center;
    min-width: 18rem;
    padding: .9rem 1.65rem;
    text-decoration: none !important;
}

    #searchResultsContent .nova-register-button:hover,
    #searchResultsContent .nova-register-button:focus {
        background: #164a99 !important;
        border-color: #164a99 !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

#searchResultsContent .status-open {
    color: #1e7e34;
    font-weight: 700;
}

#searchResultsContent .status-closed {
    color: #c82333;
    font-weight: 700;
}


    #searchResultsContent .nova-course-card {
        max-width: 1024px;
    }

    @@media (max-width: 992px) {
        #searchResultsContent .nova-course-card {
        padding: 1.75rem;
    }

    #searchResultsContent .nova-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2rem;
    }

    #searchResultsContent .nova-schedule-row {
        grid-template-columns: 6rem minmax(10rem, 1fr);
    }

    #searchResultsContent .nova-schedule-location {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .nova-schedule-row {
        display: flex;
    }
}

@@media (max-width: 576px) {
    #searchResultsContent .nova-course-card {
        padding: 1.25rem;
    }

    #searchResultsContent .nova-meta-grid {
        grid-template-columns: 1fr;
    }

    #searchResultsContent .nova-schedule-row {
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    #searchResultsContent .nova-schedule-location {
        white-space: normal;
    }

    #searchResultsContent .nova-card-actions {
        justify-content: stretch;
    }

    #searchResultsContent .nova-register-button {
        min-width: 0;
        width: 100%;
    }
}

.nova-results-list .table-responsive {
    overflow: hidden
}

.nova-schedule-table th, .nova-schedule-table td {
    font-size: 1rem !important;
}
.nova-schedule-table thead th {
    border: none;
    padding-bottom: 0;
    padding-top: 8px;   
}

.nova-schedule-table th {
    text-transform: uppercase;
    color: var(--nova-muted);
    font-size: .875rem !important;
}

.nova-schedule-table tbody tr td:first-child {
   font-weight: normal !important;
  
}

.nova-schedule-table tr:first-child td {
   padding-top: 8px;
}

.nova-schedule-table tbody tr td {
    min-width: auto;
}