/*
Theme Name: CDEM
Theme URI: https://www.mdcreations.lk/
Template: hello-elementor
Author: MD Creations
Author URI: https://www.mdcreations.lk/
Version: 1.0.1
*/

/* --- 1. VARIABLES --- */
:root {
    /* BRAND COLORS */
    --cdem-primary: #0072bc;
    /* Brand Blue */
    --cdem-secondary: #ce161d;
    /* Brand Red */
    --cdem-primary-dark: #004494;
    /* Darker Blue for Hovers */

    /* NEUTRALS */
    --cdem-dark: #333333;
    --cdem-light: #f4f6f8;
    --cdem-white: #ffffff;
    --cdem-border: #eeeeee;

    /* DIMENSIONS */
    --nav-width-mobile: 300px;
}

/* --- 2. RESET (Forces Bullets Off) --- */
.cdem-nav ul,
.cdem-nav li,
.sub-menu,
.mega-grid {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- 3. BASE HEADER LAYOUT --- */
.cdem-header {
    background: var(--cdem-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 999;
    font-family: sans-serif;
    /* Optional: Inherit font */
}

.cdem-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 0;
}

/* LOGO FIX (Large Size) */
.cdem-logo img {
    height: auto;
    max-height: 90px;
    /* Increased Size */
    width: auto;
    display: block;
}

.cdem-logo {
    flex-shrink: 0;
    margin-right: 20px;
}

/* --- 3.1 TOP HEADER SECTION --- */
.cdem-header-top {
    background: var(--cdem-white);
    position: relative;
    z-index: 1001;
}

.cdem-header-top-container {
    padding: 12px 0;
}

.cdem-header-top-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cdem-top-search {
    display: flex;
    align-items: center;
    width: 360px;
    max-width: 450px;
    flex-grow: 1;
}

.cdem-top-search form,
.cdem-top-search .is-search-form,
.cdem-top-search div {
    width: 100%;
    margin: 0;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.cdem-top-search label {
    width: 100%;
    margin: 0;
    display: block;
}

.cdem-top-search input[type="search"],
.cdem-top-search input[type="text"],
.cdem-top-search .is-search-input {
    border-radius: 50px !important;
    border: 2px solid #cbd5e1 !important;
    padding: 11px 52px 11px 20px !important;
    font-size: 14.5px !important;
    height: 44px !important;
    width: 100% !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
}

.cdem-top-search input[type="search"]:focus,
.cdem-top-search input[type="text"]:focus,
.cdem-top-search .is-search-input:focus {
    border-color: var(--cdem-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 114, 188, 0.15) !important;
    outline: none !important;
}

/* Force Ivory Search Button Styling */
.cdem-top-search button,
.cdem-top-search input[type="submit"],
.cdem-top-search .is-search-submit,
.cdem-top-search .is-search-icon {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 36px !important;
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: var(--cdem-primary) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 114, 188, 0.25) !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.cdem-top-search button:hover,
.cdem-top-search input[type="submit"]:hover,
.cdem-top-search .is-search-submit:hover,
.cdem-top-search .is-search-icon:hover {
    background: var(--cdem-secondary) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

/* Ensure ALL text, icon font characters, and pseudo-elements are white and visible */
.cdem-top-search button,
.cdem-top-search button *,
.cdem-top-search input[type="submit"],
.cdem-top-search .is-search-submit,
.cdem-top-search .is-search-submit *,
.cdem-top-search .is-search-icon,
.cdem-top-search .is-search-icon *,
.cdem-top-search button::before,
.cdem-top-search button::after,
.cdem-top-search .is-search-submit::before,
.cdem-top-search .is-search-submit::after,
.cdem-top-search .is-search-icon::before,
.cdem-top-search .is-search-icon::after {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* For SVG Icons inside the button */
.cdem-top-search button svg,
.cdem-top-search .is-search-submit svg,
.cdem-top-search .is-search-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 auto !important;
}

/* Target SVG internal shapes (paths, circles, lines, polygons) properly */
.cdem-top-search button svg path,
.cdem-top-search button svg g,
.cdem-top-search button svg circle,
.cdem-top-search button svg line,
.cdem-top-search button svg polygon,
.cdem-top-search button svg polyline,
.cdem-top-search .is-search-submit svg path,
.cdem-top-search .is-search-submit svg g,
.cdem-top-search .is-search-submit svg circle,
.cdem-top-search .is-search-submit svg line,
.cdem-top-search .is-search-submit svg polygon,
.cdem-top-search .is-search-submit svg polyline,
.cdem-top-search .is-search-icon svg path,
.cdem-top-search .is-search-icon svg g,
.cdem-top-search .is-search-icon svg circle,
.cdem-top-search .is-search-icon svg line,
.cdem-top-search .is-search-icon svg polygon,
.cdem-top-search .is-search-icon svg polyline {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* If the path is solid-filled (not none), fill it with white */
.cdem-top-search button svg path:not([fill="none"]),
.cdem-top-search button svg g:not([fill="none"]),
.cdem-top-search button svg circle:not([fill="none"]),
.cdem-top-search button svg polygon:not([fill="none"]),
.cdem-top-search .is-search-submit svg path:not([fill="none"]),
.cdem-top-search .is-search-submit svg g:not([fill="none"]),
.cdem-top-search .is-search-submit svg circle:not([fill="none"]),
.cdem-top-search .is-search-submit svg polygon:not([fill="none"]),
.cdem-top-search .is-search-icon svg path:not([fill="none"]),
.cdem-top-search .is-search-icon svg g:not([fill="none"]),
.cdem-top-search .is-search-icon svg circle:not([fill="none"]),
.cdem-top-search .is-search-icon svg polygon:not([fill="none"]) {
    fill: #ffffff !important;
}

/* If the path explicitly has fill="none", keep fill: none so outline doesn't turn into a block */
.cdem-top-search button svg path[fill="none"],
.cdem-top-search .is-search-submit svg path[fill="none"],
.cdem-top-search .is-search-icon svg path[fill="none"] {
    fill: none !important;
}

.cdem-top-hotline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cdem-top-hotline .hotline-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f7ff;
    color: var(--cdem-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid #dbeafe;
    box-shadow: 0 2px 6px rgba(0, 114, 188, 0.1);
}

.cdem-top-hotline .hotline-details {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.cdem-top-hotline .hotline-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    font-weight: 600;
}

.cdem-top-hotline .hotline-number {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cdem-top-hotline .hotline-number:hover {
    color: var(--cdem-primary);
}

/* Book Appointment Top CTA */
.btn-top-appointment {
    background: var(--cdem-secondary);
    color: #ffffff !important;
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 4px 12px rgba(206, 22, 29, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-top-appointment:hover {
    background: #b81017;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(206, 22, 29, 0.35);
}

/* --- 3.2 BOTTOM HEADER SECTION (NAV BAR) --- */
.cdem-header-bottom {
    background: linear-gradient(135deg, #005691 0%, #003865 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    z-index: 99999 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cdem-header-bottom-container {
    padding: 0;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* --- 4. ICONS STYLING --- */
.cdem-menu i {
    margin-right: 8px;
    color: var(--cdem-primary);
    /* Blue Icons */
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* --- 5. MOBILE OFF-CANVAS MENU --- */
.cdem-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: var(--nav-width-mobile);
    height: 100vh;
    background: var(--cdem-white);
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cdem-nav.active {
    left: 0;
}

/* Overlay Backdrop */
.cdem-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cdem-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--cdem-light);
    border-bottom: 1px solid var(--cdem-border);
}

.menu-title {
    font-weight: bold;
    font-size: 18px;
    color: var(--cdem-primary);
}

.cdem-close-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: var(--cdem-secondary);
}

/* Mobile Links */
.cdem-menu li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--cdem-dark);
    border-bottom: 1px solid var(--cdem-border);
    font-size: 16px;
    position: relative;
}

/* Mobile Dropdowns (Accordion) */
.sub-menu,
.mega-menu {
    display: none;
    background: #fafafa;
}

.sub-menu li a,
.mega-grid li a {
    padding-left: 35px;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #f1f1f1;
}

/* Mobile Active States */
.dropdown-open>.sub-menu,
.dropdown-open>.mega-menu {
    display: block;
}

.dropdown-open>a {
    color: var(--cdem-primary);
    font-weight: 600;
}

.dropdown-open>a .arrow {
    transform: rotate(180deg);
    color: var(--cdem-secondary);
}

.arrow {
    position: absolute;
    right: 20px;
    top: 15px;
    transition: transform 0.3s;
}

/* --- 6. HAMBURGER ICON (Fixed Color) --- */
.cdem-mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.cdem-mobile-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background-color: var(--cdem-primary);
    /* Blue */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hover: Dark Blue (No Red) */
.cdem-mobile-toggle:hover .bar {
    background-color: var(--cdem-primary-dark) !important;
    transform: scale(1.05);
}

/* --- 7. CONTACT BUTTON VISIBILITY FIX --- */
/* Default (Mobile): Blue Icon */
.btn-contact i {
    color: var(--cdem-primary) !important;
}

/* --- 8. DESKTOP VIEW (Min-Width 1100px) --- */
@media (min-width: 1100px) {

    .cdem-mobile-toggle,
    .mobile-menu-header,
    .cdem-overlay,
    .cdem-mobile-search {
        display: none !important;
    }

    .cdem-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        display: block;
    }

    .cdem-menu {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .cdem-menu>li {
        position: relative;
    }

    /* Desktop Links */
    .cdem-menu>li>a {
        border: none;
        padding: 10px 12px;
        font-size: 15px;
        white-space: nowrap;
        font-weight: 500;
        transition: color 0.3s;
    }

    /* Hover */
    .cdem-menu>li>a:hover {
        color: var(--cdem-primary);
    }

    /* Desktop Dropdowns */
    .sub-menu,
    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--cdem-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 3px solid var(--cdem-primary);
        min-width: 240px;
        padding: 10px 0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
        display: block !important;
    }

    .menu-item-has-children:hover>.sub-menu,
    .menu-item-has-children:hover>.mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Mega Menu Specifics */
    .mega-menu {
        width: 600px;
        padding: 20px !important;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    .menu-item-has-children:hover>.mega-menu {
        transform: translateX(-50%) translateY(0);
    }

    .mega-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 20px;
    }

    .mega-grid li a,
    .sub-menu li a {
        padding: 8px 15px;
        border: none;
        display: block;
    }

    .mega-grid li a:hover,
    .sub-menu li a:hover {
        color: var(--cdem-primary);
        background: var(--cdem-light);
    }

    .arrow {
        position: static;
        margin-left: 5px;
        font-size: 10px;
    }

    /* CTA Button Styles */
    .cta-item {
        margin-left: 10px;
    }

    .btn-contact {
        background: var(--cdem-primary);
        color: #fff !important;
        /* Force White Text on Button */
        padding: 10px 25px !important;
        border-radius: 4px;
        transition: background 0.3s ease;
    }

    /* Contact Button Icon (Desktop Only: White) */
    .btn-contact i {
        color: #fff !important;
    }

    /* Button Hover: Red */
    .btn-contact:hover {
        background: var(--cdem-secondary);
    }

    /* 2-Tier Header Desktop Menu Customizations */
    .cdem-header-bottom .cdem-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cdem-header-bottom .cdem-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        /* Prevent items from hiding or overflowing on smaller monitors */
        margin: 0 auto;
        padding: 0 10px;
    }

    .cdem-header-bottom .cdem-menu>li>a {
        color: #ffffff !important;
        padding: 13px 11px;
        /* Optimized padding so all 10 menu items fit comfortably */
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.1px;
        white-space: nowrap;
        transition: all 0.25s ease;
        display: inline-flex;
        align-items: center;
    }

    .cdem-header-bottom .cdem-menu>li>a i {
        color: rgba(255, 255, 255, 0.85) !important;
        margin-right: 6px;
    }

    .cdem-header-bottom .cdem-menu>li>a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
        border-radius: 4px;
    }

    .cdem-header-bottom .sub-menu li a,
    .cdem-header-bottom .mega-grid li a {
        color: #333333 !important;
        background: transparent !important;
        padding: 10px 15px;
        border-radius: 4px;
    }

    .cdem-header-bottom .sub-menu li a:hover,
    .cdem-header-bottom .mega-grid li a:hover {
        color: var(--cdem-primary) !important;
        background: #f1f5f9 !important;
    }

    .cdem-header-bottom .btn-contact {
        background: #ffffff !important;
        color: #003865 !important;
        font-weight: 700;
        padding: 10px 22px !important;
        border-radius: 50px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .cdem-header-bottom .btn-contact i {
        color: #003865 !important;
    }

    .cdem-header-bottom .btn-contact:hover {
        background: var(--cdem-secondary) !important;
        color: #ffffff !important;
    }

    .cdem-header-bottom .btn-contact:hover i {
        color: #ffffff !important;
    }
}

/* Mobile & Tablet Header Adaptation */
@media (max-width: 1099px) {
    .cdem-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0;
        z-index: 99999 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .cdem-logo img {
        max-height: 55px;
        /* Perfect tablet/mobile size */
    }

    .cdem-header-bottom {
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Hide the bulky text hotline box on mobile/tablet */
    .cdem-top-hotline {
        display: none !important;
    }

    .cdem-header-top-container {
        padding: 12px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .cdem-nav .cdem-menu>li>a {
        color: #333333 !important;
    }

    .cdem-nav .cdem-menu>li>a i {
        color: var(--cdem-primary) !important;
    }

    .cdem-desktop-search {
        display: none !important;
    }

    .mobile-menu-header {
        padding: 12px 18px !important;
    }

    .cdem-mobile-search {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        padding: 0 15px !important;
        border-bottom: 1px solid var(--cdem-border);
        margin: 0 !important;
        background: #f8fafc;
        box-sizing: border-box;
        overflow: hidden !important;
    }

    .cdem-mobile-search * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .cdem-mobile-search form,
    .cdem-mobile-search .is-search-form,
    .cdem-mobile-search div,
    .cdem-mobile-search p,
    .cdem-mobile-search label {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Tablet screens (768px to 1099px): keep Book Appointment visible on top bar */
@media (min-width: 768px) and (max-width: 1099px) {
    .cdem-top-cta {
        display: flex !important;
    }

    .btn-top-appointment {
        padding: 9px 16px !important;
        font-size: 13px !important;
    }
}

/* Mobile phones (< 768px): stack Logo/Button on top line */
@media (max-width: 767px) {
    .cdem-header-top-container {
        padding: 10px 0 !important;
        gap: 10px 0 !important;
    }

    .cdem-logo {
        flex: 1 1 auto;
        order: 1;
        margin-right: 10px !important;
    }

    .cdem-logo img {
        max-height: 48px !important;
    }

    .cdem-header-top-right {
        flex: 0 0 auto;
        order: 2;
        gap: 10px !important;
    }

    .cdem-top-cta {
        display: flex !important;
    }

    .btn-top-appointment {
        padding: 7px 12px !important;
        font-size: 12.5px !important;
        gap: 6px !important;
    }

    .btn-top-appointment i {
        font-size: 13px;
    }

    .cdem-mobile-search input[type="search"],
    .cdem-mobile-search input[type="text"],
    .cdem-mobile-search .is-search-input {
        height: 40px !important;
        padding: 9px 44px 9px 16px !important;
        font-size: 13.5px !important;
    }

    .cdem-mobile-search button,
    .cdem-mobile-search input[type="submit"],
    .cdem-mobile-search .is-search-submit,
    .cdem-mobile-search .is-search-icon {
        height: 32px !important;
        width: 38px !important;
        min-width: 38px !important;
        right: 4px !important;
    }
}



/* --- CDEM Page Header (Fixed Alignment) --- */
.cdem-page-header {
    width: 100%;
    background-color: var(--cdem-primary);
    background-image: linear-gradient(135deg, var(--cdem-primary) 0%, #004494 100%);
    padding: 25px 0;
    /* Compact Height */
    /* margin-bottom: 30px; */
    color: #fff;
    box-sizing: border-box;
}

/* 1. Main Container */
.cdem-page-header .cdem-container {
    width: 95%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* 2. THE FIX: Apply Layout to the Inner Content Wrapper */
.cdem-header-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    /* Row Layout */
    justify-content: space-between;
    /* Push Title Left, Nav Right */
    align-items: center;
    /* Center Vertically */
}

/* 3. Page Title (Left) */
.cdem-page-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    text-align: left;
    flex-shrink: 0;
    /* Prevent title from squashing */
}

/* 4. Breadcrumbs (Right) */
.cdem-breadcrumbs {
    text-align: right;
    flex-grow: 1;
    /* Allow it to take available space */
}

/* Handle Yoast/RankMath output structure */
.cdem-breadcrumbs,
.cdem-breadcrumbs p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;

    /* Ensure the links inside align to the right */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    /* Force Right Alignment */
    gap: 5px 8px;
}

.cdem-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s;
}

.cdem-breadcrumbs a:hover {
    opacity: 0.8;
    border-bottom-color: #fff;
}

.cdem-breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.5);
}


/* --- MOBILE RESPONSIVENESS (Stack & Center) --- */
@media (max-width: 768px) {
    .cdem-page-header {
        padding: 30px 0;
    }

    /* Switch Wrapper to Column */
    .cdem-header-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .cdem-page-title {
        text-align: center;
        margin-bottom: 10px;
        font-size: 28px;
        width: 100%;
    }

    .cdem-breadcrumbs,
    .cdem-breadcrumbs p {
        justify-content: center;
        /* Center links on mobile */
        width: 100%;
    }
}




/* --- CDEM Custom Blog Archive --- */

/* --- Force Container Width --- */
.cdem-blog-wrapper .cdem-container {
    width: 90% !important;
    max-width: 90% !important;
    /* Use pixels for max-width, or 100% if you want full fluid */
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: #fcfcfc;
    /* Subtle background difference */
}

/* Grid Layout */
.cdem-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
}

/* Card Styling */
.cdem-blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.cdem-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image Section */
.cdem-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cdem-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cdem-blog-card:hover .cdem-card-image img {
    transform: scale(1.1);
    /* Zoom effect */
}

/* Date Badge */
.cdem-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--cdem-primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cdem-date-badge .day {
    display: block;
    font-weight: 700;
    font-size: 18px;
}

.cdem-date-badge .month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
}

/* Content Section */
.cdem-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Pushes content to fill height */
}

/* Meta / Category */
.cdem-card-meta {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.cdem-card-meta a {
    color: var(--cdem-secondary);
    text-decoration: none;
}

/* Title */
.cdem-card-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.cdem-card-title a {
    color: var(--cdem-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.cdem-card-title a:hover {
    color: var(--cdem-primary);
}

/* Excerpt */
.cdem-card-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Read More Button */
.cdem-read-more {
    margin-top: auto;
    /* Pushes button to bottom */
    color: var(--cdem-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.cdem-read-more:hover {
    gap: 10px;
    /* Arrow moves on hover */
    color: var(--cdem-secondary);
}

/* Pagination */
.cdem-pagination {
    text-align: center;
    margin-top: 40px;
}

.cdem-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #eee;
    color: var(--cdem-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.cdem-pagination .current,
.cdem-pagination .page-numbers:hover {
    background: var(--cdem-primary);
    color: #fff;
    border-color: var(--cdem-primary);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .cdem-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 2 Columns Tablet */
}

@media (max-width: 768px) {
    .cdem-blog-grid {
        grid-template-columns: 1fr;
    }

    /* 1 Column Mobile */
    .cdem-card-image {
        height: 250px;
    }
}


/* --- CDEM Single Post Layout --- */
.cdem-single-wrapper {
    padding-bottom: 50px;
    margin-top: 50px;
    background-color: #fff;
}

/* Layout Grid (Content vs Sidebar) */
.cdem-single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Content 66% | Sidebar 33% */
    gap: 50px;
    align-items: start;
}

/* --- Main Content Area --- */

/* Featured Image */
.cdem-single-thumbnail {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cdem-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Meta Data (Date/Category) */
.cdem-entry-meta {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #888;
}

.cdem-entry-meta span {
    margin-right: 20px;
}

.cdem-entry-meta i {
    color: var(--cdem-primary);
    margin-right: 5px;
}

.cdem-entry-meta a {
    color: var(--cdem-secondary);
    /* Category Link Color */
    text-decoration: none;
    font-weight: 600;
}

/* The Article Content (Typography) */
.cdem-entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.cdem-entry-content p {
    margin-bottom: 25px;
}

.cdem-entry-content h2,
.cdem-entry-content h3 {
    color: var(--cdem-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.cdem-entry-content blockquote {
    border-left: 5px solid var(--cdem-primary);
    background: #f9f9f9;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
}

/* Tags Footer */
.cdem-entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.tags-links a {
    display: inline-block;
    background: #f4f6f8;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.tags-links a:hover {
    background: var(--cdem-primary);
    color: #fff;
}

/* --- Post Navigation --- */
.cdem-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cdem-post-navigation a {
    text-decoration: none;
    color: var(--cdem-dark);
    font-weight: 700;
    transition: color 0.3s;
}

.cdem-post-navigation a:hover {
    color: var(--cdem-primary);
}


/* --- Sidebar Styling --- */
.cdem-sidebar .widget {
    background: #fcfcfc;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.cdem-sidebar .widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cdem-primary);
    color: var(--cdem-dark);
}

.cdem-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cdem-sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cdem-sidebar ul li a {
    text-decoration: none;
    color: #666;
    transition: padding 0.3s, color 0.3s;
}

.cdem-sidebar ul li a:hover {
    padding-left: 5px;
    color: var(--cdem-primary);
}


/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .cdem-single-layout {
        grid-template-columns: 1fr;
        /* Stack content and sidebar */
        gap: 40px;
    }

    .cdem-sidebar {
        order: 2;
        /* Sidebar moves to bottom */
    }
}



/* --- FIX PAGE TITLE WIDTH --- */

/* 1. The Container */
.cdem-header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Vertically center them */
    gap: 30px;
    /* Space between title and breadcrumb */
}

/* 2. The Title (Limit width to 60%) */
.cdem-page-title {
    flex: 0 1 60%;
    /* Grow: 0, Shrink: 1, Basis: 60% */
    color: #ffffff;
    font-size: 32px;
    /* Adjust size if needed */
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-align: left;

    /* Ensure long words don't break out */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 3. The Breadcrumbs (Take remaining space) */
.cdem-breadcrumbs {
    flex: 0 1 40%;
    /* Basis: 40% */
    min-width: 200px;
    /* Prevent it from disappearing */
    text-align: right;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Mobile: Stack them again */
@media (max-width: 768px) {
    .cdem-header-content {
        flex-direction: column;
        text-align: center;
    }

    .cdem-page-title {
        flex: 1 1 100%;
        width: 100%;
        text-align: center;
        font-size: 26px;
        /* Smaller font on mobile */
    }

    .cdem-breadcrumbs {
        justify-content: center;
        width: 100%;
    }
}


/* --- FIX: SINGLE POST GALLERY STYLING --- */

/* 1. Reset & Container */
.cdem-entry-content .wp-block-gallery,
.cdem-entry-content .gallery {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* Space between images */
    list-style: none !important;
    padding: 0 !important;
}

/* 2. Gallery Items */
.cdem-entry-content .wp-block-image,
.cdem-entry-content .blocks-gallery-item,
.cdem-entry-content .gallery-item {
    margin: 0 !important;
    /* Remove default WP margins */
    width: calc(33.333% - 10px);
    /* Default to 3 columns */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 3. The Images */
.cdem-entry-content .wp-block-gallery img,
.cdem-entry-content .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents squashing */
    border-radius: 6px;
    /* Match theme style */
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

/* Hover Effect */
.cdem-entry-content .wp-block-gallery img:hover,
.cdem-entry-content .gallery img:hover {
    transform: scale(1.02);
}

/* 4. Captions (Optional) */
.cdem-entry-content .blocks-gallery-caption,
.cdem-entry-content .gallery-caption {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 5px;
}

/* --- RESPONSIVENESS --- */

/* Tablet (2 Columns) */
@media (max-width: 768px) {

    .cdem-entry-content .wp-block-image,
    .cdem-entry-content .blocks-gallery-item,
    .cdem-entry-content .gallery-item {
        width: calc(50% - 10px);
    }
}

/* Mobile (1 Column) */
@media (max-width: 480px) {

    .cdem-entry-content .wp-block-image,
    .cdem-entry-content .blocks-gallery-item,
    .cdem-entry-content .gallery-item {
        width: 100%;
    }
}

/* --- CDEM Directors Grid Layout --- */
.cdem-directors-wrapper {
    background-color: #f9f9f9;
    padding-bottom: 60px;
}

.cdem-directors-intro {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.cdem-directors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto 50px auto;
    width: 95%;
    max-width: 1200px;
}

.cdem-director-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.cdem-director-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.director-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #e9ecef;
}

.director-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cdem-director-card:hover .director-image img {
    transform: scale(1.05);
}

.director-info {
    padding: 20px 15px;
}

.director-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--cdem-dark, #333);
    margin: 0 0 8px 0;
}

.director-title {
    font-size: 14px;
    color: var(--cdem-primary, #0072bc);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .cdem-directors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cdem-directors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cdem-directors-intro {
        margin: 30px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cdem-directors-grid {
        grid-template-columns: 1fr;
        width: 90%;
    }
}

.director-desc {
    font-size: 14px;
    color: #666;
    margin: 12px 0 0 0;
    line-height: 1.5;
    text-align: left;
}


/* --- Premium Directors Layout --- */
.cdem-directors-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 auto 60px auto;
    width: 100%;
}

.cdem-director-card-premium {
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 114, 188, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: stretch;
}

.cdem-director-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 114, 188, 0.15);
    border-color: rgba(0, 114, 188, 0.3);
}

.director-image-premium {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background-color: #f1f4f8;
}

.director-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cdem-director-card-premium:hover .director-image-premium img {
    transform: scale(1.08);
}

.director-info-premium {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.director-info-premium .director-name {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    font-family: 'Inter', sans-serif;
}

.director-info-premium .director-title {
    font-size: 14px;
    color: #ce161d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.director-info-premium .director-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Breakpoints */
@media (max-width: 1100px) {
    .cdem-directors-grid-premium {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 600px) {
    .cdem-director-card-premium {
        flex-direction: column;
    }

    .director-image-premium {
        height: 300px;
    }

    .director-info-premium {
        padding: 25px;
    }
}


/* --- Centered Page Header for Board of Directors --- */
.cdem-page-header-centered {
    padding: 40px 0;
}

.cdem-header-content-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.cdem-page-title-centered {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.cdem-breadcrumbs-centered {
    text-align: center;
}

.cdem-breadcrumbs-centered p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cdem-breadcrumbs-centered a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.cdem-breadcrumbs-centered a:hover {
    opacity: 0.8;
}


/* --- Page Container --- */
.cdem-page-container {
    width: 95%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 0;
    display: block;
}

/* ==========================================================================
   CDEM ABOUT US PAGE REDESIGN - PREMIUM STATE OF THE ART STYLING
   ========================================================================== */

.cdem-aboutp-wrapper,
.cdem-aboutp-wrapper #main,
.cdem-aboutp-wrapper .site-main,
.cdem-aboutp-wrapper .content-area {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* --- 1. HERO SECTION --- */
.cdem-aboutp-hero {
    background: linear-gradient(135deg, #07162c 0%, #00306e 50%, #005691 100%);
    position: relative;
    padding: 80px 0 100px 0;
    color: #ffffff;
    overflow: hidden;
}

.cdem-aboutp-hero-bg-glow1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.15) 0%, rgba(0, 180, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-aboutp-hero-bg-glow2 {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(206, 22, 29, 0.12) 0%, rgba(206, 22, 29, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-aboutp-hero-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cdem-aboutp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #e0f2fe;
}

.cdem-aboutp-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cdem-aboutp-gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cdem-aboutp-lead {
    font-size: 19px;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: 400;
}

.cdem-aboutp-text {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 36px;
}

.cdem-aboutp-hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cdem-aboutp-stat-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 20px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    flex: 1 1 180px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cdem-aboutp-stat-pill:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.cdem-aboutp-stat-icon {
    font-size: 26px;
    line-height: 1;
}

.cdem-aboutp-stat-label {
    display: flex;
    flex-direction: column;
}

.cdem-aboutp-stat-title {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 2px;
}

.cdem-aboutp-stat-sub {
    font-size: 12px;
    color: #94a3b8;
}

.cdem-aboutp-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cdem-aboutp-image-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    background: #0f172a;
    width: 100%;
}

.cdem-aboutp-image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.cdem-aboutp-image-card:hover img {
    transform: scale(1.03);
}

.cdem-aboutp-float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 16px 22px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.cdem-aboutp-float-badge:hover {
    transform: translateY(-4px) scale(1.02);
}

.cdem-aboutp-float-badge-1 {
    bottom: -25px;
    left: -25px;
}

.cdem-aboutp-float-badge-2 {
    top: -20px;
    right: -20px;
}

.cdem-float-num {
    font-size: 30px;
    font-weight: 800;
    color: #ce161d;
    line-height: 1;
}

.cdem-float-txt {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* --- 2. COMMON SECTION STYLES --- */
.cdem-aboutp-section {
    padding: 90px 0;
    position: relative;
}

.cdem-aboutp-section-bg-light {
    background-color: #f8fafc;
}

.cdem-aboutp-section-bg-white {
    background-color: #ffffff;
}

.cdem-aboutp-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

.cdem-aboutp-header-center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px auto;
}

.cdem-aboutp-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #ce161d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    background: rgba(206, 22, 29, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
}

.cdem-aboutp-sec-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.cdem-aboutp-sec-desc {
    font-size: 17px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* --- 3. PROBLEM & SOLUTION (SPLIT GRID) --- */
.cdem-aboutp-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.cdem-aboutp-split-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cdem-aboutp-split-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.cdem-aboutp-split-card.featured {
    border-color: #38bdf8;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    box-shadow: 0 20px 40px -10px rgba(0, 114, 188, 0.12);
}

.cdem-aboutp-card-top-bar {
    height: 6px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.cdem-aboutp-bar-red {
    background: linear-gradient(90deg, #ce161d, #ff6b6b);
}

.cdem-aboutp-bar-blue {
    background: linear-gradient(90deg, #0072bc, #38bdf8);
}

.cdem-aboutp-split-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: inline-block;
}

.cdem-aboutp-tag-red {
    color: #ce161d;
}

.cdem-aboutp-tag-blue {
    color: #0072bc;
}

.cdem-aboutp-split-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cdem-aboutp-split-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 28px;
}

.cdem-aboutp-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.cdem-aboutp-tag-item {
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.cdem-aboutp-check-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cdem-aboutp-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: #334155;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.cdem-aboutp-check-icon {
    color: #0072bc;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    background: #e0f2fe;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- 4. EVOLUTION TIMELINE --- */
.cdem-aboutp-timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cdem-aboutp-time-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 38px 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cdem-aboutp-time-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(0, 114, 188, 0.12);
    border-color: #38bdf8;
}

.cdem-aboutp-time-step {
    font-size: 48px;
    font-weight: 900;
    color: #f1f5f9;
    position: absolute;
    top: 20px;
    right: 25px;
    line-height: 1;
    transition: color 0.3s ease;
}

.cdem-aboutp-time-card:hover .cdem-aboutp-time-step {
    color: #e0f2fe;
}

.cdem-aboutp-time-year {
    font-size: 13px;
    font-weight: 700;
    color: #0072bc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: inline-block;
    background: #f0f9ff;
    padding: 6px 14px;
    border-radius: 6px;
}

.cdem-aboutp-time-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.35;
    position: relative;
    z-index: 2;
}

.cdem-aboutp-time-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* --- 5. SPECIALIZED UNITS & SERVICES GRID --- */
.cdem-aboutp-units-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.cdem-aboutp-unit-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 26px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cdem-aboutp-unit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(0, 114, 188, 0.15);
    border-color: #38bdf8;
}

.cdem-aboutp-unit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    color: #0072bc;
    border: 1px solid #bae6fd;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.cdem-aboutp-unit-card:hover .cdem-aboutp-unit-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #0072bc 0%, #00a8e8 100%);
    color: #ffffff;
    border-color: #0072bc;
}

.cdem-aboutp-unit-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cdem-aboutp-unit-desc {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* --- 6. VISION BANNER & PHILOSOPHY --- */
.cdem-aboutp-vision-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 28px;
    padding: 70px 50px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px auto 0 auto;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.3);
    border: 1px solid #334155;
}

.cdem-aboutp-vision-bg-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-aboutp-vision-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: inline-block;
}

.cdem-aboutp-vision-quote {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.7;
    color: #f8fafc;
    max-width: 1150px;
    margin: 0 auto 30px auto;
    position: relative;
    z-index: 2;
    letter-spacing: -0.3px;
}

.cdem-aboutp-vision-author {
    font-size: 15px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* --- 7. CALL TO ACTION (CTA) --- */
.cdem-aboutp-cta-section {
    padding: 80px 0 100px 0;
    background: #ffffff;
}

.cdem-aboutp-cta-box {
    background: linear-gradient(135deg, #0072bc 0%, #004494 100%);
    border-radius: 28px;
    padding: 60px 70px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 114, 188, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cdem-aboutp-cta-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.cdem-aboutp-cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cdem-aboutp-cta-desc {
    font-size: 18px;
    color: #e0f2fe;
    line-height: 1.65;
    margin: 0;
}

.cdem-aboutp-cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cdem-aboutp-btn-primary {
    background: #ffffff;
    color: #0072bc !important;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.cdem-aboutp-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
    color: #004494 !important;
}

.cdem-aboutp-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cdem-aboutp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* --- 8. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1100px) {
    .cdem-aboutp-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .cdem-aboutp-hero-stats {
        justify-content: center;
    }

    .cdem-aboutp-image-card {
        max-width: 650px;
        margin: 20px auto 0 auto;
    }

    .cdem-aboutp-units-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-aboutp-timeline-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cdem-aboutp-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 50px 40px;
    }

    .cdem-aboutp-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cdem-aboutp-hero {
        padding: 60px 0 80px 0;
    }

    .cdem-aboutp-title {
        font-size: 34px;
    }

    .cdem-aboutp-sec-title {
        font-size: 28px;
    }

    .cdem-aboutp-split-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cdem-aboutp-split-card {
        padding: 30px 24px;
    }

    .cdem-aboutp-units-grid {
        grid-template-columns: 1fr;
    }

    .cdem-aboutp-vision-banner {
        padding: 45px 24px;
    }

    .cdem-aboutp-vision-quote {
        font-size: 19px;
    }

    .cdem-aboutp-float-badge {
        position: static;
        margin: 15px auto 0 auto;
        width: fit-content;
        justify-content: center;
    }

    .cdem-aboutp-hero-visual {
        flex-direction: column;
    }

    .cdem-aboutp-cta-title {
        font-size: 28px;
    }

    .cdem-aboutp-cta-box {
        padding: 40px 24px;
    }

    .cdem-aboutp-btn-primary,
    .cdem-aboutp-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   WHY CHOOSE CDEM PAGE REDESIGN - STATE OF THE ART PREMIUM STYLING
   ========================================================================== */

.cdem-wc-wrapper,
.cdem-wc-wrapper #main,
.cdem-wc-wrapper .site-main,
.cdem-wc-wrapper .content-area {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* --- 1. HERO SECTION --- */
.cdem-wc-hero {
    background: linear-gradient(135deg, #07162c 0%, #00306e 50%, #005691 100%);
    position: relative;
    padding: 90px 0 100px 0;
    color: #ffffff;
    overflow: hidden;
}

.cdem-wc-hero-glow1 {
    position: absolute;
    top: -120px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-wc-hero-glow2 {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(206, 22, 29, 0.14) 0%, rgba(206, 22, 29, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-wc-hero-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cdem-wc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #e0f2fe;
}

.cdem-wc-title {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cdem-wc-gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cdem-wc-lead {
    font-size: 20px;
    line-height: 1.7;
    color: #e2e8f0;
    max-width: 1150px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

.cdem-wc-hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cdem-wc-stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 26px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.cdem-wc-stat-pill:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.cdem-wc-stat-icon {
    font-size: 22px;
    line-height: 1;
}

.cdem-wc-stat-txt {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

/* --- 2. COMMON SECTION STYLES --- */
.cdem-wc-section {
    padding: 90px 0;
    position: relative;
}

.cdem-wc-section-bg-light {
    background-color: #f8fafc;
}

.cdem-wc-section-bg-white {
    background-color: #ffffff;
}

.cdem-wc-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

.cdem-wc-header-center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px auto;
}

.cdem-wc-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #ce161d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    background: rgba(206, 22, 29, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
}

.cdem-wc-sec-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.cdem-wc-sec-desc {
    font-size: 17px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* --- 3. FEATURED SPOTLIGHT CARD --- */
.cdem-wc-spotlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 24px;
    padding: 50px 60px;
    border: 2px solid #38bdf8;
    box-shadow: 0 25px 50px -12px rgba(0, 114, 188, 0.15);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.cdem-wc-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0072bc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    background: #e0f2fe;
    padding: 6px 16px;
    border-radius: 30px;
}

.cdem-wc-spotlight-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    line-height: 1.25;
}

.cdem-wc-spotlight-text {
    font-size: 17px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 24px;
}

.cdem-wc-spotlight-pills {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cdem-wc-prog-pill {
    background: #ffffff;
    border: 1px solid #bae6fd;
    padding: 14px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cdem-wc-prog-pill:hover {
    transform: translateX(6px);
    border-color: #0072bc;
}

/* --- 4. THE 6 PILLARS GRID --- */
.cdem-wc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.cdem-wc-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 38px 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cdem-wc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px -10px rgba(0, 114, 188, 0.15);
    border-color: #38bdf8;
}

.cdem-wc-card-top {
    height: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #0072bc, #38bdf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cdem-wc-card:hover .cdem-wc-card-top {
    opacity: 1;
}

.cdem-wc-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
    color: #0072bc;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.cdem-wc-card:hover .cdem-wc-card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #0072bc 0%, #00a8e8 100%);
    color: #ffffff;
    border-color: #0072bc;
}

.cdem-wc-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.3;
}

.cdem-wc-card-text {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 24px;
    flex-grow: 1;
}

.cdem-wc-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0072bc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

/* --- 5. MULTIDISCIPLINARY TEAMWORK STRIP --- */
.cdem-wc-team-strip {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 50px;
    margin-top: 70px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
    border: 1px solid #334155;
}

.cdem-wc-team-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.cdem-wc-team-sub {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cdem-wc-team-grid {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cdem-wc-team-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #e0f2fe;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.cdem-wc-team-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
}

/* --- 6. CTA SECTION (YOUR HEALTH. OUR EXPERTISE.) --- */
.cdem-wc-cta-section {
    padding: 80px 0 100px 0;
    background: #ffffff;
}

.cdem-wc-cta-box {
    background: linear-gradient(135deg, #0072bc 0%, #004494 100%);
    border-radius: 28px;
    padding: 70px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -15px rgba(0, 114, 188, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cdem-wc-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: #ffffff;
}

.cdem-wc-cta-title {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cdem-wc-cta-desc {
    font-size: 19px;
    color: #e0f2fe;
    line-height: 1.65;
    max-width: 1050px;
    margin: 0 auto 36px auto;
}

.cdem-wc-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cdem-wc-btn-primary {
    background: #ffffff;
    color: #0072bc !important;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.cdem-wc-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
    color: #004494 !important;
}

.cdem-wc-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cdem-wc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* --- 7. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1080px) {
    .cdem-wc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-wc-spotlight-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .cdem-wc-hero {
        padding: 60px 0 80px 0;
    }

    .cdem-wc-title {
        font-size: 34px;
    }

    .cdem-wc-lead {
        font-size: 17px;
    }

    .cdem-wc-grid {
        grid-template-columns: 1fr;
    }

    .cdem-wc-card {
        padding: 30px 24px;
    }

    .cdem-wc-cta-title {
        font-size: 30px;
    }

    .cdem-wc-cta-box {
        padding: 45px 24px;
    }

    .cdem-wc-team-strip {
        padding: 35px 20px;
    }

    .cdem-wc-btn-primary,
    .cdem-wc-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   MEDICAL SPECIALTIES OVERVIEW & SINGLE SPECIALTY PAGES - PREMIUM STYLES
   ========================================================================== */

/* Full Fluid Width Override */
.cdem-spec-wrapper,
.cdem-spec-wrapper #main,
.cdem-spec-wrapper .site-main,
.cdem-spec-wrapper .content-area,
.cdem-specp-wrapper,
.cdem-specp-wrapper #main,
.cdem-specp-wrapper .site-main,
.cdem-specp-wrapper .content-area {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* --- 1. HERO SECTION (OVERVIEW & SINGLE) --- */
.cdem-spec-hero,
.cdem-specp-hero {
    background: linear-gradient(135deg, #07162c 0%, #00306e 50%, #005691 100%);
    position: relative;
    padding: 90px 0 100px 0;
    color: #ffffff;
    overflow: hidden;
}

.cdem-spec-hero-glow1,
.cdem-specp-hero-glow1 {
    position: absolute;
    top: -120px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-spec-hero-glow2,
.cdem-specp-hero-glow2 {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(206, 22, 29, 0.14) 0%, rgba(206, 22, 29, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-spec-hero-container,
.cdem-specp-hero-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cdem-spec-badge,
.cdem-specp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #e0f2fe;
}

.cdem-spec-title,
.cdem-specp-title {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cdem-spec-gradient-text,
.cdem-specp-gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cdem-spec-lead,
.cdem-specp-lead {
    font-size: 20px;
    line-height: 1.7;
    color: #e2e8f0;
    max-width: 1150px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* --- 2. SPECIALTIES OVERVIEW GRID --- */
.cdem-spec-section {
    padding: 90px 0;
    background-color: #f8fafc;
}

.cdem-spec-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

.cdem-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 30px;
}

.cdem-spec-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 42px 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
}

.cdem-spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 114, 188, 0.18);
    border-color: #38bdf8;
}

.cdem-spec-card-top {
    height: 6px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #0072bc, #38bdf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cdem-spec-card:hover .cdem-spec-card-top {
    opacity: 1;
}

.cdem-spec-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 24px;
    color: #0072bc;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.cdem-spec-card:hover .cdem-spec-icon-box {
    transform: scale(1.1) rotate(-6deg);
    background: linear-gradient(135deg, #0072bc 0%, #00a8e8 100%);
    color: #ffffff;
    border-color: #0072bc;
}

.cdem-spec-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cdem-spec-card-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 28px;
    flex-grow: 1;
}

.cdem-spec-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0072bc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    padding: 14px 22px;
    background: #f0f9ff;
    border-radius: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.cdem-spec-card:hover .cdem-spec-card-btn {
    background: #0072bc;
    color: #ffffff !important;
}

/* --- 3. SINGLE SPECIALTY PAGE LAYOUT --- */
.cdem-specp-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    padding: 80px 0;
}

.cdem-specp-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.cdem-specp-main-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
}

.cdem-specp-main-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #0072bc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    background: #e0f2fe;
    padding: 6px 16px;
    border-radius: 30px;
}

.cdem-specp-main-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 22px;
    line-height: 1.25;
}

.cdem-specp-main-text {
    font-size: 18.5px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 38px;
}

.cdem-specp-sub-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.cdem-specp-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.cdem-specp-check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #0f172a;
    font-size: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.cdem-specp-check-item:hover {
    border-color: #38bdf8;
    transform: translateX(4px);
}

.cdem-specp-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0072bc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.cdem-specp-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 20px;
    padding: 30px 36px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cdem-specp-banner-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.cdem-specp-banner-txt h4 {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}

.cdem-specp-banner-txt p {
    margin: 0;
    font-size: 15.5px;
    color: #475569;
    line-height: 1.6;
}

/* Sidebar Box */
.cdem-specp-sidebar-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.cdem-specp-side-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.cdem-specp-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cdem-specp-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 14px;
    color: #475569;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid transparent;
}

.cdem-specp-nav-link:hover,
.cdem-specp-nav-link.active {
    background: #e0f2fe;
    color: #0072bc !important;
    border-color: #bae6fd;
    transform: translateX(5px);
}

.cdem-specp-booking-card {
    background: linear-gradient(135deg, #07162c 0%, #004494 100%);
    border-radius: 24px;
    padding: 40px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 114, 188, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cdem-specp-booking-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 16px 0 12px 0;
    color: #ffffff;
}

.cdem-specp-booking-card p {
    font-size: 15.5px;
    color: #e0f2fe;
    line-height: 1.6;
    margin-bottom: 26px;
}

.cdem-specp-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #0072bc !important;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none !important;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.cdem-specp-book-btn:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
    color: #004494 !important;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1100px) {
    .cdem-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-specp-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .cdem-spec-hero,
    .cdem-specp-hero {
        padding: 60px 0 80px 0;
    }

    .cdem-spec-title,
    .cdem-specp-title {
        font-size: 34px;
    }

    .cdem-spec-lead,
    .cdem-specp-lead {
        font-size: 17px;
    }

    .cdem-spec-grid {
        grid-template-columns: 1fr;
    }

    .cdem-spec-card {
        padding: 32px 26px;
    }

    .cdem-specp-main-box {
        padding: 30px 24px;
    }

    .cdem-specp-checklist {
        grid-template-columns: 1fr;
    }

    .cdem-specp-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   CENTERS OF EXCELLENCE OVERVIEW & SINGLE CENTER PAGES - PREMIUM STYLES
   ========================================================================== */

/* Full Fluid Width Override */
.cdem-coe-wrapper,
.cdem-coe-wrapper #main,
.cdem-coe-wrapper .site-main,
.cdem-coe-wrapper .content-area,
.cdem-coep-wrapper,
.cdem-coep-wrapper #main,
.cdem-coep-wrapper .site-main,
.cdem-coep-wrapper .content-area {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background-color: #f8fafc;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* --- 1. HERO SECTION (OVERVIEW & SINGLE) --- */
.cdem-coe-hero,
.cdem-coep-hero {
    background: linear-gradient(135deg, #041824 0%, #003e4d 50%, #00665e 100%);
    position: relative;
    padding: 95px 0 105px 0;
    color: #ffffff;
    overflow: hidden;
}

.cdem-coe-hero-glow1,
.cdem-coep-hero-glow1 {
    position: absolute;
    top: -120px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(20, 184, 166, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-coe-hero-glow2,
.cdem-coep-hero-glow2 {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-coe-hero-container,
.cdem-coep-hero-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cdem-coe-badge,
.cdem-coep-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.18);
    color: #5eead4;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(20, 184, 166, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cdem-coe-title,
.cdem-coep-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: -1px;
}

.cdem-coe-gradient-text,
.cdem-coep-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #99f6e4 50%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cdem-coe-lead,
.cdem-coep-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #ccfbf1;
    max-width: 820px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- 2. OVERVIEW GRID SECTION --- */
.cdem-coe-section {
    padding: 90px 0 110px 0;
    position: relative;
    background-color: #f8fafc;
}

.cdem-coe-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

.cdem-coe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 36px;
}

.cdem-coe-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 42px 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
}

.cdem-coe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 102, 94, 0.12);
    border-color: #14b8a6;
}

.cdem-coe-card-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #5eead4);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cdem-coe-card:hover .cdem-coe-card-top {
    opacity: 1;
    height: 6px;
}

.cdem-coe-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0f766e;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.08);
    transition: transform 0.4s ease;
}

.cdem-coe-card:hover .cdem-coe-icon-box {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff;
}

.cdem-coe-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.cdem-coe-card:hover .cdem-coe-card-title {
    color: #0d9488;
}

.cdem-coe-card-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.cdem-coe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0d9488;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cdem-coe-btn span:last-child {
    transition: transform 0.3s ease;
}

.cdem-coe-card:hover .cdem-coe-btn {
    color: #0f766e;
}

.cdem-coe-card:hover .cdem-coe-btn span:last-child {
    transform: translateX(6px);
}

/* --- 3. SINGLE CENTER PAGE LAYOUT --- */
.cdem-coep-container {
    max-width: 1440px;
    width: 95%;
    margin: -50px auto 100px auto;
    position: relative;
    z-index: 10;
}

.cdem-coep-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cdem-coep-main-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cdem-coep-main-badge {
    display: inline-block;
    background: #f0fdfa;
    color: #0d9488;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid #ccfbf1;
}

.cdem-coep-main-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px 0;
    line-height: 1.25;
}

.cdem-coep-main-text {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 40px;
}

.cdem-coep-main-text p {
    margin-bottom: 20px;
}

.cdem-coep-sub-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 20px 0;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.cdem-coep-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.cdem-coep-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.cdem-coep-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d9488;
    color: #ffffff;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.cdem-coep-banner {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #ccfbf1;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.cdem-coep-banner-icon {
    font-size: 42px;
    background: #ffffff;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.1);
}

.cdem-coep-banner-txt h4 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.cdem-coep-banner-txt p {
    font-size: 15px;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* --- SIDEBAR & CTA CARD --- */
.cdem-coep-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 30px;
}

.cdem-coep-sidebar-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.cdem-coep-side-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.cdem-coep-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cdem-coep-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 12px;
    color: #475569 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: #f8fafc;
    border: 1px solid transparent;
}

.cdem-coep-nav-link:hover,
.cdem-coep-nav-link.active {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff !important;
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

.cdem-coep-booking-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 36px 30px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid #334155;
}

.cdem-coep-booking-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.cdem-coep-booking-card p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.cdem-coep-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff !important;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.cdem-coep-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 100%);
    color: #0f172a !important;
}

@media (max-width: 1024px) {
    .cdem-coep-layout {
        grid-template-columns: 1fr;
    }

    .cdem-coep-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {

    .cdem-coe-hero,
    .cdem-coep-hero {
        padding: 60px 0 80px 0;
    }

    .cdem-coe-title,
    .cdem-coep-title {
        font-size: 34px;
    }

    .cdem-coe-lead,
    .cdem-coep-lead {
        font-size: 17px;
    }

    .cdem-coe-grid {
        grid-template-columns: 1fr;
    }

    .cdem-coe-card {
        padding: 32px 26px;
    }

    .cdem-coep-main-content {
        padding: 30px 24px;
    }

    .cdem-coep-checklist {
        grid-template-columns: 1fr;
    }

    .cdem-coep-banner {
        text-align: center;
    }
}

/* ==========================================================================
   OUR SERVICES OVERVIEW & SINGLE SERVICE PAGES - PREMIUM STYLES
   ========================================================================== */

/* Full Fluid Width Override */
.cdem-srv-wrapper,
.cdem-srv-wrapper #main,
.cdem-srv-wrapper .site-main,
.cdem-srv-wrapper .content-area,
.cdem-srvp-wrapper,
.cdem-srvp-wrapper #main,
.cdem-srvp-wrapper .site-main,
.cdem-srvp-wrapper .content-area {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* --- 1. HERO SECTION (OVERVIEW & SINGLE) --- */
.cdem-srv-hero,
.cdem-srvp-hero {
    background: linear-gradient(135deg, #051b2c 0%, #044e43 50%, #00775e 100%);
    position: relative;
    padding: 95px 0 105px 0;
    color: #ffffff;
    overflow: hidden;
}

.cdem-srv-hero-glow1,
.cdem-srvp-hero-glow1 {
    position: absolute;
    top: -120px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, rgba(52, 211, 153, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-srv-hero-glow2,
.cdem-srvp-hero-glow2 {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-srv-hero-container,
.cdem-srvp-hero-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.cdem-srv-badge,
.cdem-srvp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a7f3d0;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cdem-srv-title,
.cdem-srvp-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: -1px;
}

.cdem-srv-gradient-text,
.cdem-srvp-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cdem-srv-lead,
.cdem-srvp-lead {
    font-size: 20px;
    line-height: 1.6;
    color: #d1fae5;
    max-width: 950px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- 2. OVERVIEW PAGE GRID SECTION --- */
.cdem-srv-section {
    padding: 90px 0 110px 0;
    background: #f8fafc;
}

.cdem-srv-container {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
}

.cdem-srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 30px;
}

.cdem-srv-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 42px 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
}

.cdem-srv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(4, 120, 87, 0.18);
    border-color: #10b981;
}

.cdem-srv-card-top {
    height: 6px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #047857, #34d399);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cdem-srv-card:hover .cdem-srv-card-top {
    opacity: 1;
}

.cdem-srv-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 24px;
    color: #047857;
    border: 1px solid #a7f3d0;
    transition: all 0.3s ease;
}

.cdem-srv-card:hover .cdem-srv-icon-box {
    transform: scale(1.1) rotate(-6deg);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: #ffffff;
    border-color: #047857;
}

.cdem-srv-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cdem-srv-card-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 28px;
    flex-grow: 1;
}

.cdem-srv-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    padding: 14px 22px;
    background: #ecfdf5;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.cdem-srv-card:hover .cdem-srv-card-btn {
    background: #047857;
    color: #ffffff;
    padding-right: 26px;
}

/* --- 3. SINGLE SERVICE DETAIL PAGE LAYOUT --- */
.cdem-srvp-container {
    padding: 80px 0 110px 0;
    background: #f8fafc;
}

.cdem-srvp-layout {
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    align-items: start;
}

.cdem-srvp-main-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
}

.cdem-srvp-main-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid #a7f3d0;
}

.cdem-srvp-main-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px 0;
    line-height: 1.25;
}

.cdem-srvp-main-text {
    font-size: 17px;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 40px;
}

.cdem-srvp-main-text p {
    margin-bottom: 20px;
}

.cdem-srvp-sub-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 40px 0 24px 0;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.cdem-srvp-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.cdem-srvp-check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.25s ease;
}

.cdem-srvp-check-item:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    transform: translateY(-2px);
}

.cdem-srvp-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

.cdem-srvp-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cdem-srvp-banner-icon {
    font-size: 42px;
    flex-shrink: 0;
    background: #ffffff;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.1);
}

.cdem-srvp-banner-txt h4 {
    font-size: 20px;
    font-weight: 800;
    color: #064e3b;
    margin: 0 0 8px 0;
}

.cdem-srvp-banner-txt p {
    font-size: 15px;
    color: #047857;
    margin: 0;
    line-height: 1.6;
}

/* --- 4. SIDEBAR --- */
.cdem-srvp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 110px;
}

.cdem-srvp-sidebar-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
}

.cdem-srvp-side-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 22px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.cdem-srvp-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cdem-srvp-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.cdem-srvp-nav-link:hover,
.cdem-srvp-nav-link.active {
    background: #ecfdf5;
    color: #047857;
    border-color: #10b981;
    font-weight: 700;
    transform: translateX(4px);
}

.cdem-srvp-booking-card {
    background: linear-gradient(135deg, #064e3b 0%, #051b2c 100%);
    border-radius: 28px;
    padding: 40px 32px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(4, 120, 87, 0.3);
}

.cdem-srvp-booking-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.cdem-srvp-booking-card p {
    font-size: 15px;
    color: #d1fae5;
    line-height: 1.6;
    margin: 0 0 26px 0;
}

.cdem-srvp-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: #ecfdf5;
    color: #047857;
    font-size: 16px;
    font-weight: 800;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cdem-srvp-book-btn:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1100px) {
    .cdem-srv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-srvp-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .cdem-srv-hero,
    .cdem-srvp-hero {
        padding: 60px 0 80px 0;
    }

    .cdem-srv-title,
    .cdem-srvp-title {
        font-size: 34px;
    }

    .cdem-srv-lead,
    .cdem-srvp-lead {
        font-size: 17px;
    }

    .cdem-srv-grid {
        grid-template-columns: 1fr;
    }

    .cdem-srv-card {
        padding: 32px 26px;
    }

    .cdem-srvp-main-box {
        padding: 30px 24px;
    }

    .cdem-srvp-checklist {
        grid-template-columns: 1fr;
    }

    .cdem-srvp-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   HEALTH PACKAGES PAGE (.cdem-pkg-) - LIGHT THEME
   ========================================================================== */
.cdem-pkg-wrapper {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Outfit', 'Inter', sans-serif;
    overflow-x: hidden;
}

/* 1. HERO SECTION (LIGHT THEME) */
.cdem-pkg-hero {
    position: relative;
    padding: 100px 20px 90px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #eff6ff 100%);
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.cdem-pkg-hero-container {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}

.cdem-pkg-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
}

.cdem-pkg-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 28px;
    color: #0f172a;
    letter-spacing: -1px;
}

.cdem-pkg-gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 50%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cdem-pkg-lead {
    font-size: 20px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 24px;
    font-weight: 400;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.cdem-pkg-sublead {
    font-size: 18px;
    line-height: 1.6;
    color: #0284c7;
    font-weight: 600;
    margin-top: 10px;
}

/* 2. PILLARS SECTION (LIGHT THEME) */
.cdem-pkg-pillars {
    padding: 70px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.cdem-pkg-pillars-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cdem-pkg-pillar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 30px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cdem-pkg-pillar-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.cdem-pkg-pillar-icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #0284c7;
    margin-bottom: 22px;
}

.cdem-pkg-pillar-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.cdem-pkg-pillar-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* 3. WOOCOMMERCE CATEGORIES SECTION (SIMPLE & LIGHT) */
.cdem-pkg-cats-section {
    padding: 90px 20px 110px;
    background: #f8fafc;
}

.cdem-pkg-sec-header {
    text-align: center;
    margin-bottom: 60px;
}

.cdem-pkg-sec-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.cdem-pkg-sec-desc {
    font-size: 18px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

.cdem-pkg-cats-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.cdem-pkg-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cdem-pkg-cat-card:hover {
    transform: translateY(-6px);
    border-color: #0284c7;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.cdem-pkg-cat-thumb {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
}

.cdem-pkg-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cdem-pkg-cat-card:hover .cdem-pkg-cat-thumb img {
    transform: scale(1.06);
}

.cdem-pkg-cat-body {
    padding: 26px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.cdem-pkg-cat-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.cdem-pkg-cat-card:hover .cdem-pkg-cat-title {
    color: #0284c7;
}

.cdem-pkg-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: #0284c7;
    transition: all 0.3s ease;
}

.cdem-pkg-cat-card:hover .cdem-pkg-cat-link {
    color: #e11d48;
    padding-left: 6px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {

    .cdem-pkg-pillars-grid,
    .cdem-pkg-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-pkg-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {

    .cdem-pkg-pillars-grid,
    .cdem-pkg-cats-grid {
        grid-template-columns: 1fr;
    }

    .cdem-pkg-title {
        font-size: 34px;
    }

    .cdem-pkg-hero {
        padding: 70px 16px 60px;
    }
}

/* ==========================================================================
   PRODUCT CATEGORY / SCREENING ARCHIVE (.cdem-pcat-)
   ========================================================================== */
.cdem-pcat-wrapper {
    background-color: #ffffff;
    padding: 60px 20px 90px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.cdem-pcat-container {
    max-width: 1280px;
    margin: 0 auto;
}

.cdem-pcat-header-section {
    text-align: center;
    margin-bottom: 50px;
}

.cdem-pcat-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.cdem-pcat-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

.cdem-pcat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.cdem-pcat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    border-top: 4px solid var(--cdem-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cdem-pcat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 114, 188, 0.12);
    border-color: rgba(0, 114, 188, 0.3);
}

.cdem-pcat-card-header {
    background-color: transparent;
    padding: 24px 24px 12px;
    text-align: left;
    border-bottom: 1px dashed #f1f5f9;
}

.cdem-pcat-card-header h3 {
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.cdem-pcat-card-header h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.cdem-pcat-card-header h3 a:hover {
    color: var(--cdem-primary);
}

.cdem-pcat-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.cdem-pcat-price {
    color: var(--cdem-primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
    background: #f0f7ff;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-block;
}

.cdem-pcat-price .woocommerce-Price-amount,
.cdem-pcat-price bdi,
.cdem-pcat-price span {
    color: var(--cdem-primary);
    font-size: 22px;
    font-weight: 800;
}

.cdem-pcat-desc {
    color: #555e6c;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    width: 100%;
}

.cdem-pcat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.cdem-pcat-list li {
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.cdem-pcat-card-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    align-items: center;
}

a.cdem-pcat-add-to-cart,
button.cdem-pcat-add-to-cart,
.woocommerce a.button.cdem-pcat-add-to-cart,
.woocommerce button.button.cdem-pcat-add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: var(--cdem-primary) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    flex: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 114, 188, 0.18) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

a.cdem-pcat-add-to-cart:hover,
button.cdem-pcat-add-to-cart:hover,
.woocommerce a.button.cdem-pcat-add-to-cart:hover,
.woocommerce button.button.cdem-pcat-add-to-cart:hover {
    background-color: #005bb5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 114, 188, 0.3) !important;
    color: #ffffff !important;
}

a.cdem-pcat-view-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

a.cdem-pcat-view-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
    text-decoration: underline !important;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .cdem-pcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cdem-pcat-grid {
        grid-template-columns: 1fr;
    }

    .cdem-pcat-title {
        font-size: 32px;
    }

    .cdem-pcat-wrapper {
        padding: 40px 16px 60px;
    }
}

/* ==========================================================================
   SINGLE PRODUCT / PACKAGE DETAILS (.cdem-sprod-)
   ========================================================================== */
.cdem-sprod-wrapper {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.cdem-sprod-container {
    max-width: 1280px;
    margin: 0 auto;
}

.cdem-sprod-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
}

.cdem-sprod-breadcrumbs a {
    color: var(--cdem-primary);
    text-decoration: none;
    font-weight: 500;
}

.cdem-sprod-breadcrumbs a:hover {
    text-decoration: underline;
}

.cdem-sprod-current {
    color: #0f172a;
    font-weight: 600;
}

.cdem-sprod-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    margin-bottom: 80px;
}

.cdem-sprod-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cdem-sprod-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cdem-sprod-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    color: var(--cdem-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cdem-sprod-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cdem-sprod-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
}

.cdem-sprod-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cdem-sprod-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 26px;
}

.cdem-sprod-card-head h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cdem-sprod-count {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.cdem-sprod-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cdem-sprod-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
    transition: all 0.2s ease;
}

.cdem-sprod-checklist li:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateX(4px);
}

.cdem-sprod-check {
    color: var(--cdem-primary);
    font-weight: 800;
    font-size: 16px;
}

.cdem-sprod-test-name {
    font-weight: 600;
}

.cdem-sprod-body {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}

.cdem-sprod-quality-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cdem-sprod-q-icon {
    font-size: 38px;
}

.cdem-sprod-q-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.cdem-sprod-q-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* SIDEBAR BOOKING CARD */
.cdem-sprod-sidebar {
    position: sticky;
    top: 100px;
}

.cdem-sprod-booking-card {
    background: #ffffff;
    border: 2px solid var(--cdem-primary);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 15px 35px rgba(0, 114, 188, 0.08);
}

.cdem-sprod-booking-top {
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.cdem-sprod-booking-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 8px;
}

.cdem-sprod-booking-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--cdem-primary);
}

.cdem-sprod-booking-price .woocommerce-Price-amount,
.cdem-sprod-booking-price bdi,
.cdem-sprod-booking-price span {
    color: var(--cdem-primary);
    font-size: 32px;
    font-weight: 800;
}

.cdem-sprod-booking-benefits {
    margin-bottom: 30px;
}

.cdem-sprod-booking-benefits h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.cdem-sprod-booking-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cdem-sprod-booking-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.cdem-sprod-booking-benefits li span {
    color: var(--cdem-primary);
    font-weight: bold;
}

.cdem-sprod-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.cdem-sprod-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--cdem-primary);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 188, 0.25);
}

.cdem-sprod-btn-primary:hover {
    background: var(--cdem-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 114, 188, 0.35);
    color: #ffffff;
}

.cdem-sprod-btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cdem-sprod-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.cdem-sprod-help {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.cdem-sprod-help a {
    color: var(--cdem-primary);
    font-weight: 700;
    text-decoration: none;
}

/* RELATED SECTION */
.cdem-sprod-related {
    border-top: 1px solid #e2e8f0;
    padding-top: 60px;
}

.cdem-sprod-related-header {
    text-align: center;
    margin-bottom: 40px;
}

.cdem-sprod-related-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.cdem-sprod-related-header p {
    font-size: 16px;
    color: #64748b;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .cdem-sprod-grid {
        grid-template-columns: 1fr;
    }

    .cdem-sprod-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .cdem-sprod-checklist {
        grid-template-columns: 1fr;
    }

    .cdem-sprod-title {
        font-size: 28px;
    }

    .cdem-sprod-header,
    .cdem-sprod-card,
    .cdem-sprod-booking-card {
        padding: 24px 20px;
    }
}


/* ==========================================
   WOOCOMMERCE CART PAGE STYLING
   ========================================== */
.cdem-cart-wrapper {
    width: 100%;
    background-color: #f8fafc;
    min-height: 70vh;
    padding-bottom: 90px;
}

.cdem-cart-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 50px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cdem-cart-header h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.cdem-cart-header p {
    color: #cbd5e1;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cdem-cart-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.cdem-cart-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.cdem-cart-breadcrumbs a:hover {
    color: #ffffff;
}

.cdem-cart-breadcrumbs span {
    margin: 0 8px;
    color: #64748b;
}

.cdem-cart-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.cdem-cart-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cdem-cart-container {
    max-width: 1200px;
    margin: -30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cdem-cart-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    padding: 40px;
}

.cdem-cart-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.cdem-cart-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.cdem-cart-empty-state h3 {
    font-size: 24px;
    color: #0f172a;
    margin: 0 0 12px;
    font-weight: 700;
}

.cdem-cart-empty-state p {
    color: #64748b;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.cdem-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cdem-primary);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 114, 188, 0.25);
}

.cdem-cart-btn:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 114, 188, 0.35);
    color: #ffffff !important;
}

/* Override WooCommerce Default Cart Styles */
.woocommerce table.shop_table.cart {
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.woocommerce table.shop_table.cart th {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    padding: 18px 20px !important;
    border: none !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.woocommerce table.shop_table.cart td {
    padding: 24px 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    color: #0f172a !important;
    vertical-align: middle !important;
}

.woocommerce table.shop_table.cart tr:last-child td {
    border-bottom: none !important;
}

.woocommerce table.shop_table.cart td.product-remove a.remove {
    color: #ef4444 !important;
    background: #fee2e2 !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 26px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.product-remove a.remove:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

.woocommerce table.shop_table.cart td.product-name a {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.woocommerce table.shop_table.cart td.product-name a:hover {
    color: var(--cdem-primary) !important;
    text-decoration: underline !important;
}

.woocommerce table.shop_table.cart td.product-price,
.woocommerce table.shop_table.cart td.product-subtotal {
    font-weight: 700 !important;
    color: var(--cdem-primary) !important;
    font-size: 16px !important;
}

.woocommerce .cart-collaterals .cart_totals {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid var(--cdem-primary) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    width: 100% !important;
    float: none !important;
    max-width: 500px !important;
    margin-left: auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 15px !important;
}

.woocommerce .cart-collaterals .cart_totals table {
    border: none !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 15px !important;
}

.woocommerce .cart-collaterals .cart_totals table tr.order-total th,
.woocommerce .cart-collaterals .cart_totals table tr.order-total td {
    border-bottom: none !important;
    padding-top: 18px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--cdem-primary) !important;
}

.woocommerce .cart-collaterals .cart_totals a.checkout-button {
    background: var(--cdem-primary) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 16px 24px !important;
    border-radius: 10px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(0, 114, 188, 0.25) !important;
    text-decoration: none !important;
}

.woocommerce .cart-collaterals .cart_totals a.checkout-button:hover {
    background: #005bb5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 114, 188, 0.35) !important;
}

@media (max-width: 768px) {
    .cdem-cart-box {
        padding: 20px !important;
    }

    .woocommerce table.shop_table.cart th {
        display: none !important;
    }
}


/* ==========================================
   WOOCOMMERCE CHECKOUT PAGE STYLING
   ========================================== */
.cdem-checkout-wrapper {
    width: 100%;
    background-color: #f8fafc;
    min-height: 70vh;
    padding-bottom: 90px;
}

.cdem-checkout-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 50px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cdem-checkout-header h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.cdem-checkout-header p {
    color: #cbd5e1;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cdem-checkout-container {
    max-width: 1200px;
    margin: -30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cdem-checkout-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    padding: 40px;
}

/* Override WooCommerce Default Checkout Styles */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1.3fr 0.9fr !important;
    grid-template-rows: auto auto !important;
    gap: 0 40px !important;
    align-items: start !important;
}

.woocommerce-checkout #customer_details {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 10 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 30px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px !important;
}

.woocommerce-checkout #customer_details h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
}

.woocommerce-checkout form .form-row {
    margin-bottom: 20px !important;
}

.woocommerce-checkout form .form-row label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
}

.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select,
.select2-container .select2-selection--single {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row textarea:focus,
.woocommerce-checkout form .form-row select:focus {
    border-color: var(--cdem-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.15) !important;
    outline: none !important;
}

/* Order Review / Payment Side Box */
.woocommerce-checkout #order_review_heading {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.woocommerce-checkout #order_review {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 10 !important;
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid var(--cdem-primary) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce-checkout #order_review table.shop_table {
    border: none !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
    padding: 14px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    font-size: 15px !important;
    color: #334155 !important;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
    border-bottom: none !important;
    padding-top: 20px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--cdem-primary) !important;
}

.woocommerce-checkout #order_review #payment {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-top: 24px !important;
}

.woocommerce-checkout #order_review #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-checkout #order_review #payment ul.payment_methods li {
    padding: 12px 0 !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.woocommerce-checkout #order_review #payment div.payment_box {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
}

.woocommerce-checkout #order_review #payment button#place_order {
    background: var(--cdem-primary) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 18px 28px !important;
    border-radius: 12px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(0, 114, 188, 0.25) !important;
    border: none !important;
    cursor: pointer !important;
}

.woocommerce-checkout #order_review #payment button#place_order:hover {
    background: #005bb5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 114, 188, 0.35) !important;
}

@media (max-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

@media (max-width: 768px) {
    .cdem-checkout-box {
        padding: 20px !important;
    }

    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2,
    .woocommerce-checkout #order_review {
        padding: 20px !important;
    }
}


/* ==========================================
   MEDICAL LABORATORY PAGE REDESIGN
   ========================================== */
.cdem-lab-wrapper {
    width: 100%;
    background-color: #ffffff;
    color: #334155;
    font-family: inherit;
    overflow-x: hidden;
}

/* 1. Hero Section */
.cdem-lab-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0072bc 100%);
    color: #ffffff;
    padding: 80px 20px 90px;
    position: relative;
    overflow: hidden;
}

.cdem-lab-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.cdem-lab-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.cdem-lab-title {
    font-size: 52px;
    font-weight: 850;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.cdem-lab-tagline {
    font-size: 24px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.cdem-lab-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 36px;
    max-width: 580px;
}

.cdem-lab-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cdem-btn-primary {
    background: #0072bc;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 114, 188, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.cdem-btn-primary:hover {
    background: #005bb5;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 114, 188, 0.45);
}

.cdem-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
}

.cdem-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.cdem-lab-hero-img-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.cdem-lab-hero-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.cdem-lab-hero-img-box:hover .cdem-lab-hero-img {
    transform: scale(1.06);
}

.cdem-lab-hero-overlay-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.cdem-lab-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #38bdf8;
    display: block;
}

.cdem-lab-stat-label {
    font-size: 12px;
    color: #cbd5e1;
    text-transform: uppercase;
    font-weight: 600;
}

/* 2. Pillars Section */
.cdem-lab-pillars {
    padding: 80px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cdem-lab-pillars-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cdem-lab-pillar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cdem-lab-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 114, 188, 0.1);
    border-color: var(--cdem-primary);
}

.cdem-pillar-icon {
    font-size: 44px;
    margin-bottom: 20px;
    display: inline-block;
}

.cdem-pillar-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.cdem-pillar-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--cdem-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cdem-pillar-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
}

.cdem-pillar-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* 3. Why Choose Section */
.cdem-lab-why {
    padding: 90px 20px;
    background: #ffffff;
}

.cdem-lab-section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.cdem-lab-section-title {
    font-size: 38px;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.cdem-lab-section-sub {
    font-size: 18px;
    line-height: 1.6;
    color: #64748b;
}

.cdem-lab-why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cdem-why-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px;
    transition: all 0.3s ease;
}

.cdem-why-box:hover {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.cdem-why-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cdem-why-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 114, 188, 0.1);
    color: var(--cdem-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.cdem-why-box-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.cdem-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cdem-why-list li {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.cdem-why-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cdem-primary);
    font-weight: 800;
}

.cdem-why-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cdem-why-tag {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* 4. Laboratory Network Grid */
.cdem-lab-network {
    padding: 90px 20px;
    background: #f1f5f9;
}

.cdem-network-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cdem-network-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cdem-network-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 114, 188, 0.12);
    border-color: var(--cdem-primary);
}

.cdem-network-img-wrap {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.cdem-network-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cdem-network-card:hover .cdem-network-img {
    transform: scale(1.08);
}

.cdem-network-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

.cdem-network-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cdem-network-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
}

.cdem-network-info {
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.cdem-network-icon {
    color: var(--cdem-primary);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cdem-network-phones {
    margin: 10px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cdem-phone-tag {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cdem-phone-tag:hover {
    background: var(--cdem-primary);
    color: #ffffff;
    border-color: var(--cdem-primary);
}

.cdem-network-btn {
    display: block;
    text-align: center;
    background: #f8fafc;
    color: var(--cdem-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 114, 188, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.cdem-network-btn:hover {
    background: var(--cdem-primary);
    color: #ffffff;
}

/* 5. CTA Section */
.cdem-lab-cta {
    background: linear-gradient(135deg, #0072bc 0%, #0f172a 100%);
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
}

.cdem-lab-cta-title {
    font-size: 36px;
    font-weight: 850;
    margin: 0 0 12px;
    color: #ffffff;
}

.cdem-lab-cta-sub {
    font-size: 20px;
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {

    .cdem-lab-hero-container,
    .cdem-lab-pillars-grid,
    .cdem-lab-why-grid,
    .cdem-network-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-lab-hero-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cdem-lab-title {
        font-size: 36px;
    }

    .cdem-lab-pillars-grid,
    .cdem-lab-why-grid,
    .cdem-network-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   CONTACT PAGE STYLING
   ========================================== */
.cdem-contact-wrapper {
    width: 100%;
    background-color: #ffffff;
    color: #334155;
    font-family: inherit;
    overflow-x: hidden;
}

/* Hero Section */
.cdem-contact-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0072bc 100%);
    color: #ffffff;
    padding: 80px 20px 80px;
    text-align: center;
    position: relative;
}

.cdem-contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cdem-contact-title {
    font-size: 48px;
    font-weight: 850;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.cdem-contact-sub {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content Grid */
.cdem-contact-main {
    max-width: 1200px;
    margin: -40px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .cdem-contact-main {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
}

/* Left Info Cards */
.cdem-contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cdem-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cdem-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 114, 188, 0.1);
    border-color: var(--cdem-primary);
}

.cdem-contact-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 114, 188, 0.1);
    color: var(--cdem-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.cdem-contact-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.cdem-contact-card-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
}

.cdem-contact-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Right Form Card */
.cdem-contact-form-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
    border-top: 5px solid var(--cdem-primary);
}

.cdem-form-heading {
    font-size: 28px;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 8px;
}

.cdem-form-subheading {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
}

.cdem-form-group {
    margin-bottom: 22px;
}

.cdem-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.cdem-form-input,
.cdem-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cdem-form-input:focus,
.cdem-form-textarea:focus {
    outline: none;
    border-color: var(--cdem-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 114, 188, 0.12);
}

.cdem-form-submit {
    background: var(--cdem-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 114, 188, 0.3);
    width: 100%;
}

.cdem-form-submit:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 114, 188, 0.45);
}

/* CF7 Overrides inside Form Box */
.cdem-contact-form-box .wpcf7-form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.cdem-contact-form-box .wpcf7-submit {
    background: var(--cdem-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 16px 36px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(0, 114, 188, 0.3) !important;
}

.cdem-contact-form-box .wpcf7-submit:hover {
    background: #005bb5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 114, 188, 0.45) !important;
}

/* Map Section */
.cdem-contact-map {
    max-width: 1200px;
    margin: 0 auto 90px;
    padding: 0 20px;
}

.cdem-map-container {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    height: 450px;
    width: 100%;
}

.cdem-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ==========================================================================
   CDEM STATE-OF-THE-ART HOMEPAGE DESIGN (PREMIUM AESTHETICS)
   ========================================================================== */

.cdem-home-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #f8fafc;
    font-family: inherit;
    color: #334155;
}

.cdem-home-container {
    width: 92%;
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- 1. NEW HERO BANNER (MATCHING USER SCREENSHOT) --- */
.cdem-new-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 20px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.cdem-new-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.65) 0%, rgba(10, 25, 47, 0.55) 50%, rgba(10, 25, 47, 0.75) 100%);
    z-index: 1;
}

.cdem-new-hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.cdem-new-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.cdem-new-hero-title {
    font-size: 60px;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.15;
    margin: 0 0 20px 0 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-family: inherit;
}

.cdem-new-hero-subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin: 0 0 40px 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

.cdem-new-hero-search-box {
    max-width: 660px;
    margin: 0 auto;
    position: relative;
}

.cdem-new-search-form,
.cdem-new-hero-search-box form,
.cdem-new-hero-search-box .is-search-form {
    display: flex !important;
    flex-direction: row !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cdem-new-search-form:focus-within,
.cdem-new-hero-search-box form:focus-within,
.cdem-new-hero-search-box .is-search-form:focus-within {
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.4) !important;
    border-color: #60a5fa !important;
}

.cdem-new-hero-search-box label {
    flex-grow: 1 !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.cdem-new-search-input,
.cdem-new-hero-search-box input[type="search"],
.cdem-new-hero-search-box input[type="text"],
.cdem-new-hero-search-box .is-search-input {
    flex-grow: 1 !important;
    width: 100% !important;
    border: none !important;
    padding: 18px 24px !important;
    font-size: 16px !important;
    color: #334155 !important;
    outline: none !important;
    background: transparent !important;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}

.cdem-new-search-input::placeholder,
.cdem-new-hero-search-box input::placeholder {
    color: #94a3b8 !important;
}

.cdem-new-search-btn,
.cdem-new-hero-search-box button,
.cdem-new-hero-search-box input[type="submit"],
.cdem-new-hero-search-box .is-search-submit {
    background: #f8fafc !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    padding: 0 28px !important;
    color: #64748b !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-width: 70px !important;
}

.cdem-new-search-btn:hover,
.cdem-new-hero-search-box button:hover,
.cdem-new-hero-search-box input[type="submit"]:hover,
.cdem-new-hero-search-box .is-search-submit:hover {
    background: var(--cdem-primary) !important;
    color: #ffffff !important;
    border-left-color: var(--cdem-primary) !important;
}

.cdem-new-hero-search-box button svg,
.cdem-new-hero-search-box .is-search-submit svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

/* --- 1.1 FLOATING STATS RIBBON --- */
.cdem-home-stats-strip {
    background: #091e3e;
    padding: 30px 0 40px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating Stats Cards */
.cdem-home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.cdem-home-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cdem-home-stat-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #60a5fa;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.stat-label {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 4px;
}

/* --- 2. COMMON SECTION STYLES --- */
.cdem-home-section {
    padding: 100px 0;
    position: relative;
}

.cdem-home-services-bg {
    background: #ffffff;
}

.cdem-home-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.cdem-home-section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: #0369a1;
    /* Improved contrast against #e0f2fe */
    background: #e0f2fe;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.cdem-home-section-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.cdem-home-section-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    /* Improved contrast */
    margin: 0;
}

/* Services Grid */
.cdem-home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cdem-service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 38px 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cdem-service-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.cdem-service-card:hover .service-icon-box {
    transform: scale(1.1);
}

.blue-gradient {
    background: linear-gradient(135deg, #0072bc, #004494);
}

.red-gradient {
    background: linear-gradient(135deg, #ce161d, #990f14);
}

.cyan-gradient {
    background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.purple-gradient {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.green-gradient {
    background: linear-gradient(135deg, #10b981, #047857);
}

.orange-gradient {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.service-card-desc {
    font-size: 15.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 26px 0;
    flex-grow: 1;
}

.service-card-link {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--cdem-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.cdem-service-card:hover .service-card-link {
    gap: 12px;
    color: var(--cdem-secondary);
}

/* --- 3. CENTERS OF EXCELLENCE SPOTLIGHT --- */
.cdem-home-coe-bg {
    background: #f1f5f9;
}

.cdem-home-coe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cdem-coe-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.cdem-coe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.1);
}

.coe-card-image-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
}

.foot-bg-tint {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(15, 118, 110, 0.03) 100%);
}

.cardio-bg-tint {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.08) 0%, rgba(136, 19, 55, 0.03) 100%);
}

.sexology-bg-tint {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(30, 64, 175, 0.03) 100%);
}

.coe-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cdem-coe-card:hover .coe-card-image {
    transform: scale(1.08);
}

.coe-image-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    text-transform: uppercase;
}

.foot-gradient {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.cardio-gradient {
    background: linear-gradient(135deg, #be123c, #881337);
}

.sexology-gradient {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.coe-card-body {
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.coe-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px 0;
}

.coe-lead {
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    color: var(--cdem-primary);
    background: #f0f7ff;
    padding: 14px 18px;
    border-left: 4px solid var(--cdem-primary);
    border-radius: 0 12px 12px 0;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.coe-text {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 28px 0;
    flex-grow: 1;
}

.coe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-weight: 700;
    font-size: 14.5px;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cdem-coe-card:hover .coe-btn {
    background: var(--cdem-primary);
    border-color: var(--cdem-primary);
    color: #ffffff;
}

/* --- 4. ABOUT CDEM OVERVIEW --- */
.cdem-home-about-bg {
    background: #ffffff;
}

.cdem-home-about-box {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.about-video-container {
    position: relative;
    width: 100%;
}

.about-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 30, 60, 0.2);
    border: 4px solid #ffffff;
    background: #091e3e;
}

.about-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
}

.about-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.about-card-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.about-card-text {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
}

.about-pills {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-pills span {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-right-col .about-main-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    line-height: 1.25;
}

.about-main-lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--cdem-primary);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.about-main-text {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 36px 0;
}

.about-cta-group {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-btn-primary {
    background: var(--cdem-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 114, 188, 0.25);
    transition: all 0.3s ease;
}

.about-btn-primary:hover {
    background: var(--cdem-secondary);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(206, 22, 29, 0.35);
}

.about-hotline-inline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-hotline-inline .hotline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--cdem-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.about-hotline-inline .hotline-lbl {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.about-hotline-inline .hotline-num {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
}

/* --- 5. MEDICAL LABORATORY BANNER --- */
.cdem-home-lab-bg {
    background: #f8fafc;
}

.cdem-home-lab-banner {
    background: linear-gradient(135deg, #0a192f 0%, #002855 50%, #00509d 100%);
    border-radius: 36px;
    padding: 70px 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(10, 25, 47, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cdem-home-lab-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 50px;
    align-items: center;
}

.lab-banner-image-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-image-card {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.lab-showcase-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-image-card:hover .lab-showcase-img {
    transform: scale(1.05);
}

.lab-badge {
    display: inline-block;
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.lab-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.lab-text {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 820px;
    margin: 0 0 40px 0;
}

.lab-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

.lab-feature-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15.5px;
    font-weight: 600;
}

.lab-feature-item .lab-icon {
    color: #60a5fa;
    font-size: 20px;
}

.lab-btn {
    background: #ffffff;
    color: #003865;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.lab-btn:hover {
    background: var(--cdem-secondary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- 6. NEWS, EVENTS & HEALTH EDUCATION SECTION --- */
.cdem-home-news-bg {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cdem-home-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.cdem-home-cat-header .cat-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cdem-home-cat-header .cdem-home-section-tag {
    margin-bottom: 8px;
}

.cdem-home-cat-header .cdem-home-section-title {
    margin: 0;
    font-size: 32px;
}

.cdem-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #fff;
    color: var(--cdem-primary, #0284c7);
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cdem-view-all-btn:hover {
    background: var(--cdem-primary, #0284c7);
    color: #fff;
    border-color: var(--cdem-primary, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.2);
}

.cdem-view-all-btn.red-btn {
    color: #e11d48;
}

.cdem-view-all-btn.red-btn:hover {
    background: #e11d48;
    color: #fff;
    border-color: #e11d48;
    box-shadow: 0 6px 15px rgba(225, 29, 72, 0.2);
}

.cdem-home-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- 7. ONLINE BOOKING & DOCTOR SEARCH --- */
.cdem-home-booking-bg {
    background: #ffffff;
}

.cdem-home-booking-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 30px;
}

.booking-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.booking-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    max-width: 620px;
}

.booking-launch-btn {
    background: var(--cdem-secondary);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(206, 22, 29, 0.25);
    transition: all 0.3s ease;
}

.booking-launch-btn:hover {
    background: #b81017;
    transform: translateY(-3px);
}

.booking-doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.doc-preview-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.doc-preview-pill:hover {
    border-color: var(--cdem-primary);
    box-shadow: 0 10px 25px rgba(0, 114, 188, 0.1);
    transform: translateY(-4px);
}

.doc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--cdem-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.doc-avatar.red-av {
    background: #fef2f2;
    color: var(--cdem-secondary);
}

.doc-avatar.cyan-av {
    background: #ecfeff;
    color: #0891b2;
}

.doc-avatar.purple-av {
    background: #faf5ff;
    color: #7e22ce;
}

.doc-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.doc-spec {
    font-size: 13.5px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

/* --- 7. EMERGENCY & CONTACT BAR --- */
.cdem-home-emergency-bg {
    background: #f1f5f9;
    padding: 60px 0 100px;
}

.cdem-emergency-banner {
    background: linear-gradient(135deg, #ce161d 0%, #990f14 50%, #003865 100%);
    border-radius: 28px;
    padding: 46px 50px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 20px 40px rgba(206, 22, 29, 0.2);
}

.em-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.em-icon-pulse {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.em-tag {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fecaca;
    display: block;
    margin-bottom: 6px;
}

.em-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.em-address {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.em-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.em-btn-call {
    background: #ffffff;
    color: var(--cdem-secondary);
    font-weight: 800;
    font-size: 18px;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.em-btn-call:hover {
    background: #fef2f2;
    transform: scale(1.05);
}

.em-btn-map {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.em-btn-map:hover {
    background: #ffffff;
    color: #003865;
}


/* --- 8. REDESIGNED CDEM FOOTER SECTION --- */
.cdem-new-footer {
    background: linear-gradient(180deg, #0a192f 0%, #030811 100%);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* CTA Strip */
.cdem-footer-cta-strip {
    background: linear-gradient(135deg, #00509d 0%, #002855 100%);
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-cta-text h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.footer-cta-text p {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ce161d;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(206, 22, 29, 0.35);
}

.footer-btn-primary:hover {
    background: #e61920;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(206, 22, 29, 0.45);
}

.footer-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Main Footer Content */
.cdem-footer-main {
    padding: 70px 0 50px;
}

.cdem-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col-brand .footer-logo-wrap {
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.footer-logo-img {
    max-width: 190px;
    height: auto;
    display: block;
}

.footer-about-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
    background: #0072bc;
    border-color: #0072bc;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 114, 188, 0.4);
}

/* Footer Headings & Links */
.footer-heading {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #ce161d;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 11px;
    color: #0072bc;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links a:hover i {
    color: #ce161d;
}

/* Contact Info Col */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer-contact-item .fc-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(0, 114, 188, 0.15);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 2px;
}

.footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #60a5fa;
}

.footer-contact-item .em-num {
    color: #f87171;
    font-size: 16px;
}

.footer-working-hours {
    margin-top: 24px;
    padding: 12px 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #34d399;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer Bottom Bar */
.cdem-footer-bottom {
    background: #02060d;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links a,
.footer-copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-copyright a:hover {
    color: #ffffff;
}

.footer-legal-links .sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}


/* --- 9. RESPONSIVE HOMEPAGE BREAKPOINTS --- */
@media (max-width: 1099px) {
    .cdem-new-hero {
        min-height: 550px;
        padding: 100px 20px;
    }

    .cdem-new-hero-title {
        font-size: 46px;
    }

    .cdem-new-hero-subtitle {
        font-size: 18px;
    }

    .cdem-home-title {
        font-size: 44px;
    }

    .cdem-home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-home-coe-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-home-about-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cdem-home-lab-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lab-features-grid {
        grid-template-columns: 1fr;
    }

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

    .cdem-emergency-banner {
        flex-direction: column;
        text-align: center;
    }

    .em-content {
        flex-direction: column;
    }

    .cdem-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .cdem-home-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdem-home-cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .cdem-new-hero {
        min-height: 480px;
        padding: 80px 16px;
    }

    .cdem-new-hero-title {
        font-size: 34px !important;
        margin-bottom: 16px !important;
    }

    .cdem-new-hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px !important;
    }

    .cdem-new-search-input,
    .cdem-new-hero-search-box input[type="search"],
    .cdem-new-hero-search-box .is-search-input {
        padding: 14px 18px !important;
        font-size: 15px !important;
    }

    .cdem-new-search-btn,
    .cdem-new-hero-search-box button,
    .cdem-new-hero-search-box input[type="submit"],
    .cdem-new-hero-search-box .is-search-submit {
        padding: 0 20px !important;
        font-size: 16px !important;
        min-width: 60px !important;
    }

    .cdem-home-hero {
        padding: 70px 0 60px;
    }

    .cdem-home-title {
        font-size: 34px;
    }

    .cdem-home-lead {
        font-size: 16.5px;
    }

    .cdem-home-stats-grid {
        grid-template-columns: 1fr;
    }

    .cdem-home-services-grid {
        grid-template-columns: 1fr;
    }

    .cdem-home-coe-grid {
        grid-template-columns: 1fr;
    }

    .cdem-home-section-title {
        font-size: 30px;
    }

    .cdem-home-lab-banner {
        padding: 40px 24px;
    }

    .cdem-home-lab-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lab-title {
        font-size: 30px;
    }

    .booking-header {
        flex-direction: column;
    }

    .booking-doctors-grid {
        grid-template-columns: 1fr;
    }

    .cdem-home-booking-card {
        padding: 30px 20px;
    }

    .em-actions {
        flex-direction: column;
        width: 100%;
    }

    .em-btn-call,
    .em-btn-map {
        width: 100%;
        justify-content: center;
    }

    .cdem-home-posts-grid {
        grid-template-columns: 1fr;
    }

    .cdem-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-cta-flex,
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-cta-buttons {
        justify-content: center;
        width: 100%;
    }

    .footer-btn-primary,
    .footer-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}



/* ==========================================================================
   CDEM Legal & Privacy Policy Template Styles
   ========================================================================== */
.cdem-legal-wrapper {
    background-color: #f8fafc;
    color: #334155;
    font-family: inherit;
    overflow-x: hidden;
    padding-bottom: 90px;
}

/* Hero Section */
.cdem-legal-hero {
    background: linear-gradient(135deg, #07162c 0%, #00306e 50%, #005691 100%);
    position: relative;
    padding: 80px 20px 90px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.cdem-legal-hero-glow1 {
    position: absolute;
    top: -120px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-legal-hero-glow2 {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(206, 22, 29, 0.14) 0%, rgba(206, 22, 29, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cdem-legal-hero-container {
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cdem-legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #e0f2fe;
}

.cdem-legal-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cdem-legal-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto 24px;
}

.cdem-legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.4);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cdem-legal-meta i {
    color: #38bdf8;
    margin-right: 5px;
}

.cdem-legal-meta .sep {
    color: #475569;
}

/* Main Container & Card */
.cdem-legal-main {
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.cdem-legal-container {
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
}

.cdem-legal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 70px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

/* Content Typography */
.cdem-legal-content {
    font-size: 16.5px;
    line-height: 1.85;
    color: #334155;
}

.cdem-legal-content h1,
.cdem-legal-content h2,
.cdem-legal-content h3,
.cdem-legal-content h4 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.cdem-legal-content h1 {
    font-size: 32px;
}

.cdem-legal-content h2 {
    font-size: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-top: 48px;
}

.cdem-legal-content>h2:first-of-type {
    margin-top: 10px;
}

.cdem-legal-content h3 {
    font-size: 20px;
}

.cdem-legal-content p {
    margin-bottom: 22px;
}

.cdem-legal-content ul,
.cdem-legal-content ol {
    margin: 0 0 28px 0;
    padding-left: 28px;
}

.cdem-legal-content li {
    margin-bottom: 12px;
    padding-left: 6px;
}

.cdem-legal-content li::marker {
    color: #0072bc;
    font-weight: bold;
}

.cdem-legal-content a {
    color: #0072bc;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cdem-legal-content a:hover {
    color: #0f172a;
}

.cdem-legal-content strong,
.cdem-legal-content b {
    color: #0f172a;
    font-weight: 700;
}

/* Contact Box Inside Legal Page */
.cdem-legal-contact-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0072bc;
    padding: 24px 30px;
    border-radius: 10px;
    margin-top: 28px;
}

.cdem-legal-contact-box p {
    margin-bottom: 0;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .cdem-legal-hero {
        padding: 60px 16px 70px;
    }

    .cdem-legal-title {
        font-size: 34px;
    }

    .cdem-legal-lead {
        font-size: 16px;
    }

    .cdem-legal-card {
        padding: 35px 24px;
        border-radius: 16px;
    }

    .cdem-legal-content {
        font-size: 15.5px;
    }

    .cdem-legal-content h2 {
        font-size: 21px;
    }

    .cdem-legal-meta {
        flex-direction: column;
        gap: 6px;
        border-radius: 12px;
    }

    .cdem-legal-meta .sep {
        display: none;
    }
}

/* WhatsApp Widget */
.cdem-whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cdem-whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* Back to Top Button */
.cdem-back-to-top {
    position: fixed;
    bottom: 100px;
    /* Positioned above the WhatsApp widget */
    right: 30px;
    background-color: #0072bc;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.cdem-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.cdem-back-to-top:hover {
    transform: translateY(-5px);
    background-color: #005a96;
    color: #fff;
}

/* Responsive Floating Buttons */
@media screen and (max-width: 768px) {
    .cdem-whatsapp-widget {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .cdem-back-to-top {
        bottom: 75px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Order Confirmation Page */
.cdem-order-confirmation-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    max-width: 800px;
    margin: 60px auto;
    border-top: 4px solid #25d366;
}

.cdem-order-confirmation-card .woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
}

.cdem-order-confirmation-card .woocommerce-order-overview li {
    font-size: 14px;
    color: #64748b;
    border: none !important;
}

.cdem-order-confirmation-card .woocommerce-order-overview li strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
    margin-top: 5px;
}

.cdem-order-confirmation-card .woocommerce-order-details {
    margin-top: 40px;
}

.cdem-order-confirmation-card .woocommerce-order-details h2 {
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 20px;
}

.cdem-order-confirmation-card table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.cdem-order-confirmation-card table.shop_table th,
.cdem-order-confirmation-card table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    border-right: none;
    border-left: none;
}

.cdem-order-confirmation-card table.shop_table thead th {
    background: #f8fafc;
    color: #334155;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-top: none;
}

@media screen and (max-width: 768px) {
    .cdem-order-confirmation-card {
        padding: 25px 15px;
        margin: 30px 15px;
    }
}

/* 404 Error Page */
.cdem-404-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 60px 20px;
    background-color: #f8fafc;
    text-align: center;
}

.cdem-404-content {
    max-width: 600px;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cdem-404-title {
    font-size: 100px;
    font-weight: 800;
    color: var(--cdem-primary);
    margin: 0;
    line-height: 1;
}

.cdem-404-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 20px 0;
}

.cdem-404-text {
    font-size: 16px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cdem-404-btn {
    display: inline-block;
    background-color: var(--cdem-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cdem-404-btn:hover {
    background-color: #005bb5;
    color: #ffffff;
    transform: translateY(-2px);
}