body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}

/* --- Top Navigation Global --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 10px 15px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 200;
}

.title {
    font-size: 20px;
    font-weight: bold;
}

.lang-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.lang-btn:focus { outline: 2px solid rgba(0,123,255,0.25); }

/* --- Search Box --- */
.search-box {
    display: flex;
    padding: 10px;
    background: white;
    position: sticky;
    top: 56px; /* sits below top-bar */
    z-index: 150;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.07);
}

.search-box input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.search-btn {
    padding: 12px 18px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* Doctor Cards */
.card {
    background: white;
    padding: 15px;
    margin: 12px auto;
    max-width: 920px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

.doctor-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.photo[loading="lazy"] { background: #eee; }

.name {
    font-size: 18px;
    font-weight: bold;
}
.timing {
    font-size: 14px;
    color: #c27d00;
    margin-top: 4px;
    font-weight: bold;
}


.actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    flex: 1 1 auto;
    min-width: 90px;
    text-align: center;
}

.btn.map {
    background: #4285F4;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 5px;
}




.call { background: #28a745; color: white; }
.wa { background: #25D366; color: white; }
.share { background: #666; color: white; }
.pamphlet { background: #ff9800; color: white; }
.appoint { background: #673ab7; color: white; }
.btn.map:hover {
    background: #2f6adf;
}
/* Pagination links */
.page-link {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
}

.msg {
    max-width: 920px;
    margin: 12px auto;
    padding: 10px 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .doctor-box { flex-direction: column; align-items: flex-start; }
    .photo { width: 56px; height: 56px; }
    .actions { flex-direction: column; }
    .btn { width: 100%; min-width: 0; }
    .search-box { padding: 8px; }
}
