:root {
    --accent-hue: 25;
    --accent-saturation: 98%;
    /* Base color with different opacity levels */
    --background-color: hsla(var(--accent-hue), var(--accent-saturation), 99.5%, 1);
    --accent-color: hsla(var(--accent-hue), var(--accent-saturation), 70%, 1);
    --accent-border-color: hsla(var(--accent-hue), var(--accent-saturation), 40%, 1);
    --secondary-color: #f1f1f1;
    --secondary-color-border: #9e9c9ce4;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.198);
    --shadow-text: 0 4px 3px rgba(0, 0, 0, 0.198);
    --white: #ffffff;
}
body {
    margin: 0;
    /* padding-bottom: 5vh; */
    overflow-y: auto;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
}
body.no-scroll {
    overflow: hidden;
}
.my-logo {
    font-size: 1.5em;
    font-weight: bold;
    /* text-shadow: var(--shadow-text); */
}
.no-reviews {
    text-align: center;
    margin-top: 150px;
}
.scroll-target {
    text-shadow: var(--shadow-text);
}
.main {
    /* padding: 30px; */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    min-height: calc(100vh - 60px - 5vh);
    /* Adjusted for header height */
}
/* .main h1,
h2,
h3,
h4,
h5,
h6 {
    text-shadow: var(--shadow-text);
} */
.main-title {
    margin-top: 20px;
    text-align: center;
}
.main-title h2 {
    margin: 0;
}
.reviews {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding-bottom: 100px;
}
.review-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: min(100%, 800px);
}
.review {
    position: relative;
    border: 1px solid black;
    width: 97%;
    box-sizing: border-box;
    padding: 10px;
    margin: 10px 0;
    box-shadow: var(--shadow);
    opacity: 1;
    background-color: var(--background-color);
}
.company-card .card-score {
    float: right;
}
@media (min-width: 769px) {
    .review {
        width: 90%;
    }
    .company-card {
        width: 90%;
    }
}
.review .buttons {
    float: right;
    margin-top: -10px;
    margin-right: -10px;
    display: flex;
    background-color: gray;
    /* padding: 8px 15px 2px 15px; */
    border-radius: 0px 0px 0px 10px;
    border: .5px solid black;
    border-top: none;
    border-right: none;
    color: white;
    position: relative;
}
.review .buttons div {
    text-align: center;
    cursor: pointer;
    /* width: 60px; */
    transition: none;
    padding: 8px 15px 2px 15px;
}
.review .buttons div:hover {
    color: rgba(31, 213, 226)
}
.review .buttons .reported {
    color: rgb(11, 226, 11);
    cursor: not-allowed;
}
.review .buttons .report.reported:hover {
    color: rgb(11, 226, 11);
    cursor: not-allowed;
}
.review .buttons .report {
    border-right: .5px solid black;
}
.review .buttons .visible-text::before {
    content: "";
    display: inline-block;
    width: 1ch;
}
.review .buttons .visible-text::after {
    content: "";
    display: inline-block;
    width: 1ch;
}
.buttons .tooltip {
    display: none;
    color: black;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 3px;
    width: 200px;
    top: 100%;
    right: 0;
    z-index: 10;
    /* Make sure it appears above other content */
    font-size: 12px;
}
.report:hover .tooltip {
    display: block;
}
.tooltip.visible {
    display: block;
}
.my-review {
    background-color: azure;
}
.card-header {
    display: flex;
    justify-content: space-between;
}
.card-title {
    font-weight: bold;
    margin: 2px 0px;
    /* padding-top: 1.2em; */
}
.card-title a {
    color: black;
    text-decoration: none;
    display: inline-block;
    transform-origin: top center;
    line-height: 1.2em;
}
.card-title a:hover {
    color: red;
    transition: all 0.1s ease;
}
.review .date {
    font-style: italic;
}
.card-text {
    line-height: 1.2em;
    overflow-x: hidden;
    /* Ensure consistent line height */
}
.card-footer {
    margin: 10px -10px -10px -10px;
    /* Negative margins to counter parent padding */
    width: calc(100% + 20px);
    /* 100% plus the total horizontal padding */
    border-top: #333 solid 1px;
    padding: 10px 0px 10px 20px;
    box-sizing: border-box;
    /* Optional: move footer into position */
    position: relative;
}
.card-footer a {
    color: red;
    text-decoration: none;
}
.card-text.collapsed {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Number of lines to display */
    -webkit-box-orient: vertical;
    min-width: 100%;
    min-height: 1.2em;
    max-height: calc(1.2em * 3);
    /* Adjust based on the line height */
}
.card-info {
    padding: 30px 0;
    max-width: 90vw;
    overflow-x: hidden;
}
.see-more {
    display: inline-block;
    color: black;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: var(--shadow-text);
}
.see-more:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
.see-more:active {
    transform: scale(1.1);
    transition: transform 0.2s ease;
    opacity: 0.5;
}
.link-wrapper {
    display: inline-block;
    margin: 20px;
}
.link-wrapper.disabled {
    cursor: not-allowed;
}
.link-wrapper.disabled a {
    pointer-events: none;
    opacity: 0.4;
}
.qna {
    margin-top: 10px;
}
.invalid {
    border: 2px solid #dc3545;
}
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
.review-form.hidden {
    height: 0px;
    overflow-y: hidden;
    padding-bottom: 0px;
    margin: 0px;
}
.review-form {
    padding-left: 5px;
    box-sizing: border-box;
}
form input,
select,
textarea {
    font-size: 16px;
    padding: 4px 2px 3px 2px;
    border: 2px solid transparent;
}
@supports (-webkit-touch-callout: none) {
    form input,
    select,
    textarea {
        border-radius: 0;
        background-color: var(--white);
        color: black;
    }
    form input:disabled,
    select:disabled,
    textarea:disabled {
        background-color: #f1f1f1;
        /* Light gray background for disabled fields */
        color: #888;
        /* Lighter text for disabled state */
        opacity: 1;
        /* iOS sometimes reduces opacity for disabled elements */
        -webkit-text-fill-color: #888;
        /* Ensures text color works in Safari */
        border-color: #ddd;
        /* Lighter border for disabled state */
    }
}
@media screen and (max-width: 768px) {
    textarea {
        max-height: 120px;
    }
}
form label {
    min-width: 100%;
    float: left;
    text-align: left;
    margin: 0;
}
form .answer {
    margin: 0px 8px;
}
form input[type="radio"].answer {
    margin-right: 0px;
}
form .text-suggestion-container {
    width: 300px;
    position: relative;
}
form .text-suggestion-container input {
    width: 100%;
    box-sizing: border-box;
}
form .text-suggestion-container input:focus {
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border: black solid 2px;
}
form .text-suggestion-container input.has-suggestions:focus {
    border-bottom: grey dashed 2px;
}
form .text-suggestion-container .suggestions-list {
    margin-left: 8px;
    border: none;
    border-top: none;
    box-sizing: border-box;
    border: 2px solid black;
    border-top: none;
}
/* .new-review-form {
    background-color: beige;
    position: fixed;
    top: 95vh;
    width: 100%;
    justify-content: center;
    max-height: 98vh;
    padding-bottom: 20px;
    overflow: hidden;
} */
.new-review-form {
    background-color: beige;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    transform: translateY(calc(100% - 5vh - env(safe-area-inset-bottom, 20px)));
    overflow: hidden;
    z-index: 100;
}
.new-review-form.absolute-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(calc(100% - 5vh));
}
.toggle-review-form {
    display: flex;
    cursor: pointer;
    justify-content: space-evenly;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    width: 100%;
    height: 5vh;
    padding-bottom: env(safe-area-inset-bottom);
    line-height: 5vh;
    background-color: red;
    user-select: none;
    /* Prevents text selection cursor */
    -webkit-user-select: none;
    /* For Safari */
    -moz-user-select: none;
    /* For Firefox */
    -ms-user-select: none;
}
.new-review-form.absolute-bottom .toggle-review-form {
    padding-bottom: 0;
}
.toggle-review-form.submitted {
    background-color: green;
    cursor: default;
    max-height: 90vh;
}
.new-review-form.expanded .toggle-review-form {
    padding-bottom: 0px;
}
.new-review-form.expanded .toggle-review-form::before {
    content: "\25BC";
    transition: color 0.6s ease;
}
.new-review-form.expanded .toggle-review-form::after {
    content: "\25BC";
    transition: color 0.6s ease;
}
.new-review-form.submitted {
    bottom: 0;
    background-color: green;
}
/* .new-review-form {
    transition: transform 0.6s ease;
} */
.new-review-form.transitioning {
    transition: transform 0.6s ease;
}
.new-review-form.expanded {
    /* transform: translateY(calc(-99% + 5vh)); */
    transform: translateY(0px);
    overflow-y: hidden;
    max-height: 100%;
}
@media screen and (max-width: 768px) {
    .new-review-form.expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        height: auto;
    }
    .new-review-form form {
        height: auto;
        max-height: calc(100% - 5vh);
        padding-bottom: 20px;
    }
}
.new-review-form form {
    margin: 0px 2px 2px;
    overflow-y: auto;
    /* max-height: 100vh; */
    overflow-x: hidden;
    padding-bottom: 40px;
}
.review-reasons {
    border: 1px dashed black;
    margin-left: -5px;
    padding: 5px;
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.form-label {
    font-weight: bold;
    margin-bottom: 2px;
}
.bold {
    font-weight: bold;
}
.textarea-holder {
    width: 100%;
}
.textarea-holder textarea {
    box-sizing: border-box;
    width: 95%;
}
.submit-holder {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.submit-holder button {
    font-size: 1.2em;
    font-weight: bold;
    background-color: green;
    color: white;
    height: 70px;
    width: 300px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#form-submitted {
    display: none;
}
#form-submitted div {
    width: 100%;
    text-align: center;
}
#form-submitted.visible {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}
.filters {
    width: 100%;
}
.filters div {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}
.filters div.hidden {
    display: none;
}
.filters a {
    margin: 0 10px;
    text-decoration: none;
    text-align: center;
    color: black;
    border: 2px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    display: inline-block;
}
.filters a::after {
    display: block;
    content: attr(data-text);
    font-weight: bold;
    height: 1px;
    color: transparent;
    overflow: hidden;
    visibility: hidden;
}
.filters a:hover {
    background-color: #f0f0f0;
    color: #333;
}
.filters a.active {
    font-weight: bold;
}
.filters-mobile {
    display: none;
}
.horizontal-radio.answer {
    margin-top: 4px;
    display: flex;
    flex-direction: row;
    margin-bottom: 4px;
}
.horizontal-radio label {
    min-width: 0;
    padding: 5px;
    border: 1px solid black;
    cursor: pointer;
    user-select: none;
    /* Prevents text selection cursor */
    -webkit-user-select: none;
    /* For Safari */
    -moz-user-select: none;
    /* For Firefox */
    -ms-user-select: none;
    /* For IE/Edge */
}
.horizontal-radio label+label {
    margin-left: 10px;
}
.horizontal-radio input[type="radio"]:checked+label {
    background-color: black;
    color: white;
    cursor: default
}
.horizontal-radio input[type="radio"] {
    display: none;
}
/* Show mobile version and hide desktop version at breakpoint */
@media screen and (max-width: 768px) {
    .filters {
        display: none;
    }
    .filters-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    .filters-mobile select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        height: 40px;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* The second select should always be visible but disabled initially */
    .filters-mobile .insurance-types {
        opacity: 0.5;
        /* Visual indication that it's disabled */
    }
    /* When enabled */
    .filters-mobile .insurance-types:not([disabled]) {
        opacity: 1;
    }
}
.loading-spinner-container {
    display: none !important;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid red;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-spinner-container.show-spinner {
    display: flex !important;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.loading-text {
    margin-top: 20px;
    color: #666;
    font-family: Arial, sans-serif;
}
#subscribe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
#subscribe div {
    padding: 40px;
    /* Increased padding for more space */
    background-color: white;
    border-radius: 5px;
    text-align: center;
    justify-content: center;
    width: 80%;
    max-width: 500px;
    /* Add this to prevent it getting too wide */
}
.input-submit {
    display: flex;
    width: 100%;
    margin-top: 10px;
}
.input-submit input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
}
.input-submit button {
    padding: 8px 16px;
    background: red;
    color: white;
    border: 1px solid red;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.top {
    background-color: lightblue;
    width: 100%;
    padding-bottom: 20px;
}
.top .logo {
    padding: 10px 0px 5px 20px;
    height: 150px;
    width: 450px;
    max-width: 100%;
}
.stat-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    max-width: 800px;
    margin: 0 0 0 45px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    padding: 0 50px;
}
.stat {
    font-size: 0.875rem;
    position: relative;
}
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-text {
    font-weight: bold;
    background-color: #063c7225;
    border: 1px solid #063c72;
    border-radius: 8px;
    padding: 1px 6px;
}
.stat::before {
    content: "";
    position: absolute;
    inset: -0.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    z-index: -1;
}
.info {
    display: none;
    position: absolute;
    top: 115%;
    left: 5%;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.25rem;
    z-index: 999;
    width: 200px;
    overflow: visible;
}
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #063c7291;
    border-radius: 50%;
    font-style: italic;
    font-size: 15px;
    font-weight: bold;
    color: #063c7291;
    flex-shrink: 0;
    margin: 5px;
    cursor: pointer;
    /* Prevent icon from shrinking */
}
.info-icon:hover {
    background-color: #063c72;
    color: white;
    transform: scale(1.1);
}
@media (min-width: 769px) {
    .stat:hover .info {
        display: block;
    }
    .info-icon.mobile {
        display: none;
    }
}
/* Mobile adjustments */
@media (max-width: 768px) {
    .top .logo {
        padding: 10px;
    }
    .stats {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }
    .stat-box {
        padding: 1rem 0.5rem;
        width: 98vw;
        margin: auto;
        box-sizing: border-box;
    }
    .stat {
        border: 1px solid #e5e7eb;
        border-radius: 0;
        padding: 0.75rem;
        background: white;
        border-bottom: none;
    }
    /* First stat */
    .stat:first-child {
        border-top-left-radius: 0.25rem;
        border-top-right-radius: 0.25rem;
    }
    /* Last stat */
    .stat:last-child {
        border-bottom-left-radius: 0.25rem;
        border-bottom-right-radius: 0.25rem;
        border-bottom: 1px solid #e5e7eb;
    }
    .info {
        position: static;
        width: 95%;
        margin-top: 0.5rem;
        border: none;
        display: none;
        font-size: 0.875rem;
        color: #666;
        line-height: 1.4;
    }
    .stat.expanded .info {
        display: block;
    }
}
/* search */
.search-container {
    box-sizing: border-box;
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    font-family: system-ui, -apple-system, sans-serif;
}
.search-input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}
.search-input:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}
.suggestions-list {
    box-sizing: border-box;
    position: absolute;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.suggestions-list:not(:empty) {
    display: block;
}
.search-input:has(+ .suggestions-list:not(:empty)) {
    border-radius: 8px 8px 0 0;
}
.suggestions-list li {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}
.suggestions-list li:last-child {
    border-bottom: none;
}
.suggestions-list li:hover {
    background: #f8fafc;
}
/* Scrollbar styling */
.suggestions-list::-webkit-scrollbar {
    width: 8px;
}
.suggestions-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 0 8px 0;
}
.suggestions-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.search-results {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.2em;
}
.search-results li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}
.search-results li a {
    text-decoration: none;
    color: #333;
}
/* header */
.header {
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    position: relative;
    /* Allows absolute positioning inside */
    height: 60px;
    /* Adjust as needed */
    background: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color-border);
    /* Example background */
}
.header>.my-logo {
    position: absolute;
    /* Positions relative to .header */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centers it */
    white-space: nowrap;
}
.header a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
}
.header a:hover {
    color: #cf0c0c;
}
.hamburger-btn {
    display: none;
    /* Hide by default */
}
.footer {
    box-sizing: border-box;
    /* position: absolute; */
    background-color: var(--secondary-color);
    border-top: 1px solid var(--secondary-color-border);
    padding: 100px 0;
    padding-bottom: calc(5vh + 20px + env(safe-area-inset-bottom));
    width: 100%;
    transition: padding-bottom 0.3s ease;
    z-index: 101;
}
.footer .links {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}
.footer a {
    text-decoration: none;
    color: #333;
}
.footer a:hover {
    color: #cf0c0c;
    text-decoration: underline;
}
.footer div {
    padding: 0px 20px;
    margin: 20px auto;
    text-align: center;
}
.hamburger {
    position: absolute;
    right: 10px;
    /* Adjust if needed */
    /* Adjust based on menu state */
}
.hamburger .my-logo {
    display: none;
    /* Hide by default */
}
.hamburger a {
    padding-right: 20px;
}
@media (max-width: 768px) {
    .hamburger-btn {
        position: absolute;
        height: 100%;
        width: 40px;
        left: 0px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px 2px
    }
    .hamburger-btn:active {
        transform: scale(1.05);
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 0;
        top: 0;
        background-color: rgba(0, 0, 0, 0.93);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        z-index: 1000;
    }
    .hamburger .logo {
        display: block;
        margin-bottom: 20px;
    }
    .hamburger a {
        padding-right: 0;
        color: white;
        text-decoration: none;
        font-size: 1.5em;
        /* margin: 10px; */
        transform-origin: center;
        transition: transform 0.2s;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    .hamburger a:active {
        color: #cf0c0c;
        transform: scale(1.1);
    }
    .hamburger p {
        color: white;
        text-decoration: none;
        font-size: 1.5em;
        margin: 10px;
    }
    .hamburger.show {
        transform: translateX(0);
    }
    .hamburger .logo-wrapper {
        top: 0;
        position: absolute;
        height: 60px;
        width: 100%;
        border-bottom: #f8f9fa solid 1px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: black;
    }
    .hamburger .my-logo {
        position: relative;
        box-sizing: border-box;
        display: block;
    }
    .hamburger.mobile-ready {
        transition: transform 0.3s ease;
    }
}
/* about */
.about {
    margin: 0px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: calc(100vh - 60px);
}
.about h1 {
    text-align: center;
    margin-bottom: 2px;
}
.about div {
    max-width: 500px;
}
.about h1:first-child {
    margin-top: 0;
}
.contact {
    text-align: center;
}
.home-about {
    padding: 0px 20px;
    max-width: 500px;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-border-color);
    border-radius: 5px;
    font-size: large;
    box-shadow: var(--shadow);
}
@media screen and (max-width: 768px) {
    .home-about {
        padding: 0px 10px;
    }
}
@media screen and (max-width: 540px) {
    .home-about {
        border-radius: 0px;
    }
}
.fadeable {
    transition: opacity 0.5s ease-in-out;
}
.fade-out {
    opacity: 0;
}
.title-holder {
    text-align: center;
}
.title-holder .subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}
.top-companies {
    min-width: min(100%, 800px);
    max-width: 800px;
    margin: 0 auto;
}

.top-companies.bottom {
    margin-bottom: 100px;
}


.company-card {
    position: relative;
    border: 1px solid black;
    width: 97%;
    box-sizing: border-box;
    padding: 10px;
    margin: 10px 0;
    opacity: 1;
    background-color: var(--background-color);
}
.company-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.company-card .card-title {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.card-score.great {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1em;
}
/* Tour overlay styles */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}
.tour-highlight {
    position: fixed;
    border: 3px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    transition: all 0.5s ease;
    background-color: var(--background-color);
}
.tour-popup {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    z-index: 6000;
}
.tour-popup h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}
.tour-popup p {
    margin: 0 0 15px 0;
    color: #6c757d;
    line-height: 1.4;
}
.tour-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tour-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.tour-btn:hover {
    background: #0056b3;
}
.tour-btn.secondary {
    background: #6c757d;
}
.tour-btn.secondary:hover {
    background: #545b62;
}
.tour-progress {
    color: #6c757d;
    font-size: 12px;
}
.highlighted {
    position: relative;
    z-index: 1001;
    background-color: var(--background-color);
}

.no-mouse {
    pointer-events: none;
    user-select: none;
}

.start-tour-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}
.start-tour-btn:hover {
    background: #218838;
}
.plain-anchor {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    display: contents;
}
.list-separator {
    position: relative;
    text-align: center;
    width: 100%;
}
.list-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    border-top: 2px dashed #ddd9d9;
    z-index: 1;
}
.list-separator .text {
    padding: 0 6px;
    position: relative;
    color: #ddd9d9;
    background-color: var(--background-color);
    z-index: 2;
    display: inline-block;
}
.list-separator .text a {
    color: #6b6868;
    text-decoration: none;
    font-weight: bold;
}
.list-separator .text a:hover {
    color: #cf0c0c;
    text-decoration: underline;
}
.comparison-filters {
    max-width: min(600px, 100%);
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.comparison-filters select {
    flex: 1;
    min-width: 0;
    text-align: center;
    text-overflow: ellipsis;
    background-color: var(--background-color);
    box-sizing: border-box;
    -webkit-appearance: none;
    /* Removes default browser styling, including the arrow */
    appearance: none;
    /* Standard property for cross-browser compatibility */
}
.comparison-filters select:hover {
    cursor: pointer;
}
