/* ==========================================================================
   Info Block styles 2 & 3, and Hero Slider style 2.

   Kept in a separate file so the theme's main.css is never touched.
   Style 1 is unchanged and keeps using the existing theme classes.
   Colours and fonts reference the site's own custom properties
   (--it-theme-1, --it-common-black, --it-text-body, --it-ff-heading …)
   so these styles inherit the existing brand instead of introducing a new one.

   NOTE: the uploaded info-block images are square (1254x1254), so both styles
   below give the image a square-ish box instead of cropping it to a wide strip.
   ========================================================================== */

/* ------------------------------------------------- shared type + helpers */
.ib2 {
    padding: 100px 0;
    position: relative;
    background: #fff;
}

.ib2--alt {
    background: var(--it-gray-3, #F5F7F9);
}

.ib2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--it-ff-spartan-semibold, inherit);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--it-theme-1, #046530);
    margin-bottom: 18px;
}

.ib2__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--it-theme-1, #046530);
    border-radius: 2px;
    flex: 0 0 28px;
}

.ib2__title {
    font-family: var(--it-ff-heading, inherit);
    color: var(--it-common-black, #1F2432);
    font-size: 40px;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 20px;
}

.ib2__text {
    color: var(--it-text-body, #6C757D);
    font-size: 16.5px;
    line-height: 1.85;
}

.ib2__text p:last-child,
.ib3__text p:last-child {
    margin-bottom: 0;
}

/* ===============================================================  STYLE 2 */
.ib2__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

.ib2--alt .ib2__visual {
    order: 2;
}

.ib2--alt .ib2__content {
    order: 1;
}

.ib2__visual {
    position: relative;
    padding: 18px 18px 0 0;
}

.ib2__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 68%;
    height: 72%;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(4, 101, 48, .14), rgba(4, 101, 48, .04));
    z-index: 0;
}

.ib2__frame {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 22px 50px rgba(31, 36, 50, .14);
}

.ib2__frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.ib2__stat {
    position: absolute;
    left: -14px;
    bottom: -22px;
    z-index: 2;
    background: var(--it-theme-1, #046530);
    color: #fff;
    border-radius: 16px;
    padding: 18px 24px;
    min-width: 132px;
    box-shadow: 0 16px 32px rgba(4, 101, 48, .30);
}

.ib2__stat-num {
    display: block;
    font-family: var(--it-ff-heading, inherit);
    font-size: 34px;
    line-height: 1;
    margin-bottom: 6px;
}

.ib2__stat-label {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    opacity: .92;
}

.ib2__chips {
    list-style: none;
    padding: 0;
    margin: 28px 0 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.ib2__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(4, 101, 48, .07);
    border: 1px solid rgba(4, 101, 48, .14);
    color: var(--it-common-black, #1F2432);
    font-family: var(--it-ff-spartan-semibold, inherit);
    font-size: 14px;
    line-height: 1.4;
}

.ib2__chip-tick {
    color: var(--it-theme-1, #046530);
    flex: 0 0 auto;
}

.ib2__chip-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* ===============================================================  STYLE 3
   Dark section. Deep brand green with light type, so it reads as a clear
   break from styles 1 and 2, which are both light side-by-side splits.     */
.ib3 {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #04381f 0%, #03230f 100%);
    color: #fff;
    overflow: hidden;
}

/* soft glow so the flat dark does not look plain */
.ib3::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 182, 157, .18) 0%, rgba(26, 182, 157, 0) 70%);
    pointer-events: none;
}

.ib3 .container {
    position: relative;
    z-index: 1;
}

.ib3__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

.ib3--flip .ib3__content {
    order: 2;
}

.ib3--flip .ib3__visual {
    order: 1;
}

.ib3__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--it-ff-spartan-semibold, inherit);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7FD1AE;
    margin-bottom: 18px;
}

.ib3__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #7FD1AE;
    border-radius: 2px;
    flex: 0 0 28px;
}

.ib3__title {
    font-family: var(--it-ff-heading, inherit);
    color: #fff;
    font-size: 40px;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 20px;
}

.ib3__text {
    color: rgba(255, 255, 255, .78);
    font-size: 16.5px;
    line-height: 1.85;
}

.ib3__text p:last-child {
    margin-bottom: 0;
}

.ib3__list {
    list-style: none;
    padding: 0;
    margin: 28px 0 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
}

.ib3__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--it-ff-spartan-semibold, inherit);
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .94);
}

.ib3__tick {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(127, 209, 174, .18);
    border: 1px solid rgba(127, 209, 174, .45);
    color: #7FD1AE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ib3__foot {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ib3__stat {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.ib3__stat-num {
    font-family: var(--it-ff-heading, inherit);
    font-size: 32px;
    line-height: 1;
    color: #7FD1AE;
}

.ib3__stat-label {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .70);
    max-width: 110px;
}

.ib3__frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .40);
}

.ib3__frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
/* ============================================================= responsive */
@media only screen and (min-width: 992px) and (max-width: 1199px) {

    .ib3__title {
        font-size: 32px;
    }

    .ib3__grid {
        gap: 46px;
    }

    .ib2__title,
    .ib3__title {
        font-size: 32px;
    }

    .ib2__grid {
        gap: 46px;
    }
}

@media (max-width: 991px) {

    .ib3 {
        padding: 64px 0;
    }

    .ib3__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    /* image first once stacked */
    .ib3--flip .ib3__content,
    .ib3--flip .ib3__visual {
        order: 0;
    }

    .ib3__title {
        font-size: 29px;
    }

    .ib3__text {
        font-size: 16px;
    }

    .ib2 {
        padding: 64px 0;
    }

    .ib2__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 52px;
    }

    .ib2--alt .ib2__visual,
    .ib2--alt .ib2__content {
        order: 0;
    }

    .ib2__title,
    .ib3__title {
        font-size: 29px;
    }

    .ib2__text,
    .ib3__text {
        font-size: 16px;
    }
}

@media (max-width: 575px) {

    .ib3 {
        padding: 48px 0;
    }

    .ib3__title {
        font-size: 25px;
    }

    .ib3__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin: 22px 0 28px;
    }

    .ib3__foot {
        gap: 18px;
    }

    .ib3__stat {
        padding-left: 0;
        border-left: 0;
    }

    .ib2 {
        padding: 48px 0;
    }

    .ib2__title,
    .ib3__title {
        font-size: 25px;
    }

    .ib2__visual {
        padding: 14px 14px 0 0;
    }

    .ib2__stat {
        left: 0;
        bottom: -16px;
        padding: 14px 18px;
        min-width: 112px;
    }

    .ib2__stat-num {
        font-size: 27px;
    }

    .ib2__chips {
        margin: 22px 0 28px;
    }
}

/* ==========================================================================
   Hero slider — Style 2 ("Modern hero")
   Renders the title / sub_title / button that already exist in the sliders
   table but were never output by the original template.
   ========================================================================== */
.hero2 {
    position: relative;
}

.hero2__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
            rgba(12, 18, 29, .84) 0%,
            rgba(12, 18, 29, .64) 40%,
            rgba(12, 18, 29, .20) 70%,
            rgba(12, 18, 29, 0) 100%);
}

.hero2 .container {
    position: relative;
    z-index: 2;
}

.hero2__content {
    padding: 40px 0;
    max-width: 780px;
}

.hero2__title {
    font-family: var(--it-ff-heading, inherit);
    color: #fff;
    font-size: 56px;
    line-height: 1.16;
    letter-spacing: -.015em;
    margin: 0 0 18px;
}

.hero2__subtitle {
    color: rgba(255, 255, 255, .90);
    font-size: 18px;
    line-height: 1.75;
    margin: 0 0 32px;
    max-width: 620px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .hero2__title {
        font-size: 44px;
    }
}

@media (max-width: 991px) {
    .hero2__title {
        font-size: 34px;
    }

    .hero2__subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero2__scrim {
        background: linear-gradient(180deg,
                rgba(12, 18, 29, .35) 0%,
                rgba(12, 18, 29, .80) 100%);
    }
}

/* ==========================================================================
   Fix: "Faith For Today" cards - description text spilled outside the circle.

   The hand-drawn circle is a FIXED 303x304 PNG injected with
   .it-activities-item::before { content: url(...) }, so it never grows with
   the content. The content measured roughly:
     70 top padding + 100 icon + 28 gap + 27 title + 15 gap + 54 text + 62 bottom
     = ~356px  against a 304px circle  ->  ~52px of text fell outside.

   Fixed by tightening the stack so it fits inside the existing circle, rather
   than upscaling the PNG (which would soften the hand-drawn line).
   The circle only renders at >=1400px - below that the theme swaps to a
   bordered rounded card - so the override is scoped to that breakpoint.
   ========================================================================== */
@media (min-width: 1400px) {
    .it-activities-item {
        padding: 54px 34px;
        padding-bottom: 44px;
    }

    .it-activities-icon {
        margin-bottom: 18px;
    }

    .it-activities-title {
        margin-bottom: 10px;
    }

    .it-activities-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 0;
    }
}
