/* ===========================================
   MAIN WRAPPER
=========================================== */
.dr-prof-section {
    position: relative;
    width: 100%;
    display: block;
    background: #ffffff;
}

/* ===========================================
   SECTION 1 — HERO
=========================================== */

.dr-prof-hero-background-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.dr-prof-hero-background {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.dr-prof-hero {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 50px 15px;
    height: 800px;
    width: 100%;
    box-sizing: border-box;
}

/* WHITE OVERLAY (BOTTOM 300PX OVER IMAGE) */
.dr-prof-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    z-index: 2;
    pointer-events: none;
}

.dr-prof-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    width: 100%;
}

.dr-prof-left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin-bottom: auto;
}

.dr-prof-name {
    font-family: 'Onest';
    font-weight: 700;
    font-size: 48px;
    color: #4753A3;
}

.dr-prof-specialty {
    font-family: 'Onest';
    font-weight: 400;
    font-size: 24px;
    color: #4753A3;
}

.dr-prof-social-group {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.dr-prof-social-link {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background: #4753A3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-prof-social-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.dr-prof-photo-container {
    align-self: center;
    flex-shrink: 0;
}

.dr-prof-doctor-portrait {
    width: 527px;
    height: 630px;
    object-fit: cover;
    margin-top: -20%;
}

/* ===========================================
   SECTION 2 — CONTENT BELOW HERO
=========================================== */

.dr-prof-content-below {
    position: relative;
    z-index: 5;
    width: 100%;
    background: #ffffff;
    padding: 120px 24px 15px;
    margin-top: 0;
    box-sizing: border-box;
    margin-bottom: 70px;
}

.dr-prof-container {
    width: 100%;
    margin: 0 auto;
}

/* Competencies */
.dr-prof-competencies-area {
    text-align: center;
    margin: 0 0 48px;
}

.dr-prof-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
}

.dr-prof-section-heading {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    line-height: 14px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    text-transform: uppercase;
    color: #4753A3;
}

.dr-prof-competency-pill {
    padding: 10px 18px;
    border: 1px solid #4753A3;
    border-radius: 40px;
    background: #fff;
    color: #4753A3;
    font-weight: 300;
    text-transform: uppercase;
    font-family: 'Onest';
    font-size: 16px;
}

.dr-prof-competency-pill:hover {
    padding: 10px 18px;
    border-radius: 50px;
    background: #4753A3;
    border: 1px solid #4753A3;
    color: #fff;
    font-family: 'Onest';
    font-size: 16px;
}

/* Info blocks */
.dr-prof-info-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dr-prof-info-block {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid rgba(193, 201, 252, 0.62);
    padding: 24px 0;
    gap: 70px;
}

/* UPDATED WIDTHS */
.dr-prof-block-number {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    line-height: 14px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #4753A3;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(193, 201, 252, 1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.dr-prof-block-title {
    width: 40%;
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%;
    display: flex;
    color: #4753A3;
}

.dr-prof-block-text {
    width: 100%;
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    display: flex;
    flex-direction: column;
    color: #4753A3;
}

/* ──────────────────────────────────────────
   MOBILE RESPONSIVENESS
─────────────────────────────────────────── */

@media (max-width: 768px) {

    .dr-prof-hero-background {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

    .dr-prof-hero {
        height: auto;
        min-height: 640px;
        padding: 40px 20px 80px;
    }

    .dr-prof-hero::before {
        height: 220px; /* shorter fade on mobile */
    }

    .dr-prof-hero-content {
        align-items: center;
        text-align: center;
    }

    .dr-prof-left-column {
        max-width: 100%;
        align-items: center;
        gap: 20px;
    }

    .dr-prof-name {
        font-size: 36px;
        line-height: 100%;
    }

    .dr-prof-specialty {
        font-size: 20px;
    }

    .dr-prof-social-group {
        justify-content: center;
    }

    .dr-prof-photo-container {
        order: -1; /* photo first on mobile */
        margin-bottom: 30px;
    }

    .dr-prof-doctor-portrait {
        width: 280px;
        height: 340px;
        margin-top: 0px;
    }

    .dr-prof-content-below {
        padding: 60px 20px 40px;
        margin-bottom: 40px;
    }

    .dr-prof-competencies-area {
        margin: 0 0 32px;
    }

    .dr-prof-section-heading {
        font-size: 16px;
    }

    .dr-prof-competency-pill {
        padding: 8px 14px;
        font-size: 14px;
    }

    .dr-prof-info-grid {
        gap: 24px;
    }

    .dr-prof-info-block {
        flex-direction: column;        /* ← as requested */
        padding: 20px 0 40px;
        gap: 20px;
        border-bottom: 1px solid rgba(193, 201, 252, 0.4);
    }

    .dr-prof-block-title {
        width: 100%;
        font-size: 22px;
        text-align: left;
    }

    .dr-prof-block-text {
        font-size: 15px;
        text-align: left; /* or center if preferred */
    }

    /* .dr-prof-block-number {
        margin: 0 auto 16px;
    } */
}

@media (max-width: 480px) {

    .dr-prof-hero {
        padding: 30px 15px 60px;
    }

    .dr-prof-name {
        font-size: 32px;
        line-height: 100%;
    }

    .dr-prof-specialty {
        font-size: 18px;
    }

    .dr-prof-doctor-portrait {
        width: 240px;
        height: 290px;
    }

    .dr-prof-content-below {
        padding: 50px 16px 30px;
    }

    .dr-prof-competency-pill {
        padding: 7px 12px;
        font-size: 13px;
        display: flex;
        align-items: center;
    }

      .dr-prof-competency-pill:hover {
        padding: 7px 12px;
        font-size: 13px;
        display: flex;
        align-items: center;
    }

    .dr-prof-block-title {
        font-size: 20px;
    }

    .dr-prof-block-text {
        font-size: 14.5px;
        line-height: 145%;
    }
}