/* =========================================
   KB7 CARE — OFFICE PHOTOS HERO
   About Us-style responsive composition
========================================= */

.kb7-office-hero {
    --office-green: #a4d63c;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    background: #08091f;
    color: #fff;
}

.kb7-office-hero-bg,
.kb7-office-hero-mobile-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.kb7-office-hero-bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kb7-office-hero-mobile-bg {
    display: none;
    overflow: hidden;
}

.kb7-office-hero-bg { overflow: hidden; }
.kb7-office-hero-mobile-bg .kb7-office-hero-bg-image { object-position: center top; }

.kb7-office-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(39, 18, 104, .99) 0%, rgba(39, 18, 104, .96) 25%, rgba(53, 28, 111, .84) 43%, rgba(64, 35, 111, .42) 68%, rgba(35, 18, 67, .12) 100%),
        linear-gradient(0deg, rgba(30, 15, 67, .42), transparent 48%);
}

.kb7-office-hero > .container-fluid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: clamp(160px, calc(5.3vw + 70px), 210px) clamp(48px, 5vw, 100px) 100px;
}

.kb7-office-hero-content { max-width: min(850px, 58vw); animation: kb7-office-fade-up .8s ease both; }

.kb7-office-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(21px, 1.4vw, 29px);
    padding: clamp(7px, .45vw, 10px) clamp(11px, .75vw, 16px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: clamp(10px, .62vw, 14px);
    font-weight: 700;
    letter-spacing: .5px;
}

.kb7-office-eyebrow i { font-size: clamp(11px, .72vw, 15px); }

.kb7-office-hero-content h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(9px, .6vw, 14px);
    margin: 0 0 clamp(16px, 1.05vw, 22px);
    color: #fff;
    font-size: clamp(50px, 4vw, 78px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: clamp(-2px, -.11vw, -1px);
}

.kb7-office-heart { color: #fff; font-size: .85em; line-height: 1; }

.kb7-office-hero-content h2 {
    margin: 0 0 clamp(21px, 1.5vw, 31px);
    color: var(--office-green);
    font-size: clamp(25px, 1.85vw, 36px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.6px;
}

.kb7-office-hero-content p {
    max-width: min(700px, 45vw);
    margin: 0 0 clamp(22px, 1.5vw, 31px);
    color: rgba(255,255,255,.92);
    font-size: clamp(17px, 1.3vw, 27px);
    line-height: clamp(1.65, 1.8, 1.85);
}

.kb7-office-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, .75vw, 15px); }

.kb7-office-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, .6vw, 13px);
    min-height: clamp(44px, 2.5vw, 58px);
    padding: 0 clamp(18px, 1.25vw, 28px);
    border-radius: 50px;
    font-size: clamp(11px, .68vw, 14px);
    font-weight: 800;
    text-decoration: none;
}

.kb7-office-btn-primary { background: linear-gradient(110deg, #a952d5, #8545c0); color: #fff; }
.kb7-office-btn-outline { border: 1px solid rgba(255,255,255,.42); color: #fff; }
.kb7-office-btn-primary:hover, .kb7-office-btn-outline:hover { color: #fff; transform: translateY(-2px); }

.kb7-office-gallery { padding: 80px 0; background: #fff; color: #241047; }
.kb7-office-gallery-heading { max-width: 780px; margin-bottom: 38px; }
.kb7-office-gallery-heading > span { color: #6e35ca; font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.kb7-office-gallery-heading h2 { margin: 12px 0; font-size: clamp(28px, 3vw, 48px); font-weight: 800; }
.kb7-office-gallery-heading p { margin: 0; color: #5b5870; font-size: 18px; line-height: 1.7; }
.kb7-office-gallery-card { height: 100%; padding: 28px; border: 1px solid rgba(55,26,117,.12); border-radius: 18px; background: #faf8ff; box-shadow: 0 12px 30px rgba(37,17,89,.08); }
.kb7-office-gallery-card h3 { margin: 0 0 8px; color: #271367; font-size: 22px; font-weight: 800; }
.kb7-office-gallery-card p { margin: 0; color: #5b5870; line-height: 1.65; }
.kb7-office-gallery-card .kb7-office-gallery-tagline { margin-bottom: 10px; color: #743bd0; font-weight: 700; }

@keyframes kb7-office-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1400px) {
    .kb7-office-eyebrow { font-size: clamp(12px, .7vw, 16px); }
    .kb7-office-hero-content h1 { font-size: clamp(60px, 4.5vw, 94px); }
    .kb7-office-hero-content h2 { font-size: clamp(30px, 2.1vw, 43px); }
    .kb7-office-hero-content p { font-size: clamp(20px, 1.45vw, 31px); }
    .kb7-office-hero-actions .btn { font-size: clamp(12px, .75vw, 16px); }
}

@media (max-width: 991.98px) {
    .kb7-office-hero > .container-fluid { padding: 90px 32px 135px; }
    .kb7-office-hero-content { max-width: 650px; }
}

@media (max-width: 767.98px) {
    .kb7-office-hero { min-height: 100svh; height: auto; align-items: center; }
    .kb7-office-hero-bg { display: none; }
    .kb7-office-hero-mobile-bg { display: block; }
    .kb7-office-hero > .container-fluid { display: flex; align-items: center; min-height: 100svh; padding: 72px 16px 32px; }
    .kb7-office-hero-content { max-width: 100%; }
    .kb7-office-hero-content h1 { margin: 18px 0; font-size: 2rem; line-height: 1.15; }
    .kb7-office-hero-content h2 { margin-bottom: 21px; font-size: clamp(22px, 6vw, 31px); }
    .kb7-office-hero-content p { max-width: none; font-size: .95rem; line-height: 1.7; }
    .kb7-office-hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
    .kb7-office-hero-actions .btn { width: 100%; min-height: 50px; }
}

@media (max-width: 480px) {
    .kb7-office-hero > .container-fluid { padding-top: 64px; padding-bottom: 24px; }
    .kb7-office-hero-content p { font-size: .9rem; }
}

/* Bootstrap office photo slideshow. */
.kb7-office-carousel,
.kb7-office-carousel .carousel-inner,
.kb7-office-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.kb7-office-carousel .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kb7-office-carousel .carousel-control-prev,
.kb7-office-carousel .carousel-control-next {
    z-index: 4;
    width: 12%;
}

.kb7-office-carousel .carousel-control-prev-icon,
.kb7-office-carousel .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background-color: rgba(25,15,42,.62);
    background-size: 48%;
    backdrop-filter: blur(6px);
}

.kb7-office-carousel .carousel-indicators {
    z-index: 5;
    margin-bottom: 18px;
}

.kb7-office-carousel .carousel-indicators button {
    width: 28px;
    height: 4px;
    margin: 0 4px;
    border: 0;
    border-radius: 10px;
    background-color: rgba(255,255,255,.65);
}

.kb7-office-carousel .carousel-indicators button.active {
    background-color: #a4d63c;
}

.kb7-gallery-main:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    background: #100824;
}

.kb7-gallery-main:fullscreen .kb7-office-carousel,
.kb7-gallery-main:fullscreen .kb7-office-carousel .carousel-inner,
.kb7-gallery-main:fullscreen .kb7-office-carousel .carousel-item {
    height: 100%;
}

.kb7-gallery-main:fullscreen .kb7-office-carousel .carousel-item img {
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .kb7-gallery-main {
        height: clamp(300px, 78vw, 440px);
        border-radius: 14px;
    }

    .kb7-office-carousel .carousel-control-prev-icon,
    .kb7-office-carousel .carousel-control-next-icon {
        width: 36px;
        height: 36px;
    }
}

/* =========================================
   KB7 CARE OFFICE GALLERY
========================================= */

.kb7-office-gallery {
    width: 100%;
    padding: 35px 0 45px;
    background: #ffffff;
    overflow: hidden;
}


/* =========================================
   HEADING
========================================= */

.kb7-office-title {
    margin-bottom: 27px;
}

.kb7-office-title h2 {
    margin: 0;

    color: #321064;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 850;
    letter-spacing: -1px;
}

.kb7-title-line {
    display: block;

    width: 65px;
    height: 5px;
    margin: 10px 0 8px;

    background: #9bd43d;
    border-radius: 10px;
}

.kb7-office-title p {
    margin: 0;

    color: #625875;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   MAIN GALLERY
========================================= */

.kb7-gallery-main {
    position: relative;

    width: 100%;
    height: 490px;

    overflow: hidden;

    background: #211044;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(33, 16, 68, 0.12);
}

.kb7-gallery-main > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: opacity 0.3s ease;
}


/* Image transition */

.kb7-gallery-main img.changing {
    opacity: 0.35;
}


/* =========================================
   IMAGE COUNTER
========================================= */

.kb7-image-counter {
    position: absolute;
    top: 17px;
    right: 65px;
    z-index: 3;

    padding: 8px 15px;

    color: #ffffff;
    background: rgba(25, 15, 42, 0.65);

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}


/* =========================================
   FULLSCREEN
========================================= */

.kb7-fullscreen-btn {
    position: absolute;
    top: 17px;
    right: 17px;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: #ffffff;
    background: rgba(25, 15, 42, 0.65);

    border: 0;
    border-radius: 50%;

    transition: all 0.3s ease;
}

.kb7-fullscreen-btn:hover {
    background: #6724c7;
    transform: scale(1.08);
}


/* =========================================
   PREVIOUS / NEXT
========================================= */

.kb7-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: #ffffff;
    background: rgba(20, 15, 35, 0.6);

    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;

    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.kb7-gallery-arrow:hover {
    color: #ffffff;
    background: #6925c5;
    transform: translateY(-50%) scale(1.1);
}

.kb7-gallery-prev {
    left: 18px;
}

.kb7-gallery-next {
    right: 18px;
}

.kb7-gallery-arrow i {
    font-size: 21px;
}


/* =========================================
   IMAGE CAPTION
========================================= */

.kb7-gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;

    padding: 65px 25px 22px;

    color: #ffffff;

    background: linear-gradient(
        to top,
        rgba(20, 7, 47, 0.95),
        rgba(20, 7, 47, 0.05)
    );
}

.kb7-caption-location {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.kb7-caption-location > i {
    margin-top: 4px;
    font-size: 21px;
}

.kb7-caption-location h3 {
    margin: 0 0 6px;

    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.kb7-caption-location p {
    max-width: 600px;
    margin: 0;

    color: rgba(255,255,255,0.95);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================
   IMAGE INDICATORS
========================================= */

.kb7-gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 9px;

    margin-top: 15px;
}

.kb7-gallery-indicators span {
    width: 9px;
    height: 9px;

    background: rgba(255,255,255,0.65);
    border-radius: 50%;

    transition: all 0.3s ease;
}

.kb7-gallery-indicators span.active {
    width: 22px;
    background: #a4e900;
    border-radius: 10px;
}


/* =========================================
   RIGHT SIDEBAR
========================================= */

.kb7-office-sidebar {
    height: 490px;
    padding: 23px;

    background: linear-gradient(
        145deg,
        #faf7ff,
        #f5f0fc
    );

    border: 1px solid #eee5fa;
    border-radius: 17px;
}

.kb7-sidebar-heading {
    margin-bottom: 20px;
}

.kb7-sidebar-heading h3 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 9px;

    color: #321064;
    font-size: 21px;
    font-weight: 850;
}

.kb7-sidebar-heading h3 i {
    color: #6724c7;
    font-size: 24px;
}

.kb7-sidebar-heading p {
    margin: 0;

    color: #625875;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================
   ROOM ITEMS
========================================= */

.kb7-room-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.kb7-room-item {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 58px;
    padding: 5px 9px;

    color: #321064;
    background: #ffffff;

    border: 1px solid #e9e2f0;
    border-radius: 12px;

    text-align: left;

    transition: all 0.3s ease;
}

.kb7-room-item img {
    width: 78px;
    height: 45px;

    object-fit: cover;
    border-radius: 7px;
}

.kb7-room-item > i:not(.kb7-room-arrow) {
    color: #6724c7;
    font-size: 19px;
}

.kb7-room-item span {
    flex: 1;

    font-size: 13px;
    font-weight: 750;
}

.kb7-room-arrow {
    color: #877b98;
    font-size: 14px;
}

/* Selected room */

.kb7-room-item:hover,
.kb7-room-item.active {
    background: #f2eaff;
    border-color: #8d3bf0;

    box-shadow: 0 4px 12px rgba(103, 36, 199, 0.09);
}

.kb7-room-item.active {
    transform: translateX(3px);
}

.kb7-room-item.active .kb7-room-arrow {
    color: #6724c7;
}


/* =========================================
   BOTTOM THUMBNAILS
========================================= */

.kb7-gallery-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 2px 2px 10px;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #6724c7 #eee8fa;
}

.kb7-thumbnail {
    flex: 0 0 230px;
    width: 230px;
    height: 95px;
    padding: 3px;

    overflow: hidden;

    background: #ffffff;

    border: 2px solid transparent;
    border-radius: 11px;

    transition: all 0.3s ease;
}

.kb7-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 7px;

    transition: transform 0.4s ease;
}

.kb7-thumbnail:hover img {
    transform: scale(1.08);
}

.kb7-thumbnail.active {
    border-color: #6724c7;
    box-shadow: 0 4px 12px rgba(103, 36, 199, 0.16);
}

.kb7-photo-resource-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #e4d7f6;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #665b78;
    font-size: 0.82rem;
    line-height: 1.5;
}

.kb7-photo-resource-note i {
    color: #6724c7;
    margin-top: 2px;
}

.kb7-photo-resource-note a {
    color: #5520a6;
    font-weight: 700;
    text-decoration: underline;
}


/* =========================================
   OFFICE VISIT BUTTON
========================================= */

.kb7-office-visit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 65px;
    padding: 15px 20px;

    color: #ffffff;

    background: linear-gradient(
        110deg,
        #38106e,
        #681bb2
    );

    border: 2px solid #9b57e8;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    transition: all 0.35s ease;
}

.kb7-office-visit-btn i {
    font-size: 20px;
}

.kb7-office-visit-btn:hover {
    color: #ffffff;
    background: #50108f;
    border-color: #a4e900;

    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(80, 16, 143, 0.2);
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 991.98px) {

    .kb7-gallery-main {
        height: 430px;
    }

    .kb7-office-sidebar {
        height: auto;
    }

    .kb7-room-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .kb7-room-item {
        min-width: 0;
    }

    .kb7-room-item img {
        width: 55px;
    }

    .kb7-office-visit-btn {
        justify-content: center;
    }

}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 575.98px) {

    .kb7-office-gallery {
        padding: 25px 0 35px;
    }

    .kb7-office-title {
        margin-bottom: 20px;
    }

    .kb7-office-title h2 {
        font-size: 27px;
    }

    .kb7-office-title p {
        font-size: 12px;
    }

    .kb7-gallery-main {
        height: 340px;
        border-radius: 12px;
    }

    .kb7-gallery-arrow {
        width: 37px;
        height: 37px;
    }

    .kb7-gallery-prev {
        left: 10px;
    }

    .kb7-gallery-next {
        right: 10px;
    }

    .kb7-gallery-caption {
        padding: 55px 15px 15px;
    }

    .kb7-caption-location h3 {
        font-size: 16px;
    }

    .kb7-caption-location p {
        font-size: 11px;
    }

    .kb7-office-sidebar {
        padding: 18px;
    }

    .kb7-sidebar-heading h3 {
        font-size: 19px;
    }

    .kb7-room-list {
        grid-template-columns: 1fr;
    }

    .kb7-room-item {
        min-height: 55px;
    }

.kb7-gallery-thumbnails {
        gap: 8px;
    }

    .kb7-thumbnail {
        flex-basis: 180px;
        width: 180px;
        height: 75px;
    }

    .kb7-office-visit-btn {
        min-height: 55px;
        font-size: 12px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .kb7-gallery-main {
        height: 290px;
    }

    .kb7-image-counter {
        right: 55px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .kb7-gallery-caption {
        padding: 45px 12px 12px;
    }

    .kb7-caption-location h3 {
        font-size: 14px;
    }

    .kb7-caption-location p {
        font-size: 10px;
    }

}
