
/* ============================================================
   KILIMANI HOMEPAGE - REFINED DESIGN
   Palette: #1569b5, #ff5107, white, black
   Scoped to .kd-home to preserve Divi header and footer
============================================================ */

/* BASE */

.kd-home {
    --kd-blue: #1569b5;
    --kd-orange: #ff5107;
    --kd-white: #fff;
    --kd-black: #000;

    width: 100%;
    max-width: none;
    overflow-x: clip;

    background: var(--kd-white);
    color: var(--kd-black);

    font: 16px/1.72 'Open Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.kd-home,
.kd-home *,
.kd-home *::before,
.kd-home *::after {
    box-sizing: border-box;
}

.kd-home a {
    text-decoration: none;
}

.kd-home h1,
.kd-home h2,
.kd-home h3 {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
}

.kd-home p,
.kd-home blockquote {
    margin-top: 0;
}

.kd-home img {
    max-width: 100%;
}

.kd-home button {
    cursor: pointer;
}

.kd-home a:focus-visible,
.kd-home button:focus-visible {
    outline: 3px solid var(--kd-orange);
    outline-offset: 4px;
}

/* CONTAINERS */

.kd-home .kd-container {
    width: 80%;
    max-width: none;
    margin: 0 auto;
}

.kd-home .kd-section {
    padding: clamp(76px, 7.7vw, 116px) 0;
}

/* SECTION HEADINGS */

.kd-home .kd-section-heading {
    max-width: 790px;
    margin: 0 auto 50px;
    text-align: center;
}

.kd-home .kd-section-heading p {
    max-width: 650px;
    margin: 16px auto 0;
}

.kd-home .kd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 16px;

    color: var(--kd-orange);

    font: 700 12px/1.5 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.kd-home .kd-eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: currentColor;
}

.kd-home h2 {
    color: var(--kd-blue);

    font-size: clamp(29px, 3.1vw, 46px);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.035em;
}

.kd-home .kd-muted {
    color: rgba(0, 0, 0, .62);
}

.kd-home .kd-text-link {
    color: var(--kd-blue);
    font: 600 14px/1.4 'Poppins', sans-serif;
}

.kd-home .kd-text-link:hover {
    color: var(--kd-orange);
}

/* BUTTONS */

.kd-home .kd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-height: 54px;
    padding: 12px 18px 12px 27px;

    border: 1px solid transparent;
    border-radius: 999px;

    background: var(--kd-orange);
    color: var(--kd-white);

    font: 600 14px/1.35 'Poppins', sans-serif;
    white-space: nowrap;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.kd-home .kd-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(255, 81, 7, .28);
    color: #fff;
}

.kd-home .kd-button-arrow {
    display: inline-grid;
    place-items: center;

    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    border-radius: 50%;

    color: var(--kd-orange);
    background: #fff;

    font-size: 18px;
    line-height: 1;
}

.kd-home #top,
.kd-home #appointment,
.kd-home #services,
.kd-home #reviews,
.kd-home #blog {
    scroll-margin-top: 95px;
}

/* ============================================================
   HERO
============================================================ */

.kd-home .kd-hero {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: clamp(540px, 48vw, 720px);
    padding: 110px 0;

    color: #fff;
    background-color: var(--kd-blue);

    background-image:
        linear-gradient(
            95deg,
            rgba(21, 105, 181, .80),
            rgba(21, 105, 181, .55)
        ),
        var(--kd-hero-image);

    background-size: cover;
    background-position: center;
    text-align: center;
}

.kd-home .kd-hero::after {
    content: '';
    position: absolute;

    inset: auto 0 0;
    height: 88px;

    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, .07),
        transparent
    );

    pointer-events: none;
}

.kd-home .kd-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.kd-home .kd-hero .kd-hero-eyebrow {
    color: #fff;
    margin-bottom: 25px;
    font-size: 12px;
}

.kd-home .kd-hero h1 {
    margin-bottom: 23px;

    color: #fff;

    font-size: clamp(37px, 5.1vw, 68px);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -.045em;
}

.kd-home .kd-hero p {
    max-width: 690px;
    margin: 0 auto 35px;

    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.8;

    color: rgba(255, 255, 255, .96);
}

/* ============================================================
   CALENDLY APPOINTMENT CTA
============================================================ */

.kd-home .kd-appointment {
    background: #fff;
    padding-top: 78px;
    padding-bottom: 78px;
}

.kd-home .kd-appointment-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding:
        clamp(34px, 5vw, 64px)
        clamp(32px, 5vw, 68px);

    background: var(--kd-blue);
    border-radius: 24px;

    box-shadow: 0 16px 44px rgba(21, 105, 181, .14);
}

.kd-home .kd-appointment-panel::before,
.kd-home .kd-appointment-panel::after {
    content: '';
    position: absolute;
    z-index: -1;

    width: 310px;
    height: 310px;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;

    pointer-events: none;
}

.kd-home .kd-appointment-panel::before {
    top: -235px;
    right: 16%;
}

.kd-home .kd-appointment-panel::after {
    bottom: -260px;
    right: -50px;
}

.kd-home .kd-appointment-copy {
    min-width: 0;
    max-width: 680px;
}

.kd-home .kd-eyebrow-light {
    color: #fff;
}

.kd-home .kd-appointment h2 {
    margin-bottom: 14px;

    color: #fff;
    font-size: clamp(26px, 2.8vw, 39px);
}

.kd-home .kd-appointment p {
    max-width: 620px;
    margin: 0;

    color: rgba(255, 255, 255, .87);
    font-size: 16px;
    line-height: 1.7;
}

.kd-home .kd-booking-button {
    flex: 0 0 auto;
}

/* ============================================================
   SERVICES - PREMIUM IMAGE CARDS
============================================================ */

.kd-home .kd-services {
    background: rgba(21, 105, 181, .035);
}

.kd-home .kd-services-heading {
    width: 100%;
    max-width: none;
    margin-bottom: 55px;
}

.kd-home .kd-services-heading h2 {
    white-space: nowrap;
    font-size: clamp(26px, 2.85vw, 45px);
}

.kd-home .kd-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
    align-items: stretch;
}

/* CARD */

.kd-home .kd-service-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    margin: 0;
    overflow: hidden;

    background: #fff;

    border: 1px solid rgba(21, 105, 181, .11);
    border-radius: 19px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .045);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.kd-home .kd-service-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 24px 48px rgba(21, 105, 181, .14);
    border-color: rgba(21, 105, 181, .26);
}

/* LARGE IMAGE */

.kd-home .kd-service-image {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 1.45;
    min-height: 240px;

    overflow: hidden;
    background: rgba(21, 105, 181, .11);
}

.kd-home .kd-service-image::after {
    content: '';
    position: absolute;

    inset: 45% 0 0;

    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 0, 0, .28)
    );

    pointer-events: none;
}

.kd-home .kd-service-thumb {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center;

    transition: transform .55s ease;
}

.kd-home .kd-service-card:hover .kd-service-thumb {
    transform: scale(1.055);
}

.kd-home .kd-service-image-fallback {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;
    min-height: 240px;

    color: var(--kd-blue);
    font-size: 68px;
}

/* DECORATIVE SERVICE NUMBER */

.kd-home .kd-service-image-number {
    position: absolute;
    z-index: 1;

    bottom: 17px;
    left: 20px;

    display: grid;
    place-items: center;

    min-width: 42px;
    min-height: 42px;
    padding: 5px;

    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 12px;

    background: rgba(255, 255, 255, .92);
    color: var(--kd-blue);

    font: 700 14px/1 'Poppins', sans-serif;
}

/* CARD BODY */

.kd-home .kd-service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;

    gap: 0;
    padding: clamp(23px, 2.4vw, 34px);
}

.kd-home .kd-service-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: var(--kd-orange);

    font: 700 11px/1.45 'Poppins', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kd-home .kd-label-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: currentColor;
}

.kd-home .kd-service-body h3 {
    margin: 0 0 14px;

    color: #000;

    font-size: clamp(19px, 1.64vw, 23px);
    font-weight: 600;
    line-height: 1.34;
    letter-spacing: -.02em;
}

.kd-home .kd-service-body h3 a {
    color: inherit;
}

.kd-home .kd-service-body h3 a:hover {
    color: var(--kd-blue);
}

.kd-home .kd-service-body p {
    margin: 0 0 25px;

    color: rgba(0, 0, 0, .66);

    font-size: 14px;
    line-height: 1.77;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* SERVICE ACTION */

.kd-home .kd-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    width: 100%;

    margin-top: auto;
    padding-top: 19px;

    border-top: 1px solid rgba(0, 0, 0, .10);

    color: var(--kd-blue);
    font: 600 14px/1.45 'Poppins', sans-serif;

    transition: color .2s ease;
}

.kd-home .kd-service-link:hover {
    color: var(--kd-orange);
}

.kd-home .kd-service-link-icon {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    border-radius: 50%;
    background: rgba(21, 105, 181, .09);

    color: var(--kd-blue);
    font-size: 20px;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.kd-home .kd-service-link:hover .kd-service-link-icon {
    background: var(--kd-orange);
    color: #fff;

    transform: translate(2px, -2px);
}

.kd-home .kd-empty-message {
    grid-column: 1 / -1;

    margin: 0;
    padding: 30px;

    background: #fff;
    border-radius: 14px;

    color: rgba(0, 0, 0, .62);
}

/* ============================================================
   PATIENT REVIEWS
============================================================ */

.kd-home .kd-reviews {
    overflow: hidden;
    background: #fff;
}

.kd-home .kd-reviews-heading {
    max-width: 790px;
    margin: 0 auto 53px;

    text-align: center;
}

.kd-home .kd-reviews-heading h2 {
    margin-bottom: 16px;
}

.kd-home .kd-reviews-heading p {
    max-width: 670px;
    margin: 0 auto;

    color: rgba(0, 0, 0, .64);
    line-height: 1.8;
}

/* REVIEW LAYOUT */

.kd-home .kd-reviews-layout {
    display: grid;

    grid-template-columns: 230px minmax(0, 1fr);
    align-items: center;

    gap: clamp(24px, 3vw, 48px);
}

.kd-home .kd-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-width: 0;
    gap: 17px;
}

/* CLINIC LOGO */

.kd-home .kd-reviews-business {
    width: 100%;
    margin: 0;
}

.kd-home .kd-reviews-clinic-logo {
    display: block;

    width: 100%;
    max-width: 205px;

    height: auto;
    max-height: 130px;

    object-fit: contain;
    object-position: left center;
}

/* RATING SUMMARY */

.kd-home .kd-reviews-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin: 0;
}

.kd-home .kd-stars {
    display: inline-block;

    color: var(--kd-orange);
    white-space: nowrap;

    font: 24px/1.2 Arial, sans-serif;
    letter-spacing: 1px;
}

.kd-home .kd-reviews-meta small {
    margin: 0;

    font-size: 13px;
    color: rgba(0, 0, 0, .6);
}

/* GOOGLE ACTION */

.kd-home .kd-google-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 44px;
    margin: 0;
    padding: 9px 17px;

    border: 1px solid rgba(21, 105, 181, .30);
    border-radius: 9px;

    background: #fff;
    color: var(--kd-blue);

    font: 600 13px/1.4 'Poppins', sans-serif;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.kd-home .kd-google-action:hover {
    color: #fff;
    background: var(--kd-blue);
    border-color: var(--kd-blue);
}

/* INFINITE CAROUSEL */

.kd-home .kd-carousel {
    position: relative;
    min-width: 0;
    width: 100%;
}

.kd-home .kd-carousel-viewport {
    width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 13px 3px 22px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.kd-home .kd-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.kd-home .kd-carousel-track {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-width: 0;

    gap: 20px;
}

/* TWO REVIEW CARDS PER VIEW */

.kd-home .kd-review-card {
    display: flex;
    flex: 0 0 calc((100% - 20px) / 2);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;

    width: calc((100% - 20px) / 2);
    min-width: 0;
    min-height: 245px;

    margin: 0;
    padding: clamp(22px, 2.1vw, 30px);

    border: 1px solid rgba(21, 105, 181, .12);
    border-radius: 17px;

    background: rgba(21, 105, 181, .035);

    box-shadow: 0 6px 17px rgba(0, 0, 0, .05);

    scroll-snap-align: start;

    transition:
        box-shadow .25s ease,
        border-color .25s ease;
}

.kd-home .kd-review-card:hover {
    box-shadow: 0 12px 25px rgba(21, 105, 181, .09);
    border-color: rgba(21, 105, 181, .28);
}

/* REVIEWER */

.kd-home .kd-review-head {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-width: 0;
}

.kd-home .kd-review-avatar {
    position: relative;
    overflow: hidden;

    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    border-radius: 50%;
    background: rgba(21, 105, 181, .16);

    color: var(--kd-blue);
}

.kd-home .kd-review-avatar::before {
    content: '';
    position: absolute;

    top: 8px;
    left: 15px;

    width: 14px;
    height: 14px;

    border-radius: 50%;
    background: currentColor;
}

.kd-home .kd-review-avatar::after {
    content: '';
    position: absolute;

    bottom: -2px;
    left: 6px;

    width: 32px;
    height: 19px;

    border-radius: 50% 50% 20% 20%;
    background: currentColor;
}

.kd-home .kd-review-identity {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
    gap: 2px;
}

.kd-home .kd-review-identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #000;
    font: 600 14px/1.35 'Poppins', sans-serif;
}

.kd-home .kd-review-identity small {
    color: rgba(0, 0, 0, .56);
    font: 400 12px/1.4 'Poppins', sans-serif;
}

.kd-home .kd-google-logo {
    display: block;

    flex: 0 0 23px;
    width: 23px;
    height: 23px;

    object-fit: contain;
}

.kd-home .kd-review-stars .kd-stars {
    font-size: 20px;
}

/* REVIEW TEXT */

.kd-home .kd-review-text {
    display: block;
    width: 100%;

    margin: 0;

    color: #000;

    font: 400 13px/1.8 'Poppins', sans-serif;
    overflow-wrap: break-word;
}

.kd-home .kd-review-pending {
    color: var(--kd-orange);

    font: 700 10px/1.3 'Poppins', sans-serif;
    letter-spacing: .08em;
}

/* NAVIGATION ARROWS */

.kd-home .kd-carousel-arrow {
    position: absolute;
    z-index: 3;

    top: 50%;
    transform: translateY(-50%);

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(21, 105, 181, .2);
    border-radius: 50%;

    background: #fff;
    color: var(--kd-blue);

    box-shadow: 0 4px 15px rgba(0, 0, 0, .13);

    font: 29px/1 Arial, sans-serif;

    transition:
        color .2s,
        background .2s;
}

.kd-home .kd-carousel-arrow:hover {
    background: var(--kd-blue);
    color: #fff;
}

.kd-home .kd-carousel-prev {
    left: -17px;
}

.kd-home .kd-carousel-next {
    right: -17px;
}

/* ============================================================
   BLOG
============================================================ */

.kd-home .kd-blog {
    background: rgba(21, 105, 181, .035);
}

.kd-home .kd-blog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;

    margin-bottom: 45px;
}

.kd-home .kd-blog-heading h2 {
    margin: 0;
}

.kd-home .kd-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding-bottom: 6px;
}

.kd-home .kd-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
}

.kd-home .kd-blog-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;
    min-width: 0;
    margin: 0;

    border: 1px solid rgba(21, 105, 181, .1);
    border-radius: 17px;

    background: #fff;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .04);

    transition:
        transform .26s,
        box-shadow .26s;
}

.kd-home .kd-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 19px 35px rgba(21, 105, 181, .1);
}

.kd-home .kd-blog-image-wrap {
    display: block;
    overflow: hidden;

    height: clamp(180px, 16vw, 245px);

    background: rgba(21, 105, 181, .1);
}

.kd-home .kd-blog-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform .4s;
}

.kd-home .kd-blog-card:hover .kd-blog-image {
    transform: scale(1.045);
}

.kd-home .kd-blog-placeholder {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;

    color: var(--kd-blue);
    font-size: 13px;
}

.kd-home .kd-blog-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    padding: clamp(21px, 2.25vw, 30px);
}

.kd-home .kd-blog-tag {
    color: var(--kd-orange);

    font: 700 11px/1.4 'Poppins', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kd-home .kd-blog-content h3 {
    margin: 0;

    color: #000;

    font-size: clamp(18px, 1.55vw, 22px);
    font-weight: 600;
    line-height: 1.35;
}

.kd-home .kd-blog-content h3 a {
    color: inherit;
}

.kd-home .kd-blog-content h3 a:hover {
    color: var(--kd-blue);
}

.kd-home .kd-blog-content p {
    margin: 0 0 13px;

    color: rgba(0, 0, 0, .66);

    font-size: 14px;
    line-height: 1.75;
}

.kd-home .kd-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-bottom: 3px;
}

/* ============================================================
   DIVI PAGE INTEGRATION
   Applies ONLY to the experimental homepage
============================================================ */

body.kd-exp-home #main-content {
    padding: 0 !important;
}

body.kd-exp-home #main-content > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
}

body.kd-exp-home #main-content > .container::before {
    display: none !important;
}

body.kd-exp-home #main-content #left-area {
    width: 100% !important;
    float: none !important;

    padding: 0 !important;
    margin: 0 !important;
}

body.kd-exp-home #main-content #sidebar {
    display: none !important;
}

body.kd-exp-home #main-content article.page,
body.kd-exp-home #main-content .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

body.kd-exp-home #main-content .entry-title.main_title {
    display: none !important;
}

body.kd-exp-home #main-content .entry-content > .kd-home {
    width: 100%;
    max-width: none;
}

/* Show the Divi footer if its HTML is already rendered */

body.kd-exp-home .et-l--footer {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* ============================================================
   TABLET AND MOBILE
============================================================ */

@media (max-width: 1150px) {

    .kd-home .kd-service-grid,
    .kd-home .kd-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kd-home .kd-appointment-panel {
        gap: 25px;
    }
}

@media (max-width: 960px) {

    .kd-home .kd-reviews-layout {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .kd-home .kd-reviews-summary {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;

        gap: 22px;
    }

    .kd-home .kd-reviews-clinic-logo {
        max-width: 170px;
    }

    .kd-home .kd-appointment-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 800px) {

    .kd-home .kd-container {
        width: 92%;
    }

    .kd-home .kd-section {
        padding: 76px 0;
    }

    .kd-home .kd-services-heading h2 {
        white-space: normal;
    }

    .kd-home .kd-services-heading {
        margin-bottom: 40px;
    }
}

@media (max-width: 700px) {

    .kd-home .kd-hero {
        min-height: 495px;
        padding: 95px 0;
    }

    .kd-home .kd-hero h1 {
        font-size: clamp(34px, 8vw, 47px);
    }

    .kd-home .kd-hero p {
        font-size: 16px;
    }

    .kd-home .kd-appointment {
        padding: 58px 0;
    }

    .kd-home .kd-appointment-panel {
        padding: 32px 26px;
        border-radius: 20px;
    }

    .kd-home .kd-appointment h2 {
        font-size: 28px;
    }

    .kd-home .kd-service-grid,
    .kd-home .kd-blog-grid {
        grid-template-columns: 1fr;
    }

    .kd-home .kd-service-image {
        aspect-ratio: 1.55;
        min-height: 220px;
    }

    .kd-home .kd-service-body {
        padding: 27px;
    }

    .kd-home .kd-reviews-heading {
        margin-bottom: 36px;
    }

    .kd-home .kd-reviews-summary {
        flex-direction: column;
        gap: 13px;
        text-align: center;
    }

    .kd-home .kd-reviews-clinic-logo {
        max-width: 180px;
        object-position: center;
    }

    .kd-home .kd-reviews-meta {
        align-items: center;
    }

    /* One review card per view */

    .kd-home .kd-review-card {
        flex: 0 0 100%;
        width: 100%;
        min-height: 226px;
        padding: 23px;
    }

    .kd-home .kd-carousel-track {
        gap: 16px;
    }

    .kd-home .kd-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .kd-home .kd-carousel-prev {
        left: -12px;
    }

    .kd-home .kd-carousel-next {
        right: -12px;
    }

    .kd-home .kd-blog-image-wrap {
        height: 220px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .kd-home * {
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        animation-duration: .01ms !important;
    }
}














/* ====================================================
   KDEC HOMEPAGE - SUBTLE SECTION BACKGROUNDS
   Soft transitions without dramatic color changes
==================================================== */

/* 1. Appointment section - very light blue */

body.kd-exp-home .kd-home > #appointment {
    background-color: #f7fafd;
}

/* 2. Services section - clean white */

body.kd-exp-home .kd-home > #services {
    background-color: #ffffff;
}

/* 3. Patient Reviews - soft blue-grey */

body.kd-exp-home .kd-home > #reviews {
    background-color: #f3f7fb;
}

/* 4. Blog section - warm off-white */

body.kd-exp-home .kd-home > #blog {
    background-color: #fcfaf7;
}

/* Very subtle dividing lines between sections */

body.kd-exp-home .kd-home > .kd-section + .kd-section {
    border-top: 1px solid rgba(21, 105, 181, 0.035);
}

