.company-main-logo-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    text-align: center;
}

/* QR Code Styles */
.qr-code-container {
    width: 225px;
    height: 225px;
    margin-left: 45px;
    margin-right: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.qr-code-img {
    width: 225px !important;
    height: 225px !important;
    object-fit: contain !important;
    max-width: none !important;
}

/* Remove any conflicting styles */
.qr-code-container img {
    width: 225px !important;
    height: 225px !important;
}

/* Toggle Widget Icons */
.toggle-widget .card-header a i {
    color: #0d6efd;
}

/* Make responsive layout - on mobile screens column layout becomes 1 column */
@media screen and (max-width: 992px) {
    .specialization .row .col-lg-6 {
        width: 100%;
    }
}

/* Add slightly more spacing between cards on desktop view */
@media screen and (min-width: 992px) {
    .specialization .card {
        height: 100%;
    }
}

/* Related search links */
.industry-header {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.industry-header:hover {
    color: #0d6efd;
    text-decoration: none;
}

.datatable-sorter {
    background: none;
    border: none;
    padding: 0;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
.datatable-sorter:hover {
    text-decoration: underline;
}

.keyword-header {
    color: #0c59a2 !important;
    text-decoration: none;
}

.keyword-header:hover {
    text-decoration: underline;
}

.industry-header:hover span {
    color: #ddd;
}

/* Related search links - specific selector for the new structure */
.related-searches a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.related-searches a:hover {
    color: #0d6efd;
    text-decoration: none !important; /* Added !important to ensure no underline */
}

/* Related search links - specific selector for the new structure with higher specificity */
.col-md-9 .related-searches a,
.related-searches a,
.col-md-9 .text-start.related-searches a {
    color: #0d6efd;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}

.col-md-9 .related-searches a:hover,
.related-searches a:hover,
.col-md-9 .text-start.related-searches a:hover {
    color: #0d6efd;
    text-decoration: none !important;
}

/* Comprehensive fix for related search links */
.related-searches a,
.related-searches a:hover,
.related-searches a:active,
.related-searches a:visited,
.related-searches a:focus,
.col-md-9 .related-searches a,
.col-md-9 .related-searches a:hover,
.col-md-9 .related-searches a:active,
.col-md-9 .related-searches a:visited,
.col-md-9 .related-searches a:focus,
.col-md-9 .text-start.related-searches a,
.col-md-9 .text-start.related-searches a:hover,
.col-md-9 .text-start.related-searches a:active,
.col-md-9 .text-start.related-searches a:visited,
.col-md-9 .text-start.related-searches a:focus {
    color: #0d6efd !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-decoration-thickness: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Direct links style for related search links with greater specificity */
body .container .row .col-md-9 .related-searches a {
    color: #0d6efd !important;
    text-decoration: none !important;
}

body .container .row .col-md-9 .related-searches a:hover {
    color: #0d6efd !important;
    text-decoration: none !important;
}

/* Override any Bootstrap or other framework styles */
.related-searches a.text-decoration-none {
    text-decoration: none !important;
}

/* Add a global style to remove underlines from blue links in specific containers */
.company-info-section a,
.main-content a,
.company-details a,
#header a.industry-header {
    text-decoration: none !important;
}

/* Truncated description styles */
.company-item .col-md-5:last-child > div:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4.5em;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Address display improvements */
.company-item address {
    margin-bottom: 0.5rem;
    font-style: normal;
    line-height: 1.5;
    color: #666;
}

/* Warning messages for missing data */
.company-item .text-warning {
    font-size: 0.8rem;
    color: #fd7e14 !important;
    margin-top: 0.25rem;
}

/* Logo placeholder styles */
.no-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 0 auto;
    width: 100%;
}

.company-item .no-logo-placeholder {
    height: 120px;
}

.list-companies .no-logo-placeholder {
    height: 150px;
}

/* Footer link styles */
.o_footer_copyright a,
.o_footer a {
    color: #9b9b9b !important;
    text-decoration: none;
}

.fa-facebook-square {
    font-size: 1.2rem;
    color: #9b9b9b;
}

.o_footer_copyright a:hover,
.o_footer a:hover {
    color: #ddd !important;
    text-decoration: underline;
}
.o_footer {
    color: #7d8a97;
}
/* Contact info in footer */
.footer-contact-info {
    color: #1283ee !important;
}

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

.footer-contact-info a:hover {
    color: #1283ee !important;
    text-decoration: none;
}

/* Company description styles */
.main-column > div:first-child {
    margin-bottom: 2rem;
}

.main-column > div:first-child p {
    text-align: justify;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.main-column > div:first-child h1,
.main-column > div:first-child h2,
.main-column > div:first-child h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.main-column > div:first-child ul,
.main-column > div:first-child ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.main-column > div:first-child a {
    color: #0d6efd;
    text-decoration: none;
}

.main-column > div:first-child a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Company description custom styles */
.main-column > div:first-child h2 {
    color: #0c5ca7;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.main-column > div:first-child ul {
    list-style-type: none;
    padding-left: 0.5rem;
    margin-bottom: 2rem;
}

.main-column > div:first-child ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.main-column > div:first-child ul li::before {
    content: "•";
    color: #0c5ca7;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.main-column > div:first-child ul li strong {
    color: #333;
    font-weight: 600;
}

/* Custom styles for VEIKLA section */
.main-column > div:first-child h2:first-of-type {
    margin-top: 0;
}

/* Special style for company services list */
.main-column > div:first-child ul.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.main-column > div:first-child ul.services-list li {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem 0.75rem 2rem;
    border-radius: 4px;
}

.main-column > div:first-child ul.services-list li::before {
    left: 0.75rem;
    top: 0.75rem;
}

/* Sideways text styles for Teises Garantas */
.sideways-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
    height: 100vh;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    overflow-y: auto;
    width: auto;
    max-width: 150px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sideways-text p {
    position: relative;
    padding-left: 20px;
    margin-left: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.sideways-text p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #4682b4;
}

.sideways-text strong {
    color: #000;
    font-weight: bold;
}

/* When sideways text is active, adjust main content */
body.has-sideways-text .container {
    margin-left: 150px;
}

@media (max-width: 768px) {
    .sideways-text {
        display: none;
    }

    body.has-sideways-text .container {
        margin-left: auto;
    }
}

/* Star Rating Styles - Fix order of stars */
.star-group {
    display: flex;
    flex-direction: row; /* Changed from row-reverse to row */
    gap: 2px;
}

.star-rating__label {
    margin: 0;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

/* Fix the selection logic for the stars */
.star-rating__label:hover .star-rating__star,
.star-rating__label:hover ~ .star-rating__label .star-rating__star {
    color: #ffc107;
}

/* Ensure that selected stars are properly highlighted */
.star-rating__star.is-selected {
    color: #ffc107;
}

/* Specific styling for Teises Garantas description */
.main-column > div:first-child p {
    text-align: justify;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Special styling for the teises-garantas company description */
.main-column[class*="teises-garantas"] > div:first-child,
.main-column > div:first-child[class*="teises-garantas"],
body:has([id="teises-garantas"]) .main-column > div:first-child {
    width: 510px;
    padding: 8px 16px;
    margin: 0px 0px 16px;
    font-family: "Open Sans", "Odoo Unicode Support Noto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgb(33, 37, 41);
    background-color: rgba(0, 0, 0, 0);
    text-align: start;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* Styling for Teises Garantas article links */
body:has([id="teises-garantas"]) .company-articles {
    width: 510px;
    padding: 8px 16px;
    margin: 0px 0px 16px;
    font-family: "Open Sans", "Odoo Unicode Support Noto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgb(33, 37, 41);
}

body:has([id="teises-garantas"]) .company-articles p {
    font-weight: 400;
    margin-bottom: 8px;
}

body:has([id="teises-garantas"]) .company-articles ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

body:has([id="teises-garantas"]) .company-articles li {
    margin-bottom: 8px;
}

body:has([id="teises-garantas"]) .company-articles a {
    color: #0d6efd;
    text-decoration: none;
}

body:has([id="teises-garantas"]) .company-articles a:hover {
    text-decoration: underline;
}

/* Fix for date and article title spacing */
.date-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.date-container i,
.date-container time {
    display: inline-flex;
    align-items: center;
}

.date-container time {
    margin-left: 0.25rem;
}

/* Remove extra space between date and card title */
.card-body h5.card-title {
    margin-top: 0;
    line-height: 1.4;
}

/* Ensure tight spacing in blog article layout */
.card-body .date-container + h5.card-title,
.card-body time + h5.card-title {
    margin-top: 0.25rem;
}

/* Straipsnis layout specific adjustments */
.straipsnis-container .date-container {
    margin-bottom: 0.25rem;
}

.straipsnis-container h5.card-title {
    margin-top: 0;
}

