/**
 * BREAKPOINT CONFIGURATION
 * ========================
 * The lg breakpoint is set to 1080px in the Landespackage (default Bootstrap is 992px).
 * See: vendor/bitbw/bitbw-landespackage/Resources/Public/Scss/Theme/01_Config/variables/_bootstrap5-variables-original.scss
 *
 * When using responsive breakpoints in this file:
 * - Mobile (below lg): max-width: 1079.98px
 * - Desktop (lg and up): min-width: 1080px
 *
 * If the Landespackage breakpoint changes, update all occurrences in this file accordingly.
 */

.input-group-text {
    border-bottom: 2px solid;
    border-radius: 3px 0 0 0;
    border-left: none;
    border-top: none;
}

.mintkurse-bild img{
    max-width: 100%;
    height: auto;
}

.bw-mintkurse-gradient{
    background: linear-gradient(114deg, #fffc00, #F2EE00);
    color:#000;
}

/*BW Multiselect*/
.bw-ms-container {
    border-bottom: 2px solid;
}

.bw-ms-checkbox-group {
    max-height: 150px;
    overflow-y: auto;
    padding:.5rem;
    background-color: #f4f3f1;
}

.bw-ms-checkbox-item {
    margin-bottom: .5rem;
}
.bw-ms-checkbox-item label {
    display: inline;
}

.bw-ms-selected-options {
    margin-top: 1rem;
    padding: .5rem;
    border-radius: .25rem;
}

.bw-ms-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: .5rem;
    border-bottom: 1px solid;
    margin-bottom: .5rem;
}

.ck-editor__editable {
    min-height: 240px;
}


/*Accessible MultiSelect*/
.checkbox-mixed ul.checkboxes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkbox-mixed ul.checkboxes li {
    margin: 0;
    padding: 0;
    padding-left: 15px;
}

.checkbox-mixed [role="checkbox"] {
    border-radius: 3px;
    border: 2px solid #524942;
    margin-right: 0.25rem;
    cursor:pointer;
    float: left;
    margin-left: -1.5em;
    --bs-form-check-bg: var(--bs-body-bg);
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    appearance: none;
    background-color: var(--bs-form-check-bg);
    background-image: var(--bs-form-check-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: var(--bs-border-width) solid var(--bs-border-color);
    print-color-adjust: exact;
    transition: all 0.2s ease-in-out;
}

.checkbox-mixed [role="checkbox"]::before {
    background-color: #2a2623;
    border-radius: 3px;
    border: 2px solid #524942;
    margin-right: 0.25rem;
}

.checkbox-mixed [role="checkbox"][aria-checked="true"]::before {
    background-color: #2a2623;
    border-color: #2a2623;
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.3975 3.7834L9.4868 21.4302L1.59497 15.161L2.839 13.595L9.10141 18.5698L20.7834 2.60248L22.3975 3.7834Z' fill='white'/%3e%3c/svg%3e");
}

.checkbox-mixed [role="checkbox"][aria-checked="mixed"]::before {
    background-color: #2a2623;
    border-color: #2a2623;
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='4' y1='12' x2='20' y2='12' stroke='white' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e");
}


input.form-check-input[type="checkbox"][aria-checked="mixed"]:hover {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='4' y1='12' x2='20' y2='12' stroke='white' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e");
    background-color: #e4e1dc;
    border-color: #524942;
}

input.form-check-input[type="checkbox"][aria-checked="mixed"] {
    background-image: url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='4' y1='12' x2='20' y2='12' stroke='white' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e");
    background-color: #2a2623;
    border-color: #2a2623;
}

.checkbox-mixed input:focus,
.checkbox-mixed [role="checkbox"] {
    outline: none;
}

.checkbox-mixed label.focus,
.checkbox-mixed label:hover {
    cursor: pointer;
}


/**
fix height of image in mintkurse
 */
.max-height-cover{
    max-height: 230px;
    object-fit: cover;
}

/**
    MS
 */
.bw-ms-wrapper {
    position: relative;
    width: 100%;
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: none;
}

.multiselect-dropdown.show {
    display: block;
}

.bw-ms-wrapper .bw-ms-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 2rem;
    padding: 0.3125rem 0.5rem;
    padding-right: 2.4rem;
    border: none;
    border-bottom: 2px solid #524942;
    border-radius: 3px 3px 0 0;
    background-image: url("data:image/svg+xml;charset=utf8,%3csvg viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M0 3a3 3 0 0 1 3-3h26a3 3 0 0 1 3 3v26a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3Z' fill='%23cbc6bd'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='m16 18.4-4.86-4.87-.94.94 5.8 5.8 5.8-5.8-.94-.94L16 18.39Z' fill='%232a2623'/%3e%3c/svg%3e");
    background-color: #f4f3f1;
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 1.4rem 1.4rem;
    color: #2a2623;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.bw-ms-filter-button__label {
    overflow: hidden;
    text-overflow: ellipsis;
    font: inherit;
    font-weight: 400;
}

.bw-ms-filter-button__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background-color: #cbc6bd;
    color: #2a2623;
    font-size: inherit;
    font-weight: 400;
    line-height: 1;
}

.bw-ms-filter-button.is-active .bw-ms-filter-button__count {
    background-color: #2a2623;
    color: #fff;
}

.bw-ms-wrapper .bw-ms-filter-button:hover {
    border-bottom-color: #2a2623;
}

.bw-ms-wrapper .bw-ms-filter-button:focus {
    outline: none;
}

.bw-ms-wrapper .bw-ms-filter-button:focus-visible {
    outline: 2px solid #6e0bcc;
    outline-offset: 2px;
    box-shadow: none;
    border-radius: 3px 3px 0 0;
}

.bw-ms-wrapper .bw-ms-filter-button.is-active {
    border-bottom: 2px solid #524942;
}

.bw-ms-popover {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 1055;
    min-width: 14rem;
    max-width: 22rem;
    overflow: hidden;
    border: 1px solid #524942;
    border-radius: 3px;
    background-color: #f4f3f1;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.16);
    color: #2a2623;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
}

.bw-ms-popover__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f4f3f1;
}

.bw-ms-popover__title {
    font-weight: 700;
}

.bw-ms-popover__reset {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid #e4e1dc;
    background: transparent;
    color: #2a2623;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.bw-ms-popover__reset:focus {
    outline: none;
}

.bw-ms-popover__reset:focus-visible {
    outline: 2px solid #6e0bcc;
    outline-offset: 2px;
    border-radius: 2px;
}

.bw-ms-popover__reset:disabled {
    color: #736759;
    cursor: default;
    opacity: 0.65;
}

.bw-ms-popover__options {
    max-height: 14rem;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border: none;
    background-color: #f4f3f1;
}

.bw-ms-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e4e1dc;
    background-color: #f4f3f1;
    cursor: pointer;
    white-space: normal;
}

.bw-ms-option:last-child {
    border-bottom: none;
}

.bw-ms-option:hover,
.bw-ms-option:focus-within {
    background-color: #e4e1dc;
}

.bw-ms-option input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0;
}

.bw-ms-option input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

.bw-ms-option input[type="checkbox"]:focus-visible {
    outline: 2px solid #6e0bcc;
    outline-offset: 2px;
    box-shadow: none;
}

.bw-ms-option label {
    flex: 1;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

.multiselect-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.15s ease-in-out;
}

.multiselect-option:hover,
.multiselect-option:focus-within {
    background-color: #e4e1dc;
}

.multiselect-option input[type="checkbox"]:focus {
    outline-offset: 2px;
    outline: 2px solid #6e0bcc;
    box-shadow: none;
}

.multiselect-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.multiselect-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.form-select[readonly] {
    background-color: #fff;
    cursor: pointer;
}

.form-select[readonly]:focus {
    outline-offset: 2px;
    outline: 2px solid #6e0bcc;
    box-shadow: none;
}

/**
 * Advanced Filter Button Arrow Animation
 */
.advanced-filters-toggle .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.filter-arrow .bw-icon {
    font-size: 2rem;
}

.sib-filters .advanced-filters-toggle .filter-arrow .bw-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Rotation when expanded */
.advanced-filters-toggle .btn.expanded .filter-arrow {
    transform: rotate(180deg);
}

#advanced-filter-toggle .filter-arrow {
    font-size: 0.8em;
    font-weight: bold;
}

/**
 * Search Input - Correct background color like other input fields
 */
#sword,
#sword:focus,
#sword:active,
#sword:hover,
#sword:not(:placeholder-shown),
#sword:valid,
#sword:invalid,
#sword:-webkit-autofill,
#sword:-webkit-autofill:hover,
#sword:-webkit-autofill:focus,
#sword:-webkit-autofill:active {
    background-color: #f4f3f1 !important;
    -webkit-box-shadow: 0 0 0 1000px #f4f3f1 inset !important;
    box-shadow: none !important;
}

/**
 * Search Clear Button - Dark gray background like SVG
 */
#resetButton.search__close {
    background-color: #cbc6bd !important;
    border: 1px solid #cbc6bd !important;
    border-radius: 0.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin-right: 8px;
}

#resetButton.search__close[style*="display: none"] {
    display: none !important;
}

#resetButton.search__close:hover {
    background-color: #b8b3aa !important;
}

#resetButton.search__close .bw-icon {
    color: #2a2623 !important;
    font-size: 16px;
    font-weight: normal;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: -1px;
}

/**
tag-cloud
 */
.cloud-container {
    text-align: center;
    margin: 0 auto;
}
.cloud-row {
    margin-bottom: 10px;
}
.cloud-row-1 { padding: 0 140px; }
.cloud-row-2 { padding: 0 30px; }
.cloud-row-3 { padding: 0 100px; }

.tag, .tag:hover {
    color: #49413c !important;
}

.btn.tag, .frame-type-felogin_login input.tag[type="submit"], .tag.cc-btn, .page-item.previous .tag.page-link, .page-item.next .tag.page-link, .page-item.page-item-previous .tag.page-link, .page-item.page-item-next .tag.page-link {
    background-image: none !important;
    background: #f4f3f1;
    background-color: rgb(244, 243, 241);
    background-image: none;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    border: none;
    outline: 1px solid #2a2623;
    text-decoration: none;
    position: relative;
    margin: 0.5rem 0.625rem;
    padding: 4px 8px;
    font-weight: 400;
    line-height: 1.4;
}

.btn.tag:hover,input.tag[type="submit"]:hover, .tag.cc-btn:hover, .page-item.previous .tag.page-link:hover, .page-item.next .tag.page-link:hover, .page-item.page-item-previous .tag.page-link:hover, .page-item.page-item-next .tag.page-link:hover, .btn.tag:focus, .frame-type-felogin_login input.tag[type="submit"]:focus, .tag.cc-btn:focus, .page-item.previous .tag.page-link:focus, .page-item.next .tag.page-link:focus, .page-item.page-item-previous .tag.page-link:focus, .page-item.page-item-next .tag.page-link:focus {
     background-color: #fffc00;
     outline: 2px solid #2a2623;
 }

.mint-angebote .bw-teaser .bw-teaser-footer.card-footer .bw-teaser-hashtags .bw-teaser-hashtag{
    margin-top: 0;
    margin-bottom: 0;
}


.mint-angebote .bw-teaser .bw-teaser-footer.card-footer .bw-teaser-hashtags .bw-teaser-hashtag .bw-teaser-hashtag-link{
    height:auto;
}

.bw-teaser .frame-background-bw-emphasis .bw-teaser-footer.card-footer .bw-teaser-hashtags .bw-teaser-hashtag .bw-teaser-hashtag-link{
    color: #000;
    background-color: #fffc00;
}
.bw-teaser .frame-background-bw-emphasis .bw-teaser-footer.bw-teaser-hashtags .bw-teaser-hashtag .bw-teaser-hashtag-link:not([disabled]):hover, .bw-teaser .bw-teaser-footer.card-footer .bw-teaser-hashtags .bw-teaser-hashtag .bw-teaser-hashtag-link:not([disabled]):focus {
    background-color: #2a2623;
    color: #fff;
    border: 2px solid #fffc00;
}
.mint-angebote .frame-background-bw-emphasis .uni-label *
{
    font-weight: bold;
    color:#000 !important;
}

@media (max-width: 768px) {
    .mint-angebote-list .bw-news-teaser-link {
        padding-right: 12px;
    }
}

.bw-teaser.tt .bw-teaser-badge {
    top: inherit;
    right:inherit;
}

.image-preview img {
    max-width: 100%;
    height: auto;
}


@media(min-width: 68.125em) {
    .backendlayout-landesportal_start .section.section-default.section-main .frame-container.frame-container-default:not(.contentcontainer *) {
        max-width: 1230px !important;
    }
}


/* sib filters */
.sib-filters .study-program-filters {
    background-color: #F4F3F3;
    padding: 12px;
    border-radius: 8px;
}

.study-program-filters .filter-label {
    padding: 0 8px 8px 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 130%;
}

.sib-filters .study-program-filters select.form-select,
.sib-filters .study-program-filters input.form-control[type="text"] {
    border: none;
    border-bottom: 1px solid #47403C;
    text-wrap: wrap;
    padding-right: 35px;
}

.sib-filters .study-program-filters select.form-select:focus {
    background-color: #f4f3f1;
    outline-offset: 2px;
    outline: 2px solid #6e0bcc;
    box-shadow: none;
    border-radius: 3px 3px 0 0;
}

.sib-filters .study-program-filters select.form-select option {
    background-color: #fff;
}

.sib-filters .study-program-filters .bw-ms-wrapper input.form-select {
    background-image: url("data:image/svg+xml;charset=utf8,%3csvg viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M0 3a3 3 0 0 1 3-3h26a3 3 0 0 1 3 3v26a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3Z' fill='%23cbc6bd'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='m16 18.4-4.86-4.87-.94.94 5.8 5.8 5.8-5.8-.94-.94L16 18.39Z' fill='%232a2623'/%3e%3c/svg%3e");
    background-color: #f4f3f1;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 2rem 2rem;
    text-wrap: wrap;
    padding-right: 3rem;
    height: auto;
    min-height: 2.5rem;
}

.sib-filters .study-program-filters .bw-ms-wrapper input.form-select::placeholder {
    color: #2a2623;
    opacity: 1;
}

.sib-filters .study-program-filters .bw-ms-wrapper input.form-select:focus {
    outline-offset: 2px;
    outline: 2px solid #6e0bcc;
    box-shadow: none;
    border-radius: 3px 3px 0 0;
}

/* Search Form Group - no margin-bottom on mobile */
@media (max-width: 1079.98px) {
    .search-form-group {
        margin-bottom: 0;
    }
}

/* Search button column - maintain 40px margin-top between md and lg breakpoints */
@media (min-width: 768px) and (max-width: 1079.98px) {
    .search .row > .col-lg-3 {
        margin-top: 40px;
    }
}

/* Desktop: Buttons full width */
@media (min-width: 1080px) {
    .search .btn-group {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .infotag-filters .btn-group {
        width: 100%;
    }
}

/* Mobile/tablet: Buttons right-aligned, not full width */
@media (max-width: 1079.98px) {
    .search .col-lg-3 {
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 1199.98px) {
    .infotag-filters .col-xl-3 {
        display: flex;
        justify-content: flex-end;
    }
}

/* Search Input and Button height - matching Elasticsearch search */
.search #searchword,
.search .btn-group .btn,
.infotag-filters #searchword,
.infotag-filters .form-select,
.infotag-filters .btn-group .btn {
    height: 4rem;
}

@media (max-width: 767.98px) {
    .search #searchword,
    .search .btn-group .btn,
    .infotag-filters #searchword,
    .infotag-filters .form-select,
    .infotag-filters .btn-group .btn {
        height: 3rem;
    }
}

/* Search Input styling */
.search #searchword {
    border: none;
    border-bottom: 1px solid #47403C;
}

/* Search Submit Button with magnifying glass icon */
.search-submit-btn::before {
    font-family: "BwIconFunc";
    content: "\ea8b";
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

/* Desktop: Text visually hidden but accessible to screen readers */
@media (min-width: 1080px) {
    .search-submit-btn__text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Mobile: Show text next to icon */
@media (max-width: 1079.98px) {
    .search-submit-btn::before {
        font-size: 20px;
        margin-right: 0.5rem;
    }
}

.search .btn-group .btn,
.infotag-filters .btn-group .btn {
    border-radius: 3px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.search .btn-group .btn:hover,
.infotag-filters .btn-group .btn:hover {
    text-decoration: none;
}

/* Searchresult list: Spacing between headline and meta (matching Landes-CD $bw-space-200 = 8px) */
.news-search-result .bw-news-teaser .bw-news-teaser-headline .title {
    margin-bottom: 8px;
}


/* Mobile Filter Accordion */
#filterAccordionMobile .accordion-item {
    border: none;
    background-color: transparent;
}

#filterAccordionMobile .accordion-button {
    background-color: #e4e1dc;
    color: #2a2623;
    font-family: "Bawue Sans", sans-serif;
    font-weight: 700;
    border-radius: 8px;
    padding: 1rem;
}

#filterAccordionMobile .accordion-button:not(.collapsed) {
    background-color: #2a2623;
    color: #fff;
    box-shadow: none;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #2a2623;
}

#filterAccordionMobile .accordion-button:focus {
    box-shadow: none;
    outline: 2px solid #6e0bcc;
    outline-offset: 2px;
}

#filterAccordionMobile .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a2623'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#filterAccordionMobile .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#filterAccordionMobile .accordion-body {
    padding: 0;
}

#filterAccordionMobile .accordion-collapse {
    background-color: transparent;
}

/* Mobile: Filter container styling when accordion is open */
@media (max-width: 1079.98px) {
    #filterCollapse .study-program-filters {
        border-radius: 0 0 8px 8px;
    }

    #filterAccordionMobile + #filterCollapse {
        margin-top: 0;
    }
}

/* Toggle text visibility based on accordion state */
#filterAccordionMobile .accordion-button .filter-toggle-show {
    display: none;
}

#filterAccordionMobile .accordion-button .filter-toggle-hide {
    display: inline;
}

#filterAccordionMobile .accordion-button.collapsed .filter-toggle-show {
    display: inline;
}

#filterAccordionMobile .accordion-button.collapsed .filter-toggle-hide {
    display: none;
}

/* Desktop: Filters always visible (overrides Bootstrap collapse) */
@media (min-width: 1080px) {
    #filterCollapse {
        display: block !important;
    }
}

.form-element.form-element-check .form-check-wrapping-label .form-check-label {
    width: auto;
}

.form-group-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-group-fieldset > legend.form-label {
    display: inline-block;
    float: none;
    width: auto;
    margin-bottom: 8px;
    padding: 0;
    font-size: var(--bs-body-font-size);
    font-weight: 700;
    line-height: 1.3;
}

.studyprogram-static-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: var(--bs-body-font-size);
    font-weight: 700;
    line-height: 1.3;
}

.form-group .parsley-errors-list.filled {
    display: block;
    width: 100%;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
    color: #920303;
    font-size: 0.875rem;
}

.form-group .parsley-errors-list.filled li {
    margin: 0;
}

.form-group .parsley-errors-list.filled .parsley-required {
    display: flex;
    align-items: center;
}

.form-group .parsley-errors-list.filled li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'><path d='M12 3.5L22 20.5H2L12 3.5Z' stroke='%23920303' stroke-width='2' stroke-linejoin='round'/><path d='M12 9V14' stroke='%23920303' stroke-width='2' stroke-linecap='round'/><circle cx='12' cy='17.25' r='1' fill='%23920303'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    width: 1.25em;
    height: 1.25em;
    content: "";
    display: inline-block;
    flex-grow: 0;
    flex-shrink: 0;
    margin-right: 0.25rem;
    position: relative;
}

.form-group:has(.parsley-errors-list.filled) .form-control,
.form-group:has(.parsley-errors-list.filled) .input-group > .form-control {
    background-image: none;
    border-color: #920303;
    background-color: #ffd9c3;
}

.form-group:has(.parsley-errors-list.filled) .form-select {
    border-color: #920303;
    background-color: #ffd9c3;
    color: #920303;
    background-image: url("data:image/svg+xml;charset=utf8,%3csvg viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M0 3a3 3 0 0 1 3-3h26a3 3 0 0 1 3 3v26a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3Z' fill='%23ffb793'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='m16 18.4-4.86-4.87-.94.94 5.8 5.8 5.8-5.8-.94-.94L16 18.39Z' fill='%23920303'/%3e%3c/svg%3e");
    background-size: 2rem 2rem;
    background-position: right 8px center !important;
}

.form-group:has(.parsley-errors-list.filled) .form-control::placeholder,
.form-group:has(.parsley-errors-list.filled) .input-group > .form-control::placeholder {
    color: #920303;
}

.form-group.form-check.has-error .form-check-label {
    color: #920303;
}

.form-group.form-check.has-error .form-check-input {
    border-color: #920303;
    background-color: #ffd9c3;
}

.form-element.form-element-textarea textarea.form-control,
.form-element.form-element-textarea .ck-editor__editable {
    min-height: 8rem;
}

.studyprogram-pagination-mobile {
    display: none;
}

.studyprogram-pagination-desktop {
    display: flex;
}

@media (max-width: 1079.98px) {
    .studyprogram-pagination-mobile {
        display: flex;
    }

    .studyprogram-pagination-desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    .studyprogram-pagination-mobile {
        display: none;
    }

    .studyprogram-pagination-desktop {
        display: flex;
    }
}

@media (min-width: 768px) {
    .studyprogram-checkbox-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .studyprogram-checkbox-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.subject-picker-modal__groups {
    display: grid;
    gap: 1.5rem;
}

.subject-picker-modal__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subject-picker-modal__option {
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--bs-body-color);
    font-weight: 400;
    outline: none;
    padding: 0;
    text-align: left;
    text-decoration: none;
}

.subject-picker-modal__option:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    color: var(--bs-link-hover-color);
    text-decoration: underline;
}

.subject-picker-modal__option:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none;
    outline: none;
}

.subject-picker-modal__option:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    border-radius: 3px;
    box-shadow: none;
    color: var(--bs-link-hover-color);
    outline: 2px solid #6e0bcc;
    outline-offset: 2px;
    text-decoration: underline;
}

.subject-picker-modal__option.is-active {
    color: var(--bs-primary);
    font-weight: 700;
}

@media (min-width: 768px) {
    .subject-picker-modal__groups {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}
