/* ==========================================================================
   Industry Experts Detail Page Redesign v2 Styles (Pixel Perfect to PDF Spec)
   ========================================================================== */

.expert-detail-page-v2 {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

/* --- Hero Wrapper & Card --- */
.expert-hero-wrapper {
    margin-bottom: 24px;
}

.expert-hero-card {
    position: relative;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 20px;
    padding-bottom: 0px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); */
    overflow: hidden;
}

.expert-hero-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: -51px;
    bottom: 000;
    /* background: #7f2a8cde; */
    /* border-radius: 50% 50% 0 0; */
    /* transform: rotate(14deg); */
    z-index: 0;
    background-image: url(https://discovery.deasra.in/wp-content/uploads/deasra-expert.svg);
    background-repeat: no-repeat;
    background-position: bottom;
}

/* Light purple curved layer */
/* .expert-hero-card::after {
    content: "";
    position: absolute;
    width: 125%;
    height: 100%;
    left: 5%;
    bottom: -42%;
    background: #d88be3;
    border-radius: 50% 50% 0 0;
    transform: rotate(14deg);
    z-index: 0;
} */
.expert-hero-card__quick-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.expert-hero-card__quick-actions img {
    width: 25px;
}

.expert-hero-card__quick-actions .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ffffff;
    color: #7f2a8c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); */
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.expert-hero-card__quick-actions .action-btn:hover {
    /* background: #7f2a8c;
    color: #ffffff; */
    transform: translateY(-2px);
}

.expert-hero-card__quick-actions .action-btn:hover img {
    /* filter: invert(1); */
}

.expert-hero-card__photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
}

.expert-hero-card__bg-curve {
    position: absolute;
    display: none;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(135deg, #7f2a8c 0%, #a031b2 50%, #52155f 100%);
    border-radius: 24px 24px 70px 70px;
    z-index: 1;
}

.expert-hero-card__photo {
    position: relative;
    z-index: 2;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.expert-hero-info {
    padding: 10px 5px;
    padding-bottom: 0px;
}

.expert-hero-name {
    color: #7f2a8c;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.expert-hero-subtitle {
    color: #2c2c2c;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

/* --- Key Info Box (Vertically Stacked Rows) --- */
.expert-key-info-box {
    background: #f7f7f7;
    /* border-radius: 16px; */
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    background-image: url(https://discovery.deasra.in/wp-content/uploads/Pune-bg-new.svg);
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 200px;
}

.expert-key-info-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #9B59B6, #6B2D7B);
    clip-path: path('M 1 0 C 0.72 0.08, 0.38 0.4, 0.12 0.78 L 0 1 L 1 1 Z');
    z-index: 0;
}

.expert-key-info-box .info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
}

.expert-key-info-box .info-row i {
    color: #7f2a8c;
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.expert-key-info-box .info-row img {
    /* width: 80%; */
    width: 25px;
}

/* --- Get Connected Banner (Solid Purple) --- */
.expert-get-connected-banner {
    background: linear-gradient(110deg, #6f287d 0%, #8b168f 35%, #a900b5 65%, #c000d4 100%);
    border-radius: 20px;
    padding: 28px 30px;
    color: #ffffff;
    /* box-shadow: 0 8px 24px rgba(127, 42, 140, 0.2); */
}

.expert-get-connected-banner .banner-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
}

.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-method-item .method-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #601867;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    flex-shrink: 0;
}

.contact-method-item .method-icon img {
    width: 60%;
    filter: invert(1);
}

.contact-method-item .method-details {
    display: flex;
    flex-direction: column;
}

.contact-method-item .method-label {
    font-size: 12px;
    opacity: 0.85;
}

.contact-method-item .method-val {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    /* text-decoration: none; */
    word-break: break-all;
}

.contact-method-item .method-val:hover {
    text-decoration: underline;
}

/* --- Sections General --- */
.expert-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
}

.view-more-link,
.view-all-link {
    color: #7f2a8c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

.expert-bio-content {
    font-size: 15px;
    line-height: 1.75;
    color: #333333;
}

.expert-bio-content P:last-child {
    margin: 0 !important;
}

/* --- Industry Speciality Pills --- */
.expert-speciality-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spec-pill-card {
    /* background: #f4ecf6;
    color: #222222;
    border-radius: 30px;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #e8d9ec;
    transition: all 0.2s ease; */
    /* background: linear-gradient(90deg, #eabaff73 0%, #f7f0fa 35%, #fbf8fc 70%, #ffffff 100%);
    color: #222222;
    border-radius: 12px;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    font-weight: 700;
    transition: all 0.2s ease; */
    background: linear-gradient(135deg,
            rgba(234, 186, 255, 0.55) 0%,
            rgba(247, 240, 250, 0.72) 35%,
            rgba(251, 248, 252, 0.82) 70%,
            rgba(255, 255, 255, 0.88) 100%) !important;

    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;

    border: 1px solid rgba(210, 170, 225, 0.45) !important;
    border-radius: 12px !important;

    box-shadow:
        0 8px 24px rgba(100, 45, 120, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(210, 170, 225, 0.12) !important;

    color: #222222 !important;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.spec-pill-card i {
    color: #7f2a8c;
    font-size: 15px;
}

.spec-pill-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.spec-pill-svg {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #7f2a8c;
    -webkit-mask: var(--svg-url) no-repeat center / contain;
    mask: var(--svg-url) no-repeat center / contain;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

/* .spec-pill-card:hover {
    background: #7f2a8c;
    color: #ffffff;
    border-color: #7f2a8c;
}

.spec-pill-card:hover i {
    color: #ffffff;
} */

/* .spec-pill-card:hover .spec-pill-svg {
    background-color: #ffffff;
} */

/* --- Guidance Timeline (Dashed Line Steps) --- */
#guidance {
    background: #f9f3fa;
    border-radius: 20px;
    padding: 24px;

}

.guidance-timeline {
    position: relative;
}

.guidance-timeline__step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 22px;
}

.guidance-timeline__step:last-child {
    padding-bottom: 0;
}

.guidance-timeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    left: 17px;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed #b984c7;
}

.guidance-timeline__step .step-num-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e8d0ee;
    color: #7f2a8c;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.guidance-timeline__step .step-content {
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    line-height: 1.5;
    padding-top: 6px;
}

/* --- Related Experts Cards --- */
.expert-card-mini {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.mini-card__photo-box {
    position: relative;
    height: 240px;
    background: #f0e8f2;
}

.mini-card__photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.mini-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
    padding: 14px 16px;
    color: #ffffff;
}

.mini-card__name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mini-card__desig {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 0;
}

.mini-card__footer {
    background: #fdfbfd;
    border-top: 1px solid #f0e6f2;
    padding: 12px 16px;
}

.mini-card__exp {
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.mini-card__exp i {
    color: #7f2a8c;
}

.btn-mini-view {
    display: inline-block;
    background: #7f2a8c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.expert-cards-carousel {
    padding-bottom: 45px !important;
    position: relative;
}

.expert-cards-carousel .swiper-pagination {
    bottom: 0 !important;
}

.expert-cards-carousel .swiper-pagination-bullet-active {
    background: #7f2a8c;
}

.btn-mini-view:hover {
    background: #5f1d6b;
    color: #ffffff;
}

.expert-cards-carousel .swiper-slide {
    height: auto;
}

.expert-section .view-more-link,
.expert-section .view-all-link,
.notification-banner__disclaimer a {
    color: #7f2a8c !important;
}

.find-opportunities__badge {
    font-weight: 700 !important;
}

.expert-archive-page .spec-pill-svg {
    width: 40px;
    height: 40px
}
.expert-archive-page .dp-subcategory-card__icon{
    margin-bottom: 0px !important;
}
  .expert-card__photo-container .find-opportunities__badge {
background: rgba(127, 42, 140, 0.22) !important;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
backdrop-filter: blur(3.8px) !important;
-webkit-backdrop-filter: blur(3.8px) !important;
border: 1px solid rgba(127, 42, 140, 0.38) !important;
  }
notification-banner__disclaimer .view-more-link {}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {

    /* On Desktop (>= 768px), show all pills & guidance steps, hide toggle links */
    .js-toggle-specialities,
    .js-toggle-guidance {
        display: none !important;
    }

    .js-extra-spec {
        display: inline-flex !important;
    }

    .js-extra-guidance {
        display: flex !important;
    }
}

.expert-detail-page-v2 .notification-banner__disclaimer a,
.term-industry-experts .notification-banner__disclaimer a {
    color: #7f2a8c !important;
    ;
}

@media (max-width: 767.98px) {
    .expert-card__photo {
        object-position: bottom;
    }
.expert-archive-page .spec-pill-svg{
        width: 25px;
    height: 25px;
}
    .expert-detail-page-v2 .expert-card__photo {
        height: 80% !important;
    }

    .expert-detail-page-v2 .expert-card__photo-container>a {
        display: flex;
        justify-content: center;
        align-items: end;
    }

    .expert-detail-page-v2 .expert-card {
        border-radius: 12px !important;
    }

    .expert-detail-page-v2 .find-opportunities__badge {
        font-size: 8px !important;
        /* font-weight: 600; */
        padding: 4px 8px !important;
        top: 5px !important;
        left: 5px !important;
    }

    .expert-key-info-box .info-row {
        font-size: 14px;
        gap: 10px;
    }

    .expert-hero-name {
        font-size: 20px;
    }

    .expert-card__name {
        padding: 20px 10px 12px !important;
    }

    .expert-section .section-title,
    .expert-get-connected-banner .banner-title {
        font-size: 18px;
        margin-bottom: 15px !important;
    }

    .expert-hero-subtitle {
        font-size: 16px;
    }

    .expert-hero-card__photo {
        height: 200px;
    }

    .expert-hero-card::before {
        background-image: url(https://discovery.deasra.in/wp-content/uploads/mobile-ex.svg) !important;
        background-size: auto;
    }

    .expert-get-connected-banner {
        padding: 10px 20px !important;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0px !important;

    }

    .expert-key-info-box {
        background-size: 170px !important;
        padding: 10px 20px !important;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0px !important;
    }

    .contact-method-item .method-val,
    .expert-bio-content {
        font-size: 14px;
    }

    .expert-bio-content {
        line-height: normal;
    }

    #specialities .section-title,
    #expert-cards-main-sec .section-title {
        margin-bottom: 0px !important;
    }

    .expert-hero-info {
        padding-bottom: 0px;
    }

    .contact-method-item .method-icon {
        width: 35px;
        height: 35px;
    }

    .contact-methods-list {
        gap: 7px;
    }

    .expert-hero-card__quick-actions .action-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .expert-hero-card__quick-actions img {
        width: 20px;
    }

    .spec-pill-card {
        border-radius: 8px;
        padding: 5px 12px;
        font-size: 12px;
    }

    .expert-hero-card__quick-actions {
        top: 0 !important;
    }
}