.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
    vertical-align: middle;
    color: var(--body_typography-color);
}

/* Make sure the clear (X) button shows in Firefox */
.select2-selection__clear {
    display: inline-block !important;
    position: relative;
    right: 0;
    padding: 0 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    z-index: 2;
    /* bring it above search icon */
}

/* Hover effect */
.select2-selection__clear:hover {
    color: #000;
}

/* Prevent clipping in Firefox */
.select2-selection--single {
    overflow: visible !important;
}

.select2-container--default .select2-results__group {
    background-color: #d9e5f8;
}

/* WebKit Browsers (Chrome, Safari, Edge) */
.select2-results__options::-webkit-scrollbar {
    width: 1px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background-color: #aaa;
    /* You can make this lighter/darker */
    border-radius: 1px;
}

/* Firefox */
.select2-results__options {
    scrollbar-width: thin;
    /* Firefox only supports "auto", "thin", or "none" */
    scrollbar-color: #aaa transparent;
}

.text-content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.text-content-container .left-side-content,
.text-content-container .right-side-content {
    text-align: justify;
    padding: 10px;
}

.category-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.page-title h2 {
    font-family: var(--h2_typography-font-family);
    font-weight: var(--h2_typography-font-weight);
    line-height: var(--h2_typography-line-height);
    letter-spacing: var(--h2_typography-letter-spacing);
    text-transform: var(--h2_typography-text-transform);
    font-style: var(--h2_typography-font-style, normal);
    font-size: var(--h2_typography-font-size);
    color: var(--h2_typography-color);
    margin-top: var(--h2_typography-margin-top);
    margin-bottom: var(--h2_typography-margin-bottom);
}

.page-title h3 {
    font-size: var(--h3_typography-font-size);
    color: var(--h3_typography-color);
    font-family: var(--h3_typography-font-family);
    font-weight: var(--h3_typography-font-weight);
    line-height: var(--h3_typography-line-height);
    letter-spacing: var(--h3_typography-letter-spacing);
}

.page-title h4 {
    font-size: var(--h4_typography-font-size);
    color: var(--h4_typography-color);
    font-family: var(--h4_typography-font-family);
    font-weight: var(--h4_typography-font-weight);
    line-height: var(--h4_typography-line-height);
    letter-spacing: var(--h4_typography-letter-spacing);
}

.empty-block {
    min-height: 150px;
}

.bg-navy-blue {
    background-color: #1C355E;
}

.image-container {
    width: 20vw;
    /* responsive width */
    aspect-ratio: 1 / 1;
    /* force height = width */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 1px solid #333;
    border-radius: 50%;
    max-width: 200px;
    /* optional max size */
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox .checkmark {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    position: relative;
    transition: background-color 0.2s;
    background: #cecfcf;
}

.custom-checkbox input:checked+.checkmark {
    background: #cecfcf;
}

.custom-checkbox input:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


#category_isfb,
#category_saq {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

#customSearch {
    width: 100%;
    border: none;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 2.2em;
    box-sizing: border-box;
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22/%3E%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2216.65%22%20y2%3D%2216.65%22/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 40px;  
    color: var(--form_text_color, #000);
    background-color: #f7f5f4;
    margin-right: .5rem !important;
    font-weight: 600;
    max-height: 40px;
}

/* The custom clear button */
.clear-btn {
    position: absolute;
    right: 28px;
    /* before the search icon */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--form_text_color, #000);
    cursor: pointer;
    display: none;
    /* only show when input has value */
}

.clear-btn:hover {
    color: #000;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--form_text_color);
    opacity: 1;

}

select {
    background-color: white;
    border: 2px solid #333;
    display: inline-block;
    font-size: 15px;
    line-height: 1.5em;
    padding: 0.5em 3.5em 0.5em 1em;
    margin: 0;
    box-sizing: border-box;
    appearance: none;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper select.classic {
    appearance: none;
    width: 100%;
    padding: 0.3em 2em 0.3em 1em;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: var(--form_bg_color, #f7f5f4);
    height: auto;
    color: var(--form_text_color, #000);
    font-weight: 600;
    overflow-y: auto;
}

select:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

.select-wrapper .select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 0.9em;
}

select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}



/* Dropdown panel */
.select2-container .select2-dropdown {
    background-color: var(--form_bg_color, #f7f5f4);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--form_text_color, #000);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Option items */
.select2-results__option {
    padding: 8px 12px;
    color: var(--form_text_color, #000);
}

/* Hovered or selected item */
.select2-results__option--highlighted[aria-selected] {
    background-color: #e2e2e2;
    color: #000;
}

/* Selected item (multi-select) */
.select2-results__option[aria-selected="true"] {
    background-color: #d3d3d3;
    color: #000;
}

/* Search box inside dropdown */
.select2-search--dropdown .select2-search__field {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 14px;
}

/* Tags (selected items) */
.select2-selection__choice {
    background-color: #dcdcdc;
    border: none;
    border-radius: 2px;
    padding: 2px 6px;
    margin-top: 4px;
    color: #000;
    font-weight: 600;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    font-size: 14px;
    font-weight: 600;
    color: var(--form_text_color, #000);
    /* Optional */
}

.select2-container--default .select2-selection__choice {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.select2-container .select2-search--inline .select2-search__field {
    padding: 0 !important;
    font-size: 14px !important;
    color: var(--form_text_color, #000);
    font-weight: 600;
    font-family: var(--nav_typography-font-family) !important;
    height: 24px !important;
    margin-top: 8px !important;
}

.select2-container--default .select2-selection--multiple {
    background-color: var(--form_bg_color, #f7f5f4) !important;
    border: none !important;
    border-radius: 4px;
    min-height: var(--form_input_height, 38px) !important;

}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: var(--form_text_color, #000) !important;
    font-size: 13px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: none !important;
}











.filter-area {
    /* display: flex;
    justify-content: space-between;
    flex-wrap: wrap;*/
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 equal columns */
    gap: 1rem;
}

.breadcrumb-text {
    color: #1C355E;
    font-weight: 500;
}

.media {
    margin-top: 3rem;
}


.main-content {
    padding: 0px;
    padding-top: 1.5rem;
    justify-content: space-between;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 20px;
    align-items: flex-end;
}


.main-content-inner-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.right-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
}

.main-section,
.certitication-section,
.function-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.media .media-body h6 {
    line-height: 24px;
    font-size: 16px;
    color: var(--h4_typography-color);
}

.bg-light-yellow .media {
    margin-top: 10px;
}

@media (max-width: 1150px) {
    div.dataTables_wrapper {
        padding: 0;
    }

    .bg-light-yellow .media {
        margin-top: 10px;
    }

    .media {
        margin-top: 1.5rem;
    }
}

@media(max-width:490px) {
    .image-container {
        width: 30vw;
    }
}

@media (max-width: 768px) {

    .image-container {
        width: 20vw;
    }

    #customSearch {
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0 !important;
        line-height: 2em;
    }

    .select-wrapper {
        width: 100%;
    }

    .select-wrapper .select-icon {
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-100%);
        pointer-events: none;
        color: #666;
        font-size: 0.9em;
    }

    #category_isfb,
    #category_saq {
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0 !important;
    }

    .filter-area {
        padding: 0;

        grid-template-columns: 1fr;
        gap: 0.5rem;

    }

    .empty-block {
        display: none;
    }

    .main-section,
    .certitication-section,
    .function-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .main-content-inner-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width:768px) and (max-width:1150px) {
    .main-content {
        grid-template-columns: 60% 40%;
        padding: 10px;
    }

    .main-menu {
        display: none !important;
    }

    .main-content-inner-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width:911px) {

    .main-content-inner-row {
        grid-template-columns: 1fr 1fr;
    }


}