/* ============================================================
   ডাক্তারপাড়া — dp-donor-home.css
   ব্লাড ডোনার ল্যান্ডিং পেজ (/donors): হিরো, পরিসংখ্যান, দ্রুত সার্চ,
   সাম্প্রতিক রক্তদাতা, নিবন্ধনের কার্ড ও নিচের লাল ব্যানার।
   বোতাম/অ্যাভাটার/গ্রুপ-পিল আসে dp-donors.css থেকে; টোকেন dp-chrome.css থেকে।
   ============================================================ */

:root {
    --dph-pink:      #fef1f3;
    --dph-pink-line: #f4c9cf;
    --dph-red:       #d21c18;
    --dph-red-text:  #c4161c;
    --dph-line:      #e5ebf3;
}

/* ============================================================
   ১. হিরো
   ============================================================ */
.dph-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #fdeef1 0%, #fef4f5 42%, #f3f3f7 72%, #e8eef6 100%);
}
.dph-hero-inner { min-height: 290px; display: flex; align-items: center; }
.dph-hero-copy { position: relative; z-index: 3; max-width: 520px; padding: 24px 0; }
.dph-label { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--dph-red); }
.dph-label i { font-size: 24px; }
.dph-hero-copy h1 { margin: 4px 0 8px; font-size: 54px; font-weight: 800; line-height: 1.15; color: var(--dph-red-text); }
.dph-hero-copy p { margin: 0 0 8px; max-width: 450px; font-size: 19px; font-weight: 500; line-height: 1.45; color: var(--dp-text); }
.dph-checks { margin: 0; padding: 0; list-style: none; }
.dph-checks li { display: flex; align-items: center; gap: 9px; padding: 2px 0; font-size: 17.5px; font-weight: 500; color: var(--dp-navy); }
.dph-checks i { font-size: 21px; color: #12a04a; }

/* ডানের ছবি: হাতে রক্তের ফোঁটা + ব্রাশ-স্টাইল ব্যানার */
.dph-hero-art { position: absolute; top: 0; bottom: 0; right: 0; width: min(900px, 68%); z-index: 1; }
.dph-hero-art > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 100%);
}
.dph-brush {
    position: absolute;
    right: 3%;
    top: 14%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 40px 16px;
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    text-shadow: 0 2px 4px rgba(90, 0, 0, .3);
    background: linear-gradient(180deg, #d4161c, #b50f14);
    transform: rotate(-5deg);
    /* ব্রাশের মতো এবড়োখেবড়ো কিনারা */
    clip-path: polygon(2% 14%, 8% 4%, 20% 9%, 36% 2%, 55% 8%, 74% 1%, 92% 7%, 99% 20%, 96% 40%, 100% 62%, 95% 84%, 80% 96%, 60% 90%, 40% 99%, 22% 92%, 6% 97%, 1% 78%, 4% 52%);
}
.dph-heart-line { position: absolute; right: 2%; top: 58%; width: 260px; height: 110px; }

/* ============================================================
   ২. পরিসংখ্যান
   ============================================================ */
.dph-stats-wrap { position: relative; z-index: 3; }
.dph-stats-row { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
.dph-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 8px;
    border: 1px solid var(--dph-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 42, 91, .09);
}
.dph-stat { display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-left: 1px solid #e3e9f1; }
.dph-stat:first-child { border-left: 0; }
.dph-stat > i { font-size: 40px; line-height: 1; color: var(--dph-red); }
.dph-stat strong { display: block; font-size: 23px; font-weight: 800; line-height: 1.15; color: var(--dp-navy); }
.dph-stat span { display: block; font-size: 15.5px; color: var(--dp-text); line-height: 1.3; }
.dph-register-card {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--dph-pink-line);
    border-radius: 12px;
    background: var(--dph-pink);
    box-shadow: 0 10px 28px rgba(210, 28, 24, .08);
}
.dph-register-card .dpd-btn-red { width: 100%; height: 50px; padding: 0 12px; font-size: 16.5px; white-space: nowrap; }

/* ============================================================
   ৩. দ্রুত সার্চ
   ============================================================ */
.dph-search-wrap { padding: 20px 0 0; }
.dph-search { padding: 12px 24px 20px; border: 1px solid var(--dph-pink-line); border-radius: 14px; background: var(--dph-pink); }
.dph-search h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; color: var(--dph-red-text); }
.dph-search-row { display: grid; grid-template-columns: repeat(4, 1fr) 190px; gap: 16px; }
.dph-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #f0d6da;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(210, 28, 24, .05);
}
.dph-field > i { flex-shrink: 0; font-size: 30px; color: var(--dph-red); }
.dph-field > span { flex: 1; min-width: 0; }
.dph-field b { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--dp-navy); }
.dph-field select {
    width: 100%;
    padding: 0 22px 0 0;
    border: 0;
    outline: 0;
    font-size: 16px;
    color: var(--dp-text);
    background: transparent 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 center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.dph-field:focus-within { border-color: var(--dph-red); box-shadow: 0 0 0 3px rgba(210, 28, 24, .12); }
.dph-search-btn { height: 64px; font-size: 20px; }

/* ============================================================
   ৪. বডি: বাঁ পাশে কার্ড, ডানে সাম্প্রতিক রক্তদাতা
   ============================================================ */
.dph-body { padding: 26px 0 0; }
.dph-body-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.dph-side { display: flex; flex-direction: column; gap: 18px; }

.dph-join {
    position: relative;
    padding: 20px 18px 20px 118px;
    border: 1px solid var(--dph-pink-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff1f3, #fdeaee);
}
.dph-join > img { position: absolute; left: 12px; top: 18px; width: 96px; height: auto; }
.dph-join h3 { margin: 0 0 6px; font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--dph-red-text); }
.dph-join p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--dp-text); }
.dph-join .dpd-btn-red { height: 40px; padding: 0 12px; gap: 6px; font-size: 14.5px; }

.dph-org {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 6px 12px;
    padding: 18px;
    border: 1px solid #cdebd8;
    border-radius: 14px;
    background: linear-gradient(180deg, #f1fbf5, #e8f7ee);
}
.dph-org > i { grid-row: 1; font-size: 50px; line-height: 1; color: #0a8a3a; }
.dph-org h3 { margin: 0 0 4px; font-size: 21px; font-weight: 800; line-height: 1.25; color: #0a7a33; }
.dph-org p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--dp-text); }
.dph-org-btn {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin-top: 6px;
    border: 1.5px solid var(--dp-green);
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 600;
    color: #0a7a33;
    background: #fff;
}
.dph-org-btn:hover { color: #fff; background: var(--dp-green); }

/* সাম্প্রতিক রক্তদাতা */
.dph-recent { min-width: 0; }
.dph-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dph-recent-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; font-weight: 800; color: var(--dp-navy); }
.dph-recent-head h2 i { color: var(--dph-red); font-size: 30px; }
.dph-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dph-red-text);
    background: var(--dph-pink);
    border: 1px solid var(--dph-pink-line);
}
.dph-more:hover { color: #fff; background: var(--dph-red); }

.dph-table { overflow: hidden; border: 1px solid var(--dph-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(11, 42, 91, .06); }
.dph-thead,
.dph-row { display: grid; grid-template-columns: 1.8fr 110px 1.5fr 1.5fr 170px; gap: 10px; align-items: center; padding: 0 16px; }
.dph-thead { height: 46px; font-size: 15.5px; font-weight: 700; color: var(--dp-navy); background: #f6f8fb; border-bottom: 1px solid var(--dph-line); }
.dph-row { min-height: 66px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid #edf1f6; }
.dph-row:first-of-type { border-top: 0; }
.dph-cell { min-width: 0; font-size: 15.5px; color: var(--dp-text); line-height: 1.4; }
.dph-person { display: flex; align-items: center; gap: 12px; }
.dph-name { display: block; font-size: 16.5px; font-weight: 700; color: var(--dp-navy); line-height: 1.3; }
.dph-name:hover { color: var(--dph-red-text); }
.dph-person small { display: block; font-size: 14px; font-weight: 600; }
.dph-person small.is-on { color: #0a8a3a; }
.dph-person small.is-off { color: #7a8596; }
.dph-place i,
.dph-updated i { margin-right: 6px; color: #0a8a3a; }
.dph-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    border: 1.5px solid var(--dp-green);
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 600;
    color: #0a7a33;
    background: #fff;
}
.dph-call:hover { color: #fff; background: var(--dp-green); }
.dph-empty { margin: 0; padding: 34px 16px; text-align: center; color: var(--dp-muted); }

/* ============================================================
   ৫. নিচের লাল ব্যানার
   ============================================================ */
.dph-banner-wrap { padding: 26px 0 30px; }
.dph-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 100px;
    padding: 12px 24px 12px 150px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(95deg, #a51016 0%, #c6151b 45%, #d4202a 100%);
    box-shadow: 0 12px 28px rgba(165, 16, 22, .25);
}
.dph-banner-drop { position: absolute; left: 36px; bottom: 6px; width: 72px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.dph-banner-text { flex-shrink: 0; }
.dph-banner h3 { margin: 0; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; }
.dph-banner p { margin: 0; font-size: 20px; font-weight: 500; color: #fff; }
.dph-banner-points { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; }
.dph-banner-points li { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 6px 18px; border-left: 1px solid rgba(255, 255, 255, .45); font-size: 15px; line-height: 1.4; }
.dph-banner-points i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 26px;
    color: var(--dph-red);
    background: #fff;
}

/* ============================================================
   রেসপনসিভ
   ============================================================ */
@media (max-width: 1399px) {
    .dph-hero-copy h1 { font-size: 46px; }
    .dph-register-card .dpd-btn-red { font-size: 15px; }
    .dph-brush { font-size: 36px; }
    .dph-stats-row { grid-template-columns: minmax(0, 1fr) 340px; }
    .dph-search-row { grid-template-columns: repeat(4, 1fr) 160px; gap: 12px; }
    .dph-banner h3 { font-size: 26px; }
    .dph-banner p { font-size: 18px; }
}

@media (max-width: 1199px) {
    .dph-stats-row { grid-template-columns: 1fr; gap: 12px; }
    .dph-search-row { grid-template-columns: repeat(2, 1fr); }
    .dph-search-btn { grid-column: 1 / -1; }
    .dph-body-grid { grid-template-columns: 1fr; }
    .dph-side { flex-direction: row; }
    .dph-side > * { flex: 1; }
    .dph-banner { flex-wrap: wrap; }
    .dph-banner-points { flex-basis: 100%; }
    .dph-banner-points li:first-child { border-left: 0; padding-left: 0; }
}

@media (max-width: 991px) {
    .dph-hero-inner { min-height: 0; }
    .dph-hero-copy { padding: 22px 0 230px; max-width: none; }
    .dph-hero-copy h1 { font-size: 38px; }
    .dph-hero-art { width: 100%; top: auto; height: 220px; }
    .dph-hero-art > img { object-position: 50% center; }
    .dph-brush { font-size: 28px; padding: 10px 26px 12px; right: 4%; top: 8%; }
    .dph-heart-line { width: 170px; height: 72px; top: 52%; }
}

@media (max-width: 767px) {
    .dph-hero-copy h1 { font-size: 32px; }
    .dph-hero-copy p { font-size: 16.5px; }
    .dph-checks li { font-size: 16px; }

    .dph-stats { grid-template-columns: repeat(2, 1fr); padding: 8px; }
    .dph-stat { border-left: 0; padding: 8px; gap: 10px; }
    .dph-stat > i { font-size: 30px; }
    .dph-stat strong { font-size: 19px; }
    .dph-stat span { font-size: 14px; }

    .dph-search { padding: 12px 14px 16px; }
    .dph-search h2 { font-size: 23px; }
    .dph-search-row { grid-template-columns: 1fr; }
    .dph-field,
    .dph-search-btn { height: 58px; }

    .dph-side { flex-direction: column; }
    .dph-recent-head h2 { font-size: 21px; }

    /* তালিকা কার্ড হয়ে যায় */
    .dph-thead { display: none; }
    .dph-row { grid-template-columns: 1fr 1fr; padding: 12px 14px; gap: 10px 12px; }
    .dph-person { grid-column: 1 / -1; }
    .dph-place { grid-column: 1 / -1; }
    .dph-contact { grid-column: 1 / -1; }
    .dph-cell[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--dp-muted); }

    .dph-banner { padding: 70px 16px 16px; text-align: center; }
    .dph-banner-drop { left: 50%; transform: translateX(-50%); bottom: auto; top: -30px; }
    .dph-banner-text { flex-basis: 100%; }
    .dph-banner-points { flex-direction: column; gap: 8px; }
    .dph-banner-points li { border-left: 0; padding: 0; text-align: left; }
}

/* সুন্দর ড্রপডাউন বোতাম — select-এর বদলে */
.dph-field .dps {
    width: 100%;
    height: 26px;
    padding-right: 22px;
    font-size: 16px;
    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 center;
}
.dph-field .dps-list { top: calc(100% + 18px); left: -48px; min-width: calc(100% + 64px); }
