* {
box-sizing: border-box;
}

html,
body {
margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
font-family: "Segoe UI", Arial, sans-serif;
    background: #f8faf9;
    color: #656b72;
}

body.modal-open {
overflow: hidden;
}

.site-header {
height: 62px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 420px 1fr 50px;
    align-items: center;
    gap: 20px;
    padding: 0 48px;
}

.brand {
display: flex;
    align-items: center;
    gap: 12px;
    color: #008b4f;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.logo {
width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 139, 79, .28);
    background: #ffffff;
    color: #008b4f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
}

.latest-news {
color: #9a9fa6;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
}

.latest-news strong {
color: #008b4f;
    font-weight: 800;
    margin-left: 8px;
}

.theme-btn {
border: 0;
    background: transparent;
    color: #ff9c1a;
    font-size: 24px;
    cursor: pointer;
}

.page-shell {
width: 100%;
    max-width: 1780px;
    margin: 0 auto;
    padding: 15px 30px 30px;
    display: grid;
    grid-template-columns: 368px minmax(0, 1fr);
    gap: 30px;
	align-items: start;
}

.available-card {
background: #2f9863;
    color: #ffffff;
    border-radius: 10px !important;
    padding: 28px 24px;
    height: auto;
    max-height: none;
    overflow: visible;
}

.available-panel {
border-radius: 10px !important;
    overflow: visible;
}

.available-card::-webkit-scrollbar {
width: 6px;
}

.available-card::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, .45);
    border-radius: 10px !important;
}

.available-card h2 {
margin: 0 0 20px;
    font-size: 22px;
    font-weight: 900;
}

.today-meta {
display: flex;
    flex-wrap: wrap;
    gap: 13px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 17px;
}

.disclaimer {
margin: 0 0 26px;
    font-size: 13px;
    line-height: 1.65;
    font-style: italic;
}

.today-list {
display: flex;
    flex-direction: column;
    gap: 14px;
}

.today-doctor {
display: block;
    text-decoration: none;
    background: #ffffff;
    border-radius: 10px !important;
    padding: 14px 16px;
    color: #008b4f;
}

.today-doctor strong {
display: block;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 5px;
    font-weight: 900;
}

.today-doctor small {
display: block;
    color: #4f5965;
    font-size: 11.5px;
    line-height: 1.35;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.today-doctor span {
color: #008b4f;
    font-size: 11.5px;
    font-weight: 800;
}

.main-content {
min-width: 0;
}
.search-bar {
    width: 100%;
    display: grid;
    grid-template-columns:
        54px
        minmax(190px, 1.15fr)
        minmax(220px, 1fr)
        minmax(210px, 1fr)
        78px
        110px
        58px;
    gap: 12px;
    align-items: center;
    margin: 20px 0 28px;
    position: relative;
    z-index: 20;
}

.total-box {
    font-size: 12px;
    color: #008b4f;
    line-height: 1.1;
    font-weight: 900;
}

.total-box span,
.total-box strong {
    display: block;
}

.total-box span {
    color: #71777f;
    font-weight: 800;
}

.field-pill {
    height: 52px;
    border: 1px solid #dcdfe3;
    border-radius: 10px !important;
    background: #ffffff;
    display: flex;
    align-items: center;
    overflow: visible;
    min-width: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.field-icon {
    width: 46px;
    height: 100%;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008b4f;
    font-size: 16px;
}

.field-pill input,
.field-pill select {
    border: 0;
    background: transparent;
    height: 100%;
    width: 100%;
    min-width: 0;
    outline: none;
    color: #606871;
    font-size: 13px;
    font-weight: 800;
    padding: 0 16px 0 0;
    text-transform: uppercase;
}

.field-pill input::placeholder {
    color: #9aa1a9;
    opacity: 1;
}

.clear-btn {
    height: 52px;
    border: 1px solid transparent;
    background: transparent;
    color: #72777e;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 20px;
    min-width: 0;
    border-radius: 10px !important;
}

.clear-btn small {
    font-size: 10px;
    color: #666b72;
    font-weight: 900;
    letter-spacing: .3px;
}

.clear-btn:hover {
    color: #008b4f;
    background: #ffffff;
    border-color: #dcdfe3;
}
.custom-search-select {
    display: none !important;
}

.custom-select {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.custom-select-toggle {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #606871;
    font-size: 13px;
    font-weight: 900;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    min-width: 0;
    padding: 0 14px 0 0;
}

.custom-select-icon {
    color: #008b4f;
    font-size: 16px;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .12));
}

.custom-select-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.custom-select-arrow {
    flex: 0 0 auto;
    color: #8d949c;
    font-size: 10px;
    margin-left: auto;
}

.custom-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    left: -46px;
    width: 125%;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #bfc4ca;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    z-index: 99999;
    padding: 7px 7px 0;
    border-radius: 10px !important;
    overflow: hidden;
}

.custom-select.is-open {
    z-index: 99999;
}

.custom-select.is-open .custom-select-menu {
    display: block;
}

.custom-select-search {
    width: 100%;
    height: 36px;
    min-height: 36px;
    border: 1px solid #d2d6db !important;
    outline: none !important;
    border-radius: 10px !important;
    padding: 0 10px;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    line-height: 36px;
    color: #111827;
    background: #ffffff;
    box-sizing: border-box;
}

.custom-select-options {
    max-height: 255px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 5px;
}

.custom-select-option {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: #ffffff;
    color: #27384a;
    padding: 9px 8px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    white-space: normal;
    text-transform: uppercase;
}

.custom-select-option:hover,
.custom-select-option.is-active {
    background: #2f9863;
    color: #ffffff;
}

.custom-select-empty {
    padding: 10px 8px;
    color: #8d949c;
    font-size: 14px;
    font-weight: 700;
}

.today-specialization {
    display: none !important;
}

.today-specialization + .custom-select {
    width: 100%;
    height: 34px !important;
    min-height: 34px !important;
    margin-bottom: 28px !important;
    z-index: 30;
}

.today-specialization + .custom-select .custom-select-toggle {
    height: 34px !important;
    min-height: 34px !important;
    background: #ffffff;
    border-radius: 10px !important;
    padding: 0 16px !important;
    color: #8d949c;
}

.today-specialization + .custom-select .custom-select-menu {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 100%;
}

.day-filter-pill {
    min-width: 110px;
}

.day-filter-pill .custom-select-toggle {
    padding-right: 12px;
}

.day-filter-pill .custom-select-menu {
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    min-width: 160px;
}
@media (max-width: 1500px) {
    .search-bar {
        grid-template-columns:
            48px
            minmax(165px, 1.15fr)
            minmax(185px, 1fr)
            minmax(180px, 1fr)
            72px
            100px
            50px;
        gap: 8px;
    }
}

@media (max-width: 1320px) {
    .search-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .total-box {
        grid-column: span 1;
    }

    .clear-btn {
        flex-direction: row;
        gap: 6px;
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .search-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .total-box {
        grid-column: 1 / -1;
        display: flex;
        gap: 5px;
        align-items: center;
    }
}

@media (max-width: 700px) {
    .search-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin: 10px 0 16px;
    }

    .search-bar > * {
        width: 100%;
    }

    .total-box {
        display: flex;
        align-items: center;
        gap: 5px;
        padding-left: 4px;
        margin-bottom: 2px;
        font-size: 13px;
    }

    .field-pill,
    .clear-btn,
    .day-filter-pill {
        width: 100%;
        height: 50px;
        border-radius: 10px !important;
    }

    .custom-select-toggle,
    .field-pill input {
        font-size: 13px;
    }

    .clear-btn {
        border: 1px solid #dcdfe3;
        background: #ffffff;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 14px 0 0;
        gap: 8px;
    }

    .clear-btn span {
        width: 46px;
        flex: 0 0 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }

    .clear-btn small {
        font-size: 13px;
    }

    .custom-select-menu,
    .day-filter-pill .custom-select-menu,
    .today-specialization + .custom-select .custom-select-menu {
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

.doctor-grid {
display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.doctor-card,
.empty-card {
background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 10px !important;
    box-shadow: 0 4px 13px rgba(0, 0, 0, .16);
}

.doctor-card {
min-height: 228px;
    padding: 22px 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	transition:transform .18s ease, box-shadow .18s ease;
}

.doctor-card:hover {
transform:translateY(-4px) scale(1.02);
    box-shadow:0 14px 30px rgba(0,0,0,.18);
}

.doctor-icon {
font-size:18px;
    line-height:1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.empty-card {
padding: 25px;
    grid-column: 1 / -1;
}

.doctor-head {
display: flex;
    align-items: flex-start;
    gap: 9px;
}

.doctor-icon {
color: #008b4f;
    font-size: 15px;
    line-height: 1.2;
    margin-top: 3px;
}

.doctor-card h2 {
margin: 0 0 5px;
    color: #008b4f;
    font-size: 18px;
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: .2px;
}

.main-specialization {
margin: 0;
    color: #4f5965;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
}

.sub-specialization {
margin: 2px 0 0;
    color: #777d85;
    font-size: 13px;
    line-height: 1.25;
    font-style: italic;
}

.day-badges {
display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin: 13px 0 10px;
}

.day-badges span {
min-width: 0;
    width: 100%;
    height: 18px;
    padding: 3px 4px;
    border-radius: 10px !important;
    background: #d779c8;
    color: #ffffff;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 12px;
}

.day-badges span:nth-child(2) {
background: #b69eea;
}

.day-badges span:nth-child(3) {
background: #61aae9;
}

.day-badges span:nth-child(4) {
background: #5fc665;
}

.day-badges span:nth-child(5) {
background: #d2cd7c;
}

.day-badges span:nth-child(6) {
background: #eba49d;
}

.schedule-note {
margin: 0;
    color: #777d85;
    font-size: 12px;
    line-height: 1.35;
	font-style: italic;
}

.card-footer {
display: flex;
    justify-content: flex-end;
    margin-top: 1px;
}

.more-link {
color: #008b4f;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.more-link:hover {
text-decoration: underline;
}

.modal-overlay {
position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .48);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
display: flex;
}

.modal-box {
width: min(1100px, 100%);
    max-height: 92vh;
    background: #ffffff;
    border-radius: 10px !important;
    position: relative;
    overflow: hidden;
}

.modal-close {
position: absolute;
    top: 14px;
    right: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px !important;
    background: #ffffff;
    color: #888;
    font-size: 34px;
    cursor: pointer;
}

.modal-content {
max-height: 92vh;
    overflow: auto;
    padding: 34px;
}

@media (max-width: 1500px) {
.site-header {
grid-template-columns: 410px 1fr 42px;
        padding: 0 38px;
}

.page-shell {
grid-template-columns: 350px minmax(0, 1fr);
        gap: 24px;
        padding: 14px 28px 28px;
}

.available-card {
padding: 26px 22px;
        border-radius: 10px !important;
        height: auto;
        max-height: none;
        overflow: visible;
}

.available-card h2 {
font-size: 21px;
}

.doctor-card {
padding: 20px 22px 16px;
}
}

@media (max-width: 1320px) {
.page-shell {
grid-template-columns: 320px minmax(0, 1fr);
        gap: 20px;
        padding: 12px 22px 22px;
}

.doctor-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 1024px) {
.site-header {
height: auto;
        grid-template-columns: 1fr;
        padding: 14px 24px;
        gap: 8px;
}

.latest-news {
text-align: left;
        white-space: normal;
}

.theme-btn {
display: none;
}

.page-shell {
grid-template-columns: 1fr;
}

.available-card {
height: auto;
        max-height: none;
        border-radius: 10px !important;
}

.today-list {
display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 700px) {
.brand {
font-size: 18px;
}

.logo {
width: 42px;
        height: 42px;
}

.page-shell {
padding: 10px 14px 14px;
}

.doctor-grid,
    .today-list {
grid-template-columns: 1fr;
}
}

.doctor-modal-layout {
display:grid;
    grid-template-columns:minmax(0,1fr) 430px;
    gap:26px;
}

.doctor-modal-left {
min-width:0;
    max-height:82vh;
    overflow-y:auto;
    padding-right:18px;
}

.doctor-modal-left::-webkit-scrollbar {
width:8px;
}

.doctor-modal-left::-webkit-scrollbar-thumb {
background:#2f9863;
    border-radius: 10px !important;
}

.doctor-modal-right {
background:#f6f6f6;
    border-radius: 10px !important;
    padding:26px;
    height:82vh;
    overflow-y:auto;
}

.doctor-modal-right::-webkit-scrollbar {
width:8px;
}

.doctor-modal-right::-webkit-scrollbar-thumb {
background:#888;
    border-radius: 10px !important;
}

.doctor-modal-name-wrap {
display:flex;
    align-items:flex-start;
    gap:18px;
}

.doctor-modal-icon {
color:#2f9863;
    font-size:36px;
    line-height:1;
    margin-top:-5px;
}

.doctor-modal-name {
margin:0;
    color:#2f9863;
    font-size:25px;
    line-height:1;
    font-weight:800;
    letter-spacing:.5px;
}

.doctor-modal-specialization-box {
margin:5px 0 5px;
    background:#ffffff;
    border-left:7px solid #e5e5e5;
    border-bottom:1px solid #e8e8e8;
    padding:8px 0 22px 18px;
}

.doctor-modal-main-spec {
color:#777;
    font-size:17px;
    font-weight:400;
    margin-bottom:7px;
    text-transform:uppercase;
}

.doctor-modal-sub-spec {
color:#8a8f96;
    font-size:16px;
    line-height:1.45;
    font-style:italic;
}

.doctor-modal-info-grid {
display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin:14px 0;
    padding:10px 0;
    border-top:1px solid #e2e2e2;
}

.doctor-modal-info-item {
display:flex;
    align-items:flex-start;
    gap:14px;
}

.doctor-modal-info-icon {
width:44px;
    height:44px;
    border-radius: 10px !important;
    background:#2f9863;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    flex:0 0 44px;
}

.doctor-modal-info-title {
color:#2f9863;
    font-size:18px;
    font-weight:700;
    line-height:1.3;
}

.doctor-modal-info-text {
color:#666;
    font-size:13px;
    margin-top:4px;
}

.doctor-modal-info-text.yellow {
color:#c5a328;
}

.doctor-modal-section {
margin-bottom:18px;
}

.doctor-modal-label {
color:#8d8d8d;
    font-size:16px;
	font-weight: 700;
	padding-top:8px;
	border-top:1px solid #e2e2e2;
}

.doctor-modal-paragraph {
color:#666;
    font-size:13px;
}

.doctor-modal-paragraph.upper {
margin-top:13px;
    text-transform:uppercase;
}

.doctor-schedule-list {
margin-top:8px;
}

.doctor-schedule-row {
display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:7px 0;
	gap:10px;
    border-bottom:1px solid #ececec;
}

.schedule-day {
display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:92px;
    height:20px;
    border-radius: 10px !important;
    color:#fff;
    font-size:11px;
    font-weight:700;
    margin-bottom:10px;
}

.schedule-day.pink {
background:#d889d8;
}

.schedule-day.violet {
background:#b9a5ec;
}

.schedule-day.blue {
background:#6aaeee;
}

.schedule-day.green {
background:#76cf76;
}

.schedule-day.yellow-bg {
background:#d8cc77;
}

.schedule-day.peach {
background:#eba59b;
}

.schedule-time {
color:#444;
    font-size:13px;
    font-weight:500;
}

.schedule-room {
color:#444;
    font-size:13px;
}

.doctor-modal-hmo-title {
color:#2f9863;
    font-size:20px;
    font-weight:500;
    margin-bottom:22px;
}

.doctor-hmo-list {
display:flex;
    flex-direction:column;
    gap:10px;
}

.doctor-hmo-item {
background:#fff;
    border-radius: 10px !important;
    padding:14px 14px;
    color:#2f9863;
    font-size:13px;
    font-weight:700;
    box-shadow:0 5px 15px rgba(0,0,0,.06);
    display:flex;
    align-items:center;
    gap:5px;
    transition:transform .18s ease, box-shadow .18s ease;
}

.doctor-hmo-item::before {
content:"✓";
    width:15px;
    height:15px;
    border-radius: 10px !important;
    background:#2f9863;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:900;
    flex:0 0 15px;
}

.doctor-hmo-item:hover {
transform:scale(1.035);
    box-shadow:0 10px 24px rgba(0,0,0,.12);
}

@media (max-width:1200px) {
.doctor-modal-layout {
grid-template-columns:1fr;
}

.doctor-modal-right {
height:auto;
}

.doctor-modal-name {
font-size:44px;
}
}

@media (max-width:700px) {
.doctor-modal-name {
font-size:34px;
}

.doctor-modal-info-grid {
grid-template-columns:1fr;
        gap:18px;
}

.doctor-schedule-row {
flex-direction:column;
        align-items:flex-start;
}
}

.doctor-card-link,
.doctor-card-link:hover,
.doctor-card-link:focus,
.doctor-card-link:active,
.doctor-card-link:visited {
display: block;
    color: inherit;
    text-decoration: none !important;
    cursor: pointer;
}

.doctor-card-link * {
text-decoration: none !important;
}

.doctor-card-link,
.doctor-card-link:hover,
.doctor-card-link:focus,
.doctor-card-link:active,
.doctor-card-link:visited {
text-decoration: none !important;
    color: inherit;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.doctor-card-link:focus .doctor-card,
.doctor-card-link:active .doctor-card,
.doctor-card-link:focus-visible .doctor-card {
outline: none !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 1281px) {
html,
    body {
height: 100%;
        min-height: 100%;
        overflow: hidden !important;
        padding-top: 0 !important;
}

.site-header {
position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 62px !important;
        z-index: 9999 !important;
        background: #ffffff !important;
}

.page-shell {
position: fixed !important;
        top: 62px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 1780px !important;
        height: calc(100vh - 62px) !important;
        margin: 0 auto !important;
        padding: 15px 30px 30px !important;
        display: grid !important;
        grid-template-columns: 368px minmax(0, 1fr) !important;
        gap: 30px !important;
        align-items: stretch !important;
        overflow: hidden !important;
}

.available-panel {
position: static !important;
        width: auto !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        z-index: 1 !important;
}

.available-card {
height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 10px !important;
}

.today-list {
display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 6px !important;
}

.today-list::-webkit-scrollbar {
width: 6px;
}

.today-list::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, .55);
        border-radius: 10px !important;
}

.today-list::-webkit-scrollbar-track {
background: rgba(255, 255, 255, .15);
        border-radius: 10px !important;
}

.main-content {
height: 100% !important;
        min-height: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
}

.doctor-grid {
flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 8px 22px 0 !important;
        align-content: start !important;
}

.doctor-grid::-webkit-scrollbar {
width: 7px;
}

.doctor-grid::-webkit-scrollbar-thumb {
background: rgba(0, 139, 79, .35);
        border-radius: 10px !important;
}

.doctor-grid::-webkit-scrollbar-track {
background: rgba(0, 0, 0, .05);
        border-radius: 10px !important;
}
}

@media (max-width: 1280px) and (min-width: 701px) {
html,
    body {
height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
}

.site-header {
position: static !important;
        height: auto !important;
}

.available-panel {
display: none !important;
}

.page-shell {
position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        padding: 12px 18px 18px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow: visible !important;
}

.main-content {
height: auto !important;
        overflow: visible !important;
        display: block !important;
}

.doctor-grid {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        overflow: visible !important;
        padding: 0 !important;
}
}

@media (max-width: 700px) {
html,
    body {
height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
}

.site-header {
position: static !important;
        height: auto !important;
}

.available-panel {
display: none !important;
}

.page-shell {
position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        padding: 10px 14px 14px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow: visible !important;
}

.main-content {
height: auto !important;
        overflow: visible !important;
        display: block !important;
}

.doctor-grid {
grid-template-columns: 1fr !important;
        overflow: visible !important;
        padding: 0 !important;
}

.doctor-card {
min-height: auto !important;
}
}
@media (min-width: 1281px) {
    .search-bar {
        width: 100% !important;
        flex: 0 0 auto !important;
        display: grid !important;
        grid-template-columns:
            42px
            minmax(120px, .60fr)
            minmax(145px, .75fr)
            minmax(145px, .75fr)
            110px
            98px
            52px !important;
        gap: 5px !important;
        align-items: center !important;
        margin: 10px 0 16px !important;
        position: relative !important;
        z-index: 100 !important;
        background: #f8faf9 !important;
    }

    .field-pill,
    .day-filter-pill {
        height: 42px !important;
        min-width: 0 !important;
        border-radius: 10px !important;
    }

    .field-icon {
        width: 26px !important;
        flex: 0 0 26px !important;
        font-size: 11px !important;
    }

    .field-pill input {
        font-size: 10px !important;
        font-weight: 900 !important;
        padding-right: 8px !important;
    }

    .custom-select-toggle {
        padding: 0 8px 0 0 !important;
        gap: 5px !important;
    }

    .custom-select-text {
        font-size: 10px !important;
        font-weight: 900 !important;
    }

    .custom-select-icon {
        font-size: 12px !important;
    }

    .custom-select-arrow {
        font-size: 7px !important;
    }

    .day-filter-pill {
        min-width: 88px !important;
    }

    .clear-btn {
        height: 42px !important;
        min-width: 40px !important;
        gap: 0 !important;
        font-size: 14px !important;
    }

    .clear-btn span {
		margin-left: 6px;
        font-size: 15px !important;
    }

    .clear-btn small {
        font-size: 8px !important;
    }

    .total-box {
        font-size: 10px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 1280px) and (min-width: 701px) {
    .search-bar {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 10px 0 16px !important;
        width: 100% !important;
    }

    .total-box {
        grid-column: 1 / -1 !important;
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
        font-size: 13px !important;
    }

    .field-pill,
    .day-filter-pill,
    .clear-btn {
        width: 100% !important;
        height: 46px !important;
        min-width: 0 !important;
    }

    .field-icon {
        width: 36px !important;
        flex: 0 0 36px !important;
        font-size: 13px !important;
    }

    .custom-select-text,
    .field-pill input {
        font-size: 12px !important;
        font-weight: 900 !important;
    }

    .clear-btn {
        border: 1px solid #dcdfe3 !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 0 14px 0 0 !important;
    }

    .clear-btn span {
		margin-left: 6px;
        width: 36px !important;
        flex: 0 0 36px !important;
        font-size: 21px !important;
    }

    .clear-btn small {
        font-size: 12px !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
    }
}
.today-specialization + .custom-select {
    height: 34px !important;
    min-height: 34px !important;
    margin-bottom: 28px !important;
}

.today-specialization + .custom-select .custom-select-toggle {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 16px !important;
    align-items: center !important;
}

.today-specialization + .custom-select .custom-select-text {
    font-size: 13px !important;
    line-height: 34px !important;
    font-weight: 900 !important;
}

.today-specialization + .custom-select .custom-select-arrow {
    font-size: 10px !important;
}
.latest-news {
    color: #9a9fa6;
    font-size: 15px;
    text-align: left;
    white-space: normal;
    min-width: 0;
}

.ai-feels {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start !important;
    transform: translateX(-60px);
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
}

.ai-feels .news-icon {
    color: #7c3aed;
    font-size: 16px;
    flex: 0 0 auto;
    margin-top: 2px;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, .45));
}

.typing-label {
    color: #8d949c;
    font-weight: 700;
    flex: 0 0 auto;
    white-space: nowrap;
}

.typing-text {
    color: #008b4f;
    font-weight: 900;
    position: relative;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.typing-text::after {
    content: "|";
    margin-left: 2px;
    animation: blink .8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
.latest-news {
    color: #9a9fa6;
    font-size: 14px !important;
    text-align: left !important;
    white-space: normal !important;
    min-width: 0 !important;
}

.latest-news strong {
    margin-left: 0 !important;
}

.ai-feels {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    transform: translateX(-60px);
    min-width: 0 !important;
    max-width: 100% !important;
    line-height: 1.35 !important;
    font-size: 14px !important;
}

.ai-feels .news-icon {
    color: #7c3aed;
    font-size: 14px !important;
    flex: 0 0 auto;
    margin-top: 1px;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, .45));
}

.typing-label {
    color: #8d949c;
    font-size: 14px !important;
    font-weight: 800;
    flex: 0 0 auto;
    white-space: nowrap;
}

.typing-text {
    color: #008b4f;
    font-size: 14px !important;
    font-weight: 900;
    position: relative;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.typing-text::after {
    content: "|";
    margin-left: 2px;
    animation: blink .8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
@media (max-width: 700px) {
    .site-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        height: auto !important;
        padding: 12px 18px !important;
        gap: 6px !important;
    }

    .brand {
        font-size: 20px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    .logo {
        width: 42px !important;
        height: 42px !important;
    }

    .latest-news.ai-feels {
        width: 100% !important;
        transform: none !important;
        font-size: 14px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        padding-left: 0 !important;
        margin-top: 2px !important;
    }

    .ai-feels .news-icon {
        font-size: 14px !important;
        margin-top: 1px !important;
    }

    .typing-label {
        font-size: 14px !important;
    }

    .typing-text {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding-left: 21px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}
@media (max-width: 1280px) and (min-width: 701px) {
    .site-header {
        height: auto !important;
        min-height: 92px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 14px 24px !important;
        overflow: visible !important;
    }

    .brand {
        font-size: 21px !important;
        line-height: 1.1 !important;
    }

    .latest-news.ai-feels {
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        display: flex !important;
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }

    .typing-label,
    .typing-text {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    .typing-text {
        flex: 1 1 300px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}
.latest-news.ai-feels,
.latest-news.ai-feels:visited,
.latest-news.ai-feels:hover,
.latest-news.ai-feels:focus,
.latest-news.ai-feels:active,
.latest-news.ai-feels * {
    text-decoration: none !important;
}

.doctor-card {
    min-height: 250px !important;
    padding: 18px 22px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}

.doctor-card-link,
.doctor-card-link:hover,
.doctor-card-link:focus,
.doctor-card-link:active,
.doctor-card-link:visited {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
}

.doctor-card-actions {
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 6px !important;
    flex: 0 0 auto !important;
}

.appointment-btn,
.appointment-btn:visited,
.appointment-btn:focus,
.appointment-btn:active {
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0fa968, #057846) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: .2px !important;
    box-shadow: 0 5px 12px rgba(0, 139, 79, .20) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.appointment-btn:hover {
    background: linear-gradient(135deg, #13b874, #008b4f) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 16px rgba(0, 139, 79, .26) !important;
}

@media (max-width: 1500px) {
    .doctor-card {
        min-height: 250px !important;
        padding: 17px 20px 12px !important;
    }

    .appointment-btn {
        height: 32px !important;
        min-height: 32px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 1280px) {
    .doctor-card {
        min-height: 250px !important;
    }
}

@media (max-width: 700px) {
    .doctor-card {
        min-height: auto !important;
        padding: 16px 16px 12px !important;
    }

    .doctor-card-actions {
        padding-top: 6px !important;
    }

    .appointment-btn {
        height: 36px !important;
        min-height: 36px !important;
        font-size: 12px !important;
    }
}
.total-box {
    font-size: 13.8px !important;
    line-height: 1.1 !important;
}

.total-box span {
    display: block !important;
    font-size: 13.8px !important;
    color: #71777f !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.total-box strong {
    display: block !important;
    font-size: 15.2px !important;
    color: #008b4f !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

@media (min-width: 1281px) {
    .total-box {
        font-size: 12.7px !important;
        line-height: 1.1 !important;
    }

    .total-box span {
        display: block !important;
        font-size: 12.7px !important;
        color: #71777f !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
    }

    .total-box strong {
        display: block !important;
        font-size: 22.8px !important;
        color: #008b4f !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        margin-top: 2px !important;
    }
}


/* =========================================================
   RESPONSIVE TEXT FIX - DOCTOR MODAL + MOBILE VIEW
   I-paste sa pinaka dulo ng style.css para matalo lahat ng duplicate CSS
   ========================================================= */

.doctor-modal-name,
.doctor-modal-main-spec,
.doctor-modal-sub-spec,
.doctor-modal-info-title,
.doctor-modal-info-text,
.doctor-modal-label,
.doctor-modal-paragraph,
.schedule-day,
.schedule-time,
.schedule-room,
.doctor-modal-hmo-title,
.doctor-hmo-item {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 900px) {
    .modal-overlay {
        padding: 14px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    .modal-box {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 28px) !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .modal-content {
        max-height: calc(100dvh - 28px) !important;
        padding: 26px 22px 22px !important;
        overflow-y: auto !important;
    }

    .modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 28px !important;
        line-height: 34px !important;
    }

    .doctor-modal-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .doctor-modal-left {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .doctor-modal-right {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        border-radius: 10px !important;
        padding: 18px !important;
    }

    .doctor-modal-name-wrap {
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .doctor-modal-icon {
        font-size: clamp(22px, 5vw, 30px) !important;
        margin-top: 0 !important;
        flex: 0 0 auto !important;
    }

    .doctor-modal-name {
        font-size: clamp(22px, 6vw, 32px) !important;
        line-height: 1.08 !important;
        letter-spacing: .2px !important;
        padding-right: 34px !important;
    }

    .doctor-modal-specialization-box {
        margin: 8px 0 8px !important;
        padding: 8px 0 14px 14px !important;
        border-left-width: 5px !important;
    }

    .doctor-modal-main-spec {
        font-size: clamp(13px, 3.4vw, 16px) !important;
        line-height: 1.25 !important;
        margin-bottom: 5px !important;
    }

    .doctor-modal-sub-spec {
        font-size: clamp(12px, 3.2vw, 15px) !important;
        line-height: 1.35 !important;
    }

    .doctor-modal-info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin: 10px 0 !important;
        padding: 10px 0 !important;
    }

    .doctor-modal-info-item {
        gap: 10px !important;
    }

    .doctor-modal-info-icon {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        font-size: 17px !important;
    }

    .doctor-modal-info-title {
        font-size: clamp(14px, 3.6vw, 17px) !important;
        line-height: 1.25 !important;
    }

    .doctor-modal-info-text {
        font-size: clamp(12px, 3.1vw, 13px) !important;
        line-height: 1.35 !important;
    }

    .doctor-modal-section {
        margin-bottom: 14px !important;
    }

    .doctor-modal-label {
        font-size: clamp(14px, 3.5vw, 16px) !important;
        line-height: 1.25 !important;
        padding-top: 8px !important;
    }

    .doctor-modal-paragraph {
        font-size: clamp(12px, 3.1vw, 13px) !important;
        line-height: 1.45 !important;
    }

    .doctor-schedule-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        align-items: start !important;
        padding: 9px 0 !important;
    }

    .schedule-day {
        min-width: 86px !important;
        height: 20px !important;
        margin-bottom: 6px !important;
        font-size: 10px !important;
        line-height: 20px !important;
    }

    .schedule-time,
    .schedule-room {
        font-size: clamp(12px, 3.1vw, 13px) !important;
        line-height: 1.35 !important;
    }

    .doctor-modal-hmo-title {
        font-size: clamp(15px, 3.8vw, 18px) !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }

    .doctor-hmo-list {
        gap: 8px !important;
    }

    .doctor-hmo-item {
        border-radius: 10px !important;
        padding: 11px 12px !important;
        font-size: clamp(12px, 3.1vw, 13px) !important;
        line-height: 1.35 !important;
    }

    .doctor-modal-left .doctor-card-actions {
        padding-top: 8px !important;
    }

    .doctor-modal-left .appointment-btn {
        height: 38px !important;
        min-height: 38px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 700px) {
    body.modal-open {
        overflow: hidden !important;
    }

    .modal-overlay.active {
        display: flex !important;
    }

    .modal-overlay {
        inset: 0 !important;
        padding: 10px !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .modal-box {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 20px) !important;
        border-radius: 10px !important;
    }

    .modal-content {
        max-height: calc(100dvh - 20px) !important;
        padding: 30px 18px 18px !important;
    }

    .doctor-modal-name-wrap {
        gap: 10px !important;
    }

    .doctor-modal-icon {
        font-size: 22px !important;
    }

    .doctor-modal-name {
        font-size: clamp(20px, 7vw, 27px) !important;
        line-height: 1.08 !important;
        letter-spacing: .1px !important;
        padding-right: 30px !important;
    }

    .doctor-modal-specialization-box {
        padding: 8px 0 12px 12px !important;
    }

    .doctor-modal-main-spec {
        font-size: 13px !important;
    }

    .doctor-modal-sub-spec {
        font-size: 12.5px !important;
    }

    .doctor-modal-info-icon {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
        font-size: 15px !important;
    }

    .doctor-modal-info-title {
        font-size: 14px !important;
    }

    .doctor-modal-info-text,
    .doctor-modal-paragraph,
    .schedule-time,
    .schedule-room,
    .doctor-hmo-item {
        font-size: 12px !important;
    }

    .doctor-modal-label {
        font-size: 14px !important;
    }

    .doctor-modal-right {
        padding: 15px !important;
        border-radius: 10px !important;
    }

    .doctor-modal-hmo-title {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 420px) {
    .modal-overlay {
        padding: 8px !important;
    }

    .modal-box {
        max-height: calc(100dvh - 16px) !important;
        border-radius: 10px !important;
    }

    .modal-content {
        max-height: calc(100dvh - 16px) !important;
        padding: 30px 14px 16px !important;
    }

    .modal-close {
        width: 30px !important;
        height: 30px !important;
        font-size: 25px !important;
        line-height: 30px !important;
    }

    .doctor-modal-name {
        font-size: clamp(18px, 6.4vw, 24px) !important;
        padding-right: 28px !important;
    }

    .doctor-modal-icon {
        font-size: 20px !important;
    }

    .doctor-modal-main-spec {
        font-size: 12px !important;
    }

    .doctor-modal-sub-spec {
        font-size: 12px !important;
    }

    .doctor-modal-info-title,
    .doctor-modal-label,
    .doctor-modal-hmo-title {
        font-size: 13.5px !important;
    }

    .doctor-modal-info-text,
    .doctor-modal-paragraph,
    .schedule-time,
    .schedule-room,
    .doctor-hmo-item {
        font-size: 11.5px !important;
    }
}


/* Global 2px radius override */
*, *::before, *::after { border-radius: 10px !important; }

/* Public header: brand | DLSMHSI Pulse (15% smaller) | install action */
.site-header {
    display: grid !important;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 62px !important;
    height: auto !important;
    padding: 8px 32px !important;
}

.site-header .latest-news.ai-feels {
    width: 85% !important;
    max-width: 85% !important;
    min-width: 0 !important;
    justify-self: center !important;
    transform: none !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.site-header .latest-news .news-icon,
.site-header .latest-news .typing-label,
.site-header .latest-news .typing-text {
    font-size: 12px !important;
}

.site-header .latest-news .typing-text {
    display: block !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.site-header .pwa-public-install {
    width: auto !important;
    min-width: 158px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    justify-self: end !important;
    white-space: nowrap !important;
    font-size: 12px !important;
}

@media (max-width: 1200px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        padding: 10px 24px !important;
    }

    .site-header .brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .site-header .pwa-public-install {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .site-header .latest-news.ai-feels {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
    }
}

@media (max-width: 640px) {
    .site-header {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        padding: 12px 16px !important;
        gap: 8px !important;
    }

    .site-header .brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    .site-header .pwa-public-install {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        justify-self: stretch !important;
    }

    .site-header .latest-news.ai-feels {
        grid-column: 1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
