/* ==========================================================================
   IBV International — homepage design system
   Palette and type scale taken from the live site's Elementor kit
   (primary #1E417B, secondary #E50143, text #4A4A4A, Manrope).
   Loaded alongside the Edulia theme stylesheet; nothing here overrides
   the theme globally, every rule is scoped under .ibv-*.
   ========================================================================== */

:root {
    --ibv-navy: #1e417b;
    --ibv-navy-dark: #17335f;
    --ibv-red: #e50143;
    --ibv-red-dark: #c40039;
    --ibv-heading: #000000;
    --ibv-text: #4a4a4a;
    --ibv-muted: #6b7280;
    --ibv-bg-light: #fafafa;
    --ibv-border: #e8eaed;
    --ibv-radius: 14px;
    --ibv-radius-lg: 20px;
    --ibv-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.ibv-section {
    font-family: var(--ibv-font);
    color: var(--ibv-text);
    padding: 90px 0;
    position: relative;
}

.ibv-section--light {
    background: var(--ibv-bg-light);
}

.ibv-section * {
    font-family: var(--ibv-font);
}

/* Small red uppercase label above a heading */
.ibv-eyebrow {
    display: block;
    color: var(--ibv-red);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    line-height: 1.4;
}

.ibv-heading {
    color: var(--ibv-heading);
    font-size: 60px;
    font-weight: 600;
    line-height: 1.3em;
    letter-spacing: -0.4px;
    margin: 0 0 24px;
}

.ibv-heading--section {
    font-size: 48px;
    line-height: 1.4em;
}

.ibv-body {
    color: var(--ibv-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8em;
    letter-spacing: 0.2px;
    margin: 0;
}

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

/* Buttons ---------------------------------------------------------------- */

.ibv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ibv-btn:hover,
.ibv-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.ibv-btn--navy {
    background: var(--ibv-navy);
    color: #fff;
}

.ibv-btn--navy:hover,
.ibv-btn--navy:focus {
    background: var(--ibv-navy-dark);
    color: #fff;
}

.ibv-btn--red {
    background: var(--ibv-red);
    color: #fff;
}

.ibv-btn--red:hover,
.ibv-btn--red:focus {
    background: var(--ibv-red-dark);
    color: #fff;
}

.ibv-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.ibv-btn--outline-white:hover,
.ibv-btn--outline-white:focus {
    background: #fff;
    color: var(--ibv-navy);
    border-color: #fff;
}

.ibv-btn__arrow {
    font-size: 13px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.ibv-hero {
    /* The Edulia header is position:absolute over the page, so the hero clears
       it with the same top padding the theme's own breadcrumb area uses. */
    padding: 200px 0 80px;
    overflow: hidden;
}

.ibv-hero__inner {
    display: flex;
    align-items: center;
    gap: 56px;
}

.ibv-hero__copy {
    flex: 0 0 44%;
    max-width: 44%;
}

.ibv-hero__media {
    flex: 1 1 auto;
    display: flex;
    gap: 30px;
    align-items: stretch;
    min-width: 0;
}

.ibv-hero__title {
    margin-bottom: 28px;
}

.ibv-hero__text {
    margin-bottom: 36px;
    max-width: 520px;
}

.ibv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 46px;
}

/* Trust row -------------------------------------------------------------- */

.ibv-hero__trust {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ibv-hero__avatars {
    display: flex;
    align-items: center;
}

.ibv-hero__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    margin-left: -14px;
}

.ibv-hero__avatar:first-child {
    margin-left: 0;
}

.ibv-hero__trust-text {
    color: var(--ibv-text);
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* Media columns ----------------------------------------------------------
   The tall side photo sets the row height; the left column then splits that
   height 3:2 between the slider and the red card, matching the design.
   ------------------------------------------------------------------------ */

.ibv-hero__col {
    display: flex;
    flex-direction: column;
    gap: 26px;
    flex: 1 1 0;
    min-width: 0;
}

.ibv-hero__slider-wrap {
    position: relative;
    flex: 3 1 0;
    min-height: 200px;
    border-radius: var(--ibv-radius);
    overflow: hidden;
    background: #eef1f5;
}

/* Pinned to the wrapper so the carousel can never push the box taller. */
.ibv-hero__slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.ibv-hero__slider,
.ibv-hero__slider .owl-stage-outer,
.ibv-hero__slider .owl-stage,
.ibv-hero__slider .owl-item,
.ibv-hero__slide,
.ibv-hero__slide img {
    height: 100%;
}

.ibv-hero__slide img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Without JS the slides simply stack and the box shows the first one. */
.ibv-hero__slider:not(.owl-loaded) .ibv-hero__slide + .ibv-hero__slide {
    display: none;
}

.ibv-hero__slider .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 3;
}

.ibv-hero__slider .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    transition: background 0.2s ease, width 0.2s ease;
}

.ibv-hero__slider .owl-dot.active span {
    background: #fff;
    width: 22px;
    border-radius: 999px;
}

/* Crossfade between slides. Owl sets animation-duration inline; the theme has no
   animate.css, so the keyframes live here and stay scoped to this slider. */
.ibv-hero__slider .owl-item.animated {
    animation-fill-mode: both;
}

.ibv-hero__slider .owl-animated-out {
    z-index: 0;
}

.ibv-hero__slider .owl-animated-in {
    z-index: 1;
}

.ibv-hero__slider .fadeOut {
    animation-name: ibvHeroFadeOut;
}

@keyframes ibvHeroFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Red card --------------------------------------------------------------- */

.ibv-hero__card {
    position: relative;
    background: var(--ibv-red);
    color: #fff;
    border-radius: var(--ibv-radius);
    padding: 34px 32px;
    overflow: hidden;
    /* 3:2 split with the slider above, matching the design proportions. */
    flex: 2 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ibv-hero__card::after {
    /* soft book-style watermark in the lower right, matching the design */
    content: '';
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 210px;
    height: 210px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23ffffff' stroke-width='3' opacity='0.16'%3E%3Cpath d='M20 60 L100 40 L180 60 L180 160 L100 140 L20 160 Z'/%3E%3Cpath d='M100 40 L100 140'/%3E%3Cpath d='M35 80 L85 68'/%3E%3Cpath d='M35 100 L85 88'/%3E%3Cpath d='M115 68 L165 80'/%3E%3Cpath d='M115 88 L165 100'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.ibv-hero__card-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px;
}

.ibv-hero__card-text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
    margin: 0;
}

.ibv-hero__card-text p:last-child {
    margin-bottom: 0;
}

/* Static side image ------------------------------------------------------ */

.ibv-hero__side {
    border-radius: var(--ibv-radius);
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
    background: #eef1f5;
}

.ibv-hero__side img {
    width: 100%;
    height: 100%;
    min-height: 660px;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ibv-hero {
        padding-top: 170px;
    }

    .ibv-heading {
        font-size: 50px;
    }

    .ibv-heading--section {
        font-size: 40px;
    }

    .ibv-hero__inner {
        gap: 36px;
    }

    .ibv-hero__copy {
        flex-basis: 42%;
        max-width: 42%;
    }

    .ibv-hero__media {
        gap: 20px;
    }

    .ibv-hero__side img {
        min-height: 560px;
    }
}

@media (max-width: 991px) {
    .ibv-section {
        padding: 64px 0;
    }

    .ibv-hero {
        padding-top: 190px;
        padding-bottom: 64px;
    }

    .ibv-body {
        font-size: 15px;
    }

    /* Copy stacks above the media; the media keeps its two columns side by side. */
    .ibv-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 44px;
    }

    .ibv-hero__copy {
        flex-basis: auto;
        max-width: 100%;
    }

    .ibv-hero__text {
        max-width: none;
    }

    .ibv-hero__side img {
        min-height: 520px;
    }
}

@media (max-width: 767px) {
    .ibv-heading {
        font-size: 40px;
    }

    .ibv-heading--section {
        font-size: 36px;
    }

    .ibv-hero {
        padding: 110px 0 56px;
    }

    /* Below this width the media stacks: slider, then red card, then photo. */
    .ibv-hero__media {
        flex-direction: column;
        gap: 20px;
    }

    /* No side photo to set the height any more, so the slider sets its own. */
    .ibv-hero__slider-wrap {
        flex: 0 0 auto;
        height: 340px;
    }

    .ibv-hero__card {
        flex: 0 0 auto;
    }

    /* In a column flex the 'flex: 1 1 0' basis collapses the photo, so give it
       an explicit box once the media stacks. */
    .ibv-hero__side {
        flex: 0 0 auto;
        height: 420px;
    }

    .ibv-hero__side img {
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .ibv-hero__actions {
        gap: 12px;
        margin-bottom: 34px;
    }

    .ibv-btn {
        padding: 14px 26px;
        font-size: 14px;
    }

    .ibv-hero__card {
        padding: 28px 26px;
    }
}

@media (max-width: 479px) {
    .ibv-hero {
        padding-top: 90px;
    }

    .ibv-heading {
        font-size: 32px;
    }

    .ibv-hero__slider-wrap {
        height: 260px;
    }

    .ibv-hero__actions .ibv-btn {
        width: 100%;
    }

    .ibv-hero__trust {
        gap: 14px;
    }

    .ibv-hero__trust-text {
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   2. About
   -------------------------------------------------------------------------- */

.ibv-about {
    padding: 90px 0 40px;
}

.ibv-about__inner {
    display: flex;
    align-items: center;
    gap: 100px;
}

.ibv-about__media {
    position: relative;
    flex: 0 0 44%;
    max-width: 44%;
}

.ibv-about__photo {
    border-radius: var(--ibv-radius);
    overflow: hidden;
    background: #eef1f5;
}

.ibv-about__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

/* The cards float over the photo and spill past its right edge, as in the design. */
.ibv-about__cards {
    position: absolute;
    top: 50%;
    left: 42%;
    right: -7%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 2;
}

.ibv-about__card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.13);
}

/* Middle card sits slightly further left, matching the staggered design. */
.ibv-about__card:nth-child(even) {
    margin-right: 34px;
    margin-left: -34px;
}

.ibv-about__card-icon {
    font-size: 28px;
    line-height: 1.2;
    flex: 0 0 auto;
}

.ibv-about__card-icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.ibv-about__card-body {
    min-width: 0;
}

.ibv-about__card-title {
    color: var(--ibv-heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.ibv-about__card-text {
    color: var(--ibv-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.ibv-about__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.ibv-about__text {
    margin-bottom: 34px;
}

.ibv-about__text p {
    margin-bottom: 20px;
}

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

/* --------------------------------------------------------------------------
   3. Stats bar
   -------------------------------------------------------------------------- */

.ibv-stats {
    padding: 50px 0 80px;
}

.ibv-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ibv-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 12px 20px;
    border-left: 1px solid var(--ibv-border);
}

.ibv-stats__item:first-child {
    border-left: 0;
}

.ibv-stats__number {
    color: var(--ibv-heading);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.ibv-stats__label {
    color: var(--ibv-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   About / stats responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ibv-about__inner {
        gap: 56px;
    }

    .ibv-about__photo img {
        min-height: 540px;
    }

    .ibv-about__cards {
        left: 34%;
        right: -4%;
        gap: 16px;
    }

    .ibv-about__card {
        padding: 16px 18px;
    }

    .ibv-about__card:nth-child(even) {
        margin-right: 22px;
        margin-left: -22px;
    }

    .ibv-stats__number {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .ibv-about {
        padding: 64px 0 32px;
    }

    /* Photo above, cards below it in normal flow, then the copy. */
    .ibv-about__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .ibv-about__media {
        flex-basis: auto;
        max-width: 100%;
    }

    .ibv-about__photo img {
        min-height: 420px;
    }

    .ibv-about__cards {
        position: static;
        transform: none;
        margin-top: 22px;
        gap: 16px;
    }

    .ibv-about__card:nth-child(even) {
        margin-right: 0;
        margin-left: 0;
    }

    .ibv-stats {
        padding: 32px 0 64px;
    }

    .ibv-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 34px;
    }

    /* With two per row the left divider only belongs on the second column. */
    .ibv-stats__item:nth-child(odd) {
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .ibv-about__photo img {
        min-height: 320px;
    }

    .ibv-stats__number {
        font-size: 34px;
    }

    .ibv-stats__label {
        font-size: 14px;
    }
}

@media (max-width: 479px) {
    .ibv-about__card {
        padding: 16px;
        gap: 12px;
    }

    .ibv-stats__grid {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .ibv-stats__item {
        border-left: 0;
    }
}

/* --------------------------------------------------------------------------
   4. Services
   -------------------------------------------------------------------------- */

.ibv-services {
    padding: 84px 0;
}

.ibv-services__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}

.ibv-services__head .ibv-heading {
    margin-bottom: 0;
}

.ibv-services__intro {
    margin-top: 18px;
}

.ibv-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.ibv-services__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--ibv-border);
    border-radius: var(--ibv-radius);
    padding: 22px 22px 26px;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

a.ibv-services__card:hover,
a.ibv-services__card:focus {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    text-decoration: none;
}

/* The artwork is line-art on white, so it is contained rather than cropped. */
.ibv-services__thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    /* Square box + contain: every supplied illustration is 1:1 or wider, so each
       one fills the full card width and the letterboxing lands on white. */
    aspect-ratio: 1 / 1;
}

@supports not (aspect-ratio: 1 / 1) {
    .ibv-services__thumb {
        height: 250px;
    }
}

.ibv-services__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ibv-services__title {
    display: block;
    color: var(--ibv-heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Services responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ibv-services__grid {
        gap: 20px;
    }

    .ibv-services__card {
        padding: 18px 18px 22px;
    }
}

@media (max-width: 991px) {
    .ibv-services {
        padding: 64px 0;
    }

    .ibv-services__head {
        margin-bottom: 40px;
    }

    .ibv-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ibv-services__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ibv-services__thumb {
        aspect-ratio: 16 / 9;
    }
}

/* --------------------------------------------------------------------------
   5. Courses
   -------------------------------------------------------------------------- */

.ibv-courses {
    padding: 90px 0;
}

.ibv-courses__head {
    max-width: 720px;
    margin: 0 0 48px;
}

.ibv-courses__head .ibv-heading {
    margin-bottom: 0;
}

.ibv-courses__intro {
    margin-top: 18px;
}

.ibv-courses__grid {
    display: grid;
    gap: 30px;
}

.ibv-courses__grid--2 { grid-template-columns: repeat(2, 1fr); }
.ibv-courses__grid--3 { grid-template-columns: repeat(3, 1fr); }
.ibv-courses__grid--4 { grid-template-columns: repeat(4, 1fr); }

.ibv-course-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ibv-border);
    border-radius: var(--ibv-radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ibv-course-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.ibv-course-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef1f5;
    overflow: hidden;
}

@supports not (aspect-ratio: 16 / 10) {
    .ibv-course-card__media {
        height: 190px;
    }
}

.ibv-course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ibv-course-card:hover .ibv-course-card__media img {
    transform: scale(1.04);
}

.ibv-course-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 22px 24px;
}

.ibv-course-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 14px;
}

.ibv-course-card__title a {
    color: var(--ibv-heading);
    text-decoration: none;
}

.ibv-course-card__title a:hover {
    color: var(--ibv-navy);
}

/* Badge row — two per line, as in the design. */
.ibv-course-card__badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.ibv-course-card__badges li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ibv-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.ibv-course-card__badge-icon {
    flex: 0 0 auto;
    color: var(--ibv-red);
}

.ibv-course-card__text {
    color: var(--ibv-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
    margin: 0 0 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Buttons align across the row regardless of description length. */
.ibv-course-card__cta {
    margin-top: auto;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Courses responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ibv-courses__grid {
        gap: 22px;
    }

    .ibv-course-card__body {
        padding: 20px 18px 22px;
    }

    .ibv-course-card__title {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .ibv-courses {
        padding: 64px 0;
    }

    .ibv-courses__head {
        margin-bottom: 36px;
    }

    .ibv-courses__grid--3,
    .ibv-courses__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ibv-courses__grid,
    .ibv-courses__grid--2,
    .ibv-courses__grid--3,
    .ibv-courses__grid--4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --------------------------------------------------------------------------
   6. Why choose us  (navy band)
   -------------------------------------------------------------------------- */

.ibv-why {
    background: var(--ibv-navy);
    color: #fff;
    padding: 96px 0;
}

.ibv-eyebrow--light {
    color: #ff9db8;
}

.ibv-why__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.ibv-why__media {
    position: relative;
    flex: 0 0 40%;
    max-width: 40%;
}

.ibv-why__photo {
    border-radius: var(--ibv-radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.ibv-why__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

/* White quote card overlapping the lower right of the photo. */
.ibv-why__quote {
    position: absolute;
    right: -34px;
    bottom: 40px;
    width: 78%;
    margin: 0;
    padding: 22px 24px;
    background: #fff;
    border-radius: var(--ibv-radius);
    box-shadow: 0 18px 40px rgba(6, 20, 45, 0.28);
}

.ibv-why__quote blockquote {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    color: var(--ibv-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.ibv-why__quote figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ibv-why__quote-name {
    color: var(--ibv-heading);
    font-size: 14px;
    font-weight: 700;
}

.ibv-why__quote-role {
    color: var(--ibv-muted);
    font-size: 12px;
    font-weight: 500;
}

.ibv-why__content {
    flex: 1 1 auto;
    min-width: 0;
}

.ibv-why__title {
    color: #fff;
    margin-bottom: 20px;
}

.ibv-why__text {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 38px;
}

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

.ibv-why__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
}

.ibv-why__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ibv-why__item-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.ibv-why__item-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.ibv-why__item-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
}

.ibv-why__item-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.65;
    margin: 0;
}

/* --------------------------------------------------------------------------
   7. Process
   -------------------------------------------------------------------------- */

.ibv-process {
    padding: 90px 0;
}

.ibv-process__head {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.ibv-process__head .ibv-heading {
    margin-bottom: 0;
}

.ibv-process__intro {
    margin-top: 18px;
}

.ibv-process__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ibv-process__steps {
    flex: 1 1 0;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ibv-process__step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--ibv-border);
}

.ibv-process__step:first-child {
    border-top: 0;
    padding-top: 0;
}

.ibv-process__step:last-child {
    padding-bottom: 0;
}

.ibv-process__step-number {
    flex: 0 0 auto;
    color: var(--ibv-navy);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    opacity: 0.35;
    min-width: 52px;
}

.ibv-process__step-title {
    color: var(--ibv-heading);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.ibv-process__step-text {
    color: var(--ibv-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
    margin: 0;
}

.ibv-process__media {
    flex: 0 0 42%;
    max-width: 42%;
    border-radius: var(--ibv-radius-lg);
    overflow: hidden;
    background: #eef1f5;
}

.ibv-process__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Why / Process responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ibv-why__inner {
        gap: 44px;
    }

    .ibv-why__quote {
        right: -20px;
        width: 84%;
    }

    .ibv-why__grid {
        gap: 24px;
    }

    .ibv-process__inner {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .ibv-why,
    .ibv-process {
        padding: 64px 0;
    }

    /* Photo above, copy below; the quote card returns to the flow. */
    .ibv-why__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .ibv-why__media {
        flex-basis: auto;
        max-width: 100%;
    }

    .ibv-why__photo img {
        min-height: 340px;
        max-height: 420px;
    }

    /* Still overlaps the photo, but relative + z-index keeps the whole card
       (background included) painted above it. */
    .ibv-why__quote {
        position: relative;
        z-index: 2;
        right: auto;
        bottom: auto;
        width: auto;
        margin: -48px 20px 0;
    }

    .ibv-process__inner {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 36px;
    }

    .ibv-process__media {
        flex-basis: auto;
        max-width: 100%;
    }

    .ibv-process__media img {
        min-height: 300px;
        max-height: 380px;
    }

    .ibv-process__head {
        margin-bottom: 36px;
    }
}

@media (max-width: 640px) {
    .ibv-why__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ibv-process__step {
        gap: 16px;
        padding: 22px 0;
    }

    .ibv-process__step-number {
        font-size: 24px;
        min-width: 42px;
    }
}

/* --------------------------------------------------------------------------
   8. Testimonials
   -------------------------------------------------------------------------- */

.ibv-testimonial {
    padding: 90px 0;
    background: var(--ibv-bg-light);
}

.ibv-testimonial__head {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.ibv-testimonial__head .ibv-heading {
    margin-bottom: 0;
}

.ibv-testimonial__intro {
    margin-top: 18px;
}

.ibv-testimonial__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.ibv-testimonial-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 26px 26px 24px;
    background: #fff;
    border: 1px solid var(--ibv-border);
    border-radius: var(--ibv-radius);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ibv-testimonial-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.ibv-testimonial-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ibv-testimonial-card__avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.ibv-testimonial-card__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ibv-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ibv-testimonial-card__id {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ibv-testimonial-card__name {
    color: var(--ibv-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.ibv-testimonial-card__role {
    color: var(--ibv-red);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.ibv-testimonial-card__quote {
    flex: 1 1 auto;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    color: var(--ibv-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
}

.ibv-testimonial-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: auto;
    color: var(--ibv-border);
}

.ibv-testimonial-card__star.is-filled {
    color: #f5a623;
}

/* --------------------------------------------------------------------------
   9. Blog / Insights
   -------------------------------------------------------------------------- */

.ibv-blog {
    padding: 90px 0;
}

.ibv-blog__head {
    max-width: 700px;
    margin: 0 auto 52px;
    text-align: center;
}

.ibv-blog__head .ibv-heading {
    margin-bottom: 0;
}

.ibv-blog__intro {
    margin-top: 18px;
}

.ibv-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.ibv-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ibv-border);
    border-radius: var(--ibv-radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ibv-blog-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.ibv-blog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef1f5;
    overflow: hidden;
}

@supports not (aspect-ratio: 16 / 10) {
    .ibv-blog-card__media {
        height: 230px;
    }
}

.ibv-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ibv-blog-card:hover .ibv-blog-card__media img {
    transform: scale(1.04);
}

.ibv-blog-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 14px;
    background: var(--ibv-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
}

.ibv-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px 26px 26px;
}

.ibv-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ibv-blog-card__category {
    color: var(--ibv-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ibv-blog-card__date {
    color: var(--ibv-muted);
    font-size: 12.5px;
    font-weight: 500;
}

.ibv-blog-card__meta .ibv-blog-card__category + .ibv-blog-card__date {
    padding-left: 10px;
    border-left: 1px solid var(--ibv-border);
}

.ibv-blog-card__title {
    color: var(--ibv-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 12px;
}

.ibv-blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.ibv-blog-card__title a:hover {
    color: var(--ibv-navy);
}

.ibv-blog-card__excerpt {
    color: var(--ibv-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
    margin: 0 0 18px;
}

.ibv-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--ibv-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ibv-blog-card__link svg {
    transition: transform 0.25s ease;
}

.ibv-blog-card__link:hover svg {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Testimonials / Blog responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ibv-testimonial__grid {
        gap: 20px;
    }

    .ibv-blog-card__body {
        padding: 20px 20px 22px;
    }
}

@media (max-width: 991px) {
    .ibv-testimonial,
    .ibv-blog {
        padding: 64px 0;
    }

    .ibv-testimonial__head,
    .ibv-blog__head {
        margin-bottom: 36px;
    }

    .ibv-testimonial__grid,
    .ibv-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ibv-testimonial__grid,
    .ibv-blog__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .ibv-testimonial-card {
        padding: 22px 22px 20px;
    }
}

/* --------------------------------------------------------------------------
   10. Opening Hours
   -------------------------------------------------------------------------- */

.ibv-hours {
    padding: 50px 0;
}

.ibv-hours-card {
    height: 100%;
    padding: 40px 44px;
    background: #fff;
    border-radius: var(--ibv-radius-lg);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.ibv-hours-card__heading {
    color: var(--ibv-heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin: 0 0 10px;
}

.ibv-hours-card__desc {
    color: var(--ibv-muted);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 28px;
}

.ibv-hours-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ibv-hours-card__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
}

.ibv-hours-card__day {
    display: inline-flex;
    align-items: baseline;
    justify-content: space-between;
    min-width: 130px;
    color: var(--ibv-heading);
    font-size: 15px;
    font-weight: 700;
}

.ibv-hours-card__colon {
    color: var(--ibv-muted);
    font-weight: 500;
}

.ibv-hours-card__time {
    color: var(--ibv-heading);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.ibv-hours-card__time.is-closed {
    color: var(--ibv-red);
}

/* --------------------------------------------------------------------------
   11. Notice Board
   -------------------------------------------------------------------------- */

.ibv-notice {
    padding: 50px 0;
}

.ibv-notice-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ibv-border);
    border-radius: var(--ibv-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.ibv-notice-card__head {
    padding: 22px 32px;
    background: var(--ibv-navy);
}

.ibv-notice-card__heading {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.ibv-notice-card__body {
    flex: 1 1 auto;
    padding: 8px 32px 24px;
}

/* Restyle the shared <x-notice> component's markup to match the IBV card. */
.ibv-notice-card__body .noticeboard_inner_item {
    padding: 22px 0;
    border-bottom: 1px solid var(--ibv-border);
}

.ibv-notice-card__body .noticeboard_inner_item:last-child {
    padding-bottom: 4px;
    border-bottom: 0;
}

.ibv-notice-card__body .noticeboard_inner_item_title {
    display: block;
    color: var(--ibv-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 10px;
}

.ibv-notice-card__body .noticeboard_inner_item_title:hover {
    color: var(--ibv-navy);
}

.ibv-notice-card__body .noticeboard_inner_item p {
    color: var(--ibv-muted);
    font-size: 13.5px;
    font-weight: 500;
    margin: 0 0 16px;
}

.ibv-notice-card__body .site_btn_border {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 1.5px solid var(--ibv-navy);
    border-radius: 999px;
    color: var(--ibv-navy);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ibv-notice-card__body .site_btn_border:hover {
    background: var(--ibv-navy);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Opening hours / Notice board responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .ibv-hours,
    .ibv-notice {
        padding: 20px 0;
    }

    .ibv-hours-card {
        padding: 32px 28px;
    }

    .ibv-notice-card__head {
        padding: 18px 24px;
    }

    .ibv-notice-card__body {
        padding: 6px 24px 20px;
    }
}

@media (max-width: 640px) {
    .ibv-hours-card__day {
        gap: 18px;
    }
}
