/* Deepti */
/* ==========================================================================
   #phonewali-didi section — modern redesign
   Reuses existing utilities: .pinkbg / .lightbluebg / .bluetext / .darkpinktext
   / .blacktext, .fontLo / .fontPf / .fw4 / .fw7 / .fw71, .p1 / .p2 / .p3,
   .padtb100 / .nomar / .nopad, Bootstrap grid / .sr-only / .hidden-xs.
   New rules cover shapes, depth, blur and motion not existing elsewhere:
   badge pill, gradient heading, circular stat, glass cards, scroll-reveal,
   count-up hooks.
   All new color values reuse existing hex codes:
   .darkpinktext (#D05591), .bluetext (#5097DB), .dakbluetext (#637ca0).
   ========================================================================== */

/* --- Badge pill --- */
#phonewali-didi .pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(208, 85, 145, 0.18);
}

#phonewali-didi .pd-badge-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Section heading --- */
#phonewali-didi .pd-heading {
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-top: 16px;
    margin-bottom: 8px;
}

#phonewali-didi .pd-heading-accent {
    background: linear-gradient(90deg, #5097DB, #D05591);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Stats row layout (desktop only) --- */
@media (min-width: 992px) {
    #phonewali-didi .pd-stats.row {
        display: flex;
        padding-top: 30px;
    }
}

/* --- Stats strip --- */
#phonewali-didi .pd-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 20px;
    padding: 30px 25px;
    margin: 45px 0;
    box-shadow: 0 14px 30px rgba(208, 85, 145, 0.14);
}

#phonewali-didi .pd-strip-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

#phonewali-didi .pd-strip-divider-wrap {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

#phonewali-didi .pd-strip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #D05591;
    flex-shrink: 0;
}

/* Constrain quote image inside tight columns */
#phonewali-didi .pd-strip-icon img {
    max-width: 100%;
    height: auto;
}

#phonewali-didi .pd-strip-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
}

#phonewali-didi .pd-strip-divider {
    display: block;
    width: 1px;
    height: 55px;
    background: rgba(208, 85, 145, 0.25);
}

/* --- Equal-height cards (tablet+) --- */
@media (min-width: 768px) {
    #phonewali-didi .pd-cards-row {
        display: flex;
        flex-wrap: wrap;
    }
    #phonewali-didi .pd-cards-row > article {
        display: flex;
    }
}

/* --- Card icon bubble --- */
#phonewali-didi .pd-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(208, 85, 145, 0.12);
    color: #D05591;
    margin-bottom: 16px;
}

/* --- Scroll-reveal (JS toggles .pd-visible via IntersectionObserver) --- */
#phonewali-didi .pd-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#phonewali-didi .pd-reveal.pd-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating mobile image — scoped to section --- */
#phonewali-didi .mobile {
    animation: pdFloat 2s ease-in-out infinite;
    display: block;
}

@keyframes pdFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

/* --- Responsive typography --- */
@media (max-width: 1199px) {
    #phonewali-didi .pd-heading {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    #phonewali-didi .pd-heading {
        font-size: 30px;
    }
    #phonewali-didi .pd-strip-number {
        font-size: 28px !important;
    }
}

/* ============================================================
   MOBILE FIXES  (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {

    /* 1. Section heading */
    #phonewali-didi .pd-reveal{
        padding-top:25px;
    }



    /* 3. Floating right-column mobile image: centre */
    #phonewali-didi .mobile {
        display: block;
        margin: 24px auto 0;
        justify-items: center;
    }

    /* 4. Cards: spacing between stacked articles */
    #phonewali-didi .pd-cards-row > article {
        margin-bottom: 24px;
         margin-top: 24px;
    }
    #phonewali-didi .pd-cards-row > article:last-child {
        margin-bottom: 0;
    }

    /* 5. Circular base — slightly larger on mobile */
    /* #phonewali-didi .pd-circle {
        width: 120px;
        height: 120px;
    } */

    /* --------------------------------------------------------
       6. STRIP — two-row layout on mobile
          Original xs cols: icon(2) | div(1) | text(4) | div(1) | icon(2) | text(3) = 13 (overflows)
          Fix: override widths so each set of three (icon+divider+text)
          fills exactly one full row, and the second set wraps below.
       -------------------------------------------------------- */
    #phonewali-didi .pd-strip {
        padding: 20px 15px;
        margin: 30px 0;
        align-items: flex-start;
        row-gap: 16px;
    }

    /* Force each child into flex-item mode with explicit widths */
    #phonewali-didi .pd-strip > [class*="col-"] {
        float: none;          /* override Bootstrap float */
        padding-left: 6px;
        padding-right: 6px;
    }

    
       /* Hide mother-kid image — first icon-wrap — on mobile */
    #phonewali-didi .pd-strip .pd-strip-icon-wrap:first-child {
        display: none;
    }

    /* Remaining icon wraps (thumbs-up, location): fixed width */
    #phonewali-didi .pd-strip .pd-strip-icon-wrap {
        width: 14%;
        align-items: flex-start;
        padding-top: 4px;
    }

    /* Vertical divider between icon and text: ~8% */
    #phonewali-didi .pd-strip .pd-strip-divider-wrap {
        width: 8%;
        display: flex;         /* re-show; hidden globally was removed */
    }

    /* Text block: rest of row */
    #phonewali-didi .pd-strip .pd-strip-block {
        width: 86%;
        justify-content: flex-start;
        margin-bottom: 0;
    }

  

    /* Keep vertical dividers visible within each row */
       /* Hide all dividers in strip on mobile */
    #phonewali-didi .pd-strip .pd-strip-divider-wrap,
    #phonewali-didi .pd-strip .pd-strip-divider {
        display: none;
    }

    /* Strip number smaller on mobile */
    #phonewali-didi .pd-strip-number {
        font-size: 22px !important;
    }

    /* Strip icon image constrained */
    #phonewali-didi .pd-strip-icon img {
        max-width: 48px;
        height: auto;
    }

    /* --------------------------------------------------------
       7. Accuracy circle — increase radius on mobile
       -------------------------------------------------------- */
    #phonewali-didi .pd-accuracy-circle {
        width: 150px;
        height: 150px;
        margin-top: 20px;
    }
    /* #phonewali-didi .pd-accuracy-circle .pd-circle-number {
        font-size: 24px;
    } */

    /* --------------------------------------------------------
       8. Language card — remove left border, add top spacing
       -------------------------------------------------------- */
    .pd-language-card {
        border-left: none !important;
        padding-left: 25% !important;
        
        margin-top: 0 !important;
        text-align: center ! important;
    }
}

/* Extra small phones (≤ 480px) */
@media (max-width: 480px) {
    
    #phonewali-didi .pd-badge {
        font-size: 11px;
        padding: 6px 14px;
    }
    #phonewali-didi .pd-strip {
        padding: 16px 10px;
    }
    #phonewali-didi .pd-strip-number {
        font-size: 18px !important;
    }
    #phonewali-didi .pd-card-icon {
        width: 44px;
        height: 44px;
    }
    #phonewali-didi .pd-accuracy-circle {
        width: 130px;
        height: 130px;
    }
    /* #phonewali-didi .pd-accuracy-circle .pd-circle-number {
        font-size: 20px;
    } */
    .pd-language-card {
        max-width: 100%;
        border-left: none;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    #phonewali-didi .pd-circle,
    #phonewali-didi .pd-reveal,
    #phonewali-didi .mobile {
        animation: none;
        transition: none;
    }
    #phonewali-didi .pd-reveal {
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================================
   85% ACCURACY RATE — SVG progress circle
   ========================================================================== */

#phonewali-didi .pd-accuracy-circle {
    position: relative;
    width: 150px;           
    height: 150px;
    padding: 0;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


/* ==========================================================================
   Language card
   ========================================================================== */

.pd-language-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 35px auto 0;
    padding: 15px 10px 15px 35px;
    border-left: 3px solid #d85a91;
    max-width: 300px;
    text-align: left;
}


.pd-language-content {
    display: flex;
    flex-direction: column;
}

.pd-language-title {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    color: #555;
    margin-bottom: 4px;
}

.pd-language-text {
    display: block;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #d85a91;
}
/* ==========================================================================
   Phonewali Didi — image sequential fade (viewport zones + hover)
   Technique: transition-delay swap creates fadeout → fadein sequence
   No keyframes needed — pure CSS transitions handle both triggers.
   ========================================================================== */

/* Wrapper: stacking context, sized by base image */
#phonewali-didi .pd-didi-wrap {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    /* Hint cursor on desktop */
    cursor: pointer;
}

/* --- Base image: in flow, defines wrapper height --- */
#phonewali-didi .pd-didi-base {
    display: block;
    position: relative;   /* stays in flow so wrapper has natural height */
    width: 100%;
    height: auto;
    opacity: 1;
    /*
      DEFAULT (showing base, reverting to base):
      - base fades IN after alt fades out → delay = alt fade duration (0.4s)
      - duration: 0.35s ease-out (slow in = smooth)
    */
    transition: opacity 0.35s ease-out 0.4s;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 1;
}

/* --- Alt image: stacked on top, hidden by default --- */
#phonewali-didi .pd-didi-alt {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
   object-fit: contain;
    object-position: center;
    opacity: 0;
    /*
      DEFAULT (reverting to base):
      - alt fades OUT immediately (no delay)
      - duration: 0.4s ease-in (fast out = snappy)
    */
    transition: opacity 0.4s ease-in 0s;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;  /* clicks pass through to wrapper */
    z-index: 2;
}

/* -----------------------------------------------------------
   ACTIVE STATE — triggered by:
   1. .pd-didi-active class (JS: viewport zone detection)
   2. :hover (CSS: desktop hover, no JS needed)
   -----------------------------------------------------------
   Delay trick for sequential fade:
   - base fades OUT immediately (delay 0s), duration 0.35s ease-in
   - alt fades IN after base is gone (delay 0.35s), duration 0.4s ease-out
   Net result: base fully out → then alt fades in smoothly
   ----------------------------------------------------------- */
#phonewali-didi .pd-didi-wrap.pd-didi-active .pd-didi-base,
#phonewali-didi .pd-didi-wrap:hover .pd-didi-base {
    opacity: 0;
    /* Fade OUT: immediate, fast ease-in */
    transition: opacity 0.35s ease-in 0s;
}

#phonewali-didi .pd-didi-wrap.pd-didi-active .pd-didi-alt,
#phonewali-didi .pd-didi-wrap:hover .pd-didi-alt {
    opacity: 1;
    /* Fade IN: waits for base to finish fading out */
    transition: opacity 0.4s ease-out 0.35s;
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 767px) {
    #phonewali-didi{
        padding-top: 0px !important;
    }
    #phonewali-didi .pd-didi-wrap {
        max-width: 320px;
        margin: 0 auto 24px;
        /* No hover on touch — disable cursor hint */
        cursor: default;
        justify-items: center;
    }
    #phonewali-didi .pd-didi-wrap img {
        height:220px;
        width:auto;
    }
    #phonewali-didi .pd-didi-alt {
    object-position: center center;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}
    /* Touch devices: disable hover effect entirely */
    #phonewali-didi .pd-didi-wrap:hover .pd-didi-base {
        opacity: 1;
        transition: opacity 0.35s ease-out 0.4s;
    }
    #phonewali-didi .pd-didi-wrap:hover .pd-didi-alt {
        opacity: 0;
        transition: opacity 0.4s ease-in 0s;
    }
    /* Viewport zone (.pd-didi-active) still works on mobile */
    #phonewali-didi .pd-didi-wrap.pd-didi-active .pd-didi-base {
        opacity: 0;
        transition: opacity 0.35s ease-in 0s;
    }
    #phonewali-didi .pd-didi-wrap.pd-didi-active .pd-didi-alt {
        opacity: 1;
        transition: opacity 0.4s ease-out 0.35s;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #phonewali-didi .pd-didi-wrap {
        max-width: 380px;
        margin: 0 auto;
    }
}

/* Reduced motion: hard swap, no transitions */
@media (prefers-reduced-motion: reduce) {
    #phonewali-didi .pd-didi-base,
    #phonewali-didi .pd-didi-alt {
        transition: none;
    }
}


/* --------------------------------- */
.single-chart {
  width: 100%;
  justify-content: space-around;
  
}

.circular-chart {
  display: block;
  margin: 10px auto;
  max-width: 80%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  /* Triggers the entry animation on load */
  animation: progress 1.5s ease-out forwards;
}

/* Color theme */
.circular-chart.orange .circle {
  stroke: #D05591;
}

.percentage {
  fill: #666;
  font-family: sans-serif;
  font-size: 0.5em;
  text-anchor: middle;
}

/* Keyframe for the fill animation */
@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}