.page-header h1,
.page-header p {
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;           /* fallback */
    display: inline-block;        /* gradient ko text ke size tak rakhne ke liye */
}
.btn-style {
    background: linear-gradient(135deg, #1C3F8F 0%, #00A8CC 100%);
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-style::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.3s ease;
}

.btn-style:hover {
    background: linear-gradient(135deg, #27C96A 0%, #00C9A7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,168,204,0.35);
    color: white;
    text-decoration: none;
}

.btn-style:hover::before { left: 100%; }

.btn-style:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(28,63,143,0.25);
}
.txt-color{
    color: var(--dark-blue);
}

/* Specialities Cards Styles */
.speciality-card {
    transition: all 0.3s ease;
    height: 100%;
}

.speciality-card-body {
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.speciality-card:hover .speciality-card-body {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.speciality-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.speciality-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.speciality-card:hover .speciality-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.speciality-title {
    color: #2c3e50;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.speciality-card:hover .speciality-title {
    color: #e74c3c;
}

.speciality-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.speciality-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.speciality-card:hover .speciality-btn {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.speciality-card:hover .speciality-btn i {
    transform: scale(1.2);
}

.doctor-mini-card .speciality-card-body {
    border: 1px solid rgba(79, 172, 254, 0.15);
    padding: 0;
    overflow: hidden;
}

.doctor-mini-media {
    height: 140px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.16), rgba(103, 114, 229, 0.16));
    overflow: hidden;
}

.doctor-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-mini-content {
    padding: 14px 10px 15px;
}

.doctor-mini-icon-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
}

.doctor-mini-icon {
    font-size: 2.2rem;
    color: #3f7edb;
}

.doctor-mini-specialty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #315f97;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.doctor-mini-specialty i {
    color: #e74c3c;
}

.doctor-mini-meta {
    color: #5f6f81;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.25;
}

.doctor-mini-meta i,
.doctor-mini-rating i {
    margin-right: 4px;
}

.doctor-mini-rating {
    color: #2c3e50;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.doctor-mini-card .speciality-btn {
    color: #315f97;
}

.doctor-mini-card:hover .speciality-btn {
    background: #315f97;
    border-color: #315f97;
    color: white;
}

@media (max-width: 992px) {
    .speciality-card-body {
        padding: 12px 8px;
    }
    
    .speciality-icon {
        width: 40px;
        height: 40px;
    }
    
    .speciality-emoji {
        font-size: 1.2rem;
    }
    
    .speciality-title {
        font-size: 0.75rem;
    }
    
    .speciality-btn {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .speciality-card-body {
        padding: 12px 6px;
    }
    
    .speciality-icon {
        width: 35px;
        height: 35px;
    }
    
    .speciality-emoji {
        font-size: 1rem;
    }
}

/* ==========================================================
   DOCTOR CARD (dr-card) — Complete Design
   (ye hissa ab @media ke BAHAR hai, is liye desktop par bhi lagta hai)
   ========================================================== */

/* ---------- Grid ---------- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.doctors-grid .col-12 {
    grid-column: 1 / -1;
}

/* ---------- Card ---------- */
.dr-card {
    --dr-bg: #eef6ff;
    --dr-accent: #2f80ed;

    position: relative;
    isolation: isolate; /* background art (z-index:-1) card ke andar hi rahe */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Plus (+) medical pattern: poore card ke peeche, accent colour mein */
.dr-card::before,
.dr-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--dr-accent);
    opacity: 0.07;
    pointer-events: none;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34'><path d='M17 12v10M12 17h10' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34'><path d='M17 12v10M12 17h10' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
    -webkit-mask-size: 34px 34px;
    mask-size: 34px 34px;
}

.dr-card::before {
    z-index: -1;
}

/* ---------- Background instrument (card ke peeche, neeche kone mein) ---------- */
.dr-bg-icon {
    position: absolute;
    right: -22px;
    bottom: 64px;
    z-index: -1;
    font-size: 9rem;
    color: var(--dr-accent);
    opacity: 0.06;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.dr-card:hover .dr-bg-icon {
    transform: rotate(-4deg) scale(1.08);
    opacity: 0.1;
}

/* ---------- Top banner ---------- */
.dr-card-top {
    position: relative;
    padding: 22px 18px 50px;
    overflow: hidden;
    /* gradient ke neeche solid white, taake card ka pattern banner ke peeche chhup jaye */
    background:
        linear-gradient(135deg, var(--dr-bg) 0%, rgba(255, 255, 255, 0.6) 100%),
        #fff;
}

/* ---------- Medical art (instrument + ECG) ---------- */
.dr-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.dr-art::before {
    opacity: 0.1;
}

.dr-art-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    font-size: 3.2rem;
    color: var(--dr-accent);
    opacity: 0.2;
    transform: translateY(-50%) rotate(-12deg);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.dr-card:hover .dr-art-icon {
    transform: translateY(-50%) rotate(-4deg) scale(1.15);
    opacity: 0.3;
}

.dr-ecg {
    position: absolute;
    left: 0;
    bottom: 26px;
    width: 100%;
    height: 56px;
}

.dr-ecg path {
    fill: none;
    stroke: var(--dr-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0.5;
    animation: dr-ecg-draw 3.4s linear infinite;
}

@keyframes dr-ecg-draw {
    0%   { stroke-dashoffset: 100; opacity: 0.5; }
    70%  { stroke-dashoffset: 0;   opacity: 0.5; }
    100% { stroke-dashoffset: 0;   opacity: 0; }
}

/* ---------- Pills (Lady / Available / Rating) ---------- */
.dr-pill {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff;
    color: #2c3e50;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dr-pill i {
    font-size: 0.72rem;
}

.dr-pill-female {
    top: 14px;
    left: 14px;
    background: #fceef3;
    color: #d63384;
}

.dr-pill-status {
    top: 14px;
    right: 14px;
}

.dr-pill-status.is-available {
    background: #e6f9ef;
    color: #0f9d58;
}

.dr-pill-status.is-unavailable {
    background: #fdecea;
    color: #d93025;
}

.dr-pill-rating {
    right: 14px;
    bottom: 14px;
    background: linear-gradient(135deg, #fff8e1, #fff);
    color: #f59e0b;
}

.dr-pill-rating.is-new {
    background: #f3efff;
    color: #7c4dff;
}

/* ---------- Avatar ---------- */
.dr-avatar {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    margin: 24px auto 0;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 0 3px var(--dr-accent);
    transition: transform 0.35s ease;
}

.dr-card:hover .dr-avatar {
    transform: scale(1.05);
}

.dr-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dr-avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dr-bg), #fff);
    color: var(--dr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

/* ---------- Body ---------- */
.dr-card-body {
    flex: 1 1 auto;
    padding: 16px 20px 12px;
    text-align: center;
}

.dr-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--dr-bg);
    color: var(--dr-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-name {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dr-qual {
    margin: 0 0 14px;
    min-height: 1.2em;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dr-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.dr-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #475569;
    min-width: 0;
}

.dr-meta li i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    color: var(--dr-accent);
}

.dr-meta li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.dr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 12px 20px 18px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.dr-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.dr-stars i.on {
    color: #f59e0b;
}

.dr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--dr-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    transition: all 0.3s ease;
}

.dr-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.1);
    transform: translateX(3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
}

.dr-btn i {
    font-size: 0.72rem;
    transition: transform 0.3s ease;
}

.dr-btn:hover i {
    transform: translateX(3px);
}

/* ---------- No doctors state ---------- */
.no-doctors {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.no-doctors i {
    margin-bottom: 20px;
    font-size: 4rem;
    color: #cbd5e1;
}

.no-doctors h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

/* ==========================================================
   RESPONSIVE (doctor card)
   ========================================================== */
@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .dr-avatar { width: 90px; height: 90px; }
    .dr-name { font-size: 1rem; }
    .dr-bg-icon { font-size: 7rem; }
}

@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .dr-card-top { padding: 18px 14px 44px; }
    .dr-pill { font-size: 0.62rem; padding: 4px 9px; }
    .dr-card-body { padding: 14px 16px 10px; }
    .dr-card-footer { padding: 10px 16px 14px; flex-direction: column; align-items: stretch; }
    .dr-stars { justify-content: center; }
    .dr-btn { justify-content: center; }
}

@media (max-width: 480px) {
    .doctors-grid { grid-template-columns: 1fr; }
    .dr-avatar { width: 85px; height: 85px; }
    .dr-art-icon { font-size: 2.4rem; }
    .dr-pill-status { top: auto; bottom: 14px; left: 14px; right: auto; }
    .dr-pill-rating { bottom: 14px; right: 14px; }
}

/* Jin users ne device mein animation band ki hui hai */
@media (prefers-reduced-motion: reduce) {
    .dr-ecg path {
        animation: none;
        stroke-dashoffset: 0;
    }
    .dr-card,
    .dr-avatar,
    .dr-art-icon,
    .dr-bg-icon,
    .dr-btn {
        transition: none;
    }
}