/*
Theme Name: Witness Directory
Description: Expert witness directory theme — redesigned to match original site
Version: 2.0.0
Author: Witness Directory
*/


/* ── Teal cursor inside map only ─────────────────────── */
#map, #map * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='28' viewBox='0 0 20 28'%3E%3Cpath d='M0 0 L0 22 L5.5 16 L9 26 L12 24.5 L8.5 14.5 L16 14.5 Z' fill='%2303afa1' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0, auto !important;
}

/* ── Titillium custom web fonts (matching old site) ─── */
@font-face {
    font-family: 'TitilliumText22LLight';
    src: url('assets/fonts/TitilliumText22L002-webfont.eot');
    src: url('assets/fonts/TitilliumText22L002-webfont.eot?#iefix') format('embedded-opentype'),
         url('assets/fonts/TitilliumText22L002-webfont.woff') format('woff'),
         url('assets/fonts/TitilliumText22L002-webfont.ttf') format('truetype'),
         url('assets/fonts/TitilliumText22L002-webfont.svg#TitilliumText22LLight') format('svg');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'TitilliumText22LRegular';
    src: url('assets/fonts/TitilliumText22L003-webfont.eot');
    src: url('assets/fonts/TitilliumText22L003-webfont.eot?#iefix') format('embedded-opentype'),
         url('assets/fonts/TitilliumText22L003-webfont.woff') format('woff'),
         url('assets/fonts/TitilliumText22L003-webfont.ttf') format('truetype'),
         url('assets/fonts/TitilliumText22L003-webfont.svg#TitilliumText22LRegular') format('svg');
    font-weight: normal; font-style: normal;
}

/* Override WordPress global styles dark text variable */
:root { --wp--preset--color--contrast: #ffffff; --wp--preset--color--contrast-2: #ffffff; }

/* ── Base & Typography ───────────────────────────────── */
body {
    font-family: 'TitilliumText22LRegular', 'Titillium Web', Arial, sans-serif;
    background: #fbfbfb;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}
a { color: #069; }
a:hover { color: #3d81a6; text-decoration: underline; }
img { max-width: 100%; height: auto; }
::placeholder { color: #000; opacity: 1; }
::-webkit-input-placeholder { color: #000; opacity: 1; }
::-moz-placeholder { color: #000; opacity: 1; }

/* ── Top Bar ─────────────────────────────────────────── */
.topbar {
    background: url(assets/images/top_stripe.jpg) repeat;
    padding: 10px 0;
}
.topbar ul { list-style: none; margin: 0; padding: 0; }
.topbar ul li { display: inline-block; }
.topbar ul li a {
    margin-right: 15px;
    border-right: 1px solid #fff;
    padding-right: 15px;
    color: #fff;
    text-decoration: none;
    line-height: 0;
}
.topbar ul li:last-child a { border-right: none; }
.topbar a { color: #fff; }
.topbar .login { float: right; }
.topbar .login a { color: #fff; text-decoration: none; }
.topbar .login a:hover { text-decoration: underline; }
.topbar-faq-label { color: #ccc; font-size: 13px; margin-right: 5px; }

/* ── Middle Bar (Logo + Search) ──────────────────────── */
.middlebar {
    background: url(assets/images/logo_bg.jpg) repeat;
    padding: 12px 0;
}
.middlebar .logo img { max-width: 100%; }
.middlebar .logo a { display: inline-block; }

.middlebar-search { text-align: right; margin-top: 8px; }
.middlebar-search form { display: inline-block; width: 100%; }
.middlebar-search form { white-space: nowrap; }
.hdr-country-select {
    width: 22%;
    height: 50px;
    float: left;
    padding: 5px;
    border-radius: 8px;
    box-shadow: inset 0 0 11px rgba(0,0,0,.2);
    background: #00ad9e;
    border: 2px solid #000;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    vertical-align: middle;
    margin-right: 1%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.middlebar-search input[type="text"] {
    width: 54%;
    height: 50px;
    box-shadow: inset 0 0 11px rgba(0,0,0,.2);
    background: #00ad9e;
    border: 2px solid #000;
    border-radius: 8px;
    display: inline-block;
    padding: 0 15px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    vertical-align: middle;
    margin-right: 1%;
}
.middlebar-search input[type="text"]::placeholder { color: #000; opacity: 1; font-weight: bold; }
.middlebar-search input[type="text"]:focus {
    box-shadow: inset 0 0 11px rgba(0,0,0,.2);
    outline: none;
}
.middlebar-search input[type="submit"] {
    background: #f08139;
    height: 50px;
    display: inline-block;
    color: #000;
    border: none;
    border-radius: 7px;
    width: 20%;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    vertical-align: middle;
}
.middlebar-search input[type="submit"]:hover { background: #3d81a6; }

/* ── Navigation Bar ──────────────────────────────────── */
.nav-bar {
    background: url(assets/images/nav_bg.jpg) repeat;
    min-height: 50px;
    position: relative;
    z-index: 90;
}
.nav-bar .navbar {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    width: 100%;
    position: relative;
}
.nav-bar .navbar-default { background: none; }
.nav-bar .navbar-default .navbar-toggle { border: none; background: #f08139; }
.nav-bar .navbar-default .navbar-toggle .icon-bar { background: #fff; }
.nav-bar .navbar-default .navbar-toggle:hover,
.nav-bar .navbar-default .navbar-toggle:focus { background: #f08139; }
.nav-bar .navbar-brand { color: #3d81a6 !important; font-weight: 700; }

/* ── Desktop nav: always visible, centred flex row ──────── */
@media (min-width: 981px) {
    .nav-bar .navbar-brand { display: none; }
    .nav-bar .navbar-toggle { display: none; }
    .nav-bar .navbar-collapse,
    .nav-bar .navbar-collapse.collapse {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .nav-bar .navbar-collapse .navbar-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        float: none !important;
    }
    .nav-bar .nav > li { border-left: 1px solid #d0cfd1; }
    .nav-bar .nav > li:last-child { border-right: 1px solid #d0cfd1; }
    .nav-bar .navbar-default .navbar-nav > li > a {
        line-height: 50px;
        padding: 0 12px;
        white-space: nowrap;
    }
}

/* ── Shared nav link styles ─────────────────────────────── */
.nav-bar .navbar-default .navbar-nav > li > a {
    color: #535353;
    transition: background 0.3s, color 0.3s;
    font-size: 17px;
    font-family: 'TitilliumText22LRegular', Arial, sans-serif;
    font-weight: normal;
    text-transform: uppercase;
}
.nav-bar .navbar-default .navbar-nav > li > a:hover,
.nav-bar .navbar-default .navbar-nav > li.active > a,
.nav-bar .navbar-default .navbar-nav > li.current-menu-item > a {
    background: #3d81a6;
    color: #fff;
}

/* ── Mobile nav: hamburger toggle, Bootstrap collapse ───── */
@media (max-width: 980px) {
    .nav-bar .navbar-brand { display: block; }
    /* Bootstrap hides .navbar-toggle above 768px — force it visible up to 980px */
    .nav-bar .navbar-toggle { display: block !important; }
    /* The collapse panel overlays content when open */
    .nav-bar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: url(assets/images/nav_bg.jpg) repeat;
        z-index: 999;
        padding: 0;
        border-top: 2px solid #d0cfd1;
    }
    .nav-bar .navbar-collapse .navbar-nav {
        float: none !important;
        margin: 0 !important;
        width: 100%;
    }
    .nav-bar .nav > li { border-left: none; border-bottom: 1px solid #d0cfd1; }
    .nav-bar .nav > li:last-child { border-right: none; }
    .nav-bar .navbar-default .navbar-nav > li > a {
        padding: 12px 15px;
        line-height: 1.5;
        white-space: normal;
        border-top: none;
    }
    /* Mobile dropdown: expand inline */
    .nav-bar .dropdown.open .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.06);
    }
}

/* Dropdown menus in nav */
.nav-bar .dropdown-menu {
    border-radius: 0;
    border-color: #d0cfd1;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
    min-width: 200px;
}
.nav-bar .dropdown-menu > li > a {
    font-size: 14px;
    color: #333;
    padding: 8px 15px;
}
.nav-bar .dropdown-menu > li > a:hover {
    background: #3d81a6;
    color: #fff;
}

/* ── Main body wrapper ───────────────────────────────── */
.main_body { margin-top: 25px; margin-bottom: 40px; }
.main_body h1 { font-size: 24px; color: #3d81a6; margin-top: 0; }
.main_body h3 { font-size: 24px; color: #3d81a6; }
.main_body p  { font-size: 16px; margin-top: 0; }
.main_body ol { margin-left: -20px; }
.main_body ol li { font-size: 16px; margin-bottom: 10px; }

/* ── Sidebar Boxes ───────────────────────────────────── */
.sidebar-box {
    border: 1px solid #ccc;
    margin-bottom: 20px;
}
.sidebar-box h3 {
    font-size: 20px;
    color: #3d81a6;
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    background: #fafafa;
}
.sidebar-box .box-body { padding: 10px; }

/* Expert of the Month */
.expert_ofthe_month { border: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 20px; }
.expert_ofthe_month h3 {
    font-size: 24px;
    color: #3d81a6;
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding: 10px;
}
.expert_ofthe_month img { display: block; margin: 0 auto; max-width: 100%; }
.expert_ofthe_month .img { padding: 5px 10px; }

/* Latest News */
.latest_news { border: 1px solid #ccc; margin-top: 25px; }
.latest_news h3 { border-bottom: 1px solid #ccc; font-size: 24px; color: #3d81a6; margin-top: 0; padding: 10px; }
.latest_news ul { list-style: none; margin: 15px; padding: 0; }
.latest_news ul li { position: relative; margin-bottom: 15px; }
.latest_news ul li:last-child { margin-bottom: 0; }
.latest_news ul li a { display: block; font-size: 17px; color: #069; text-decoration: underline; }
.latest_news ul li a:hover { color: #3d81a6; }

/* View Articles / Updated Experts / Similar boxes */
.ViewArticles, .UpdatedExperts, .RecentlyViewedExperts, .csm-right {
    border: 1px solid #ccc;
    margin-top: 15px;
}
.ViewArticles h3, .UpdatedExperts h3, .RecentlyViewedExperts h3, .csm-right h3 {
    font-size: 24px;
    color: #3d81a6;
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding: 10px;
}
.csm-right { margin-bottom: 15px; }
.UpdatedExperts ul { margin: 10px; padding: 0; list-style: none; }
.UpdatedExperts ul li { padding-left: 18px; line-height: 27px; margin-bottom: 5px; position: relative; }
.UpdatedExperts ul li::before { content: '›'; position: absolute; left: 0; color: #3d81a6; font-weight: bold; }
.UpdatedExperts ul li a { text-decoration: underline; color: #069; font-size: 15px; }
.ViewArticles ul li a { text-decoration: underline; color: #069; font-size: 15px; }

/* Recently Viewed Experts */
.RecentlyViewedExperts ul { margin: 0; padding: 8px; list-style: none; overflow: hidden; }
.RecentlyViewedExperts ul li { float: left; margin: 0 4px 8px; width: 28%; font-size: 11px; text-align: center; }
.RecentlyViewedExperts ul li a { color: #069; text-decoration: underline; display: block; }
.RecentlyViewedExperts .experts-img { height: 55px; overflow: hidden; background: #f5f5f5; }
.RecentlyViewedExperts .experts-img img { width: 100%; height: 55px; object-fit: cover; }
.RecentlyViewedExperts .experts-name { height: 28px; overflow: hidden; font-size: 10px; color: #333; margin-top: 2px; }

/* ── Expert Cards (list view — matches old site exactly) */
.expertofMonth { padding: 10px 0; border: 1px solid #ccc; margin-bottom: 20px; }
.expertofMonth .txt h3 { font-size: 18px; color: #222; margin-top: 0; }
.expertofMonth .txt h3 em { font-style: normal; font-size: 15px; }
.expertofMonth .txt h3 a,
.expertofMonth .txt h3 a em { color: #222; text-decoration: none; }
.expertofMonth .txt h3 a:hover { color: #3d81a6; }
.expertofMonth .txt p { font-style: normal; font-size: 15px; color: #222; }
.expertofMonth p em { font-size: 10px; padding-top: 15px; display: block; }
.expertofMonth .txt .update { font-size: 13px; }

/* Expert type buttons — matches old site exactly */
.expert_type { margin-bottom: 15px; }
.expert_type a {
    background: #f08139;
    border-radius: 5px;
    color: #fff !important;
    display: inline-block;
    font-family: 'TitilliumText22LRegular', Arial;
    font-size: 17px;
    line-height: 35px;
    margin-right: 11px;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    padding: 0 20px;
    white-space: nowrap;
}
.expert_type a:hover, .expert_type a.active { background: #3d81a6; }

/* ── Read More Button ────────────────────────────────── */
.readmore {
    display: block;
    padding: 5px 0;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    clear: both;
    width: 100px;
    text-align: center;
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,.3);
    margin-top: 10px;
    background: linear-gradient(to bottom, #0080d0 0%, #0059a7 100%);
    font-size: 14px;
}
.readmore:hover { background: #3d81a6; color: #fff; text-decoration: none; }

/* ── Post Content ────────────────────────────────────── */
.post_content { font-size: 15px; }
.post_content p a { text-decoration: underline; }
.post_content img { max-width: 100%; }

/* ── Profile / Expert Page ───────────────────────────── */
#content_section a { color: #3d81a6; text-decoration: underline; cursor: pointer; }
#content_section h3.profile {
    font-size: 15px;
    margin-bottom: 10px;
    color: #20547d;
    font-weight: bold;
}
.profileimg { border: 5px solid #eee; box-shadow: 0 3px 2px rgba(0,0,0,.3); }
.profileimg img { max-width: 100%; }
.circle {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 5px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
}

/* Benefit box */
.benefit {
    padding: 10px;
    font-style: italic;
    color: #222;
    background: #eee;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
    background: url(assets/images/curve-footer.png) no-repeat bottom center;
    min-height: 265px;
    padding-top: 170px;
}
.footer .footerlinks { text-align: right; list-style: none; margin: 0; padding: 0; }
.footer .footerlinks li { display: inline-block; border-right: 1px solid #fff; text-transform: uppercase; font-size: 13px; }
.footer .footerlinks li:last-child { border-right: none; }
.footer .footerlinks li a { color: #97b3c1; padding: 0 10px; display: inline-block; text-decoration: none; }
.footer .footerlinks li a:hover { color: #fff; text-decoration: none; }
.footer .share { text-align: right; }
.copyright { font-size: 14px; color: #fff; }

/* ── Subscribe form ──────────────────────────────────── */
.subscribe-box h3 { font-size: 24px; color: #3d81a6; margin-top: 0; border-bottom: 1px solid #ccc; padding: 10px; }
.subscribe-box { border: 1px solid #ccc; margin-bottom: 20px; }
.subscribe-box .box-body { padding: 12px; }
.subscribe-box p { font-size: 13px; text-align: center; margin-bottom: 10px; }
.subscribe-box input[type="email"],
.subscribe-box input[type="text"] {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 10px;
    padding: 0 10px;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
}
.subscribe-box select {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
}
.subscribe-box button[type="submit"],
.subscribe-box input[type="submit"] {
    height: 30px;
    border-radius: 4px;
    border: none;
    padding: 0 20px;
    color: #fff;
    background: #f08139;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}
.subscribe-box button[type="submit"]:hover { background: #3d81a6; }
.wd-form-message { padding: 8px 12px; border-radius: 4px; margin-bottom: 8px; display: none; font-size: 13px; }
.wd-form-message.success { background: #e8f5e9; color: #2e7d32; display: block; }
.wd-form-message.error   { background: #ffebee; color: #c62828; display: block; }

/* ── Archive / Search page ───────────────────────────── */
.search-bar-section { background: url(assets/images/logo_bg.jpg) repeat; padding: 15px 0; border-bottom: 1px solid #ddd; }
.search-bar-section .form { text-align: right; }
.archive-title-bar { background: #3d81a6; color: #fff; padding: 12px 0; margin-bottom: 20px; }
.archive-title-bar h1 { font-size: 22px; color: #fff; margin: 0; }
.archive-title-bar p { margin: 4px 0 0; font-size: 14px; opacity: .85; }

/* Expert search filters box */
.search-filters-box { border: 1px solid #ccc; margin-bottom: 20px; }
.search-filters-box h3 { font-size: 18px; color: #3d81a6; margin: 0; border-bottom: 1px solid #ccc; padding: 8px 12px; }
.search-filters-box .filters-body { padding: 12px; }
.search-filters-box label { color: #999; font-size: 14px; display: block; margin-bottom: 3px; }
.search-filters-box input[type="text"],
.search-filters-box select {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 10px;
    padding: 0 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.search-filters-box input[type="submit"],
.search-filters-box button[type="submit"] {
    height: 30px;
    border-radius: 4px;
    border: none;
    padding: 0 20px;
    color: #fff;
    background: #f08139;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}
.search-filters-box input[type="submit"]:hover { background: #3d81a6; }

.filter-results-count { font-size: 14px; color: #666; margin-bottom: 15px; }

/* ── Expert Grid / Cards (modern view) ───────────────── */
.wd-expert-grid { }
.wd-expert-card { border: 1px solid #ccc; margin-bottom: 15px; padding: 10px 0; overflow: hidden; }
.wd-expert-card:hover { border-color: #3d81a6; }
.wd-card-img { float: left; width: 90px; padding: 0 10px; }
.wd-card-img img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.wd-card-body { margin-left: 110px; padding-right: 10px; }
.wd-card-name { margin: 0 0 4px; font-size: 16px; }
.wd-card-name a { color: #222; text-decoration: none; font-weight: 600; }
.wd-card-name a:hover { color: #3d81a6; }
.wd-card-company { color: #555; font-size: 13px; margin: 2px 0; }
.wd-card-cats a { font-size: 12px; color: #3d81a6; text-decoration: underline; margin-right: 4px; }
.wd-card-location { font-size: 13px; color: #777; margin: 3px 0; }
.wd-card-available { font-size: 12px; color: #5a7a3a; font-weight: 600; margin: 2px 0; }
.wd-card-rating { margin: 3px 0; }
.wd-featured-badge { display: inline-block; background: #f0c040; color: #333; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; margin-left: 6px; vertical-align: middle; }
.wd-no-results { text-align: center; padding: 40px 20px; color: #777; }
.wd-no-results a { color: #3d81a6; }
.wd-btn-view { display: inline-block; padding: 4px 14px; background: #f08139; color: #fff; border-radius: 4px; font-size: 12px; text-decoration: none; margin-top: 6px; }
.wd-btn-view:hover { background: #3d81a6; color: #fff; }

/* ── Stars ───────────────────────────────────────────── */
.wd-stars .star.filled { color: #f0c040; }
.wd-stars .star { color: #ccc; }
.wd-rating-count { font-size: 12px; color: #777; margin-left: 3px; }

/* ── Pagination ──────────────────────────────────────── */
.wd-pagination { text-align: center; margin: 30px 0; }
.wd-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #3d81a6;
    text-decoration: none;
    font-size: 13px;
}
.wd-pagination .page-numbers.current { background: #3d81a6; color: #fff; border-color: #3d81a6; }
.wd-pagination .page-numbers:hover { background: #3d81a6; color: #fff; }

/* ── Single Expert Profile ───────────────────────────── */
.expert-profile-page { margin-top: 20px; }
.expert-sidebar-col { }
.expert-main-col { }
.expert-profile-photo {
    border: 5px solid #eee;
    box-shadow: 0 3px 2px rgba(0,0,0,.3);
    max-width: 100%;
    margin-bottom: 12px;
}
.expert-profile-name { font-size: 20px; color: #3d81a6; margin-top: 0; }
.expert-profile-company { font-size: 14px; color: #555; margin-bottom: 8px; }
.expert-contact-list { list-style: none; padding: 0; margin: 0; }
.expert-contact-list li { font-size: 14px; color: #2f7499; line-height: 28px; padding-left: 25px; position: relative; }
.expert-contact-list li .fa { position: absolute; left: 0; top: 6px; color: #3d81a6; }
.expert-section-box { border: 1px solid #ccc; margin-bottom: 20px; }
.expert-section-box h3 {
    font-size: 18px;
    color: #3d81a6;
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding: 10px;
}
.expert-section-box .box-content { padding: 12px; font-size: 15px; }
.expert-cat-tag {
    display: inline-block;
    background: #f08139;
    color: #fff;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    margin: 2px;
    text-decoration: none;
}
.expert-cat-tag:hover { background: #3d81a6; color: #fff; }
.expert-membership-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff3e0;
    color: #e65100;
    margin-bottom: 10px;
}
.expert-membership-badge.platinum { background: #ede7f6; color: #512da8; }

/* ── News / Articles ─────────────────────────────────── */
.post-header h1 { font-size: 26px; color: #3d81a6; }
.post-meta { color: #777; font-size: 13px; margin: 6px 0 15px; }
.post-thumbnail { margin-bottom: 20px; }
.post-thumbnail img { max-width: 100%; }
.entry-content { font-size: 15px; line-height: 1.8; }
.entry-content p { margin-bottom: 14px; }

/* ── Membership / Pricing ────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; margin: 0 auto; }
.pricing-card {
    background: #fff;
    border: 1px solid #ccc;
    padding: 25px;
    text-align: center;
}
.pricing-card.featured { border-color: #3d81a6; }
.pricing-card h3 { font-size: 20px; color: #3d81a6; margin-bottom: 8px; }
.pricing-card .price { font-size: 42px; font-weight: 700; color: #333; margin: 12px 0; }
.pricing-card .price sup { font-size: 18px; vertical-align: top; margin-top: 8px; }
.pricing-card .price-period { font-size: 13px; color: #777; display: block; margin-top: -8px; }
.pricing-card ul { text-align: left; margin: 15px 0 20px; list-style: none; padding: 0; }
.pricing-card ul li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.pricing-card ul li::before { content: '✓ '; color: #3d81a6; font-weight: 700; }
.popular-badge {
    display: inline-block;
    background: #f08139;
    color: #fff;
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ── Buttons (generic) ───────────────────────────────── */
.wd-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    font-size: 14px;
    transition: .2s;
}
.wd-btn-primary  { background: #3d81a6; color: #fff; border-color: #3d81a6; }
.wd-btn-primary:hover  { background: #2a6485; color: #fff; border-color: #2a6485; }
.wd-btn-outline  { background: transparent; color: #3d81a6; border-color: #3d81a6; }
.wd-btn-outline:hover  { background: #3d81a6; color: #fff; }
.wd-btn-orange   { background: #f08139; color: #fff; border-color: #f08139; }
.wd-btn-orange:hover  { background: #3d81a6; color: #fff; }
.wd-btn-sm { padding: 5px 14px; font-size: 12px; }

/* ── Modal (login popup) ─────────────────────────────── */
.modal-header { border-bottom: none; }
button.close {
    color: #000; float: right; font-size: 20px; font-weight: 700; line-height: 1;
    border-radius: 50%; border: 1px solid #ccc; padding: 0 5px 2px 3px; background: none; opacity: 1;
}
.modal-body .login { padding: 5px 5px 15px; }
.modal-body .login input[type="text"],
.modal-body .login input[type="password"] {
    width: 100%; height: 30px; border-radius: 4px; border: 1px solid #ccc;
    background: #fff; margin-bottom: 18px; padding: 0 12px;
}
.modal-body .login button[type="submit"] {
    height: 30px; border-radius: 4px; border: none; padding: 5px 20px;
    color: #fff; background: #f08139; text-transform: uppercase; width: 100%; margin-bottom: 15px; cursor: pointer;
}
.modal-body .login button[type="submit"]:hover { background: #3d81a6; }

/* ── Section headers / page titles ───────────────────── */
.section-title-bar {
    border-bottom: 2px solid #3d81a6;
    margin-bottom: 20px;
    padding-bottom: 8px;
}
.section-title-bar h2 {
    font-size: 22px;
    color: #3d81a6;
    margin: 0;
    display: inline-block;
    border-bottom: 3px solid #f08139;
    padding-bottom: 6px;
}

/* ── Category grid ───────────────────────────────────── */
.wd-category-grid { }
.wd-cat-block {
    display: block;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 12px;
    text-decoration: none;
    margin-bottom: 5px;
    transition: .2s;
    font-size: 14px;
}
.wd-cat-block:hover { background: #3d81a6; color: #fff; border-color: #3d81a6; text-decoration: none; }
.wd-cat-block:hover .wd-cat-name { color: #fff; }
.wd-cat-name { display: block; font-weight: 600; color: #3d81a6; font-size: 14px; }
.wd-cat-count { display: block; font-size: 11px; color: #777; margin-top: 2px; }

/* ── Dashboard / profile forms ───────────────────────── */
.wd-form-row { margin-bottom: 14px; }
.wd-form-row label { font-size: 13px; color: #666; display: block; margin-bottom: 3px; }
.wd-form-row input,
.wd-form-row select,
.wd-form-row textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 14px; box-sizing: border-box; background: #fff;
}
.wd-form-row textarea { resize: vertical; }
.wd-form-row input:focus,
.wd-form-row select:focus,
.wd-form-row textarea:focus { outline: none; border-color: #3d81a6; }
.wd-form-message { padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; display: none; font-size: 13px; }
.wd-form-message.success { background: #e8f5e9; color: #2e7d32; display: block; }
.wd-form-message.error   { background: #ffebee; color: #c62828; display: block; }
.wd-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.wd-tab { flex: 1; padding: 12px; background: #f5f5f5; border: 1px solid #ccc; cursor: pointer; font-weight: 600; font-size: 14px; text-align: center; }
.wd-tab.active { background: #3d81a6; color: #fff; border-color: #3d81a6; }
.wd-cat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 6px; max-height: 280px; overflow-y: auto; padding: 10px; background: #fafafa; border: 1px solid #ccc; border-radius: 4px; }
.wd-cat-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; padding: 3px 0; }
.wd-cat-label input { margin: 0; }

/* ── Featured experts (profile photos grid) ──────────── */
.wd-featured-experts { display: flex; flex-wrap: wrap; gap: 12px; }
.wd-featured-card { text-align: center; width: 100px; }
.wd-featured-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 3px solid #eee; }
.wd-featured-card h4 { margin: 6px 0 2px; font-size: 12px; }
.wd-featured-card h4 a { color: #222; text-decoration: none; }
.wd-featured-card h4 a:hover { color: #3d81a6; }
.wd-featured-card p { font-size: 11px; color: #777; margin: 0; }

/* ── Ads ─────────────────────────────────────────────── */
.wd-ads { margin: 15px 0; text-align: center; }
.wd-ad-item { display: inline-block; padding: 8px 16px; background: #f08139; color: #fff; border-radius: 4px; margin: 4px; font-size: 13px; text-decoration: none; }
.wd-ad-item:hover { background: #3d81a6; color: #fff; }

/* ── HR ──────────────────────────────────────────────── */
hr { border-top: 1px solid #ccc; }
hr.fancy-line {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #20547d, transparent);
    margin: 14px 0;
}

/* ── Misc Bootstrap overrides ────────────────────────── */
.navbar-collapse { overflow-x: visible; }
*:focus { outline: 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 767px) {
    /* Topbar: keep white inline style, wrap onto two compact rows */
    .topbar { padding: 6px 0; }
    .topbar ul.pull-left { float: none !important; display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
    .topbar ul li { display: inline-block; }
    .topbar ul li a {
        display: inline-block;
        margin-right: 0;
        margin-bottom: 0;
        border-right: 1px solid #fff;
        border-left: none;
        padding: 2px 8px;
        background: none;
        color: #fff;
        line-height: 24px;
        font-size: 12px;
    }
    .topbar ul li:last-child a { border-right: none; }
    .topbar .login { float: none !important; display: block; margin-bottom: 0; font-size: 12px; }

    /* Middlebar search: resize all three fields so they add up to ≤100% */
    .hdr-country-select { width: 27%; height: 38px; font-size: 14px; }
    .middlebar-search input[type="text"] { width: 44%; font-size: 14px; height: 38px; }
    .middlebar-search input[type="submit"] { width: 24%; font-size: 12px; height: 38px; }

    .footer .footerlinks, .footer .copyright { text-align: center; }
    .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
    /* Very small: country select stacks above, text+submit share a row */
    .middlebar-search form { white-space: normal; }
    .hdr-country-select { width: 100%; float: none; margin-right: 0; margin-bottom: 6px; display: block; height: 38px; font-size: 14px; }
    .middlebar-search input[type="text"] { width: 68%; font-size: 14px; height: 38px; }
    .middlebar-search input[type="submit"] { width: 28%; font-size: 12px; height: 38px; margin-right: 0; }
    .expert_type a { width: 100%; margin: 0 0 10px; }
}

/* ── Expert Dashboard ────────────────────────────────── */
.wd-dash { display:flex; gap:24px; align-items:flex-start; max-width:1100px; margin:0 auto; padding:24px 12px; }
.wd-dash-side { width:220px; flex-shrink:0; background:#fff; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.08); overflow:hidden; }
.wd-dash-side-top { background:#2c3e8c; color:#fff; text-align:center; padding:20px 12px 16px; }
.wd-dash-side-top img { width:80px; height:80px; border-radius:50%; object-fit:cover; border:3px solid rgba(255,255,255,.4); margin:0 auto 10px; display:block; }
.wd-dash-side-top h3 { font-size:14px; font-weight:600; margin:0 0 4px; color:#fff; line-height:1.3; }
.wd-dash-side-top .wd-mem-badge { display:inline-block; background:rgba(255,255,255,.2); border-radius:20px; padding:2px 10px; font-size:11px; color:#fff; margin-bottom:6px; }
.wd-dash-side-top .wd-status { font-size:11px; padding:2px 8px; border-radius:20px; display:inline-block; margin-bottom:8px; }
.wd-status-active { background:#22c55e; color:#fff; }
.wd-status-inactive { background:#ef4444; color:#fff; }
.wd-dash-side-top a.wd-view-btn { display:block; background:rgba(255,255,255,.15); color:#fff; border-radius:4px; padding:6px 0; font-size:12px; text-align:center; margin-top:8px; text-decoration:none; }
.wd-dash-side-top a.wd-view-btn:hover { background:rgba(255,255,255,.3); }
.wd-dash-side-top label.wd-change-photo-btn { display:block; cursor:pointer; background:rgba(255,255,255,.1); color:#fff; border-radius:4px; padding:5px 0; font-size:11px; text-align:center; margin-top:6px; }
.wd-dash-side-top label.wd-change-photo-btn:hover { background:rgba(255,255,255,.25); }
.wd-dash-side-top label.wd-change-photo-btn input { display:none; }
.wd-dash-nav { padding:10px 0; }
.wd-dash-nav a { display:block; padding:9px 18px; font-size:13px; color:#444; text-decoration:none; border-left:3px solid transparent; }
.wd-dash-nav a:hover { background:#f4f6fd; color:#2c3e8c; }
.wd-dash-nav a.active { background:#f4f6fd; color:#2c3e8c; border-left-color:#2c3e8c; font-weight:600; }
.wd-dash-nav a.wd-upgrade-link { color:#e67e22; font-weight:600; }
.wd-dash-nav .nav-sep { height:1px; background:#eee; margin:6px 0; }
.wd-dash-nav a.wd-logout-link { color:#c0392b; }
.wd-dash-nav a.wd-nav-page-link { color:#03afa1; }
.wd-dash-nav a.wd-nav-page-link::after { content:" ↗"; font-size:10px; opacity:.7; }
.wd-dash-main { flex:1; min-width:0; }
.wd-dash-section { display:none !important; }
.wd-dash-section.active { display:block !important; }
.wd-dash-section h2 { font-size:18px; font-weight:700; color:#2c3e8c; margin:0 0 18px; padding-bottom:10px; border-bottom:2px solid #e8ecf5; }
.wd-panel { background:#fff; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.07); padding:24px; margin-bottom:20px; }
.wd-notice-warning { background:#fff3cd; border:1px solid #ffc107; border-radius:6px; padding:12px 16px; font-size:13px; margin-bottom:20px; color:#856404; }
.wd-form-row { margin-bottom:14px; }
.wd-form-row label { display:block; font-size:12px; font-weight:600; color:#666; margin-bottom:4px; text-transform:uppercase; letter-spacing:.4px; }
.wd-form-row input[type=text], .wd-form-row input[type=email], .wd-form-row input[type=tel],
.wd-form-row input[type=url], .wd-form-row input[type=number], .wd-form-row input[type=password],
.wd-form-row select, .wd-form-row textarea { width:100%; padding:9px 12px; border:1px solid #dde2ef; border-radius:5px; font-size:14px; color:#333; background:#fafbfe; box-sizing:border-box; transition:border-color .2s; }
.wd-form-row input:focus, .wd-form-row select:focus, .wd-form-row textarea:focus { border-color:#2c3e8c; outline:none; background:#fff; }
.wd-form-row textarea { resize:vertical; }
.wd-form-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.wd-form-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.wd-form-message { font-size:13px; padding:8px 0; min-height:20px; }
.wd-form-message.success { color:#16a34a; }
.wd-form-message.error { color:#dc2626; }
.wd-btn-primary { background:#2c3e8c; color:#fff; border:none; border-radius:5px; padding:10px 22px; font-size:14px; font-weight:600; cursor:pointer; transition:background .2s; }
.wd-btn-primary:hover { background:#1e2d6b; }
.wd-btn-outline { background:transparent; color:#2c3e8c; border:1px solid #2c3e8c; border-radius:5px; padding:8px 16px; font-size:13px; cursor:pointer; transition:all .2s; text-decoration:none; display:inline-block; }
.wd-btn-outline:hover { background:#2c3e8c; color:#fff; }
.wd-btn-danger { background:#dc2626; color:#fff; border:none; border-radius:4px; padding:5px 12px; font-size:12px; cursor:pointer; }
.wd-btn-danger:hover { background:#b91c1c; }
.wd-btn-sm { padding:6px 14px; font-size:12px; }
.wd-check-row { display:flex; align-items:center; gap:8px; font-size:14px; }
.wd-check-row input[type=checkbox] { width:16px; height:16px; }
.wd-gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:12px; margin-bottom:20px; }
.wd-gallery-item { position:relative; border-radius:6px; overflow:hidden; background:#f1f3fa; aspect-ratio:1; }
.wd-gallery-item img { width:100%; height:100%; object-fit:cover; display:block; }
.wd-gallery-item .del-overlay { position:absolute; top:4px; right:4px; }
.wd-video-list, .wd-doc-list, .wd-audio-list, .wd-post-list { list-style:none; margin:0 0 20px; padding:0; }
.wd-video-list li, .wd-doc-list li, .wd-audio-list li, .wd-post-list li { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid #eee; gap:12px; font-size:14px; flex-wrap:wrap; }
.wd-video-list li:last-child, .wd-doc-list li:last-child, .wd-audio-list li:last-child, .wd-post-list li:last-child { border-bottom:none; }
.vid-title, .doc-name, .post-title { flex:1; }
.vid-title, .doc-name { font-weight:600; color:#222; }
.post-title a { color:#2c3e8c; font-weight:600; text-decoration:none; }
.post-title a:hover { text-decoration:underline; }
.post-status { font-size:11px; padding:2px 8px; border-radius:20px; flex-shrink:0; }
.ps-publish { background:#dcfce7; color:#16a34a; }
.ps-draft { background:#f1f5f9; color:#64748b; }
.doc-icon { font-size:20px; }
.wd-cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px; max-height:400px; overflow-y:auto; padding:4px; margin-bottom:16px; }
.wd-cat-label { display:flex; align-items:center; gap:7px; font-size:13px; cursor:pointer; padding:5px 8px; border-radius:4px; }
.wd-cat-label:hover { background:#f4f6fd; }
.wd-review { padding:14px 0; border-bottom:1px solid #eee; }
.wd-review:last-child { border-bottom:none; }
.wd-review-stars { color:#f59e0b; font-size:16px; margin-bottom:4px; }
.wd-review strong { display:block; font-size:14px; margin-bottom:2px; }
.wd-review p { font-size:13px; color:#555; margin:4px 0; }
.wd-review small { color:#999; font-size:11px; }
.wd-badge-item { margin-bottom:24px; }
.wd-badge-item h4 { font-size:14px; font-weight:600; margin-bottom:8px; }
.wd-badge-item img { display:block; margin-bottom:8px; }
.wd-badge-item textarea { width:100%; height:80px; font-size:11px; font-family:monospace; border:1px solid #dde2ef; border-radius:4px; padding:8px; resize:vertical; }
.wd-pw-toggle { background:none; border:none; color:#2c3e8c; font-size:13px; cursor:pointer; padding:0; text-decoration:underline; margin-bottom:14px; display:inline-block; }
.wd-pw-section { display:none; }
@media (max-width:700px) {
    .wd-dash { flex-direction:column; }
    .wd-dash-side { width:100%; }
    .wd-form-grid-2, .wd-form-grid-3 { grid-template-columns:1fr; }
    .wd-gallery-grid { grid-template-columns:repeat(3,1fr); }
}

/* ── Article form & list ─────────────────────────────────── */
.wd-article-actions { margin-left:12px; font-size:12px; }
.wd-article-actions a { color:#3d81a6; margin-right:8px; text-decoration:none; }
.wd-article-actions a:hover { text-decoration:underline; }
.wd-delete-article-btn { color:#c0392b !important; }

/* ── Profile page sections ───────────────────────────────── */
h3.profile {
    font-size:18px;
    color:#20547d;
    font-weight:bold;
    margin:16px 0 8px 0;
}
/* hr.fancy-line defined above */
.movies {
    margin-bottom:20px;
    clear:both;
}
.movies .head {
    background: url(assets/images/dot_bg.jpg) repeat-x center;
    border-bottom: 1px solid #ddd;
    text-align: center;
    padding: 6px 0;
    margin-bottom: 12px;
}
.movies .head .title {
    display: inline-block;
    background: #fff;
    padding: 0 12px;
    font-size: 18px;
    font-weight: bold;
    color: #20547d;
    min-width: 160px;
}
.gallerycontainer { clear:both; }
.gallerycontainer a.thumbnail {
    display:inline-block !important;
    border:1px solid #ddd !important;
    margin:4px;
    padding:2px;
    border-radius:3px;
}
.gallerycontainer img { display:block; }

/* ── Expert profile sidebar ──────────────────────────────── */
.expert-contact-list, .expert-contact-list li {
    list-style:none;
    padding:0;
    margin:0 0 4px 0;
    font-size:13px;
}
p.review {
    border-bottom:1px solid #f0f0f0;
    padding:12px 0;
    font-size:13px;
    line-height:1.6;
}

/* ── Archived News / Articles ────────────────────────────── */
/* ── Responsive video wrapper (about page, etc.) ─────── */
.videoWrapper {
    position: relative;
    padding-bottom: 40.25%;
    padding-top: 25px;
    height: 0;
    margin-bottom: 30px;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.archivedNews ul, .archivedNews li ul { list-style: none; margin: 0; padding: 0; }
.archivedNews li ul { margin-top: 20px; }
.archivedNews li ul li { font-size: 15px; font-weight: bold; }
.archivedNews li ul li:first-child { margin-bottom: 10px; }
.archivedNews ul li { font-size: 14px; margin-bottom: 8px; line-height: 1.5; border-bottom: 1px solid #f0f0f0; padding-bottom: 6px; }
.archivedNews ul li a { color: #069; text-decoration: underline; }
.archivedNews ul li a:hover { color: #3d81a6; }
.article_right { border: 1px solid #ccc; padding: 12px; }
.article_right ul { list-style: none; margin: 0; padding: 0; }
.article_right ul li { font-size: 13px; margin-bottom: 6px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.article_right ul li a { color: #069; text-decoration: underline; }

/* ── Legal Resources page ────────────────────────────────── */
.wd-lr-section h4 {
    font-size:16px;
    color:#3d81a6;
    border-bottom:2px solid #3d81a6;
    padding-bottom:6px;
    margin-bottom:16px;
}

/* ── Rating stars (star.png sprite — matches old site design.css) ── */
.rating_r_aline { float:right; }
#stronimg {
    background: url(assets/images/star.png) no-repeat 0 -32px;
    float: left;
    height: 16px;
    overflow: hidden;
    text-indent: -999em;
    width: 18px;
}
#strimg {
    background: url(assets/images/star.png) no-repeat 0 0;
    float: left;
    height: 16px;
    overflow: hidden;
    text-indent: -999em;
    width: 18px;
}

/* ── Dashboard nav icons ─────────────────────────────────── */
.wd-dash-nav a { display:flex; align-items:center; gap:8px; }
.wd-nav-icon { width:20px; height:20px; object-fit:contain; flex-shrink:0; }

/* ── Header dropdown icons ───────────────────────────────── */
.wd-profile-dropdown a { display:flex; align-items:center; gap:8px; font-size:14px; }
.wd-profile-dropdown a img { width:18px; height:18px; object-fit:contain; flex-shrink:0; }

/* Container matches old site — Bootstrap default 1170px at ≥1200px */

/* ── Bigger logo ─────────────────────────────────────────── */
.middlebar .logo img { max-height: 90px; width: auto; }

/* ── Profile accordion expand/collapse ───────────────────── */
.wd-expandable {
    overflow: hidden;
    max-height: 110px;
    position: relative;
}
.wd-expandable.expanded { max-height: none; }
.wd-expand-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
    pointer-events: none;
}
.wd-expand-fade.hidden { display: none; }
a.wd-read-more {
    display: inline-block;
    color: #3d81a6;
    font-size: 13px;
    cursor: pointer;
    margin: 4px 0 8px;
    text-decoration: none;
}
a.wd-read-more:hover { text-decoration: underline; }

/* ── Front page video section ────────────────────────────── */
.wd-hp-video { margin:20px 0; text-align:center; }
.wd-hp-video iframe { width:100%; max-width:640px; height:360px; border:none; border-radius:6px; }

/* ── Expert of month — image only, stacked ───────────────── */
.expert_ofthe_month .img { padding: 5px 10px; text-align:center; }
.expert_ofthe_month .img a { display:block; }
.expert_ofthe_month .img img { max-width:100%; height:auto; display:block; margin:0 auto; }

/* ── Newsletter sidebar box ──────────────────────────────── */
.wd-ad-box { background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.wd-ad-box h3 { background: #3d81a6; color: #fff; font-size: 14px; margin: 0; padding: 11px 16px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.wd-ad-body { padding: 14px 16px; }
.wd-ad-body p { font-size: 13px; color: #555; margin: 0 0 12px; line-height: 1.5; }
.wd-ad-btn { display: block; width: 100%; text-align: center; background: #f08139; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 9px 0; border-radius: 4px; text-decoration: none; transition: background .2s; }
.wd-ad-btn:hover { background: #3d81a6; color: #fff; text-decoration: none; }

.wd-newsletter-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.wd-newsletter-box h3 {
    background: #3d81a6;
    color: #fff;
    font-size: 14px;
    margin: 0;
    padding: 11px 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
}
.wd-nl-body { padding: 14px 16px; }
.wd-nl-body p { font-size: 13px; color: #777; margin: 0 0 12px; line-height: 1.5; }
.wd-nl-body input[type="email"] {
    width: 100%;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}
.wd-nl-body input[type="email"]:focus {
    border-color: #f08139;
    outline: none;
    box-shadow: 0 0 0 2px rgba(240,129,57,.15);
}
/* Country pill toggle */
.wd-nl-countries {
    display: flex;
    margin-bottom: 12px;
}
.wd-nl-countries input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.wd-nl-countries label {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border: 2px solid #ddd;
    border-right: none;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    margin: 0;
    transition: all .2s;
}
.wd-nl-countries label:first-of-type { border-radius: 4px 0 0 4px; }
.wd-nl-countries label:last-of-type  { border-right: 2px solid #ddd; border-radius: 0 4px 4px 0; }
.wd-nl-countries input[type="radio"]:checked + label {
    background: #3d81a6;
    border-color: #3d81a6;
    color: #fff;
}
/* Subscribe button */
.wd-nl-btn {
    width: 100%;
    height: 38px;
    background: #f08139;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s;
}
.wd-nl-btn:hover { background: #3d81a6; }

/* Legacy searchbtn kept in case used elsewhere */
.searchbtn { height: 30px; border-radius: 4px; border: none; padding: 5px 30px; color: #fff; background: #f08139; text-transform: uppercase; width: 100%; cursor: pointer; display: block; box-sizing: border-box; }
.searchbtn:hover { background: #3d81a6; }

/* ── Redesigned expert search sidebar ─────────────────────── */
.wd-search-box { background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.wd-search-box h3 { background: #3d81a6; color: #fff; font-size: 14px; margin: 0; padding: 11px 16px; letter-spacing: .6px; text-transform: uppercase; border-bottom: none; }
.wd-search-body { padding: 14px 16px; }

/* Expert type radio toggle */
.wd-field { margin-bottom: 12px; }
.wd-field > label:first-child { display: block; font-size: 11px; font-weight: 700; color: #888; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.wd-etype { display: flex; gap: 0; }
.wd-etype input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.wd-etype label { flex: 1; text-align: center; padding: 7px 4px; border: 2px solid #ddd; font-size: 12px; font-weight: 600; color: #666; cursor: pointer; transition: all .15s; line-height: 1.2; }
.wd-etype label:first-of-type { border-radius: 4px 0 0 4px; }
.wd-etype label:last-of-type  { border-radius: 0 4px 4px 0; border-left: none; }
.wd-etype input[type=radio]:checked + label { border-color: #3d81a6; background: #3d81a6; color: #fff; }

/* Fields */
.wd-field input[type=text],
.wd-field input[type=search],
.wd-field select { width: 100%; height: 34px; border: 1px solid #ccc; border-radius: 4px; padding: 0 10px; font-size: 13px; color: #333; background: #fafafa; box-sizing: border-box; transition: border-color .15s; }
.wd-field input[type=text]:focus,
.wd-field input[type=search]:focus,
.wd-field select:focus { border-color: #3d81a6; background: #fff; outline: none; box-shadow: 0 0 0 2px rgba(61,129,166,.12); }
.wd-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* Search button */
.wd-search-btn { width: 100%; height: 38px; background: #f08139; border: none; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; cursor: pointer; margin-top: 4px; transition: background .2s; }
.wd-search-btn:hover { background: #3d81a6; }

/* ── Subscribe box in sidebars ───────────────────────────── */
.subscribe-box { border: 1px solid #ccc; margin-top: 15px; }
.subscribe-box h3 { font-size: 24px; color: #3d81a6; margin-top: 0; border-bottom: 1px solid #ccc; padding: 10px; }
.subscribe-box .box-body { padding: 15px; }
.subscribe-box input[type="text"],
.subscribe-box input[type="email"],
.subscribe-box select { width: 100%; height: 30px; border-radius: 4px; border: 1px solid #ccc; background: #fff; margin-bottom: 10px; padding: 0 10px; display: block; box-sizing: border-box; }
.subscribe-box button { width: 100%; height: 30px; border-radius: 4px; border: none; color: #fff; background: #f08139; text-transform: uppercase; cursor: pointer; }
.subscribe-box button:hover { background: #3d81a6; }

/* ── bxSlider — blue banner background matching old site ──── */
.bxslider { margin: 0; padding: 0; }
.bxslider li { overflow: hidden; }
/* Force video to fill the .right column and establish slider height */
.bxslider .right video {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}
/* Ensure the viewport is tall enough before the video loads */
.bx-wrapper .bx-viewport { min-height: 300px; }

/* ── Category grid page (archive-expert categories mode) ──── */
h4.expert_type { margin-bottom: 10px; display: flex; flex-wrap: nowrap; gap: 10px; align-items: stretch; }
h4.expert_type a { flex: 1; min-width: 0; background: #f08139; border-radius: 5px; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1.3; text-align: center; text-decoration: none !important; text-transform: uppercase; padding: 8px; white-space: normal; }
h4.expert_type a:hover, h4.expert_type a.active { background: #3d81a6; }
h4.searchkey { margin: 10px 0; }
h4.searchkey a { padding-right: 11px; color: #222; text-decoration: none; font-size: 15px; }
h4.searchkey a:hover, h4.searchkey a.active-letter { color: #3d81a6; font-weight: bold; }
.expert h4 { border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 0; }
.expert h4 a { color: #222; text-decoration: none; font-size: 15px; }
.expert h4 a:hover { color: #3d81a6; }
h4.cats { border-bottom: 1px solid #ccc; padding-bottom: 8px; margin-bottom: 0; margin-top: 6px; }
h4.cats a.desctext { color: #069; text-decoration: none; font-size: 15px; }
h4.cats a.desctext:hover { color: #3d81a6; text-decoration: underline; }
a.desctext1 { color: #222; text-decoration: none; }
a.desctext1:hover { color: #3d81a6; }

/* ── Expert list page map ─────────────────────────────────── */
.map#map { width: 100%; height: 300px; margin-bottom: 15px; }

/* ── Expert list total records ───────────────────────────── */
.totrecs { font-size: 14px; color: #555; }

/* ── Sidebar ad section header ───────────────────────────── */
.art_head { border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 10px; }
.art_head a { text-decoration: none; }
.csm-right .desc { font-size: 13px; color: #555; margin-top: 5px; }

/* ── Expert list mode pagination ─────────────────────────── */
.wd-pagination { margin-top: 15px; }
.wd-pagination .page-numbers { display: inline-block; padding: 4px 10px; border: 1px solid #ccc; margin: 2px; color: #3d81a6; text-decoration: none; }
.wd-pagination .page-numbers.current { background: #3d81a6; color: #fff; border-color: #3d81a6; }

/* ── Form fields — exact match to old site design.css ────── */
.txtfield {
    border: 1px solid #DFDFDF; color: #666; font-family: Arial;
    font-size: 14px; height: 30px; margin-bottom: 10px;
    padding-left: 5px; width: 100%; border-radius: 5px; box-sizing: border-box;
}
.textarea {
    border: 1px solid #DFDFDF; color: #666; font-family: Arial;
    font-size: 14px; margin-bottom: 10px; padding: 5px;
    width: 100%; vertical-align: baseline; border-radius: 5px; box-sizing: border-box;
}
.num2 {
    border: 1px solid #DFDFDF; color: #666; font-family: Arial;
    font-size: 14px; height: 84px; margin-bottom: 10px;
    padding-left: 5px; width: 100%; border-radius: 5px; box-sizing: border-box;
}
.lbl {
    color: #333333; font-size: 17px; font-family: 'TitilliumText22LRegular', Arial;
    margin-bottom: 15px; padding-bottom: 8px;
}
.add_member {
    background: #F08139; border-radius: 5px; border: none;
    color: #FFFFFF; font-family: 'TitilliumText22LRegular', Arial;
    font-size: 17px; text-transform: uppercase; padding: 6px 15px; cursor: pointer;
}
.add_member:hover { background: #3D81A6; cursor: pointer; }
.success { color: #00CC00; font-size: 16px; font-weight: bold; text-align: center; margin-top: 15px; }
.errors  { color: #FF0000; font-weight: bold; }

/* ── Contact/Register form layout — matches old site ─────── */
.contact_form form .row { margin-bottom: 20px; }
.contact_form form label { color: #999; font-size: 17px; }
.contact_form form input[type="text"],
.contact_form form input[type="email"],
.contact_form form input[type="password"],
.contact_form form input[type="tel"],
.contact_form form textarea {
    width: 100%; height: 30px; border-radius: 4px;
    border: 1px solid #ccc; background: #fff;
    padding: 0 10px; font-size: 14px; box-sizing: border-box; color: #666;
}
.contact_form form textarea { height: auto; padding: 10px; }
.contact_form form input[type="submit"],
.contact_form form button[type="submit"] {
    height: 34px; border-radius: 4px; border: none;
    padding: 5px 30px; color: #fff; background: #f08139;
    text-transform: uppercase; font-size: 15px; cursor: pointer;
}
.contact_form form input[type="submit"]:hover,
.contact_form form button[type="submit"]:hover { background: #3d81a6; }

/* ── Profile detail labels (addrating / profile page) ────── */
.detail_lbs {
    color: #333333; float: left; font-family: 'TitilliumText22LRegular', Arial;
    font-size: 17px; width: 90px; padding: 4px;
}
.detail_username {
    color: #20547D; font-family: 'TitilliumText22LRegular', Arial;
    font-size: 17px; margin-bottom: 10px; clear: both;
}
#content_section ul { float: left; list-style: none; margin: 0; padding: 0; width: 100%; }
#content_section ul li { font-size: 16px; color: #2F7499; line-height: 28px; padding-left: 30px; }
#content_section ul li.tel   { background: url(assets/images/phone.png)  no-repeat left center; overflow: hidden; }
#content_section ul li.email { background: url(assets/images/email.png)  no-repeat left center; overflow: hidden; }
#content_section ul li.eweb  { background: url(assets/images/globe.gif)  no-repeat left center; overflow: hidden; }
#content_section ul li.rate  { background: url(assets/images/hoop.png)   no-repeat left center; overflow: hidden; }
.fancy-line {
    border: 0; height: 1px; margin: 10px 0;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

/* ── Review boxes — styled, colour-co-ordinated ──────────── */
.wd-review-box {
    border: 1px solid #e0eaf0;
    border-left: 4px solid #3d81a6;
    border-radius: 4px;
    background: #f7fbfd;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.wd-review-box .wd-review-stars { margin-bottom: 6px; overflow: hidden; }
.wd-review-box .wd-review-comment {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}
.wd-review-box .wd-review-meta {
    font-size: 13px;
    color: #3d81a6;
    border-top: 1px solid #d0e4ef;
    padding-top: 8px;
    margin-top: 4px;
}
.wd-review-box .wd-review-meta strong { color: #20547d; }
.wd-review-box .wd-review-jobtitle { color: #888; font-style: italic; }
.wd-review-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: #eaf4fb;
    border-left: 3px solid #f08139;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
}
.wd-review-reply strong { color: #f08139; }
.wd-review-actions { margin-top: 10px; }
.wd-review-actions a {
    font-size: 13px; color: #3d81a6; text-decoration: underline; margin-right: 12px;
}

/* ── Login modal — exact old site sizing ─────────────────── */
@media (min-width: 768px) {
    #loginModal .modal-dialog { width: 400px; margin: 50px auto 0; }
}
#loginModal .modal-header { border-bottom: none; }
#loginModal .modal-body .login { padding: 5px 5px 15px; }
#loginModal .modal-body .login input[type="text"],
#loginModal .modal-body .login input[type="password"] {
    width: 100%; height: 30px; border-radius: 4px;
    border: 1px solid #ccc; background: #fff;
    margin-bottom: 20px; padding: 0 15px;
    font-size: 14px; box-sizing: border-box;
}
#loginModal .modal-body .login button[type="submit"],
#loginModal .modal-body .login input[type="submit"] {
    height: 30px; border-radius: 4px; border: none;
    padding: 5px 30px; color: #fff; background: #f08139;
    text-transform: uppercase; width: 100%; margin-bottom: 20px; cursor: pointer;
}
#loginModal .modal-body .login button[type="submit"]:hover { background: #3d81a6; }
.login_msg { min-height: 1px; color: #c00; font-size: 13px; margin-bottom: 8px; }

/* ── Subscribe box — match old site ─────────────────────── */
.subscribe-box h3 { font-size: 24px; color: #3d81a6; margin-top: 0; border-bottom: 1px solid #ccc; padding: 10px; }

/* ── Review / Rating form ────────────────────────────────── */
.wd-ratings-section { margin-top: 30px; }
.wd-rating-summary { display: flex; align-items: center; gap: 12px; background: #f9f9f9; border: 1px solid #eee; border-radius: 6px; padding: 12px 16px; margin-bottom: 20px; }
.wd-avg-score { font-size: 36px; font-weight: 700; color: #f0c040; line-height: 1; }
.wd-reviews-list { margin-bottom: 24px; }
.wd-review { border-bottom: 1px solid #eee; padding: 12px 0; }
.wd-review-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.wd-jobtitle { color: #777; font-size: 13px; }
.wd-review-date { color: #aaa; font-size: 12px; margin-left: auto; }
.wd-review-comment { font-size: 14px; color: #444; margin: 0; }
.wd-admin-reply { background: #f0f7ff; border-left: 3px solid #3d81a6; padding: 8px 12px; margin-top: 8px; font-size: 13px; }

.wd-add-review { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 20px; margin-top: 20px; }
.wd-add-review h3 { font-size: 16px; color: #3d81a6; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
#wd-rating-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#wd-rating-form .wd-star-select { grid-column: 1 / -1; }
#wd-rating-form textarea { grid-column: 1 / -1; height: 80px; resize: vertical; }
#wd-rating-form .wd-form-message { grid-column: 1 / -1; }
#wd-rating-form button[type="submit"] { grid-column: 1 / -1; }
#wd-rating-form input[type="text"],
#wd-rating-form input[type="email"] { width: 100%; height: 36px; border: 1px solid #ccc; border-radius: 4px; padding: 0 10px; font-size: 13px; box-sizing: border-box; }
#wd-rating-form textarea { width: 100%; border: 1px solid #ccc; border-radius: 4px; padding: 8px 10px; font-size: 13px; box-sizing: border-box; }

/* Override primary button colour specifically inside the review form */
.wd-add-review .wd-btn-primary,
#wd-rating-form button[type="submit"] {
    background: #f08139 !important;
    border-color: #f08139 !important;
    color: #fff !important;
    width: 100%;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.wd-add-review .wd-btn-primary:hover,
#wd-rating-form button[type="submit"]:hover { background: #3d81a6 !important; border-color: #3d81a6 !important; }

/* Star rating select */
.wd-star-select { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 4px; }
.wd-star-select input[type="radio"] { display: none; }
.wd-star-select label { font-size: 28px; color: #ccc; cursor: pointer; }
.wd-star-select input:checked ~ label,
.wd-star-select label:hover,
.wd-star-select label:hover ~ label { color: #f0c040; }
