/* Base Styles */
body {
    font-family: "Verdana", sans-serif;
    margin: 50px 25px; /* First definition */
}

body {
    overflow-x: hidden;
    margin: 0; /* Redirects the previous one, leave the last */
    padding: 0;
}

a {
    color: #2a99b6;
}

a:hover {
    color: #33bbdf;
}

header,
footer,
div.page {
    width: 760px;
    margin: 0 auto;
    background: #daeef3;
    padding: 20px 30px;
}

header h1 {
    color: #169bbd;
    margin: 0;
    font-weight: normal;
    font-size: 42px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 8px 0 0;
    padding: 0;
}

div.page {
    background: #f1fbfe;
}

/* Companies List Style */
.companies-list .company-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.companies-list .company-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.companies-list .company-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.companies-list .company-details {
    color: #666;
}

.companies-list .company-description {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

/* Companies Grid Style */
.companies-grid .card {
    transition: all 0.2s ease-in-out;
}

.companies-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.companies-grid .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: #f8f9fa;
}

.companies-grid .card-img-wrapper {
    height: 210px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.companies-grid .card-img-top {
    max-height: 180px;
    width: auto;
    padding: 0.5rem;
}

.companies-grid .card-body {
    padding: 0.75rem;
}

.companies-grid .card-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.companies-grid .card-text {
    font-size: 0.75rem;
}

.companies-grid .no-logo-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.companies-grid .card-title {
    font-size: 0.9rem;
    line-height: 1.2;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.companies-grid .card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    height: 100%;
}

/* Logo styles */
.company-logo {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 10px;
}
.company-logo-big {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 0;
}
.company-logo-container {
    width: 100%;
    max-width: 256px;
    margin: 0 auto;
}

.company-logo {
    width: 100%;
    height: auto;
    max-width: 256px;
    max-height: 256px;
    object-fit: contain;
    padding: 10px;
}

.company-main-logo-container {
    width: 100%;
    max-width: 512px;
    margin: 0 auto;
    padding: 15px;
}

.company-main-logo {
    width: 100%;
    height: auto;
    max-height: 512px;
    object-fit: contain;
}

/* Custom header styles */
.o_header_custom {
    background-color: #0c5ca7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom_header {
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background-color: transparent !important;
}

.custom_header ~ main {
    padding-top: 98px;
    min-height: calc(100vh - 53px);
}

@media (max-width: 992px) {
    .custom_header ~ main {
        padding-top: 58px;
    }
}

.o_header_custom {
    background-color: #0c5ca7;
    min-height: 54px;
}

.o_searchbar {
    max-width: 800px;
    width: 100%;
}

.o_searchbar_form {
    width: 100%;
    max-width: none;
}

.o_searchbar .input-group {
    width: 100%;
}

.menu-group {
    flex: 1;
    padding-left: 2rem;
    max-width: 800px;
}

@media (max-width: 768px) {
    .menu-group {
        padding-left: 1rem;
        justify-content: flex-end !important;
    }
}

/* Star rating styles */
.star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.star-rating > span,
.star-rating .star-rating-in-list__label {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.rating-value,
.rating-votes {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.star-rating__star {
    color: #ffc107;
}

.star-rating__star.is-selected {
    color: #ffc107;
}
.company-item {
    cursor: pointer;
}
.company-item.vip {
    background-color: #e6ff00c2;
}

.no-logo-placeholder {
    height: 150px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    border-radius: 4px;
}

.companies-list .company-item {
    transition: transform 0.2s ease;
}

.companies-list .company-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.company-logo {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

.rating-container {
    margin-top: 1rem;
}

.star-rating {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-value,
.rating-votes {
    font-size: 0.875rem;
    color: #6c757d;
}

.text-danger {
    text-decoration: none;
}

.text-danger:hover {
    text-decoration: underline;
}

.company-logo {
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

.rating-box {
    border: 1px solid rgba(0, 0, 0, 0.125);
    background: #fff;
}

.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.text-secondary {
    color: #6c757d !important;
}

.badge {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Search Styles */
.o_searchbar_form {
    max-width: 600px;
}

.o_searchbar .form-control {
    border-right: 0;
}

.o_searchbar .btn {
    border-left: 0;
}

/* Advanced Search Panel */
#advancedSearchMenu {
    top: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Advanced search header alignment */
#advancedSearchMenu .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#advancedSearchMenu .modal-header h5 {
    margin-bottom: 0 !important;
}

#advancedSearchMenu .btn-close {
    padding: 0;
    border: none;
    background: none;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px; /* Increased by 20% from 38px */
    width: 46px; /* Increased by 20% from 38px */
    margin: -8px;
}

#advancedSearchMenu .btn-close:hover {
    opacity: 1;
}

#advancedSearchMenu .btn-close i {
    color: #000;
    font-size: 24px; /* Increased by 20% from 20px */
    line-height: 1;
}

@media (max-width: 768px) {
    .o_searchbar {
        margin: 10px 0;
    }
}

/* Company Specific Styles */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.toggle-image-container {
    background: #f8f9fa;
    border-radius: 4px;
}

.fixed-height-img {
    object-fit: contain;
    background: white;
}

.toggle-table {
    font-size: 0.875rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.o_header_custom {
    width: 100%;
    position: relative;
}

.o_header_custom .container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

.search-query.form-control {
    height: 38px;
}

/* Navigation styles */
.o_navbar {
    border-bottom: 1px solid #dee2e6;
}

.navbar-nav {
    gap: 1rem;
}

@media (max-width: 768px) {
    .o_searchbar.d-block {
        padding: 1rem;
    }
}

.custom_header {
    margin: 0;
    padding: 0;
}

.o_header_custom {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #0c5ca7;
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 10px 0;
}

.star-rating__error,
.star-rating__success {
    font-size: 0.875rem;
}

.star-rating__star:hover {
    transform: scale(1.1);
}

/* Main content spacing */

/* Footer Styles */
.o_footer {
    background-color: #383e45 !important;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    margin-top: 4rem !important;
}

.o_footer a {
    color: #fff;
    text-decoration: none;
}

.o_footer a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.o_footer::before {
    content: "";
    position: absolute;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: inherit;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.o_footer_copyright {
    background-color: #1283ee !important;
    color: #fff;
    font-size: 0.875rem;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.o_footer_copyright_name {
    color: #fff;
}

.o_brand_promotion {
    font-size: 0.75rem;
    color: #f7fafc;
}

.o_brand_promotion img {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.star-group {
    display: flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating__star {
    color: #dee2e6;
    transition: color 0.2s;
}

.star-rating__star.is-selected {
    color: #ffc107;
}

.star-rating__label:hover .star-rating__star,
.star-rating__label:hover ~ .star-rating__label .star-rating__star {
    color: #ffc107;
}

.rating-value {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.rating-votes {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-rating__error,
.star-rating__success {
    font-size: 13px;
    margin: 0;
    padding: 4px 8px;
}

.rating-box {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem !important;
}

.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start !important;
    margin-bottom: 0.5rem;
}

.star-rating-in-list__label {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.star-rating__star {
    margin: 0;
    padding: 0;
}

/* City Selector Styles */
.city_selector .input-group {
    width: 100%;
    max-width: 300px;
}

.city_selector .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0.25rem 0.5rem;
    width: 32px;
    background-color: #0c5ca7;
    color: #ffffff;
    border-color: #0c5ca7;
}

.city_selector .form-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #0c5ca7;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* QR Code Styles */
.qr-code-container {
    max-width: 200px;
    margin: 0 auto;
    padding: 1rem;
}

.qr-code-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* List Companies Card Style */
.list-companies {
    transition: transform 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-companies:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-companies a {
    color: inherit;
    text-decoration: none;
}

.list-companies img {
    object-fit: contain;
    aspect-ratio: 4 / 3;
    object-position: top;
    width: 100%;
}

.list-companies .card-body {
    padding: 1rem;
}

.list-companies .card-title {
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    min-height: auto;
    height: auto;
}

.list-companies .card-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

.list-companies .card-title {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    min-height: auto;
    height: auto;
}

.list-companies .card-text {
    font-size: 0.75rem;
    line-height: 1.3;
}

.list-companies .card-text.small {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Company List Item Styles */
.company-item {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.company-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.first-char-capitalize {
    display: inline-block !important;
}
.first-char-capitalize::first-letter {
    text-transform: uppercase !important;
}

.company-item .logo-wrapper img {
    max-height: 120px;
    object-fit: contain;
    width: 100%;
}

.company-item .star-rating-in-list__label {
    margin-right: 2px;
}

.company-item .star-rating__star {
    color: #dee2e6;
}

.company-item .star-rating__star.is-selected {
    color: #ffc107;
}

.company-item .rating-value {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.company-item address {
    margin-bottom: 0.5rem;
    color: #666;
}

.company-item .text-warning {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Blog & Article Styles */
.website_straipsniai {
    margin-top: 2rem;
}

.o_straipsnis {
    margin-top: 0;
}

.o_record_cover_container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.o_record_cover_image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease;
}

.o_wblog_post:hover .o_record_cover_image {
    transform: scale(1.05);
}

.o_blog_post_title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 1rem;
    font-weight: 600;
}

.o_wblog_normalize_font {
    font-size: 0.9rem;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.o_half_screen_height {
    height: 50vh;
}

.o_full_screen_height {
    height: 100vh;
}

.o_record_cover_filter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
}

.o_straipsnis_content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.o_straipsnis_content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.o_straipsnis_content p {
    margin-bottom: 1.5rem;
}

/* Article Gallery Styles */
.article-gallery .gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
}

.article-gallery .gallery-item img {
    transition: transform 0.3s ease;
}

.article-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

.article-gallery .modal img {
    max-height: 90vh;
    object-fit: contain;
}

/* Article Image Styles */
.o_record_cover_container {
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
}

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

.article-gallery .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.article-gallery .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.article-gallery .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-gallery .modal-body img {
    max-height: 90vh;
    object-fit: contain;
}

/* Blog Post Hero Styles */
.o_wblog_post_page_cover {
    min-height: 50vh;
    position: relative;
}

.o_wblog_post_content_field {
    font-size: 1.1rem;
    line-height: 1.8;
}

.o_wblog_post_title h1 {
    font-size: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

#o_wblog_post_content_jump {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#o_wblog_post_content_jump:hover {
    opacity: 1;
}

.o_container_small {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.o_wblog_post_content_field {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #343a40;
}

.o_wblog_post_content_field p {
    margin-bottom: 1.5rem;
}

.o_wblog_post_content_field h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

/* Article Section Title Styles */
.o_wblog_section_title {
    margin-top: 3rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.o_wblog_section_title h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.o_wblog_post_content_field h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #212529;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* Blog Content Styles */
.o_wblog_post_content_field h2 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    margin: 3rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    letter-spacing: 0.05em;
}

.o_wblog_post_title {
    position: relative;
    z-index: 2;
}

.o_wblog_post_title h1 {
    font-size: 3.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0 1rem;
}

.o_wblog_post_page_cover {
    position: relative;
    min-height: 60vh;
    background-color: silver;
}

.o_wblog_post_title_wrapper {
    position: relative;
    z-index: 2;
}

.o_wblog_post_title_header {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    margin: 0 auto;
}

#o_wblog_post_content_jump {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

#o_wblog_post_content_jump:hover {
    opacity: 1;
    transform: translateY(5px);
    background: rgba(0, 0, 0, 0.5);
}

#o_wblog_post_content_jump i {
    line-height: 50px;
}

#o_wblog_post_content_jump {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
}

#o_wblog_post_content_jump i {
    font-size: 24px;
    color: #000;
}

.o_wblog_post_hero_content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.o_wblog_post_title_header {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Navigation Styles */
.navbar-nav.d-none.d-lg-flex {
    background: #0c5ca7;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.navbar-nav .nav-item .nav-link {
    color: #6c757d !important;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.disabled {
    color: #fff !important;
    opacity: 1;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: black !important;
}

.navbar-nav.main-nav {
    gap: 1.5rem;
}

.js_blog .navbar-nav.d-none.d-lg-flex {
    background: #0c5ca7;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    max-width: 100%;
}

.js_blog .navbar-nav .nav-item .nav-link {
    color: #fff !important;
    padding: 0.5rem 1rem;
}

.js_blog .navbar-nav .nav-link.disabled {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1;
}

.js_blog .navbar-nav .nav-link:hover,
.js_blog .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Articles Search Form Styles */
.js_blog .o_searchbar_form {
    max-width: 200px;
}

.js_blog .o_searchbar_form .input-group {
    width: 100%;
}

/* Blog Pagination Styles */
.js_blog .pagination {
    margin: 2rem 0 !important;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.js_blog .page-link {
    border: none;
    color: #212529;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    min-width: 32px;
    text-align: center;
    margin: 0 2px;
    border-radius: 4px;
}

.js_blog .page-item.active .page-link {
    background-color: #0c5ca7;
    color: #fff !important;
    font-weight: bold;
}

.js_blog .page-item.disabled .page-link,
.js_blog .page-item .page-link {
    color: #212529;
    background-color: transparent;
    opacity: 1;
}

.js_blog .page-link:hover {
    background-color: #094785;
    color: white;
}

.js_blog .pagination .page-link {
    min-width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    color: #212529;
}

.js_blog .pagination .page-item.disabled .page-link {
    opacity: 0.5;
    color: #6c757d;
}

/* Footer Links and Colors */
.o_footer .o_footer_copyright {
    color: #fff;
}

.pagination {
    margin: 2rem 0;
}

.pagination .page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #212529;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: #0c5ca7;
    color: #fff;
    border-radius: 4px;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    color: #6c757d;
}

.pagination .page-item .page-link:hover:not(.active) {
    background-color: #0c5ca7;
    color: white;
}

.footer-link {
    color: #1283ee !important;
    text-decoration: none;
}

.footer-link:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

/* Header Search Styles */
.o_searchbar_form {
    width: 100%;
    max-width: none;
}

.o_searchbar_form .input-group {
    width: 100%;
}

.o_searchbar_form .search-query {
    height: 38px;
    border-radius: 4px 0 0 4px !important;
}

.o_searchbar_form .oe_search_button {
    border-radius: 0;
    border-left: none;
}

.o_searchbar_form .input-group .btn:first-child {
    border-radius: 4px 0 0 4px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.o_searchbar_form .search-query {
    border-radius: 0 !important;
}

.o_searchbar_form .oe_search_button {
    border-radius: 0 4px 4px 0 !important;
}

.logo {
    flex-shrink: 0;
    min-width: 210px;
}

/* Advanced Search Styles */
#advancedSearchMenu {
    top: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

#advancedSearchMenu .section-title {
    color: #0c5ca7;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

#advancedSearchMenu hr {
    opacity: 0.1;
    border-color: #0c5ca7;
}

#advancedSearchMenu .form-label {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.25rem;
}

#advancedSearchMenu .form-control:focus {
    border-color: rgba(12, 92, 167, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(12, 92, 167, 0.15);
}

#advancedSearchMenu .btn-close {
    padding: 0;
    border: none;
    background: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

#advancedSearchMenu .btn-close:hover {
    opacity: 1;
}

#advancedSearchMenu .btn-close i {
    color: #000;
}

@media (max-width: 991.98px) {
    #advancedSearchMenu {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    padding: 0.375rem 0.75rem;
    background-color: #0c5ca7;
    border-color: #fff;
    margin-right: 5px;
}

.mobile-menu-btn .fa-bars {
    color: #fff;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background-color: #0b4d8c;
    border-color: #fff;
}

#mobileMenu .nav-link {
    color: #212529;
    border-bottom: 1px solid #dee2e6;
}

#mobileMenu .nav-link:hover {
    background-color: #f8f9fa;
}

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

/* Blog Navigation Styles */
.js_blog .navbar-nav.d-none.d-lg-flex {
    background: #0c5ca7;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    max-width: 100%;
}

.js_blog .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
}

.js_blog .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-weight: normal;
}

.js_blog .navbar-nav.d-none.d-lg-flex {
    padding: 0;
    border-radius: 0;
}

.js_blog .o_searchbar_form {
    margin-left: auto;
}

.js_blog .o_searchbar_form .input-group {
    background: transparent;
}

.js_blog .o_searchbar_form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.js_blog .o_searchbar_form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.js_blog .o_searchbar_form .btn-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.js_blog .o_searchbar_form .btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.js_blog .o_searchbar_form .form-control {
    background: #fff;
    border: none;
    color: #666;
}

.js_blog .o_searchbar_form .btn {
    background: #fff;
    border: none;
    color: #666;
}

.js_blog .o_searchbar_form .form-control::placeholder {
    color: #666;
}

/* Blog Navigation Styles */
.js_blog .navbar-nav {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0.5rem;
    --bs-navbar-color: rgba(255, 255, 255, 0.65);
    --bs-navbar-hover-color: rgba(255, 255, 255, 0.8);
    --bs-navbar-disabled-color: rgba(255, 255, 255, 0.3);
    --bs-navbar-active-color: rgba(255, 255, 255, 1);
    --bs-navbar-nav-link-padding-x: 0.5rem;
}

.js_blog .navbar-nav .nav-link {
    padding: var(--bs-navbar-nav-link-padding-x) 1rem;
    color: var(--bs-navbar-color) !important;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out;
}

.js_blog .navbar-nav .nav-link:hover,
.js_blog .navbar-nav .nav-link:focus {
    color: var(--bs-navbar-hover-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--bs-border-radius-sm);
}

.js_blog .navbar-nav .nav-link.active {
    color: var(--bs-navbar-active-color) !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--bs-border-radius-sm);
}

.js_blog .navbar-nav .nav-link.disabled {
    color: var(--bs-navbar-disabled-color) !important;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .js_blog .navbar-nav {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Blog Navigation Styles */
.js_blog .navbar-nav .nav-link {
    color: rgb(136, 136, 136) !important;
    transition: color 0.15s ease-in-out;
}

.js_blog .navbar-nav .nav-link.active,
.js_blog .navbar-nav .nav-link.text-white {
    color: #fff !important;
}

.js_blog .navbar-nav .nav-link:hover:not(.active):not(.text-white) {
    color: rgba(136, 136, 136, 0.8) !important;
}

/* Blog Navigation Category Styles */
.js_blog .navbar-nav .nav-link {
    font-family: "Open Sans", "Odoo Unicode Support Noto", sans-serif;
    font-feature-settings: normal;
    font-kerning: auto;
    font-optical-sizing: auto;
    font-palette: normal;
    font-size: 16px;
    font-size-adjust: none;
    font-stretch: 100%;
    font-style: normal;
    font-synthesis-small-caps: auto;
    font-synthesis-style: auto;
    font-synthesis-weight: auto;
    font-variant-alternates: normal;
    font-variant-caps: normal;
    font-variant-east-asian: normal;
    font-variant-emoji: normal;
    font-variant-ligatures: normal;
    font-variant-numeric: normal;
    font-variant-position: normal;
    font-variation-settings: normal;
    font-weight: 700;
    color: rgb(136, 136, 136) !important;
    transition: color 0.15s ease-in-out;
}

.js_blog .navbar-nav .nav-link.active,
.js_blog .navbar-nav .nav-link.text-white {
    color: #fff !important;
}

.js_blog .navbar-nav .nav-link:hover:not(.active):not(.text-white) {
    color: rgba(136, 136, 136, 0.8) !important;
}

/* Blog Navigation Styles */
.js_blog .navbar-nav .nav-link {
    --body-font-family: var(--font-sans-serif);
    --body-font-size: 1rem;
    --body-line-height: 1.5;
    font-family: var(--font-sans-serif);
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    direction: ltr;
    list-style: none;
    color: #888;
    box-sizing: border-box;
    font-weight: bolder;
    transition: color 0.15s ease-in-out;
}

.js_blog .navbar-nav .nav-link.active,
.js_blog .navbar-nav .nav-link.text-white {
    color: #fff !important;
}

.js_blog .navbar-nav .nav-link:hover:not(.active):not(.text-white) {
    color: rgba(136, 136, 136, 0.8) !important;
}

/* Blog Navigation Styles */
.js_blog .navbar {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --primary: #0c5ca7;
    --secondary: #685563;
    --font-sans-serif: "Open Sans", "Odoo Unicode Support Noto", sans-serif;
    --body-font-family: var(--font-sans-serif);
    --body-font-size: 1rem;
    --body-font-weight: 400;
    --body-line-height: 1.5;
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
    text-align: var(--body-text-align);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    direction: ltr;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 1.5rem 0 0 0 !important;
    background-color: #0c5ca7;
    color: #ffffff;
    margin-bottom: 0;
}

.js_blog .navbar-nav .nav-link {
    color: rgb(136, 136, 136) !important;
    font-family: var(--font-sans-serif);
    font-size: var(--body-font-size);
    font-weight: bolder;
    line-height: var(--body-line-height);
    transition: color 0.15s ease-in-out;
}

.js_blog .navbar-nav .nav-link:hover:not(.active):not(.text-white) {
    color: rgba(136, 136, 136, 0.8) !important;
}

.js_blog .navbar-nav .nav-link.active,
.js_blog .navbar-nav .nav-link.text-white {
    color: var(--white) !important;
}

/* Blog Navigation Styles */
.js_blog .navbar-nav {
    gap: 0.125rem !important;
}

.js_blog .navbar-nav .nav-item {
    margin-bottom: 0.125rem;
}

.js_blog .navbar-nav .nav-link {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

/* City Navigation Styles */
.city-navigation {
    --btn-padding-y: 0.375rem;
    --btn-padding-x: 0.75rem;
    --btn-font-size: 1rem;
    --btn-padding-y-sm: 0.0625rem;
    --btn-padding-x-sm: 0.3125rem;
    --btn-font-size-sm: 0.75rem;
    --btn-border-width: 1px;
    --btn-border-radius: 0.25rem;
    --btn-border-radius-sm: 0.2rem;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.city-navigation .btn-outline-secondary {
    font-family: var(--font-sans-serif);
    font-size: var(--btn-font-size-sm);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
    color: var(--secondary) !important;
    border-color: var(--secondary);
    padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
    border-radius: var(--btn-border-radius-sm);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}

.city-navigation .btn-outline-secondary:hover {
    color: #fff !important;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.city-navigation .btn-secondary {
    color: #fff !important;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* City Navigation Root Variables */
:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --o-cc5-btn-secondary: #f6f6f6;
    --o-cc5-headings: #ffffff;
    --o-cc5-bg: #383e45;
    --o-cc4-btn-secondary: #f6f6f6;
    --o-cc4-btn-primary: #383e45;
    --o-cc4-bg: #0c5ca7;
    --o-cc3-btn-secondary: #f6f6f6;
    --o-cc3-bg: #685563;
    --o-cc2-headings: #0c5ca7;
    --o-cc2-bg: #f6f6f6;
    --o-cc1-bg: #ffffff;
    --primary: #0c5ca7;
    --secondary: #685563;
}

/* City Navigation Styles */
.city-navigation {
    --gutter-x: 30px;
    --gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--gutter-y));
    margin-right: calc(-0.5 * var(--gutter-x));
    margin-left: calc(-0.5 * var(--gutter-x));
    height: auto !important;
}

.city-navigation .btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white) !important;
    font-family: var(--font-sans-serif);
    font-size: var(--btn-font-size-sm);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
    padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
    margin: 0 0.5rem 0.5rem 0;
}

.city-navigation .btn-outline-secondary {
    border: 1px solid var(--secondary);
    color: var(--secondary) !important;
    background-color: transparent;
    font-family: var(--font-sans-serif);
    font-size: var(--btn-font-size-sm);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
    padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
    margin: 0 0.5rem 0.5rem 0;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}

.city-navigation .btn-outline-secondary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white) !important;
}

.city-navigation .my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* City Navigation Variables */
:root {
    --font-sans-serif: "Open Sans", "Odoo Unicode Support Noto", sans-serif;
    --btn-font-size-sm: 0.75rem;
    --btn-padding-y-sm: 0.25rem;
    --btn-padding-x-sm: 0.5rem;
    --secondary: #685563;
}

/* City Navigation Styles */
.btn-secondary.btn-sm {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.75rem;
    --bs-btn-border-radius: 0.25rem;
    font-family: var(--font-sans-serif);
    font-weight: 400;
    line-height: 1.5;
    color: #fff !important;
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
    font-size: var(--btn-font-size-sm);
    border-radius: 0.25rem;
}

.btn-outline-secondary.btn-sm {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.75rem;
    --bs-btn-border-radius: 0.25rem;
    font-family: var(--font-sans-serif);
    font-weight: 400;
    line-height: 1.5;
    color: var(--secondary) !important;
    background-color: transparent;
    border: 1px solid var(--secondary);
    padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
    font-size: var(--btn-font-size-sm);
    border-radius: 0.25rem;
}

.btn-outline-secondary.btn-sm:hover {
    color: #fff !important;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* City Navigation Styles */
.btn-secondary.btn-sm,
.btn-outline-secondary.btn-sm {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.4rem;
    --bs-btn-font-size: 0.75rem;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-size: var(--bs-btn-font-size);
    margin-right: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.25rem !important;
}

/* YouTube Video Styles */
.youtube-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Card Header Styles */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-size: 1rem;
    font-weight: 700;
}

/* Headers inside toggles (Skola, Darbuotojai) */
.toggle-widget .card-header {
    padding: 0.75rem 1.25rem;
}

/* Description Styles */
.main-column > div:first-child {
    margin-bottom: 2rem;
}

.main-column blockquote {
    border-left: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.main-column blockquote p {
    margin: 0;
    line-height: 1.6;
}

.main-column blockquote p a {
    display: block;
    color: #0c5ca7;
    text-decoration: none;
    margin: 0.033rem 0;
}

.main-column blockquote p a:hover {
    text-decoration: underline;
}

.default-logo {
    background: #0c5ca7;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}
.default-logo img {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}
.default-logo span {
    font-size: small;
    text-align: center !important;
    color: white !important;
}
.default-logo span {
    font-size: small;
    text-align: center !important;
    color: white !important;
}

#form-frame {
    scroll-margin-top: 100px;
}

.review-content {
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.border-success {
    border-color: #198754 !important;
}

.border-danger {
    border-color: #dc3545 !important;
}

.border-warning {
    border-color: #ffc107 !important;
}

.review-content {
    white-space: pre-line;
    margin-bottom: 0;
}

.review-header h5 {
    margin-bottom: 0;
    font-weight: 500;
}

.review-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.review-footer a:hover {
    text-decoration: underline;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo .img-fluid {
    max-height: 128px;
    max-width: 128px;
}

.default-logo {
    background: #0c5ca7;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.default-logo img {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.mb16 {
    margin-bottom: 1rem;
}

.pagination .page-link {
    color: #0c5ca7;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d !important;
    pointer-events: none !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
}

/* Two-column layout for masonry grid */
.masonry-container {
    column-count: 2;
    column-gap: 20px;
}

@media (max-width: 767px) {
    .masonry-container {
        column-count: 1;
    }
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.masonry-item {
    width: 100%;
    break-inside: avoid;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Rating stars styling */
.star-rating .fa-star.text-warning {
    color: #ffc107 !important;
}

.star-rating .fa-star.text-muted {
    color: #6c757d !important;
}

.chart-placeholder {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.placeholder-text {
    color: #6c757d;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.toggle-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
}

.toggle-image-container .chart-placeholder,
.toggle-image-container .toggle-image {
    position: absolute; /* Элементы накладываются друг на друга */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Header Unified Search Styles */
.header-unified-search {
    border-radius: 0;
}

.header-unified-search .form-control {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.header-unified-search .header-city-select {
    border-radius: 0 4px 4px 0;
    border-left: none;
    background-color: white;
}

.header-unified-search .header-city-select:focus {
    box-shadow: none;
}

/* Header Search Dropdown */
.header-search-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 600px !important;
    max-width: 90vw !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    z-index: 1060 !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: white;
}

/* Smart Backdrop - Parch everything except the search context */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1055;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.dropdown-backdrop.show {
    display: block;
    opacity: 1;
}

/* Disruption exceptions - the search context remains bright */
.search-context-highlight {
    position: relative;
    z-index: 1065 !important;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    outline: 3px solid orange;
}

.dropdown-results-container {
    max-height: 350px;
    overflow-y: auto;
}

/* Compact cards for Header Dropdown */
.header-company-card {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f8f9fa;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.header-company-card:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.header-company-card:last-child {
    border-bottom: none;
}

.header-company-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-right: 12px;
}

.header-company-info {
    flex: 1;
    min-width: 0;
}

.header-company-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #212529;
    line-height: 1.3;
}

.header-company-details {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.2;
}

.header-company-code {
    font-family: "SF Mono", "Monaco", monospace;
    font-size: 11px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Header Pagination */
.dropdown-pagination {
    background-color: #f8f9fa;
}

.header-pagination-btn {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.header-pagination-btn:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #495057;
}

.header-pagination-btn.active {
    background-color: #0c59a2;
    color: white;
    border-color: #0c59a2;
}

.header-pagination-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading states */
.header-search-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.header-no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 1rem;
    white-space: nowrap;
    background: #f9fafb;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
}

/* ========== Mobile Overlay Search ========== */

/* Basic Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

/* The translucent dark background */
.mobile-search-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(2px);
}

/* The main search container */
.mobile-search-container {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 15px;
    background: transparent;
}

/* Title with a closing button */
.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Search fields */

#mobile-search-input {
    border-radius: 8px 0 0 8px;
}

.mobile-search-inputs {
    flex-shrink: 0;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.mobile-search-inputs .form-control,
.mobile-search-inputs .form-select {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
}

.mobile-search-inputs .form-control:focus,
.mobile-search-inputs .form-select:focus {
    background: white;
    border-color: #0c59a2;
    box-shadow: 0 0 0 0.2rem rgba(12, 89, 162, 0.25);
}

/* Result container - maximum filling */
.mobile-search-results-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
}

/* Search status */
.mobile-search-status {
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
}

/* Search results */
.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* pagination */
.mobile-pagination {
    flex-shrink: 0;
    padding-bottom: 10px;
}
#mobile-pagination {
    margin-top: .2rem!important;
}
/* Companies for mobile versions */
.mobile-company-card {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.mobile-company-card:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    margin-right: 15px;
}

.mobile-company-info {
    flex: 1;
    min-width: 0;
}

.mobile-company-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #212529;
    line-height: 1.3;
}

.mobile-company-details {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.mobile-company-code {
    font-family: "SF Mono", "Monaco", monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Pagination for the mobile version */
.mobile-pagination-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-pagination-btn:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #495057;
}

.mobile-pagination-btn.active {
    background-color: #0c59a2;
    color: white;
    border-color: #0c59a2;
}

.mobile-pagination-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading and No Results conditions */
.mobile-search-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.mobile-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}
#mobile-search-close {
    padding: 8px 6px;
    margin-right: 4px;
}

#mobile-city-filter {
    max-width: min(15ch, calc(100vh - 15ch)) !important;
    overflow-y: auto !important;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 0 8px 8px 0;
    position: relative;
    transform: translateZ(0);
    padding-right: 8px;
}

#mobile-city-filter:focus {
    border-color: #0c59a2;
    box-shadow: 0 0 0 0.2rem rgba(12, 89, 162, 0.25);
    outline: none;
}

#mobile-city-filter option {
    max-height: 40px;
    padding: 8px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#mobile-city-filter::-webkit-scrollbar {
    width: 8px;
}

#mobile-city-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#mobile-city-filter::-webkit-scrollbar-thumb {
    background: #0c59a2;
    border-radius: 4px;
}

#mobile-city-filter::-webkit-scrollbar-thumb:hover {
    background: #094a87;
}

@media (max-height: 600px) {
    #mobile-city-filter {
        max-height: 150px !important;
    }
}

@media (max-height: 500px) {
    #mobile-city-filter {
        max-height: 120px !important;
    }
}

@media (max-height: 400px) {
    #mobile-city-filter {
        max-height: 100px !important;
    }
}

@media (min-width: 768px) {
    .mobile-search-overlay {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .mobile-search-container {
        padding: 10px;
    }

    .mobile-company-card {
        padding: 10px;
    }

    .mobile-company-logo {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    #mobile-city-filter {
        font-size: 14px;
        max-height: min(180px, calc(100vh - 280px)) !important;
    }
}

/* Rating stars styling */
.star-rating .fa-star.text-warning {
    color: #ffc107 !important;
}

.star-rating .fa-star.text-muted {
    color: #6c757d !important;
}
