.safe-section-one{
    background-color: #FFE8EE;
    overflow: hidden;
}

.badge{
    background-color: #FDD1DB;
    width: fit-content;
}

/* Text column (desktop: left aligned by default) */
.safe-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Image column = positioning context for absolute girl image.
   max-width locks container to blob size so left:50% always = blob center. */
.safety-blob{
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}

.blob{
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
}

/* Girl image: OVERFLOWS blob (bigger than blob interior, bottom-anchored, pops out top) */
.safety-blob img{
    position: absolute;
    left: 50%;
    top: auto;
    /* bottom: -4%; */
    transform: translateX(-50%);
    width: 64%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* =========================================
   LARGE DESKTOP 1200px+
========================================= */
@media (min-width: 1200px){
    .safety-blob{
        max-width: 500px;
    }
    .blob{
        max-width: 500px;
    }
    .safety-blob img{
        width: 64%;
        max-width: 340px;
    }
}

/* =========================================
   TABLET 768px - 991.98px (stacked)
========================================= */
@media (max-width: 991.98px){
    .safe-content{
        text-align: center;
        align-items: center;
    }
    .safe-content .badge{
        margin-inline: auto;
    }
    .safety-blob{
        max-width: 420px;
        margin-top: 0.5rem;
    }
    .blob{
        max-width: 420px;
    }
    .safety-blob img{
        width: 64%;
        max-width: 300px;
    }
}

/* =========================================
   MOBILE < 768px (stacked)
========================================= */
@media (max-width: 767.98px){
    .safe-section-one{
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }
    .safe-content{
        text-align: center;
        align-items: center;
    }
    .safe-content .badge{
        margin-inline: auto;
    }
    .safety-blob{
        max-width: 340px;
    }
    .blob{
        max-width: 340px;
    }
    .safety-blob img{
        width: 66%;
        max-width: 250px;
    }
}

/* =========================================
   VERY SMALL MOBILE < 400px
========================================= */
@media (max-width: 399.98px){
    .safety-blob{
        max-width: 280px;
    }
    .blob{
        max-width: 280px;
    }
    .safety-blob img{
        width: 68%;
        max-width: 210px;
    }
}

.icon-container {
    width: 84px;
    height: 84px;
    aspect-ratio: 1 / 1;
    background-color: #FFE8EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-container img {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

/* =========================================
   SECTION TWO - responsive (header + cards)
   Desktop look unchanged, scales for tab/mobile
========================================= */
.safe-section-two{
    overflow: hidden;
}

/* Header: 50% on desktop like before (replaces w-50) */
.safe-sec-two-head{
    width: 50%;
    max-width: 100%;
}

.safety-cards{
    align-items: stretch;
}

.safety-card{
    height: 100%;
    border-radius: 16px;
}

.safety-card .card-body{
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card title (overrides fixed fs-4 for fluid scaling) */
.safety-card .fw-semibold.fs-4{
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.5rem) !important;
    line-height: 1.3;
}

.safety-card .secondary-text{
    font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
    line-height: 1.6;
    margin-bottom: 0;
}

/* =========================================
   SECTION TWO: TABLET 768px - 991.98px
========================================= */
@media (max-width: 991.98px){
    .safe-sec-two-head{
        width: 100%;
        text-align: center;
        margin-inline: auto;
    }
    .icon-container{
        width: 72px;
        height: 72px;
        margin-inline: auto;
    }
    .safety-card{
        text-align: center;
    }
    .safety-card .card-body{
        padding: 1.35rem 1.25rem;
        align-items: center;
    }
}

/* =========================================
   SECTION TWO: MOBILE < 768px
========================================= */
@media (max-width: 767.98px){
    .safe-section-two{
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .safe-sec-two-head{
        width: 100%;
        text-align: center;
    }
    .icon-container{
        width: 64px;
        height: 64px;
        margin-inline: auto;
    }
    .safety-card{
        text-align: center;
    }
    .safety-card .card-body{
        padding: 1.25rem 1.1rem;
        align-items: center;
    }
}

/* =========================================
   SECTION TWO: VERY SMALL MOBILE < 400px
========================================= */
@media (max-width: 399.98px){
    .safety-card .card-body{
        padding: 1.1rem 1rem;
    }
}


/* =========================================
   SECTION THREE - responsive, consistent with section one
   Uses common.css for .app-buttons/.app-button (not redefined here).
   Bootstrap utilities in PHP handle padding/margin/alignment.
========================================= */
.safety-section-three{
    background-color: #FFE8EE;
    overflow: hidden;
}

/* Visual column = positioning context (same pattern as .safety-blob) */
.sec3-blob-wrapper{
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    overflow: visible;
}

.sec3-blob{
    width: 90%;
    max-width: 400px;
    height: auto;
    display: block;
}

/* Couple overflows blob: bottom-anchored, wider than blob interior */
.sec3-couple{
    position: absolute;
    left: 50%;
    top: auto;
    bottom: -4%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* LARGE DESKTOP 1200px+ */
@media (min-width: 1200px){
    .sec3-blob-wrapper{
        max-width: 440px;
    }
    .sec3-blob{
        max-width: 440px;
    }
    .sec3-couple{
        width: 90%;
        max-width: 395px;
    }
}

/* TABLET 768px - 991.98px (side-by-side like desktop, right column stays end-aligned) */
@media (min-width: 768px) and (max-width: 991.98px){
    .sec3-blob-wrapper{
        max-width: 300px;
    }
    .sec3-blob{
        max-width: 300px;
    }
    .sec3-couple{
        width: 90%;
        max-width: 270px;
    }
    /* Keep desktop look on tab */
    .safety-section-three .safe-sec3-right{
        text-align: right !important;
        align-items: flex-end !important;
    }
    .safety-section-three .safe-sec3-right .app-buttons{
        width: 100%;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }
    /* Keep both store buttons in one row on tab (column is ~350px wide) */
    .safety-section-three .app-button{
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 10px;
        gap: 8px;
    }
    .safety-section-three .app-button-icon{
        width: 24px;
        height: 28px;
    }
    .safety-section-three .app-btn-content p{
        font-size: 16px;
    }
}

/* MOBILE < 768px (stacked: content above, blob+image below touching bottom) */
@media (max-width: 767.98px){
    .safe-sec3-right{
        align-items: center !important;
    }
    .sec3-blob-wrapper{
        max-width: 300px;
        margin-bottom: -3rem;
    }
    .sec3-blob{
        max-width: 300px;
    }
    .sec3-couple{
        width: 92%;
        max-width: 275px;
    }
}

/* VERY SMALL MOBILE < 400px */
@media (max-width: 399.98px){
    .sec3-blob-wrapper{
        max-width: 250px;
        margin-bottom: -3rem;
    }
    .sec3-blob{
        max-width: 250px;
    }
    .sec3-couple{
        width: 94%;
        max-width: 235px;
    }
}
