/* ==========================================================================
   Provider Page Styles - Premium, Responsive, and Dynamic
   ========================================================================== */

:root {
    --wm-peach: #FAF0ED;
    --wm-peach-dark: #D88A8A;
    --wm-teal-light: #E6F0EE;
    --wm-teal-accent: #3C867C;
    --wm-gold-light: #FDF4E2;
    --wm-gold-accent: #C79434;
    --wm-violet-light: #F3F1FA;
    --wm-violet-accent: #8F84C4;
}

.provider-page-wrapper {
    background-color: #FFFFFF;
    color: #60403E;
    /* overflow-x: hidden removed — body already clips horizontal overflow.
       Setting it on a child div creates a secondary scroll container (double scroll bug). */
}

/* Base Typographic styling for Provider template */
.provider-page-wrapper h1,
.provider-page-wrapper h2,
.provider-page-wrapper h3,
.provider-page-wrapper h4 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    color: #2E3030;
    font-weight: 700;
}

/* Reusable Tagline design matching theme guidelines */
.provider-page-wrapper .tagline .ins-verify-tagline-line {
    width: 30px;
    height: 1.5px;
    background-color: #8C5550;
    display: inline-block;
    margin-right: 12px;
}

.provider-page-wrapper .tagline .ins-verify-tagline-text {
    letter-spacing: 2.5px;
    color: #8C5550;
    font-size: 0.85rem;
    font-family: var(--font-body, sans-serif);
}

/* ==========================================================================
   1. Hero / Profile Section
   ========================================================================== */
.prov-hero-section {
    background-color: var(--hero-background-color);
    position: relative;
    padding: 50px 0 190px !important;
}

.prov-hero-section .tagline-dot {
    background: #ffffff;
}

.prov-hero-section .tagline-text {
    color: #ffffff;
}

.prov-hero-section .btn-wm-primary {
    background: white !important;
    color: #347d75 !important;
}

.prov-hero-section .btn-wm-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.prov-botanical-decor {
    position: absolute;
    bottom: -15px;
    left: -15px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

.prov-botanical-svg {
    display: block;
    width: 220px;
    height: 220px;
}


.prov-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.15;
    color: #ffffff !important;
}

.prov-hero-divider {
    width: 90px;
    height: 2px;
    background-color: var(--hero-background-color);
}

.prov-hero-bio-desc {
    font-family: var(--font-body, sans-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ffffff !important;
    opacity: 1;
}

.prov-hero-bio-desc p {
    margin-bottom: 15px;
    color: #ffffff !important;
}

/* Tag Pills */
.prov-treats-title {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #ffffff !important;
}

.prov-tag-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    font-family: var(--font-body, sans-serif);
}

.prov-tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
}

/* Tag Pill Specific Themes */
.prov-tag-pill-1,
.prov-tag-pill:nth-of-type(4n+1) {
    background-color: #E6F0EE !important;
    color: #3C867C !important;
}

.prov-tag-pill-2,
.prov-tag-pill:nth-of-type(4n+2) {
    background-color: #E6EBF8 !important;
    color: #55688C !important;
}

.prov-tag-pill-3,
.prov-tag-pill:nth-of-type(4n+3) {
    background-color: #FCECEB !important;
    color: #8C5550 !important;
}

.prov-tag-pill-4,
.prov-tag-pill:nth-of-type(4n+4) {
    background-color: #FDF4E2 !important;
    color: #8C723E !important;
}

/* Provider Image Frame styling */
.prov-image-container {
    position: relative;
}

.prov-photo {
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(96, 64, 62, 0.06);
    max-height: 620px;
    object-fit: cover;
    background-color: #FFFFFF;
}

.prov-photo-placeholder {
    width: 320px;
    height: 420px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(96, 64, 62, 0.06);
}

/* Floating Overlay Circular Badge */
.prov-badge-overlay {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border-radius: 50%;
    width: 172px;
    height: 172px;
    box-shadow: 0 12px 35px rgba(96, 64, 62, 0.08);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prov-badge-overlay::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1.5px solid var(--hero-background-color);
    border-radius: 50%;
    pointer-events: none;
}

.prov-badge-overlay:hover {
    transform: translateX(-50%) scale(1.08) translateY(-5px);
}

.prov-badge-icon {
    color: var(--hero-background-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prov-badge-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #2E3030;
    line-height: 1.25;
}

.prov-badge-sub {
    font-family: var(--font-body, sans-serif);
    font-size: 0.72rem;
    color: #60403E;
    opacity: 0.85;
    max-width: 130px;
    line-height: 1.35;
    margin-top: 2px !important;
}

/* Absolute backgrounds decors */
.prov-decor-left {
    position: absolute;
    left: -20px;
    bottom: 5%;
    opacity: 0.12;
    max-width: 200px;
    pointer-events: none;
}

.prov-decor-right {
    position: absolute;
    right: -20px;
    top: 5%;
    opacity: 0.12;
    max-width: 200px;
    pointer-events: none;
}

/* ==========================================================================
   2. Expertise Section
   ========================================================================== */
.prov-expertise-section {
    background-color: #f5f5f5;
    /* Premium warm off-white background matching mockup */
    position: relative;
    padding-top: 100px !important;
    padding-bottom: 80px !important;
}

.prov-tagline-badge {
    display: inline-block;
    background-color: #F3E1DC;
    /* Soft pink/peach badge background */
    color: #8C5550;
    /* Reddish brown badge text */
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: var(--font-body, sans-serif);
}

.prov-expertise-leaf-right {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    /* Extremely subtle hand-drawn background sketch */
}

.prov-top-divider-svg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.prov-top-divider-svg svg {
    width: 100%;
    height: auto;
}

.prov-section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    color: #2E3030;
    max-width: 550px;
}

.prov-section-desc {
    font-family: var(--font-body, sans-serif);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #60403E;
}

/* Expertise Cards layout */
.prov-expertise-card {
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px rgba(96, 64, 62, 0.02), 0 2px 8px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #FFFFFF;
    z-index: 2;
    position: relative;
}

.prov-expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(91, 168, 160, 0.08), 0 5px 15px rgba(0, 0, 0, 0.02);
    border-color: rgba(91, 168, 160, 0.12);
}

.prov-card-icon-wrap {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.prov-expertise-card:hover .prov-card-icon-wrap {
    transform: scale(1.08) rotate(5deg);
}

.prov-card-img-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.prov-card-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.prov-card-desc {
    font-family: var(--font-body, sans-serif);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Card color cycling - Scoped and matched to mockup */
.prov-expertise-section .col-md-6:nth-of-type(4n+1) .prov-card-icon-wrap {
    background-color: var(--wm-teal-light);
    color: var(--wm-teal-accent);
}

.prov-expertise-section .col-md-6:nth-of-type(4n+2) .prov-card-icon-wrap {
    background-color: var(--wm-gold-light);
    color: var(--wm-gold-accent);
}

.prov-expertise-section .col-md-6:nth-of-type(4n+3) .prov-card-icon-wrap {
    background-color: var(--wm-teal-light);
    color: var(--wm-teal-accent);
}

.prov-expertise-section .col-md-6:nth-of-type(4n+4) .prov-card-icon-wrap {
    background-color: var(--wm-peach);
    color: var(--wm-peach-dark);
}

/* ==========================================================================
   3. What to Expect Section
   ========================================================================== */
.prov-expect-section {
    background-color: #FAF8F5;
    /* Warm off-white background matching design */
    position: relative;
    padding: 80px 0 !important;
}

.prov-expect-leaf-right {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.prov-expect-card {
    background-color: #F7F7F7;
    /* White cards matching mockup */
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 30px rgba(96, 64, 62, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
}

.prov-expect-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 168, 160, 0.06);
    border-color: rgba(91, 168, 160, 0.1);
}

.prov-expect-card .prov-card-icon-wrap {
    width: auto;
    height: auto;
    background: transparent !important;
    color: var(--wm-teal-accent) !important;
    /* All icons are teal */
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Specialty Focus Grid */
.prov-specialty-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #2E3030;
    font-weight: 700;
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
}

.prov-specialty-card {
    background-color: #F8F9FB;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 5px 15px rgba(96, 64, 62, 0.01);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prov-specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(91, 168, 160, 0.08);
    border-color: rgba(91, 168, 160, 0.15);
}

.prov-specialty-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    transition: all 0.35s ease;
}

.prov-specialty-card:hover .prov-specialty-icon-wrap {
    transform: scale(1.08);
}

/* Specialty Color Cycle - Scoped and matched to mockup */
/* .prov-specialty-section .col-6:nth-of-type(6n+1) .prov-specialty-icon-wrap {
    background-color: var(--wm-teal-light);
    color: var(--wm-teal-accent);
}

.prov-specialty-section .col-6:nth-of-type(6n+2) .prov-specialty-icon-wrap {
    background-color: var(--wm-violet-light);
    color: var(--wm-violet-accent);
}

.prov-specialty-section .col-6:nth-of-type(6n+3) .prov-specialty-icon-wrap {
    background-color: var(--wm-teal-light);
    color: var(--wm-teal-accent);
}

.prov-specialty-section .col-6:nth-of-type(6n+4) .prov-specialty-icon-wrap {
    background-color: var(--wm-peach);
    color: var(--wm-peach-dark);
}

.prov-specialty-section .col-6:nth-of-type(6n+5) .prov-specialty-icon-wrap {
    background-color: var(--wm-peach);
    color: var(--wm-peach-dark);
}

.prov-specialty-section .col-6:nth-of-type(6n+6) .prov-specialty-icon-wrap {
    background-color: var(--wm-violet-light);
    color: var(--wm-violet-accent);
} */

.prov-spec-img-icon {
    /* width: 30px;
    height: 30px; */
    object-fit: contain;
}

.prov-specialty-card .prov-specialty-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2E3030;
    padding: 0 15px;
}

.prov-specialty-underline {
    width: 35px;
    height: 2px;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   4. FAQ Section
   ========================================================================== */
.prov-faq-section {
    background-color: #F6F4F4;
    /* White background matching mockup */
    position: relative;
    padding: 80px 0 !important;
}

.prov-faq-leaf-left {
    position: absolute;
    top: -80px;
    left: 35%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.prov-faq-item {
    background: #FFFFFF;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    box-shadow: 0 6px 20px rgba(96, 64, 62, 0.01);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.prov-faq-item.active-border {
    border-color: #72A59F !important;
    box-shadow: 0 15px 35px rgba(114, 165, 159, 0.08) !important;
}

.prov-faq-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: none !important;
    outline: none !important;
}

.prov-faq-question-text {
    font-family: var(--font-heading, serif);
    font-size: 1.12rem;
    font-weight: 600;
    color: #2E3030;
    line-height: 1.35;
}

.prov-faq-btn::after {
    content: '+';
    font-family: var(--font-body, sans-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: #FFFFFF !important;
    background-color: var(--wm-teal-accent);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.prov-faq-btn:not(.collapsed)::after {
    content: '−';
    font-size: 1.25rem;
    background-color: var(--wm-teal-accent);
    color: #FFFFFF !important;
}

.prov-faq-content {
    padding: 0 24px 20px 24px;
    /* Left aligned with the question text */
    font-family: var(--font-body, sans-serif);
    color: #555555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FAQ Side Image Frame */
.prov-faq-image-container {
    position: relative;
    z-index: 2;
}

.prov-faq-side-img {
    border: none !important;
    border-radius: 24px !important;
    /* box-shadow: 0 15px 45px rgba(96, 64, 62, 0.06) !important; */
    background-color: #FFFFFF;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.prov-faq-placeholder-decor {
    width: 100%;
    aspect-ratio: 4/3;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 45px rgba(96, 64, 62, 0.06) !important;
    background-color: #FFFFFF;
}

/* Dot grid overlay decoration */
.prov-faq-dots-decor {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--wm-teal-accent) 2.5px, transparent 2.5px);
    /* Teal color matching brand dots */
    background-size: 16px 16px;
    opacity: 0.15;
    z-index: -1;
}

/* ==========================================================================
   5. CTA Section
   ========================================================================== */
.prov-cta-section {
    background-color: #F6F4F4;
    position: relative;
    padding: 0 0 80px 0 !important;
}

.prov-cta-banner {
    background-color: var(--wm-teal-light);
    border: 3px solid #FFFFFF;
    box-shadow: 0 15px 35px rgba(96, 64, 62, 0.02);
}

.prov-cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    color: #2E3030;
    max-width: 900px;
    margin: auto;
}

.prov-cta-subtitle {
    font-family: var(--font-body, sans-serif);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Responsive Adaptive Layout Tweaks
   ========================================================================== */
@media (max-width: 991.98px) {
    .prov-hero-section {
        padding: 50px 0 !important;
        text-align: center;
    }

    .tagline {
        justify-content: center;
    }

    .prov-hero-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .prov-badge-overlay {
        left: 50%;
        transform: translateX(-50%);
        bottom: -45px;
    }

    .prov-badge-overlay:hover {
        transform: translateX(-50%) scale(1.05) translateY(-5px);
    }

    .prov-photo {
        margin-top: 40px;
    }

    .prov-faq-image-container {
        margin-top: 40px;
        text-align: center;
        width: 100%;
    }

    .prov-faq-dots-decor {
        display: none;
    }
}

/* ── Mobile: Convert circle badge → horizontal pill (≤767px) ── */
@media (max-width: 767px) {

    /* Remove the fixed circle shape */
    .prov-badge-overlay {
        /* Override circle dimensions */
        width: auto !important;
        height: auto !important;
        border-radius: 50px !important;
        /* pill shape */
        border: 1.5px solid var(--hero-background-color) !important;

        /* Switch to horizontal row layout */
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;

        /* Sizing & positioning */
        padding: 12px 22px !important;
        bottom: -28px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        white-space: nowrap;
        max-width: 90vw;
    }

    /* Remove inner ring (only makes sense on a circle) */
    .prov-badge-overlay::before {
        display: none !important;
    }

    /* Icon: smaller on mobile */
    .prov-badge-icon {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .prov-badge-icon svg {
        width: 24px !important;
        height: 28px !important;
    }

    /* Text block: left-aligned beside the icon */
    .prov-badge-title {
        font-size: 1rem !important;
        text-align: left !important;
        margin-bottom: 1px !important;
        white-space: normal;
    }

    .prov-badge-sub {
        font-size: 0.68rem !important;
        max-width: none !important;
        text-align: left !important;
        white-space: normal;
    }

    /* Disable hover transform (no translateX needed with pill) */
    .prov-badge-overlay:hover {
        transform: translateX(-50%) scale(1.03) !important;
    }
}

@media (max-width: 575.98px) {
    .prov-hero-title {
        font-size: 35px !important;
        line-height: 1.15 !important;
    }

    .prov-section-title {
        font-size: 35px !important;
        line-height: 1.15 !important;
    }

    /* Keep pill shape on very small screens too */
    .prov-badge-overlay {
        padding: 10px 18px !important;
        bottom: -24px !important;
        gap: 10px !important;
    }

    .prov-badge-title {
        font-size: 0.92rem !important;
    }

    .prov-badge-sub {
        font-size: 0.64rem !important;
    }

    .prov-faq-question-text {
        font-size: 1rem;
    }

    .prov-faq-content {
        padding-left: 24px;
    }
}