.totm-medical-hero {
    position: relative;
    min-height: 246px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(103deg, rgba(4,43,57,.98), rgba(6,69,79,.92) 63%, rgba(0,160,133,.77)), url('/images/bg-image/row-bgimage-6.jpg') center 47% / cover;
}

.totm-medical-hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00cda5;
}

.totm-medical-hero > .container {
    min-height: 246px;
    padding-top: 23px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.totm-medical-breadcrumb {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b9d0d5;
    font-size: 13px;
}

.totm-medical-breadcrumb a { color: #dcebed; }
.totm-medical-breadcrumb a:hover { color: #5de4ca; }
.totm-medical-breadcrumb i { color: #5de4ca; }

.totm-medical-hero > .container > small {
    margin-bottom: 2px;
    color: #5de4ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.totm-medical-hero h1 {
    max-width: 940px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.5vw, 46px);
    line-height: 1.14;
    letter-spacing: -.035em;
}

.totm-medical-hero p {
    max-width: 700px;
    margin: 8px 0 0;
    color: #d4e4e6;
    font-size: 16px;
    line-height: 1.55;
}

.totm-medical-directory-v2 {
    padding: 38px 0 68px !important;
    background: #f4f8f9;
}

.totm-medical-directory-v2.is-ready > .container > .row:first-child { display: none; }

.totm-medical-toolbar {
    padding: 14px;
    border: 1px solid #d8e3e6;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.totm-medical-search {
    height: 52px;
    padding: 0 13px;
    border: 1px solid #d8e3e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #008c7d;
    background: #fbfcfc;
}

.totm-medical-search > i { font-size: 17px; }
.totm-medical-search input { min-width: 0; flex: 1 1 auto; border: 0; outline: 0; color: #073a4c; background: transparent; font-size: 16px; }
.totm-medical-search input::placeholder { color: #81969d; }
.totm-medical-search button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: #789098; background: #edf2f3; font-size: 18px; line-height: 28px; cursor: pointer; }
.totm-medical-search button[hidden] { display: none; }

.totm-medical-filters {
    padding: 3px;
    border-radius: 8px;
    display: inline-flex;
    background: #edf3f4;
}

.totm-medical-filters button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    color: #647d85;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.totm-medical-filters button.active { color: #fff; background: #073a4c; box-shadow: 0 3px 10px rgba(5,52,68,.14); }

.totm-medical-summary {
    margin: 20px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #71858c;
    font-size: 14px;
}

.totm-medical-summary p { margin: 0; }
.totm-medical-summary strong { margin-right: 5px; color: #008c7d; font-size: 20px; }

.totm-medical-directory-v2.is-ready .totm-medical-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}

.totm-medical-card-column { min-width: 0; padding: 0; }
.totm-medical-card-column[hidden] { display: none; }

.totm-medical-card {
    min-height: 248px;
    height: 100%;
    padding: 22px;
    border: 1px solid #d8e3e6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 25px rgba(8,53,65,.04);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.totm-medical-card:hover { border-color: #b8ddd6; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8,53,65,.08); }

.totm-medical-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border: 1px solid #c3e8e1;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008c7d;
    background: #ecf8f5;
}

.totm-medical-card-icon i,
.totm-medical-card-icon i::before { font-size: 26px; line-height: 1; }

.totm-medical-card-group { color: #008c7d; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.totm-medical-card h2 { margin: 4px 0 7px; color: #073a4c; font-size: 19px; line-height: 1.3; }
.totm-medical-card > p { margin: 0; color: #607780; font-size: 14px; line-height: 1.55; }

.totm-medical-card-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #d8e3e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.totm-medical-card-actions a { display: inline-flex; align-items: center; gap: 6px; color: #008c7d; font-size: 13px; font-weight: 700; line-height: 1.3; }
.totm-medical-card-actions a:last-child { color: #607780; white-space: nowrap; }
.totm-medical-card-actions a:hover { color: #073a4c; }
.totm-medical-card-actions i { font-size: 13px; }

.totm-medical-empty {
    margin-top: 18px;
    padding: 42px 20px;
    border: 1px dashed #bed7d3;
    border-radius: 12px;
    color: #607780;
    background: #fff;
    text-align: center;
}
.totm-medical-empty[hidden] { display: none; }
.totm-medical-empty i { margin-bottom: 10px; color: #00a98e; font-size: 28px; }
.totm-medical-empty h3 { margin: 0 0 4px; color: #073a4c; font-size: 19px; }
.totm-medical-empty p { margin: 0; font-size: 15px; }

@media only screen and (max-width: 991px) {
    .totm-medical-directory-v2.is-ready .totm-medical-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .totm-medical-toolbar { grid-template-columns: 1fr; }
    .totm-medical-filters { max-width: 100%; overflow-x: auto; }
}

@media only screen and (max-width: 600px) {
    .totm-medical-hero,
    .totm-medical-hero > .container { min-height: 225px; }
    .totm-medical-hero > .container { padding-top: 18px; padding-bottom: 27px; }
    .totm-medical-breadcrumb { margin-bottom: 13px; font-size: 12px; }
    .totm-medical-hero h1 { font-size: 30px; }
    .totm-medical-hero p { font-size: 15px; }
    .totm-medical-directory-v2 { padding: 27px 0 46px !important; }
    .totm-medical-directory-v2.is-ready .totm-medical-grid { grid-template-columns: 1fr; }
    .totm-medical-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
    .totm-medical-filters { width: 100%; }
    .totm-medical-filters button { min-width: max-content; flex: 1 0 auto; }
    .totm-medical-card { min-height: 230px; }
}
