/* Fonts handled via wp_enqueue_style in PHP */

/* --- WRAPPER (Blue BG) --- */
.ids-wrapper {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, #2c5ba3 0%, #1e3c66 100%);
    /* Adjusted gradient center to left */
    font-family: 'Outfit', sans-serif !important;
    color: #fff;
    /* Global White Text Default */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all children inherit the font */
.ids-wrapper * {
    font-family: 'Outfit', sans-serif !important;
}

/* --- SHARED HERO IMAGE (LEFT) --- */
/* Stays on the left side always */
.ids-hero-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 45vw;
    /* Fixed width (~45%) */
    height: 100vh;
    background-size: cover;
    background-position: center top;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 20;
    transition: width 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.ids-wrapper.ids-mode-active .ids-hero-image {
    width: 40vw;
    /* Slight shrink to active sidebar width? Or keep same? Let's go 40vw for sidebar std */
}

.ids-panel-overlay {
    position: absolute;
    bottom: 50px;
    left: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 1s;
}

.ids-wrapper.ids-mode-active .ids-panel-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ids-panel-name {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 48, 135, 0.8);
    padding: 10px 25px;
    border-radius: 4px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* --- LANDING LAYER (RIGHT) --- */
.ids-landing-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 55vw;
    /* Occupy Right Side */
    height: 100%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ids-wrapper.ids-mode-active .ids-landing-layer {
    opacity: 0;
    pointer-events: none;
    /* transform: translateY(-20px);  Optional fade up */
}

/* Landing Content Centered in Right Panel */
.ids-landing-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally in right panel */
    padding: 0 50px;
    width: 100%;
}

.ids-landing-text {
    max-width: 600px;
    text-align: left;
    /* Text aligns left within its block, block is centered */
}

.ids-landing-pre {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 1;
    display: block;
    text-transform: lowercase;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff !important;
}

.ids-landing-name {
    font-size: 5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #fff !important;
}

.ids-landing-title {
    font-size: 3.5rem;
    font-weight: 300;
    opacity: 1;
    margin: 0 0 50px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #fff !important;
}

#ids-enter-site-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.ids-mobile-helper {
    display: none;
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.8;
    margin-top: 15px;
    font-weight: 300;
    line-height: 1.4;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

#ids-enter-site-btn:hover {
    background: #fff;
    color: #003087;
    border-color: #fff;
}

/* --- BOTTOM BLOCKS (Full Width, on top of everything) --- */
.ids-info-blocks {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55vw;
    /* Match Right Panel Width */
    height: 200px;
    /* Taller */
    display: flex;
    z-index: 35;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.ids-wrapper.ids-mode-active .ids-info-blocks {
    transform: translateY(100%);
    /* Slide Down/Out */
}

.ids-info-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
}

.ids-info-block.white {
    background: #F8F9FA;
    color: #231f20;
}

.ids-info-block.blue {
    background: #151e32;
    color: #fff;
}

a.ids-info-block {
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

a.ids-info-block:hover {
    transform: translateY(-3px) !important;
    filter: brightness(110%);
}

.ids-ib-icon img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Larger icon for featured (blue) block */
.ids-info-block.blue .ids-ib-icon img {
    height: 80px;
}

.ids-ib-text {
    display: flex;
    flex-direction: column;
}

.ids-ib-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: lowercase;
    margin-bottom: 5px;
}

.ids-ib-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}


/* --- MAIN APP CONTENT (Replacing Landing on Right) --- */
.ids-main-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vw;
    /* Take up 60% (Hero moves to 40%) */
    height: 100%;
    z-index: 10;
    /* Below Landing initially */
    background: #F8F9FA;
    opacity: 0;
    pointer-events: none;
    /* No slide, just fade in? Or slide up? */
    /* Let's do a subtle scale/fade to feel like it's taking place */
    transform: scale(0.95);
    transition: all 0.8s ease 0.4s;
    /* Delay slightly */
}

.ids-wrapper.ids-mode-active .ids-main-content {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.ids-right-panel-inner {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 0;
    /* Removed padding to allow full-width sticky header */
    display: flex;
    flex-direction: column;
    color: #333;
    /* Reset text color for app content */
    position: relative;
}

#ids-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 1;
    color: #768692;
    cursor: pointer;
    z-index: 200;
    transition: color 0.3s ease, transform 0.3s ease;
}

#ids-close-btn:hover {
    color: #003087;
    transform: rotate(90deg);
}

/* --- 3D Gallery --- */
.ids-coverflow-swiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 80px;
    overflow: hidden;
    perspective: 1200px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 600px;
    /* Much larger */
    height: 400px;
    /* Landscape */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border-radius: 16px;
    /* Deep shadow for pop */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    /* Glass border effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Modern reflection */
    -webkit-box-reflect: below 5px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.2));
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Dim inactive slides for focus */
.swiper-slide:not(.swiper-slide-active) {
    filter: brightness(0.4) saturate(0);
}

.swiper-slide-active {
    filter: brightness(1.1) saturate(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.8);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    /* Slightly less than container to fit border */
}

/* Dark theme for gallery overlay with glassmorphism */
#ids-overlay-content:has(.ids-coverflow-swiper) {
    background: radial-gradient(circle at center, #2c3e50 0%, #1a252f 100%);
    backdrop-filter: blur(20px) saturate(180%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .swiper-slide {
        width: 450px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .swiper-slide {
        width: 300px;
        height: 250px;
    }
}

/* --- NAVIGATION: Suspended Glass Rail (2026 World Class) --- */
.ids-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    /* Connected Rail */
    margin: 0 auto 80px auto;
    /* Increased Padding as requested */
    padding: 5px;
    position: sticky;
    /* Fixed access while scrolling */
    top: 20px;
    z-index: 100;

    /* The Rail Look */
    background: rgba(255, 255, 255, 0.98);
    /* Almost solid to hide scroll content */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 100px;
    /* Full Rail */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Crisp edge */

    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ids-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Nav Item */
.ids-nav-btn {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    /* Bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #95a5a6;
    cursor: pointer;
    padding: 16px 32px;
    /* Generous touch */
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    font-family: 'Outfit', sans-serif;
    position: relative;
    white-space: nowrap;
}

/* Hover State */
.ids-nav-btn:hover {
    color: #4a5c60;
    background: rgba(0, 0, 0, 0.02);
}

/* Active State - High Contrast Pill */
.ids-nav-btn.active {
    color: #fff;
    background: #005EB8;
    box-shadow: 0 8px 30px rgba(0, 94, 184, 0.3);
    transform: scale(1.05);
}

.ids-nav-btn.active:hover {
    color: #fff;
    background: #005EB8;
}

/* Remove old underline */
.ids-nav-btn.active::after {
    display: none;
}

/* --- CONTENT AREA UX (Divi Compatible Card) --- */
.ids-tabs-wrapper {
    position: relative;
    width: 100%;
    /* Create a polished stage for the content */
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    min-height: 500px;
    /* Establishes presence */
    padding: 40px;
    /* Internal breathing room */
    /* Fade In Animation for Content Switch */
    transition: opacity 0.3s ease;
}

/* Ensure Divi Layouts are full width within the padding */
.ids-tab-content {
    animation: fadeUp 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- COPYRIGHT FOOTER (Desktop) --- */
.ids-desktop-footer {
    margin-top: auto;
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    opacity: 0.8;
}

.ids-desktop-footer p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.ids-footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.ids-footer-links a {
    font-size: 0.8rem;
    color: #b0bec5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ids-footer-links a:hover {
    color: #005EB8;
}

/* Mobile Bottom Bar (Hidden Desktop) */
#ids-mobile-bottom-bar,
#ids-mobile-active-header {
    display: none;
}

#ids-mobile-nav-wrapper {
    display: none;
    /* Desktop default */
}

/* Dropdown Container */
#ids-mobile-nav-wrapper {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ids-mobile-nav-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #768692;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ids-mobile-select-container {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ids-mobile-select-container:active {
    transform: scale(0.98);
}

#ids-mobile-nav-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    font-size: 1.1rem;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #003087;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    outline: none;
    height: 100%;
}

.ids-select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #003087;
    border-bottom: 2px solid #003087;
    transform: translateY(-65%) rotate(45deg);
    /* Chevron */
    pointer-events: none;
}


/* --- TABS & CONTENT --- */
.ids-tab-content {
    display: none;
    animation: fadeInSlide 0.5s ease;
}

.ids-tab-content.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ids-tab-heading {
    font-size: 2.2rem;
    color: #005EB8;
    margin-bottom: 30px;
    font-weight: 700;
}

.ids-typing-header {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #231f20;
}

#ids-typing-target {
    color: #005EB8;
}

.ids-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ids-service-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8edee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ids-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 94, 184, 0.15);
    border-color: #005EB8;
}

.ids-service-icon {
    width: 60px;
    height: 60px;
    background-size: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.ids-service-card h4 {
    margin: 0 0 15px 0;
    color: #003087;
    font-size: 1.3rem;
}

.ids-service-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* MAPS */
.ids-map-view {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #eee;
}

/* Responsive */
/* Responsive */
/* --- MOBILE RESPONSIVENESS (Consolidated) --- */
@media (max-width: 900px) {

    /* 1. Hero / Landing Adjustments */
    .ids-hero-image {
        width: 100% !important;
        height: 42vh !important;
        /* Slightly larger */
        left: 0 !important;
        top: 0 !important;
        background-position: center 30% !important;
        /* Move down to show chin */
    }

    .ids-landing-layer {
        top: 42vh;
        width: 100%;
        bottom: 0;
        height: auto !important;
        display: block;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 200px;
        /* Massive buffer for iOS address bar */
        z-index: 2;
    }

    .ids-landing-content {
        display: flex;
        /* Use flex to center vertically */
        flex-direction: column;
        justify-content: center;
        padding: 15px 20px;
        width: 100%;
        min-height: 50%;
        /* visual balance */
        box-sizing: border-box;
    }

    .ids-landing-text {
        padding: 0;
        text-align: center;
        max-width: 100%;
    }

    .ids-landing-pre {
        font-size: 1rem;
        /* Restored size */
        margin-bottom: 5px;
        letter-spacing: 1px;
    }

    .ids-landing-name {
        font-size: 2.6rem;
        /* Larger */
        margin-bottom: 5px;
        line-height: 1.1;
    }

    .ids-landing-title {
        font-size: 1.6rem;
        /* Larger */
        margin-bottom: 15px;
        line-height: 1.2;
    }

    #ids-enter-site-btn {
        padding: 14px 35px;
        font-size: 1.1rem;
        width: auto;
        /* Don't force full width, lets text flow */
        min-width: 220px;
        justify-content: center;
        margin-top: 5px;
    }

    .ids-mobile-helper {
        display: block !important;
        margin-top: 15px;
        font-size: 0.8rem;
        opacity: 0.8;
        line-height: 1.4;
    }

    .ids-info-blocks {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        z-index: 35;
    }

    .ids-info-block {
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        justify-content: flex-start;
        min-height: auto;
    }

    .ids-info-block .ids-ib-icon img {
        height: 35px;
        /* Smaller icons for compact view */
        width: auto;
    }

    .ids-info-block.blue .ids-ib-icon img {
        height: 50px;
    }

    .ids-info-block.blue {
        border-bottom: none;
        padding: 20px 15px;
    }

    .ids-wrapper.ids-mode-active .ids-hero-image {
        display: none !important;
    }

    #ids-close-btn {
        display: none !important;
    }

    /* 2. Mobile App Shell (Overrides Desktop) */
    body,
    html {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100% !important;
        height: 100dvh !important;
        /* Modern Viewport Fix */
        min-height: -webkit-fill-available;
        /* iOS Safari Fix */
    }

    .ids-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 100vw !important;
        overflow: hidden !important;
    }

    .ids-main-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-top: 140px !important;
        padding-bottom: 120px !important;
        box-sizing: border-box;
        z-index: 50;
        background: #F8F9FA;
    }

    /* Header */
    /* DEFAULT HIDDEN on Landing Page (since it is now direct body child) */
    #ids-mobile-active-header {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 110px;
        background: radial-gradient(circle at 30% 30%, #2c5ba3 0%, #1e3c66 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: 15px;

        /* Animation State: Hidden */
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    }

    /* SHOW when sibling wrapper is active */
    /* Changed to Body Class selector to account for nesting */
    body.ids-body-app-active #ids-mobile-active-header {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }


    .ids-mobile-header-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin-top: 10px;
    }

    .ids-mobile-avatar {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .ids-mobile-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.5px;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    #ids-mobile-contact-btn,
    #ids-mobile-home-btn {
        position: absolute;
        top: 55%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }

    #ids-mobile-contact-btn {
        right: 20px;
    }

    #ids-mobile-home-btn {
        left: 20px;
    }


    /* Bottom Bar */
    #ids-mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 80px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 99999;
        align-items: center;
        justify-content: space-around;
        box-sizing: border-box;

        /* Animation State: Hidden */
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    }

    /* SHOW when sibling wrapper is active */
    /* Changed to Body Class selector to account for nesting */
    body.ids-body-app-active #ids-mobile-bottom-bar {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }


    /* Bottom Bar */
    #ids-mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 80px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 99999;
        align-items: center;
        justify-content: space-around;
        box-sizing: border-box;

        /* Animation State: Hidden */
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    }

    /* SHOW when sibling wrapper is active */
    /* Changed to Body Class selector to account for nesting */
    body.ids-body-app-active #ids-mobile-bottom-bar {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Content Tweaks */
    .ids-right-panel-inner {
        padding: 0 !important;
    }

    .ids-tabs-wrapper {
        padding: 20px !important;
        border-radius: 16px;
    }

    .ids-contact-wrapper {
        padding: 0;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ids-contact-welcome h3 {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .ids-contact-type-switch {
        margin: 20px 0;
        background: #F0F2F5;
        padding: 6px;
        border-radius: 16px;
        height: 60px;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .ids-switch-btn {
        font-size: 1.1rem;
        z-index: 5;
    }

    .ids-switch-bg {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .ids-fields-group {
        background: transparent;
        border: none;
        gap: 20px;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .ids-form-row {
        background: #FFFFFF;
        border-radius: 20px;
        margin: 0;
        padding: 0;
        height: 75px;
        display: flex;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        border: 2px solid transparent;
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .ids-form-row:focus-within {
        border-color: #005EB8;
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 94, 184, 0.15);
    }

    .ids-row-icon {
        width: 60px;
        height: 100%;
        color: #005EB8;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 94, 184, 0.04);
        border-radius: 20px 0 0 20px;
        flex-shrink: 0;
    }

    .ids-row-icon svg {
        width: 28px;
        height: 28px;
    }

    .ids-form-row input,
    .ids-form-row textarea {
        height: 100%;
        text-align: center;
        font-size: 1.3rem !important;
        font-weight: 500;
        padding: 0 15px 0 0;
        border-radius: 0 20px 20px 0;
        color: #111;
        width: 100%;
    }

    .ids-form-row textarea {
        text-align: left;
        padding: 20px;
        min-height: 150px;
        font-size: 1.2rem !important;
    }

    .ids-form-row:has(textarea) {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .ids-form-row:has(textarea) .ids-row-icon {
        width: 100%;
        height: 50px;
        border-radius: 20px 20px 0 0;
        background: #F8FAFB;
    }

    .ids-form-row:has(textarea) textarea {
        border-radius: 0 0 20px 20px;
        text-align: center;
    }

    .ids-submit-btn {
        width: 100%;
        margin: 30px 0;
        padding: 22px;
        border-radius: 25px;
        font-size: 1.4rem;
        font-weight: 800;
        box-shadow: 0 15px 40px rgba(0, 48, 135, 0.4);
    }

    /* Hide Desktop Elements */
    .ids-custom-bar,
    #ids-desktop-glass-menu,
    .ids-desktop-footer {
        display: none !important;
    }

    .ids-mobile-bar-item {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: #999;
        transition: all 0.2s ease;
        padding-top: 5px;
        outline: none;
        /* Prevent focus outline */
    }

    /* Prevent blue flash on focus unless active */
    .ids-mobile-bar-item:focus {
        color: #999;
        outline: none;
    }

    .ids-mobile-bar-item.ids-mobile-active,
    .ids-mobile-bar-item.ids-mobile-active:focus {
        color: #003087 !important;
        /* Force override */
    }

    .ids-bar-icon svg {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .ids-mobile-bar-item.ids-mobile-active .ids-bar-icon svg {
        transform: translateY(-2px) scale(1.1);
    }

    .ids-bar-label {
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
}

/* --- OVERLAY STYLES (Global) --- */
#ids-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Mobile fix */
    background: #fff;
    z-index: 100000;
    /* Higher than everything */
    transform: translateY(101%);
    /* Start hidden */
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

#ids-overlay-container.active {
    transform: translateY(0);
}

#ids-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 50px;
    line-height: 1;
    color: #003087;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
}

#ids-overlay-close:hover {
    transform: rotate(90deg);
    color: #e63946;
}

#ids-overlay-content {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    /* Ensure it fills */
}

/* Loading State */
.ids-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #999;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Make overlay trigger cursor interact */
.ids-overlay-trigger {
    cursor: pointer;
}

/* --- CONTACT FORM STYLES --- */
.ids-contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Type Switcher */
.ids-contact-type-switch {
    display: flex;
    position: relative;
    background: #E8EDEE;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
    user-select: none;
}

.ids-contact-type-switch input {
    display: none;
}

.ids-switch-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    z-index: 2;
    cursor: pointer;
    font-weight: 600;
    color: #768692;
    transition: color 0.3s ease;
}

.ids-switch-bg {
    position: absolute;
    width: 50%;
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
    z-index: 1;
    top: 4px;
    left: 4px;
}

#type_private:checked~.ids-switch-bg {
    transform: translateX(100%);
}

#type_nhs:checked+label {
    color: #005EB8;
    /* NHS Blue */
}

#type_private:checked+label {
    color: #2c3e50;
    /* Private Dark */
}

/* Form Fields */
.ids-fields-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ids-form-row {
    position: relative;
}

.ids-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #231f20;
    font-size: 0.95rem;
}

.ids-form-row input,
.ids-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.ids-form-row input:focus,
.ids-form-row textarea:focus {
    border-color: #005EB8;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
    outline: none;
}

.ids-form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.ids-submit-btn {
    background: linear-gradient(135deg, #005EB8 0%, #003087 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    /* Full width submit */
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ids-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 48, 135, 0.3);
}

.ids-submit-btn:active {
    transform: translateY(1px);
}

/* Ensure Content Expands (Global) */
.ids-tabs-wrapper {
    height: auto !important;
    min-height: 500px;
    overflow: visible !important;
    display: block;
    padding-bottom: 60px;
    /* Extra buffer */
    box-sizing: border-box;
    flex-shrink: 0 !important;
}

.ids-tab-content {
    display: none;
    /* Hidden by default */
    width: 100%;
    height: auto !important;
    /* Force expansion */
    box-sizing: border-box;
}

.ids-tab-content.ids-tab-active {
    display: block;
    /* Shown when active */
    animation: fadeUp 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
}

/* --- TESTIMONIALS (Hyper-Premium Design 2026) --- */
.ids-testimonials-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0 80px 0;
}

.ids-testimonials-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.ids-testimonials-header h3 {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #0f172a 0%, #003087 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Subtle glowing underline */
.ids-testimonials-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #005EB8, #00C6FF);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 198, 255, 0.4);
}

.ids-testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ids-testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    /* Cinematic Shadow */
    box-shadow:
        0 20px 60px -10px rgba(0, 48, 135, 0.08),
        0 10px 20px -5px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: flex-start;
    gap: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

/* Hover Life: Lift & Glow */
.ids-testimonial-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 40px 90px -20px rgba(0, 48, 135, 0.2),
        /* Deeper shadow */
        0 20px 40px -10px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.98);
}

/* Icon (Surgical Patient) - Sophisticated */
.ids-testi-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1effe 100%);
    border-radius: 20px;
    /* Sophisticated Curve */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #005EB8;
    box-shadow:
        0 15px 35px rgba(0, 94, 184, 0.15),
        inset 0 -2px 5px rgba(0, 0, 0, 0.02),
        inset 0 2px 5px rgba(255, 255, 255, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Removed Green Tick per user request */

.ids-testi-body {
    flex: 1;
    position: relative;
    padding-top: 10px;
}

.ids-testi-quote-mark {
    position: absolute;
    top: -50px;
    left: -20px;
    font-size: 130px;
    line-height: 1;
    font-family: "Georgia", serif;
    background: linear-gradient(180deg, rgba(0, 94, 184, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    /* Stronger Gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.ids-testi-text {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1e293b;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: -0.2px;
}

/* Bottom Meta Row */
.ids-testi-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ids-testi-author {
    font-weight: 800;
    font-size: 1.2rem;
    /* Larger */
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

/* Role Label (Upgraded to Gold/Premium Badge) */
.ids-testi-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    border-radius: 30px;
    /* Fully Rounded */
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsiveness (App Style) */
@media (max-width: 768px) {
    .ids-testimonials-wrapper {
        padding: 40px 20px;
        /* Reduced side padding */
    }

    .ids-testimonials-header h3 {
        font-size: 2rem;
    }

    .ids-testimonial-card {
        flex-direction: column;
        align-items: center;
        /* Center everything */
        text-align: center;
        padding: 40px 25px 30px 25px;
        gap: 20px;
        border-radius: 24px;
    }

    .ids-testi-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }

    .ids-testi-meta {
        flex-direction: column;
        gap: 10px;
        border-top: none;
        padding-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .ids-testi-author {
        justify-content: center;
        font-size: 1.3rem;
    }

    .ids-testi-role {
        font-size: 0.7rem;
        background: transparent;
        padding: 0;
        color: #94a3b8;
        border: none;
        box-shadow: none;
    }

    .ids-testi-quote-mark {
        left: 50%;
        transform: translateX(-50%);
        top: -40px;
        font-size: 100px;
    }

    .ids-testi-text {
        font-size: 1.1rem;
    }
}

/* --- DESKTOP NAVIGATION (Sticky & Premium) --- */
/* --- DESKTOP NAVIGATION (2026 GLASSMOPHISM) --- */
@media (min-width: 769px) {
    #ids-desktop-glass-menu {
        position: sticky;
        top: 20px;
        z-index: 1000;

        /* FIX: Force Centered Pill */
        width: fit-content !important;
        max-width: 90% !important;
        margin: 0 auto 40px auto !important;
        align-self: center !important;
        flex-shrink: 0 !important;

        padding: 8px 12px;
        /* Slightly more padding */
        background: rgba(255, 255, 255, 0.9);
        /* Slightly more opaque */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 100px;

        display: flex !important;
        align-items: center;
        justify-content: center;
        /* Center items */
        gap: 8px;
        /* Balanced gap */

        box-shadow:
            0 10px 40px -10px rgba(0, 48, 135, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.6) inset;

        transition: all 0.3s ease;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #ids-desktop-glass-menu::-webkit-scrollbar {
        display: none;
    }
}

/* Desktop Icon Buttons - NUCLEAR RESET */
/* Icons (Home/Contact) */
.ids-glass-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    flex-shrink: 0 !important;
}

.ids-glass-icon-btn:hover {
    background: rgba(0, 48, 135, 0.1);
    color: #003087;
    transform: rotate(10deg) scale(1.1);
    /* Playful */
}

/* Force SVG Size */
.ids-glass-icon-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block !important;
}

/* Prevent text buttons from squishing too - NUCLEAR RESET */
.ids-nav-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    flex: 0 0 auto !important;
    /* Force non-shrink */
    white-space: nowrap !important;
    font-size: 14px !important;
    /* Enforce size */
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.2px !important;
    padding: 8px 12px !important;
    /* Explicit padding */
    margin: 0 !important;
    line-height: normal !important;
    height: auto !important;
    color: #64748b !important;

    /* DIV Compatibility */
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Active State (Renamed) */
.ids-nav-btn.ids-nav-active {
    font-weight: 700 !important;
    color: #003087 !important;
}

.ids-desktop-icon-btn:hover {
    color: #003087;
    transform: scale(1.1);
}

/* Push Contact Icon to the far right */
.ids-contact-trigger {
    margin-left: 0;
    /* REMOVED auto margin to prevent fall-off */
}

/* Hide the main Close Button on Desktop since we have Home Icon now */
@media (min-width: 769px) {
    #ids-close-btn {
        display: none !important;
    }
}



/* Restore Content Padding & Fix Mobile Squashing */
.ids-tab-content {
    width: 100%;
    /* Ensure full width */
    box-sizing: border-box;
    /* Include padding in width */
}

/* Mobile First Padding */
@media (max-width: 768px) {
    .ids-tab-content {
        padding: 0 20px 80px 20px;
        /* Much wider on mobile */
    }
}

/* Desktop Padding - Reduced from 70px to 40px per user feedback */
@media (min-width: 769px) {
    .ids-tab-content {
        padding: 0 40px 80px 40px;
        /* Balanced desktop padding */
    }
}

/* Adjust Full Width Components to ignore padding if needed? No, user wants consistent look usually. */
/* But Coverflow needs full width? */
.ids-coverflow-swiper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 -70px;
    /* Negative margin to stretch full width */
    width: calc(100% + 140px) !important;
}

/* Testimonials Wrapper Adjustment */
.ids-testimonials-wrapper {
    /* Inherits padding from tab content nicely */
}

/* --- 2026 GLASS BUTTONS (Appended) --- */
/* Glass Text Buttons (Divs) */
.ids-glass-btn {
    appearance: none !important;
    border: none !important;
    background: transparent;
    padding: 10px 20px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
}

/* Hover Effect: Soft Cloud */
.ids-glass-btn:hover {
    background: rgba(0, 48, 135, 0.05);
    color: #003087 !important;
    transform: translateY(-1px);
}

/* Active State: Deep Blue Pill */
.ids-glass-btn.ids-glass-active {
    background: #003087;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.3);
    transform: scale(1.02);
}

/* Contact Trigger: Special treatment */
.ids-contact-trigger {
    margin-left: auto !important;
    /* Push to right edge */
    background: rgba(0, 48, 135, 0.03);
}

.ids-contact-trigger:hover {
    background: rgba(0, 48, 135, 0.1);
}

/* --- PUBLICATIONS FEATURE (2026 UX) --- */
.ids-publications-wrapper {
    width: 100%;
    margin-top: 10px;
    padding-bottom: 60px;
}

/* Match Testimonials Header EXACTLY (Center, Gradient Text, Underline) */
.ids-publications-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.ids-publications-header h3 {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #0f172a 0%, #003087 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Subtle glowing underline */
.ids-publications-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #005EB8, #00C6FF);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 198, 255, 0.4);
}

/* Tools Container (Search + Filter) */
/* Tools Container (Search + Filter) - Premium Glass Panel */
.ids-pub-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px -10px rgba(0, 48, 135, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box - Floating Pill */
.ids-pub-search-box {
    position: relative;
    flex: 1;
    min-width: 320px;
}

.ids-pub-search-box input {
    width: 100%;
    padding: 18px 24px 18px 58px;
    border-radius: 50px;
    border: 2px solid transparent;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    background: rgba(241, 245, 249, 0.6);
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ids-pub-search-box input:focus {
    outline: none;
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.15);
}

.ids-pub-search-box input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.ids-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
    transition: color 0.3s ease;
}

.ids-pub-search-box input:focus+.ids-search-icon,
.ids-pub-search-box input:focus~.ids-search-icon {
    color: #3b82f6;
}

/* Filter Tabs - iOS Segmented Control Style */
/* Filter Tabs - Smart Chip Cloud (Bespoke) */
.ids-pub-filters {
    display: flex;
    flex-wrap: wrap;
    /* Cloud layout */
    justify-content: center;
    gap: 12px;
    background: transparent;
    padding: 0;
    border: none;
    max-width: 100%;
}

.ids-pub-filter {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.ids-pub-filter:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    color: #334155;
}

.ids-pub-filter.active {
    background: linear-gradient(135deg, #005EB8 0%, #003087 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 48, 135, 0.3);
    transform: translateY(-2px) scale(1.05);
}

/* Skeleton Loader (Shimmer) */
.ids-skeleton-item {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.ids-skeleton-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #e2e8f0;
    animation: idsShimmer 1.5s infinite linear;
}

.ids-skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ids-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: #e2e8f0;
    animation: idsShimmer 1.5s infinite linear;
}

@keyframes idsShimmer {
    0% {
        background-color: #e2e8f0;
    }

    50% {
        background-color: #f1f5f9;
    }

    100% {
        background-color: #e2e8f0;
    }
}

/* Results List */
.ids-pub-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 200px;
}

/* Loader */
.ids-pub-loader {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 40px;
    animation: fadePulse 1.5s infinite;
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Publication Item */
.ids-pub-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.4s ease forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ids-pub-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: #005EB8;
}

/* Icon */
.ids-pub-icon {
    width: 60px;
    height: 60px;
    background: #f0f9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #005EB8;
    flex-shrink: 0;
}

.ids-pub-icon-svg {
    width: 30px;
    height: 30px;
}

/* Info */
.ids-pub-info {
    flex: 1;
}

.ids-pub-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.ids-pub-meta {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.ids-pub-type {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

/* Link Button */
.ids-pub-link-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #005EB8;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ids-pub-link-btn:hover {
    background: #005EB8;
    color: #fff;
    border-color: #005EB8;
}

/* No Results */
.ids-no-results {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 16px;
    color: #64748b;
}

.ids-no-results p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.ids-rg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #005EB8 0%, #003087 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ids-rg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.3);
    color: #fff;
}

.ids-rg-icon {
    font-weight: 900;
    background: #fff;
    color: #003087;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ids-publications-header h3 {
        font-size: 2rem;
    }

    .ids-pub-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .ids-pub-filters {
        order: 2;
        /* Put filters below search on mobile */
    }

    .ids-pub-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .ids-pub-icon {
        margin-bottom: 15px;
    }

    .ids-pub-link-btn {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}

/* --- 3D Flipbook Overlay --- */
#ids-flipbook-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#ids-flipbook-overlay.active {
    display: flex;
    opacity: 1;
}

.ids-flipbook-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
}

.ids-flipbook-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#ids-flipbook-container {
    width: 90vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1500px;
}

/* StPageFlip Elements */
.stf__wrapper {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ids-book-page {
    background-color: white;
    width: 100%;
    height: 100%;
}

.ids-pdf-loader {
    position: absolute;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    display: none;
}

/* --- Flipbook Controls Refined --- */
.ids-flipbook-prev,
.ids-flipbook-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ids-flipbook-prev {
    left: 40px;
}

.ids-flipbook-next {
    right: 40px;
}

.ids-flipbook-prev:hover,
.ids-flipbook-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.ids-flipbook-prev svg,
.ids-flipbook-next svg {
    width: 30px;
    height: 30px;
}

.ids-flipbook-mobile-close {
    display: none;
    position: absolute;
    top: 40px;
    /* Moved to TOP per user request */
    left: 50%;
    transform: translateX(-50%);
    background: #FF4444;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100001;
}

@media (max-width: 768px) {

    /* --- Immersive Mode (Hide UI) --- */
    body.ids-mobile-immersive #ids-mobile-active-header,
    body.ids-mobile-immersive #ids-mobile-bottom-bar {
        display: none !important;
    }

    body.ids-mobile-immersive #ids-flipbook-overlay {
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999999;
        /* Above everything */
        background: rgba(0, 0, 0, 0.95);
        padding: 0;
    }

    body.ids-mobile-immersive #ids-flipbook-container {
        height: 80vh;
        /* Maximize height */
        margin-top: 60px;
        /* Space for top button */
    }

    .ids-flipbook-prev,
    .ids-flipbook-next {
        display: flex;
        /* Show arrows on mobile too */
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.3);
    }

    .ids-flipbook-prev {
        left: 10px;
    }

    .ids-flipbook-next {
        right: 10px;
    }

    .ids-flipbook-mobile-close {
        display: block;
        top: 20px;
        width: 80%;
        /* Easy to hit */
        text-align: center;
        background: #ff4444;
        box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    }

    .ids-flipbook-close {
        display: none;
    }
}

/* --- Bespoke Services Module --- */
.ids-services-grid {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.ids-services-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

/* Match Testimonials Header Style Exactly */
.ids-services-title {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #0f172a 0%, #003087 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    margin-bottom: 0;
    /* Margin handled by header wrapper */
}

.ids-services-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #005EB8, #00C6FF);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 198, 255, 0.4);
}

.ids-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    text-align: left;
    /* Reset text align for cards */
}

.ids-service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 48, 135, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ids-service-card::before {
    /* Top Accent Line */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color, #003087);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ids-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ids-service-card:hover::before {
    transform: scaleX(1);
}

.ids-service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ids-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ids-service-heading {
    font-size: 22px;
    font-weight: 700;
    color: #003087;
    margin: 0 0 15px 0;
}

.ids-service-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.ids-service-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color, #003087);
    text-decoration: none;
    transition: margin-left 0.3s ease;
}

.ids-service-link:hover {
    margin-left: 5px;
}

/* Watermark Tick */
.ids-service-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    color: var(--accent-color, #003087);
    opacity: 0.05;
    transform: rotate(-10deg);
    pointer-events: none;
    transition: transform 0.4s ease;
}

.ids-service-card:hover .ids-service-watermark {
    transform: rotate(0) scale(1.1);
    opacity: 0.1;
}

@media (max-width: 768px) {
    .ids-services-list {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        padding: 0;
    }

    .ids-services-title {
        font-size: 28px;
    }
}

/* --- BESPOKE ABOUT TAB (2026 UX) --- */
.ids-about-bespoke-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 80px 0;
}

/* 1. Bespoke Title Style (Matching Testimonials/Publications) */
.ids-about-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ids-about-header h3 {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1.2px;
    color: #003087;
    /* Brand Navy */
    display: inline-block;
    position: relative;
    z-index: 2;
    margin: 0;
    line-height: 1.1;
}

.ids-about-header::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: #003087;
    /* Brand Navy */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.2);
}

/* 2. Main Blurb Box - Premium Glass/Paper Feel */
.ids-about-blurb-box {
    background: #ffffff;
    padding: 50px;
    border-radius: 30px;
    box-shadow:
        0 20px 60px -10px rgba(0, 48, 135, 0.05),
        0 10px 20px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 50px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #334155;
    position: relative;
    overflow: hidden;
}

.ids-about-blurb-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #003087;
    /* Brand Navy */
    opacity: 0.9;
}

/* 2b. LED Highlight Boxes (Under Blurb) */
.ids-about-highlights-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.ids-about-highlight-box {
    position: relative;
    padding: 3px;
    /* Border thickness */
    border-radius: 24px;
    overflow: hidden;
    background: #f1f5f9;
    transition: transform 0.3s ease;
    display: flex;
}

.ids-about-highlight-box:hover {
    transform: translateY(-5px);
}

/* Rotating LED Border Animation */
.ids-highlight-led-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 150deg,
            #003087 180deg,
            #005EB8 210deg,
            transparent 240deg,
            transparent 360deg);
    animation: idsRotateLED 3s linear infinite;
    z-index: 0;
}

@keyframes idsRotateLED {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ids-highlight-content {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100%;
    padding: 35px 25px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.ids-highlight-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 48, 135, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003087;
}

.ids-highlight-icon svg {
    width: 32px;
    height: 32px;
}

.ids-highlight-text {
    display: flex;
    flex-direction: column;
}

.ids-highlight-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.ids-highlight-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #003087;
    line-height: 1.2;
}

/* 3. Mini Info Grid (2x2 Desktop, 1x4 Mobile) */
.ids-about-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.ids-about-mini-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0, 48, 135, 0.05);
    box-shadow: 0 10px 30px rgba(0, 48, 135, 0.03);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
}

.ids-about-mini-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 48, 135, 0.1);
    border-color: #003087;
}

.ids-about-mini-icon {
    width: 65px;
    height: 65px;
    background: rgba(0, 48, 135, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003087;
    flex-shrink: 0;
}

.ids-about-mini-icon svg {
    width: 32px;
    height: 32px;
}

.ids-about-mini-text {
    display: flex;
    flex-direction: column;
}

.ids-about-mini-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.ids-about-mini-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* 4. Special Interest Boxes (Vertical Stack for High Content Capacity) */
.ids-about-interests {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ids-about-interest-box {
    background: #fff;
    padding: 50px;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0, 48, 135, 0.04);
    border: 1px solid rgba(0, 48, 135, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.ids-about-interest-box:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 48, 135, 0.08);
}

.ids-about-interest-box h4 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #003087;
    position: relative;
    padding-bottom: 12px;
}

.ids-about-interest-box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #003087;
    border-radius: 2px;
}

.ids-interest-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.ids-about-interest-box.training {
    background: linear-gradient(to bottom right, #ffffff 0%, #f8fafc 100%);
}

/* --- MOBILE RESPONSIVENESS (About Tab) --- */
@media (max-width: 768px) {
    .ids-about-bespoke-wrapper {
        padding: 40px 10px;
    }

    .ids-about-header h3 {
        font-size: 2.1rem;
    }

    .ids-about-blurb-box {
        padding: 30px 25px;
        font-size: 1.1rem;
        border-radius: 20px;
        margin-bottom: 30px;
    }

    .ids-about-highlights-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ids-about-mini-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ids-about-mini-box {
        padding: 20px;
    }

    .ids-about-interests {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ids-about-interest-box {
        padding: 30px 25px;
    }
}