/* ============================================================
   ডাক্তারপাড়া — dp-home.css
   হোম পেজের সব সেকশন: হিরো, পরিসংখ্যান, সেবা, ডাক্তার,
   কিভাবে সেবা নেবেন, অ্যাপ ব্যানার।
   রং/টোকেন আসে dp-chrome.css থেকে (--dp-navy, --dp-green …)।
   ============================================================ */

/* ── সেকশন শিরোনাম (সবুজ আন্ডারলাইনসহ) ─────────────────────── */
.dp-section { padding: 22px 0 8px; }

.dp-title {
    position: relative;
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    color: var(--dp-navy);
    line-height: 1.3;
}
.dp-title-center { text-align: center; padding-bottom: 12px; margin-bottom: 18px; }
.dp-title-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--dp-green);
    transform: translateX(-50%);
}
.dp-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.dp-link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--dp-green);
    white-space: nowrap;
}
.dp-link-more:hover { color: var(--dp-green-dark); }

/* ============================================================
   ১. হিরো
   ============================================================ */
.dp-hero {
    position: relative;
    z-index: 5;           /* ড্রপডাউন যেন নিচের সেকশনের উপরে দেখায় */
    overflow-x: clip;     /* শুধু পাশে ছাঁটে, নিচে ড্রপডাউন বেরোতে দেয় */
    background: linear-gradient(100deg, #f8fbfe 0%, #eef6fc 55%, #e4f0fa 100%);
    border-radius: 0 0 26px 26px;
}
.dp-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 387px;
    padding: 27px 0 18px;
}
.dp-hero-copy { position: relative; z-index: 3; max-width: 600px; }

.dp-hero-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: #d3f2f6;
    color: var(--dp-navy);
    font-size: 15px;
    font-weight: 500;
}
.dp-hero-title {
    margin: 12px 0 0;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.3px;
    color: var(--dp-navy);
}
.dp-hero-title span { display: block; color: #0a8a24; }

.dp-hero-subtitle {
    margin: 8px 0 0;
    max-width: 450px;
    font-size: 17.5px;
    font-weight: 500;
    line-height: 1.42;
    color: var(--dp-text);
}

.dp-hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.dp-hero-checks li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--dp-navy);
}
.dp-hero-checks i { color: #12a04a; font-size: 20px; }

/* ── সার্চ কার্ড ── */
.dp-search {
    margin-top: 14px;
    padding: 10px 14px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11, 42, 91, .12);
    max-width: 640px;
}
.dp-search-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.dp-search-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--dp-navy);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.dp-search-tab:hover { background: #eef6fc; }
.dp-search-tab.is-active {
    background: linear-gradient(180deg, #11a04a 0%, var(--dp-green-dark) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(10, 138, 58, .25);
}

.dp-search-row { display: flex; gap: 8px; align-items: stretch; }
.dp-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    margin: 0;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #fff;
    color: var(--dp-muted);
}
.dp-field > i {
    position: absolute;
    left: 10px;
    font-size: 15px;
    pointer-events: none;
}
.dp-field input,
.dp-field select {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14.5px;
    color: var(--dp-text);
}
.dp-field-text { flex: 1.5; }
.dp-field-text input { padding-left: 34px; }
.dp-field-select { flex: 1; }
.dp-field-select > i + select { padding-left: 32px; }
.dp-field-select select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 24px;
    padding-left: 10px;
    font-size: 14px;
    text-overflow: ellipsis;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.500 6 6.500 11 1.500' fill='none' stroke='%230b2a5b' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.dp-field:focus-within { border-color: var(--dp-green); box-shadow: 0 0 0 3px rgba(10, 138, 58, .12); }
.dp-search-btn { height: 38px; padding: 0 16px; flex-shrink: 0; }

/* ── ডান পাশের ছবি ও ভাসমান কার্ড ── */
.dp-hero-visual {
    position: absolute;
    top: 0;
    bottom: 0;
    /* কনটেইনারের ডান কিনারার সাথে মিলিয়ে বসে, ছোট স্ক্রিনে একদম ডানে */
    right: max(0px, calc((100% - min(var(--dp-wrap), 100% - 96px)) / 2 - 48px));
    aspect-ratio: 719 / 390;
    z-index: 1;
}
.dp-hero-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* বাঁ ও ডান কিনারা হালকা মিশে যাবে */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 90%, transparent 100%);
}
.dp-float-card {
    position: absolute;
    left: 41%;
    top: 6.4%;
    width: 31.4%;
    margin: 0;
    padding: 6px 16px;
    list-style: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 42, 91, .14);
}
.dp-float-card li + li { border-top: 1px solid #e3eaf2; }
.dp-float-card a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--dp-navy);
    white-space: nowrap;
}
.dp-float-card a:hover { color: var(--dp-green); }
.dp-float-card i { font-size: 20px; color: #0a8a3a; width: 22px; text-align: center; }

/* ============================================================
   ২. পরিসংখ্যান
   ============================================================ */
.dp-stats { background: linear-gradient(180deg, #f6f9fd 0%, #f1f6fc 100%); padding: 6px 0; }
.dp-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}
.dp-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 8px;
    border-left: 1px solid #d9e2ee;
}
.dp-stat:first-child { border-left: 0; }
.dp-stat > i { font-size: 36px; color: #0a8a3a; line-height: 1; }
.dp-stat strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--dp-navy); }
.dp-stat span { display: block; font-size: 15px; color: var(--dp-text); line-height: 1.3; }

/* ============================================================
   ৩. সেবা সমূহ
   ============================================================ */
.dp-services { padding-top: 22px; }
.dp-service-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}
.dp-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 116px;
    padding: 12px 8px;
    border: 1px solid #e4ebf4;
    border-radius: 12px;
    text-align: center;
    color: var(--dp-navy);
    transition: transform .2s, box-shadow .2s;
}
.dp-service:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11, 42, 91, .12); color: var(--dp-navy); }
.dp-service > i { font-size: 38px; line-height: 1; color: #0b7f3a; margin-bottom: 4px; }
.dp-service h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.25; color: var(--dp-navy); }
.dp-service small { font-size: 14px; color: var(--dp-muted); line-height: 1.2; }

.dp-tone-blue  { background: linear-gradient(180deg, #edf3fd, #f7faff); }
.dp-tone-pink  { background: linear-gradient(180deg, #f9f0fa, #fdf8fd); }
.dp-tone-mint  { background: linear-gradient(180deg, #e9f7f0, #f6fcf9); }
.dp-tone-lilac { background: linear-gradient(180deg, #f1f1fc, #f9f9fe); }
.dp-tone-sky   { background: linear-gradient(180deg, #e9f5fd, #f6fbfe); }
.dp-tone-slate { background: linear-gradient(180deg, #eff3fb, #f8faff); }
.dp-service > img { height: 40px; width: auto; margin-bottom: 4px; }
.dp-tone-peach { background: linear-gradient(180deg, #fef3ed, #fffaf7); }
.dp-tone-peach > i { color: #e0314b; }
.dp-tone-slate > i { color: #1f4fa8; }

/* ============================================================
   ৪. জনপ্রিয় ডাক্তার
   ============================================================ */
.dp-doctors { padding-top: 20px; }
.dp-doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dp-doctor {
    display: grid;
    grid-template-columns: 108px 1fr;
    grid-template-areas:
        "photo body"
        "foot  foot";
    gap: 6px 14px;
    padding: 14px;
    border: 1px solid #e4ebf4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(11, 42, 91, .06);
}
.dp-doctor-photo {
    grid-area: photo;
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef3f8;
}
.dp-doctor-body { grid-area: body; min-width: 0; }
.dp-doctor-name {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 6px;
    min-width: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dp-navy);
}
.dp-doctor-name span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dp-doctor-name i { color: #12a04a; font-size: 17px; flex-shrink: 0; }
.dp-doctor-spec {
    display: block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    padding: 2px 12px;
    border-radius: 6px;
    background: #d3f1f5;
    font-size: 14px;
    font-weight: 600;
    color: #0b4d7a;
}
.dp-doctor-line {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-doctor-foot {
    grid-area: foot;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.dp-doctor-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dp-doctor-rating { font-size: 14.5px; color: var(--dp-text); white-space: nowrap; }
.dp-doctor-rating i { color: #f5b400; margin-right: 3px; }
.dp-doctor-rating b { color: var(--dp-navy); }
.dp-doctor-fee { font-size: 15px; font-weight: 800; color: var(--dp-navy); }
.dp-doctor-btn { height: 36px; padding: 0 14px; font-size: 15px; flex-shrink: 0; }

/* ============================================================
   ৫. কিভাবে সেবা নেবেন?
   ============================================================ */
.dp-how { padding-top: 22px; }
.dp-how .dp-title-center { margin-bottom: 14px; }
.dp-how-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dpstep;
}
.dp-how-step { position: relative; text-align: center; }
.dp-how-step > i { display: block; font-size: 34px; line-height: 1; color: #0a8a3a; margin-bottom: 6px; }
.dp-how-step h3 { margin: 0 0 2px; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--dp-navy); }
.dp-how-step p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--dp-muted); }
/* ধাপের মাঝের সবুজ তীর */
.dp-how-step:not(:last-child)::after {
    content: "\F138";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 8px;
    right: -18px;
    font-size: 18px;
    color: #0a8a3a;
}

/* ============================================================
   ৬. অ্যাপ ব্যানার
   ============================================================ */
.dp-app-section { padding: 22px 0 22px; }
.dp-app {
    position: relative;
    display: grid;
    grid-template-columns: 254px 1fr 236px;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding-right: 14px;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    /* মকআপের ব্যানারের রং: বাঁয়ে হালকা (ফোনের জায়গা), মাঝে গাঢ়, ডানে উজ্জ্বল নীল */
    background:
        linear-gradient(180deg, transparent 55%, rgba(0, 80, 170, .28) 100%),
        linear-gradient(90deg, #82a8f6 0%, #4a7fd8 10%, #0c59b1 24%, #165bc4 50%, #2f72ef 76%, #5b93f6 100%);
}
.dp-app-phones {
    align-self: stretch;
    min-height: 112px;
    /* ফোনের ছবি ব্যানারের উচ্চতা অনুযায়ী মাপে বসে, কলামের বাইরের অংশ কাটা যায় */
    background: url("../img/app-phones.png") left center / auto 100% no-repeat;
}
.dp-app-copy h2 { margin: 0 0 3px; font-size: 28px; font-weight: 800; color: #fff; line-height: 1.25; }
.dp-app-copy p { margin: 0 0 8px; font-size: 16px; color: #fff; }
.dp-app-features { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.dp-app-features li { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 500; }
.dp-app-features i { font-size: 17px; }

.dp-app-download {
    margin: 7px 0;
    padding: 7px 12px 7px;
    border-radius: 12px;
    background: #fff;
    color: var(--dp-navy);
}
.dp-app-download > strong { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.dp-app-download-row { display: flex; align-items: center; gap: 12px; }
.dp-app-qr { width: 62px; height: 62px; flex-shrink: 0; }
.dp-app-qr svg { display: block; width: 100%; height: 100%; }
.dp-app-stores { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.dp-store {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 29px;
    padding: 0 10px;
    border-radius: 7px;
    background: #000;
    color: #fff;
}
.dp-store:hover { color: #fff; opacity: .9; }
.dp-store img { width: 20px; height: 22px; }
.dp-store > i { font-size: 21px; }
.dp-store span { display: flex; flex-direction: column; line-height: 1.05; }
.dp-store small { font-size: 9.500px; }
.dp-store b { font-size: 15px; font-weight: 600; }

/* ============================================================
   রেসপনসিভ
   ============================================================ */

/* ছোট ল্যাপটপ */
@media (max-width: 1199px) {
    .dp-hero-title { font-size: 40px; }
    .dp-float-card a { font-size: 14.5px; gap: 9px; }
    .dp-service h3 { font-size: 15.5px; }
    .dp-app { grid-template-columns: 200px 1fr 236px; gap: 12px; }
    .dp-app-copy h2 { font-size: 24px; }
    .dp-doctor-btn { padding: 0 10px; font-size: 14.5px; }
}

/* ট্যাবলেট ও মোবাইল (মোবাইল-হেডার চালু হয় এখানে) */
@media (max-width: 991px) {
    .dp-hero { border-radius: 0 0 22px 22px; }
    .dp-hero-inner { min-height: 0; padding: 22px 0 0; }
    .dp-hero-copy { max-width: none; }
    .dp-hero-title { font-size: 36px; }
    .dp-search { max-width: none; }

    /* ছবি লেখার নিচে স্বাভাবিক প্রবাহে বসে */
    .dp-hero-visual {
        position: relative;
        right: auto;
        width: 100%;
        max-width: 620px;
        margin: 14px auto 0;
        height: auto;
    }
    .dp-hero-visual > img {
        height: auto;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 92%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 92%, transparent 100%);
    }

    .dp-stats-row { grid-template-columns: repeat(3, 1fr); }
    .dp-stat:nth-child(4) { border-left: 0; }
    .dp-service-grid { grid-template-columns: repeat(4, 1fr); }
    .dp-doctor-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-how-row { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
    .dp-how-step:nth-child(3)::after { display: none; }
    .dp-app { grid-template-columns: 1fr; padding: 18px; text-align: center; background: linear-gradient(95deg, #1a5cc0, #0e57b5 50%, #2f72ef); }
    .dp-app-phones { display: none; }
    .dp-app-features { justify-content: center; }
    .dp-app-download { max-width: 340px; margin: 0 auto; width: 100%; text-align: left; }
}

/* মোবাইল */
@media (max-width: 767px) {
    .dp-section { padding: 18px 0 6px; }
    .dp-title { font-size: 23px; }
    .dp-hero-title { font-size: 30px; }
    .dp-hero-subtitle { font-size: 16px; }
    .dp-hero-checks { gap: 8px 16px; }
    .dp-hero-checks li { font-size: 14.5px; }

    .dp-search { padding: 10px; }
    .dp-search-row { flex-direction: column; }
    .dp-field { height: 44px; flex: none; }
    .dp-search-btn { height: 44px; width: 100%; }
    .dp-search-tabs { flex-wrap: nowrap; gap: 4px; }
    .dp-search-tab { flex: 1; justify-content: center; gap: 5px; padding: 0 4px; font-size: 14px; white-space: nowrap; }

    /* মোবাইলে ভাসমান কার্ড ছবির নিচে ২×২ গ্রিডে বসে (ছবির মুখ ঢাকবে না) */
    .dp-float-card {
        position: static;
        width: auto;
        margin: 10px 0 14px;
        padding: 4px 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
        border-radius: 14px;
    }
    .dp-float-card li + li { border-top: 0; }
    .dp-float-card li:nth-child(n+3) { border-top: 1px solid #e3eaf2; }
    .dp-float-card a { padding: 9px 0; font-size: 14px; gap: 7px; white-space: normal; }
    .dp-float-card i { font-size: 17px; width: 18px; flex-shrink: 0; }
    .dp-service-grid > .dp-service:last-child:nth-child(odd) { grid-column: 1 / -1; }

    .dp-stats-row { grid-template-columns: repeat(2, 1fr); }
    .dp-stat { border-left: 0; justify-content: flex-start; padding-left: 14px; }
    .dp-stat:nth-child(odd) { border-right: 1px solid #d9e2ee; }
    .dp-stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; justify-content: center; }

    .dp-service-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-doctor-grid { grid-template-columns: 1fr; }
    .dp-title-row { flex-wrap: wrap; }

    .dp-how-row { grid-template-columns: 1fr; gap: 18px; }
    .dp-how-step:not(:last-child)::after {
        content: "\F229";
        top: auto;
        right: auto;
        bottom: -17px;
        left: 50%;
        transform: translateX(-50%);
    }
    .dp-how-step:nth-child(3):not(:last-child)::after { display: block; }
    .dp-app-copy h2 { font-size: 22px; }
}

@media (max-width: 420px) {
    .dp-doctor { grid-template-columns: 92px 1fr; }
    .dp-doctor-photo { width: 92px; height: 92px; }
    .dp-doctor-foot { flex-direction: column; align-items: stretch; }
    .dp-doctor-btn { width: 100%; justify-content: center; }
}

/* সুন্দর ড্রপডাউন বোতাম — হিরো সার্চের select-এর বদলে */
.dp-field .dps {
    width: 100%;
    height: 100%;
    padding: 0 24px 0 10px;
    font-size: 14px;
    color: var(--dp-text);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.500 6 6.500 11 1.500' fill='none' stroke='%230b2a5b' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.dp-field-select > i + .dps { padding-left: 32px; }
.dp-field .dps-list { left: -1px; top: calc(100% + 8px); min-width: 220px; }
