

/* Page spacing */
.td-wrap{ padding: 8px 0 0px; }

@media (min-width: 768px){
    .td-wrap{ padding: 14px 0 0px; }
}

/* Left column panel */
.td-left-panel{
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 14px;
    background: rgba(255,255,255,0.75);
}
@media (min-width: 768px){
    .td-left-panel{ padding: 16px; }
}

.td-photo{
    width: 100%;
    height: 360px;
    border-radius: var(--td-radius);
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--td-border);
    background: #f3f4f6;
}
@media (max-width: 575.98px){
    .td-photo{ height: 300px; }
}

.td-side{
    display: grid;
    gap: 14px;
}
.td-side-block{
    padding-top: 12px;
    border-top: 1px solid var(--td-border);
}
.td-side-block:first-child{
    padding-top: 0;
    border-top: 0;
}

.td-btn{
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 800;
}

.td-links{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.td-link{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--td-border);
    text-decoration: none;
    color: var(--td-text);
    font-weight: 700;
    background: #fff;
}
.td-link:hover{
    border-color: rgba(41,139,243,0.35);
}

/* Overview list */
.td-overview{
    display: grid;
    gap: 8px;
}
.td-overview-row{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--td-text);
}
.td-overview-row i{
    margin-top: 2px;
    color: rgba(17,24,39,0.55);
    width: 18px;
    text-align: center;
}
.td-overview-row .k{
    font-size: 14px;
    font-weight: 800;
    min-width: 120px;
}
.td-overview-row .v{
    font-size: 14px;
    color: var(--td-muted);
    font-weight: 600;
}

/* Right column header */
.td-titlebar{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.td-name{
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--td-text);
}
.td-location{
    margin: 0;
    color: var(--td-muted);
    font-weight: 700;
}

/* Section headings + spacing */
.td-h{
    margin: 18px 0 10px;
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--td-text);
}
.td-section{
    margin-top: 18px;
}
@media (min-width: 768px){
    .td-section{ margin-top: 22px; }
}
.td-divider{
    margin: 18px 0;
    border-top: 1px solid var(--td-border);
}

/* Services overview pills (coloured) */
.td-pill{
    display: inline-block;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.2;
    padding: 8px 14px;
    border-radius: 999px;
    margin: 0 10px 10px 0;

    background: linear-gradient(135deg, rgba(41,139,243,0.12), rgba(41,139,243,0.05));
    border: 1px solid rgba(41,139,243,0.25);
    color: #1f4f86;

    transition: all 0.18s ease;
}

.td-pill:hover{
    background: rgba(41,139,243,0.18);
    border-color: rgba(41,139,243,0.35);
    transform: translateY(-1px);
}

/* CMS content */
.cms-content ul{ list-style: none; padding-left: 0; margin: 0.75rem 0; }
.cms-content ul li{ position: relative; padding-left: 1.2rem; margin-bottom: 0.35rem; }
.cms-content ul li::before{
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(17,24,39,0.45);
    font-weight: 900;
}
.cms-content ol{ list-style: decimal; padding-left: 1.2rem; margin: 0.75rem 0; }
.cms-content b, .cms-content strong{ font-weight: 700; }
.cms-content p{ color: var(--td-muted); font-weight: 600; line-height: 1.55; }
.cms-content blockquote{
    border-left: 4px solid rgba(41,139,243,0.55);
    padding: 12px 14px;
    margin: 14px 0;
    background: rgba(41,139,243,0.06);
    border-radius: 12px;
    font-style: italic;
}

/* Timeline boxed section */
.td-timeline-box{
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 14px;
    background: rgba(0,0,0,0.02);
}
@media (min-width: 768px){
    .td-timeline-box{ padding: 16px; }
}

/* Timeline: vertical line + dot */
.td-timeline{
    position: relative;
    margin-left: 10px;
}
.td-timeline::before{
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.08);
}
.td-timeline-dot{
    position: absolute;
    left: -1px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--td-primary);
}

/* Timeline item: image left, text right */
.td-timeline-item3{
    position: relative;
    padding-left: 28px;
    margin-bottom: 20px;
}
.td-timeline-body3{
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.td-timeline-media img{
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--td-border);
    background: #f3f4f6;
}
.td-timeline-content{ flex: 1; }
.td-timeline-year{
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(17,24,39,0.55);
    margin-bottom: 2px;
}
.td-timeline-title{
    font-weight: 900;
    margin-bottom: 4px;
    color: #111827;
}
.td-timeline-desc{
    font-weight: 600;
    color: rgba(17,24,39,0.72);
    line-height: 1.5;
}

/* Detailed services section container */
.td-detailed-wrap{
    margin-top: 1px;
    padding: 14px;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
@media (min-width: 768px){
    .td-detailed-wrap{ padding: 22px; }
}

.td-services-curved-section{
    position: relative;
    margin-top: 18px;
    padding: 0 0 54px;
    background: #eaedf5;
    overflow: hidden;
}


/* Top Curve */
.td-services-curved-top-team{
    height: 140px;
    background: #fff;
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    margin-bottom: 68px;
    z-index: 2;
}

.td-services-curved-inner{
    position: relative;
    margin-top: -26px;
    padding-top: 10px;
}

.td-services-showcase{
    position: relative;
    z-index: 2;
}

.td-services-panel{
    padding: 0px 0 8px 22px;
}

.td-services-flow__media{
    min-width: 0;
    width: 100%;
}

.td-services-flow__image-wrap{
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 380px;
    max-height: 420px;
    background: #dde3ea;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.td-services-flow__image{
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 420px;
    object-fit: cover;
    display: block;
    object-position: top;
}

.td-services-flow__arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: #39526b;
    box-shadow: 0 12px 28px rgba(15,23,42,0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.td-services-flow__arrow:hover{
    background: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.td-services-flow__arrow--prev{
    left: 18px;
}

.td-services-flow__arrow--next{
    right: 18px;
}

.td-services-flow__eyebrow{
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94aec9;
}

.td-services-flow__heading{
    margin: 0 0 20px 0;
    font-size: clamp(1.2rem, 3.4vw, 2.1rem);
    line-height: 1.02;
    font-weight: 400;
    color: #38404b;
    font-family: Georgia, "Times New Roman", serif;
}

.td-services-flow__active{
    margin-bottom: 0;
}

.td-services-flow__active h4{
    margin: 0 0 14px 0;
    font-size: clamp(1.45rem, 2vw, 2.35rem);
    line-height: 1.15;
    font-weight: 700;
    color: #2f4964;
}

.td-services-flow__active p{
    margin: 0 0 22px 0;
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(56,64,75,0.82);
    font-weight: 500;
    max-width: 56ch;
}

.td-services-flow__btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin-top: 12px;
    padding: 13px 28px;
    border-radius: 999px;
    background: #97b4d3;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(66, 110, 153, 0.18);
    transition: all 0.18s ease;
}

.td-services-flow__btn:hover{
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(66, 110, 153, 0.24);
}

.td-services-slider-wrap{
    position: relative;
    margin-top: 28px;
}

.td-services-slider-wrap::before,
.td-services-slider-wrap::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 12px;
    width: 42px;
    z-index: 3;
    pointer-events: none;
}

.td-services-slider-wrap::before{
    left: 0;
    background: linear-gradient(to right, #ffffff 25%, rgba(255,255,255,0));
}

.td-services-slider-wrap::after{
    right: 0;
    background: linear-gradient(to left, #ffffff 25%, rgba(255,255,255,0));
}

.td-services-slider{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 290px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.td-services-slider.is-dragging{
    cursor: grabbing;
    user-select: none;
}

.td-services-slider.is-dragging .td-service-slide,
.td-services-slider.is-dragging .td-service-slide *{
    user-select: none;
}

.td-services-slider::-webkit-scrollbar{
    height: 10px;
}
.td-services-slider::-webkit-scrollbar-track{
    background: rgba(0,0,0,0.05);
    border-radius: 999px;
}
.td-services-slider::-webkit-scrollbar-thumb{
    background: rgba(47,73,100,0.22);
    border-radius: 999px;
}
.td-services-slider::-webkit-scrollbar-thumb:hover{
    background: rgba(47,73,100,0.34);
}

.td-service-slide{
    border: 1px solid rgba(56,64,75,0.10);
    background: #ffffff;
    border-radius: 22px;
    padding: 12px;
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 120px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.05);
    scroll-snap-align: start;
    transition: all 0.18s ease;
}

.td-service-slide:hover{
    transform: translateY(-3px);
    border-color: rgba(47,73,100,0.22);
    box-shadow: 0 16px 28px rgba(15,23,42,0.09);
}

.td-service-slide.is-active{
    border-color: rgba(47,73,100,0.28);
    box-shadow: 0 18px 32px rgba(15,23,42,0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f1f8fb 100%);
}

.td-service-slide__thumb-wrap{
    flex: 0 0 82px;
}

.td-service-slide__thumb{
    width: 82px;
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    background: #dde3ea;
}

.td-service-slide__body{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.td-service-slide__title{
    display: block;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 800;
    color: #2f4964;
}

.td-service-slide__text{
    display: block;
    font-size: 0.89rem;
    line-height: 1.45;
    color: rgba(56,64,75,0.72);
    font-weight: 500;
}

@media (max-width: 1199.98px){
    .td-services-flow__active p{
        max-width: none;
    }
}

@media (max-width: 767.98px){
    
    .td-services-slider-wrap::before,
    .td-services-slider-wrap::after{
        width: 24px;
    }
    
    .td-services-curved-top-team{
        height: 110px;
    }

    .td-services-curved-section{
        padding-bottom: 38px;
    }

    .td-services-panel{
        padding: 0;
    }

    .td-services-flow__image-wrap,
    .td-services-flow__image{
        min-height: 320px;
    }

    .td-services-flow__image-wrap{
        border-radius: 24px;
    }

    .td-services-flow__arrow{
        width: 42px;
        height: 42px;
    }

    .td-services-flow__arrow--prev{
        left: 12px;
    }

    .td-services-flow__arrow--next{
        right: 12px;
    }

    .td-services-flow__heading{
        font-size: 2.4rem;
    }

    .td-services-flow__active h4{
        font-size: 1.35rem;
    }

    .td-services-flow__active p{
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .td-services-slider{
        grid-auto-columns: minmax(240px, 260px);
        gap: 14px;
        cursor: grab;
    }

    .td-service-slide{
        min-height: 112px;
        padding: 10px;
        border-radius: 18px;
    }

    .td-service-slide__thumb-wrap{
        flex: 0 0 72px;
    }

    .td-service-slide__thumb{
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }

    .td-service-slide__title{
        font-size: 0.93rem;
    }

    .td-service-slide__text{
        font-size: 0.84rem;
    }
}




/* Service cards + hover */
.td-service-card{
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 14px;
    background: #fff;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.td-service-card .thumb{
    width: 74px;
    height: 74px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--td-border);
    background: #f3f4f6;
    transition: transform 0.18s ease;
}
.td-service-card h4{
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 900;
    color: var(--td-text);
}
.td-service-card p{
    margin: 0;
    color: var(--td-muted);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.td-service-card .stretched-link{ color: inherit; }

.td-service-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
    border-color: rgba(41,139,243,0.35);
}
.td-service-card:hover .thumb{
    transform: scale(1.05);
}

/* Other team members separator */
.td-other-wrap{
    margin-top: 0px;
    padding-top: 12px;
    border-top: 1px solid var(--td-border);
    background-color: #f6f8fb;
}
/* Timeline: show ~4 items then scroll */
.td-timeline-scroll{
    max-height: 280px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Make scrollbar look tidy (Chrome/Edge/Safari) */
.td-timeline-scroll::-webkit-scrollbar{
    width: 10px;
}
.td-timeline-scroll::-webkit-scrollbar-track{
    background: rgba(0,0,0,0.04);
    border-radius: 999px;
}
.td-timeline-scroll::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
}
.td-timeline-scroll::-webkit-scrollbar-thumb:hover{
    background: rgba(0,0,0,0.28);
}
.td-main-card{
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 18px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.td-services-flow__mini{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.td-mini-list{
    max-height: 150px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.td-mini-item{
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 0;
    font-size: 0.95rem;
    color: rgba(56,64,75,0.6);
    transition: all 0.18s ease;
}

.td-mini-item:hover,
.td-mini-item.is-active{
    color: #2f4964;
    font-weight: 600;
}

.td-mini-nav{
    border: 0;
    background: transparent;
    color: rgba(56,64,75,0.5);
    padding: 4px;
}

.td-mini-nav:hover{
    color: #2f4964;
}
@media (min-width: 768px){
    .td-main-card{
        padding: 24px;
    }
}