.sub-container {
    padding: 1rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
   
}


.faq-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a3d2f;
    text-align: center;
}

.faq-intro {
    text-align: center;
    font-size: 1rem;
    color: #444;
/*    margin-bottom: 2rem;*/
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: #e6f4ea;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #1b5e20;
    transition: background-color 0.3s ease;
    position: relative; /* IMPORTANT: Added this */
    outline: none;
}
    .faq-question::after {
        content: "v"; /* Simple ASCII character */
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        font-size: 1.2rem;
        color: #1b5e20;
        transition: transform 0.3s ease;
    }

/* Active state arrow rotation */
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}
.faq-question:hover {
    background-color: #d0e9d7;
}

.faq-answer {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    font-size: 0.95rem;
    padding: 1rem 0;
    color: #333;
}

/* Show/hide logic using JavaScript class */
.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 1rem;
}

.my-mydawa {
    padding: 1.5rem 1rem;
    background: #f9fafb; /* Light neutral background */
    text-align: center;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 600;
/*    margin-bottom: 2rem;*/
    color: #222;
}

/*highlight parts*/

.highlight {
    padding: 10px;
    background: #fefcbf;
    border: 1px solid #facc15;
    border-radius: 8px;
    font-size: 1rem;
    color: #854d0e;
    font-weight: 500;
    max-width: 600px;
    margin: 20px auto 20px;
}

/*cta button*/
.cta-direct-button {
    display: block;
    margin: 30px auto 0;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #10b981;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

    .cta-direct-button:hover {
        background-color: #059669;
    }


/*testimonial section*/

.carousel-container {
/*    max-width: 800px;*/
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; 
    padding: 5px;
}

.carousel {
    display: flex;

}

.testimonial-card {
    /*    min-width: 100%;*/
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
    text-align: center;
    scroll-snap-align: center;
    flex-basis: 48%;
    min-width: 420px;
}

    .testimonial-card p {
        font-size: 1rem;
        color: #555;
        line-height: 1.6;
        font-style: italic;
        font-family: 'Figtree', serif;
    }

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .carousel {
        flex-direction: column;
    }

    .testimonial-card {
        min-width: 100%;
        margin: 10px 0;
    }
}


@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
        gap: 15px;
    }

    .arrow {
        transform: rotate(90deg);
        font-size: 1.2rem;
    }

    .flow-item {
        width: auto;
    }
}

/*    lupus symptoms only*/
    .all-symptoms li {
        flex-direction: column;
    }

@media (max-width: 768px) {
    
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        text-align: center !important;
        padding-left: 60px;
        padding-right: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .timeline-icon {
/*        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border: 2px solid #f9f9f9;*/
display:none !important;
    }

/*    .timeline-item .timeline-icon {
        left: -3px;
        right: auto;
    }*/

    .timeline-content {
        padding: 0.8rem;
        margin-left: 8px;
    }
}


/*scd management*/
.scd-management {
    padding: 1rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
    /* font-family: 'Segoe UI', sans-serif; */
}

.scd-management h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    /* margin-bottom: 25px; */
}

.scd-management p.intro {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.content-wrapper {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.column {
    flex-basis: 48%;
    min-width: 300px;
    max-width: 48%;
}

.column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 15px;
    text-align: left;
}

@media (max-width: 768px) {
    .content-wrapper {
         gap: 30px; 
    }
}


.vertical-divider {
    width: 2px;
    background-color: #eaeaea;
    margin: 0 10px;
}

/* ─────────────────────────────────────────────────────────────
   Nivi WhatsApp CTAs (Family Planning landing page)
   - .nivi-cta      : static in-page CTA bands
   - .nivi-float    : floating button, stays visible while scrolling
   Kept on the left so it never collides with the Infobip live-chat
   launcher (bottom-right) or the mobile .bottom-nav (60px, z-index 1000).
   ───────────────────────────────────────────────────────────── */

.nivi-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    padding: 20px 24px;
    border: 1px solid #d9f2e2;
    border-left: 4px solid #25d366;
    border-radius: 12px;
    background: linear-gradient(90deg, #f2fbf6 0%, #ffffff 60%);
}

.nivi-cta-text h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

.nivi-cta-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.nivi-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 22px;
    border-radius: 999px;
    background-color: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nivi-cta-btn:hover,
.nivi-cta-btn:focus {
    background-color: #1fba59;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.nivi-cta-btn svg {
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .nivi-cta {
        padding: 16px;
        text-align: center;
        justify-content: center;
    }

    .nivi-cta-text h3 {
        font-size: 1.05rem;
    }

    .nivi-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Floating button */
.nivi-float {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background-color: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nivi-float:hover,
.nivi-float:focus {
    background-color: #1fba59;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.nivi-float svg {
    flex-shrink: 0;
}

.nivi-float-label-short {
    display: none;
}

/* Mobile: shorter label and lifted clear of the fixed bottom nav (60px tall). */
@media (max-width: 575.98px) {
    .nivi-float {
        left: 12px;
        bottom: 76px;
        padding: 11px 16px;
        font-size: 0.85rem;
    }

    .nivi-float-label {
        display: none;
    }

    .nivi-float-label-short {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nivi-cta-btn,
    .nivi-float {
        transition: none;
    }

    .nivi-cta-btn:hover,
    .nivi-cta-btn:focus,
    .nivi-float:hover,
    .nivi-float:focus {
        transform: none;
    }
}


/* ─────────────────────────────────────────────────────────────
   Family Planning page — layout polish.
   Presentation only: no copy, no markup, no behaviour changes.
   Everything is scoped to .family-planning so the other
   My Health Centre pages keep their current styling.
   ───────────────────────────────────────────────────────────── */

/* ── 1. Vertical rhythm ──
   The sections carried no margins of their own, so blocks ran
   straight into each other and the few that did have spacing
   (mt-4 / my own CTA bands) were inconsistent with the rest. */
.family-planning .n-container > section {
    margin-top: 56px !important;
    margin-bottom: 0 !important;
}

.family-planning .n-container > section:first-of-type {
    margin-top: 28px !important;
}

/* the rhythm rule zeroes the bottom margins, so give the page a foot */
.family-planning .n-container > section:last-of-type {
    margin-bottom: 48px !important;
}

/* ── 2. Card surfaces: one shared treatment ── */
.family-planning .contraceptive-card,
.family-planning .choice-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.family-planning .contraceptive-card:hover,
.family-planning .choice-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

/* The 80px cap was redundant — the panel is already display:none when
   collapsed — and it clipped any header that wrapped to a second line. */
.family-planning .contraceptive-card {
    max-height: none;
    overflow: visible;
    padding: 16px;
}

.family-planning .choice-card {
    padding: 16px;
}

/* ── 3. Accordion affordance ──
   Both card types open on click but gave no hint that they do. */
.family-planning .contraceptive-card__header,
.family-planning .choice-card-header {
    position: relative;
    padding-right: 30px;
    gap: 10px;
}

.family-planning .contraceptive-card__header h2,
.family-planning .choice-card-header h6 {
    flex: 1 1 auto;
    margin: 0;
}

.family-planning .contraceptive-card__header::after,
.family-planning .choice-card-header::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform .2s ease, border-color .2s ease;
}

.family-planning .contraceptive-card.active .contraceptive-card__header::after,
.family-planning .choice-card.active .choice-card-header::after {
    transform: rotate(-135deg);
    margin-top: -2px;
    border-color: rgb(230, 27, 119);
}

.family-planning .contraceptive-card__content,
.family-planning .choice-card-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

.family-planning .contraceptive-card__content p,
.family-planning .choice-card-content p {
    margin: 0 0 8px;
    line-height: 1.55;
}

/* ── 4. Grouping inside "Understanding Your Contraceptive Choices" ──
   The group labels sat flush against the cards above them. */
.family-planning .my-dawa h4 {
    margin-top: 36px;
}

.family-planning .my-dawa > h4:first-child,
.family-planning .my-dawa .section-heading + h4 {
    margin-top: 0;
}

/* Nested scroll areas inside a page that already scrolls. */
.family-planning .vertical-view {
    max-height: none;
    overflow-y: visible;
}

/* ── 5. FAQ ── */
.family-planning .faq-item {
    margin-bottom: 12px;
}

.family-planning .faq-question {
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    /* ── 7. Tap targets ──
       The primary actions were 34-35px tall; 44px is the comfortable
       minimum for touch. */
    .family-planning .getting-started .btn,
    .family-planning .buttons .btn,
    .family-planning .banner-content-wrap .btn-primary,
    .family-planning #calcBtn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-left: 18px;
        padding-right: 18px;
    }

    .family-planning .buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 767.98px) {
    .family-planning .n-container > section {
        margin-top: 36px !important;
    }

    .family-planning .n-container > section:first-of-type {
        margin-top: 20px !important;
    }

    /* ── 8. Type hierarchy ──
       On mobile the global rules pushed every section heading down to
       14px and the hero h1 to 16px — both smaller than body copy, so
       the page read as one flat block. */
    .family-planning .section-heading {
        font-size: 20px !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
    }

    .family-planning .f-plan .data-content-1 h1 {
        font-size: 24px;
        line-height: 1.2;
        padding: 4px 0 0;
    }

    .family-planning .f-plan .data-content-1 p {
        font-size: 13px;
    }

    .family-planning .intro-section .text-section h3 {
        font-size: 17px !important;
        line-height: 1.4 !important;
    }

    .family-planning .intro-section .text-section p {
        font-size: 14px !important;
        line-height: 1.55;
    }

    .family-planning .contraceptive-card__header h2 {
        font-size: 16px;
        line-height: 1.35;
    }

    .family-planning .choice-card-header h6 {
        font-size: 16px;
        line-height: 1.35;
        margin: 0;
    }

    /* ── 9. Benefit chips ──
       These sat in a horizontal scroller with no scroll affordance, so
       two of the four were effectively invisible. A 2x2 grid shows all
       four without touching the markup. */
    .family-planning .intro-section .m-steps {
        overflow: visible;
    }

    .family-planning .intro-section ul.steps {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
        padding-left: 0;
        margin-bottom: 0;
    }

    .family-planning .intro-section ul.steps li {
        width: auto !important;
        height: auto !important;
        min-height: 104px;
        padding: 14px 10px !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .family-planning .intro-section .text-section ul li p {
        line-height: 1.35;
    }

    /* ── 10. Ovulation calculator ──
       The "Ovulation Calculator" badge is absolutely positioned at the
       top of the card and was landing on top of the heading. */
    .family-planning .symptoms-section .symptoms-wrap {
        padding-top: 58px !important;
    }

    .family-planning .symptoms-section .symptom-heading {
        white-space: normal !important;
        max-width: none;
        font-size: 19px !important;
        line-height: 1.3;
    }

    .family-planning .symptoms-section .symptom-heading span {
        margin-left: 0;
    }

    /* The heading shared a nowrap flex row with the illustration and was
       squeezed to ~98px, breaking "Estimate Your Fertility Window" over
       four lines. Give it the larger share of the row. */
    .family-planning .symptoms-section .f-planning {
        gap: 10px;
        align-items: center;
    }

    .family-planning .symptoms-section .f-planning > .symptom-heading {
        flex: 1 1 58%;
    }

    .family-planning .symptoms-section .f-planning > .steps {
        flex: 0 1 40%;
        margin-top: 0 !important;
    }

    /* ── 11. Grid gaps ── */
    .family-planning .contraceptive-grid {
        gap: 12px;
    }

    .family-planning .cards-grid {
        gap: 16px;
    }

    .family-planning .my-dawa h4 {
        margin-top: 28px;
        font-size: 18px;
    }
}


/* ── 12. Methods grid: three per row on desktop ──
   auto-fill with a 300px minimum was packing four cards onto a
   1296px row and squeezing the longer method names. */
@media (min-width: 992px) {
    .family-planning .contraceptive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ── 13. Comparison tables ──
   They were framed in 2px black with 1px black on every cell, which
   read as a spreadsheet rather than part of the page. Softer rules,
   a tinted header, zebra rows and a rounded frame make the columns
   scannable; the first column stays put when the table scrolls
   sideways on narrower screens. */
.family-planning .table-responsive {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    -webkit-overflow-scrolling: touch;
}

.family-planning .table-responsive > .table {
    width: 100%;
    margin-bottom: 0;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background-color: transparent;
    /* an overflow:hidden on the table itself makes it the sticky container,
       which stops the first column sticking to the scroller */
    overflow: visible;
}

.family-planning .table-responsive > .table th,
.family-planning .table-responsive > .table td {
    border: 0 !important;
    border-bottom: 1px solid #eef0f3 !important;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    vertical-align: top;
    text-align: left;
}

.family-planning .table-responsive > .table thead th {
    position: relative;
    background-color: #fafbfc;
    border-bottom: 1px solid #e5e7eb !important;
    color: #111827;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.family-planning .table-responsive > .table tbody tr:nth-child(even) td {
    background-color: #fcfcfd;
}

.family-planning .table-responsive > .table tbody tr:hover td {
    background-color: #fdf2f7;
}

.family-planning .table-responsive > .table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* The method name is the row's label — keep it readable and anchored
   while the rest of the row scrolls. */
.family-planning .table-responsive > .table th:first-child,
.family-planning .table-responsive > .table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 150px;
    background-color: #fff;
    box-shadow: 1px 0 0 #eef0f3;
    font-weight: 600;
    color: #111827;
}

.family-planning .table-responsive > .table thead th:first-child {
    z-index: 2;
    background-color: #fafbfc;
}

.family-planning .table-responsive > .table tbody tr:nth-child(even) td:first-child {
    background-color: #fcfcfd;
}

.family-planning .table-responsive > .table tbody tr:hover td:first-child {
    background-color: #fdf2f7;
}

@media (max-width: 991.98px) {
    .family-planning .table-responsive > .table th,
    .family-planning .table-responsive > .table td {
        padding: 12px 14px;
        font-size: 13.5px;
        /* below desktop the seven columns squeezed down to two or three
           words per line; let the table scroll a little further instead */
        min-width: 150px;
    }
}
