/* ── ISHA BIO ── */
.ib-wrap {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* ── BLUE HERO BOX ── */
.ib-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: linear-gradient(135deg, #7B94C4 0%, #8FA8D8 100%);
    border-radius: 20px;
    overflow: visible;
    display: flex;
    align-items: center;
    padding: 60px 60px 60px 60px;
    box-sizing: border-box;
    z-index: 2;
}

/* When counter is enabled, only round top corners */
.ib-wrap:has(.ib-stats-counter-wrap) .ib-hero {
    border-radius: 20px 20px 0 0;
}

/* ── IMAGE WRAP — strict right half, image centered within it, bleeds upward AND downward to go behind counter ── */
.ib-image-wrap {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: calc(100% + 180px); /* Extends up */
    z-index: 10;
    pointer-events: none;
    clip-path: inset(-9999px -9999px -9999px -9999px); /* Allow overflow on all sides */
    overflow: visible;
    /* Always centers image horizontally within the right column */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.ib-image {
    display: block;
    /* Auto width + full height = image scales from its own center */
    width: auto;
    height: 120%; /* Extend image to go behind counter section below */
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    transform-origin: bottom center;
    flex-shrink: 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── LEFT COL ── */
.ib-hero__left {
    position: relative;
    z-index: 15;
    width: 50%;
    max-width: 55%;
    align-self: center;
}

/* Name — large, white, heavy */
h1.ib-name,
.ib-name {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    padding: 0;
    border: none;
    background: none;
    text-transform: none;
}

/* Tagline — medium, white, medium weight */
.ib-tagline {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(14px, 1.2vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff;
    margin: 0 0 32px 0;
}

/* Stats Badges Grid */
.ib-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.ib-badge {
    background: #FFFFFF;
    color: #1a1a1a;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* Description — smaller, white, lighter weight */
.ib-description {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 400;
    line-height: 1.7;
    color: #ffffff;
}
.ib-description p {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}
.ib-description p + p {
    margin-top: 16px;
}

/* ── MOBILE IMAGE ── */
.ib-mobile-img-wrap {
    display: none;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 5;
    width: 85%;
    height: 320px;
    margin: 0 auto -80px auto;
    pointer-events: none;
    overflow: visible;
}
.ib-mobile-img-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 20px;
}

/* ── TABLET ── structural only, values via Elementor responsive controls ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .ib-image-wrap { width: 48%; }
    .ib-hero__left { width: 48%; max-width: 48%; }
    .ib-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE ── structural only, values via Elementor responsive controls ── */
@media (max-width: 767px) {
    .ib-image-wrap { display: none !important; }
    .ib-mobile-img-wrap { display: flex !important; }
    .ib-hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
        overflow: hidden !important;
    }
    .ib-hero__left {
        width: 100% !important;
        max-width: 100% !important;
    }
    .ib-stats {
        grid-template-columns: 1fr;
    }
    .ib-counter-item:not(:last-child)::after {
        display: none !important;
    }
}

/* ── STATS COUNTER ── Full-width row below hero box */
.ib-stats-counter-wrap {
    position: relative;
    z-index: 15; /* Above image (z-index: 10) but below left content (z-index: 15) */
    width: 100%;
    padding: 40px 60px;
    box-sizing: border-box;
    /* Background set via inline style */
    margin-top: -1px; /* Remove any gap */
    border-radius: 0 0 20px 20px; /* Only bottom corners rounded */
}

.ib-stats-counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.ib-counter-item {
    position: relative;
    text-align: center;
    /* Padding controlled via Elementor */
}

/* Dividers between counter items */
.ib-counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.2);
}

.ib-counter-number {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(32px, 3.5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 8px;
}

.ib-counter-label {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ib-stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 0;
    }
    .ib-stats-counter-wrap {
        padding: 40px 30px;
    }
    /* Hide dividers after every 2nd item in 2-column layout */
    .ib-counter-item:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .ib-stats-counter-wrap {
        padding: 30px 20px;
    }
    .ib-stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 0;
    }
    /* Hide dividers after every 2nd item in 2-column layout */
    .ib-counter-item:nth-child(2n)::after {
        display: none;
    }
    .ib-counter-number {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 6px;
    }
    .ib-counter-label {
        font-size: clamp(12px, 3.5vw, 14px);
    }
}
