/* Section */
.crh-section {
    padding: 80px 0 100px;
    background: #f7f9fc;
}

/*  Hero Banner  */
.crh-hero {
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 60%, #1e4976 100%);
    border-radius: 20px;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}

.crh-hero-glow-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,138,122,.22) 0%, transparent 70%);
    pointer-events: none;
}

.crh-hero-glow-2 {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,160,32,.12) 0%, transparent 70%);
    pointer-events: none;
}

.crh-eyebrow a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(13,138,122,.2);
    border: 1px solid rgba(18,168,152,.35);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.crh-hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 14px;
}

.crh-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 0;
}

.crh-stat-block {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.crh-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.crh-stat-lbl {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-top: 3px;
}

.crh-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.15);
}

.crh-filter-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(15,39,68,.06);
    position: sticky;
    top: 100px;
}

.crh-filter-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #0f2744;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8edf3;
}

.crh-filter-sidebar-header svg {
    color: var(--bs-primary);
    flex-shrink: 0;
}

.crh-filter-group {
    margin-bottom: 18px;
}

.crh-filter-group:last-of-type {
    margin-bottom: 24px;
}

.crh-filter-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 6px;
}

.crh-filter-sidebar .form-control,
.crh-filter-sidebar .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: .875rem;
    color: #0f2744;
    background-color: #f7f9fc;
    box-shadow: none;
    padding: 9px 13px;
    width: 100%;
}

.crh-filter-sidebar .form-control:focus,
.crh-filter-sidebar .form-select:focus {
    border-color: var(--bs-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13,138,122,.12);
    outline: none;
}

.crh-filter-sidebar .form-control::placeholder {
    color: #a0aec0;
}

.crh-btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    font-size: .8rem;
    color: #718096;
    background: #f7f9fc;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    padding: 10px 14px;
    transition: color .2s, background .2s, border-color .2s;
}

.crh-btn-reset:hover {
    color: var(--bs-primary);
    background: #e8f5f3;
    border-color: var(--bs-primary);
}

.crh-layout {
    align-items: flex-start;
}

/*  Toolbar  */
.crh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15,39,68,.06);
    margin-bottom: 24px;
}

.crh-count-text {
    font-size: .875rem;
    color: #718096;
}

.crh-count-text strong {
    color: #0f2744;
    font-weight: 700;
}

.crh-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crh-sort-wrap label {
    font-size: .8rem;
    color: #718096;
    white-space: nowrap;
    margin-bottom: 0;
}

.crh-sort-wrap .form-select {
    width: auto;
    font-size: .8rem;
    color: #0f2744;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 32px 6px 10px;
    box-shadow: none;
}

.crh-sort-wrap .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13,138,122,.12);
    outline: none;
}

/*  Card Grid  */
#crh-results {
    position: relative;
    min-height: 200px;
}

/*  Card  */
.crh-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.crh-card-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), #12a898);
    opacity: 0;
    transition: opacity .22s ease;
}

.crh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(15,39,68,.12);
    border-color: rgba(13,138,122,.3);
}

.crh-card:hover .crh-card-top-bar {
    opacity: 1;
}

/*  Card Header  */
.crh-card-header {
    padding: 18px 20px 0;
}

.crh-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/*  Badges  */
.crh-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    line-height: 1;
}

.crh-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.crh-badge.active        { background: #d1fae5; color: #065f46; }
.crh-badge.closing-soon  { background: #fef3c7; color: #92400e; }
.crh-badge.closed        { background: #fee2e2; color: #991b1b; }
.crh-badge.archived      { background: #f1f5f9; color: #64748b; }
.crh-badge.topic         { background: #e8f5f3; color: #0d6b5e; }
.crh-badge.state         { background: #eff6ff; color: #1e40af; }

.crh-badge.active .crh-badge-dot {
    animation: crh-pulse 1.8s ease-in-out infinite;
}

@keyframes crh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .45; transform: scale(1.5); }
}

/*  Card Body  */
.crh-card-body {
    padding: 14px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.crh-card-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2744;
    line-height: 1.35;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color .2s;
}

.crh-card-title:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.crh-card-excerpt {
    font-size: .855rem;
    color: #4a5568;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*  Card Meta  */
.crh-card-meta {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.crh-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    color: #718096;
}

.crh-meta-row svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--bs-primary);
}

.crh-meta-row strong {
    color: #4a5568;
    font-weight: 600;
}

.crh-meta-row a {
    color: var(--bs-primary);
    text-decoration: none;
    word-break: break-all;
    transition: color .2s;
}

.crh-meta-row a:hover {
    color: #0f2744;
    text-decoration: underline;
}

/*  Expiry Strip  */
.crh-expiry-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    padding: 8px 20px;
    font-size: .75rem;
    color: #92400e;
    font-weight: 600;
}

.crh-expiry-strip svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/*  Card Footer  */
.crh-card-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid #f0f4f8;
}

.crh-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    background: #1b3b53;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: .855rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.crh-btn-primary:hover {
    background: #eb2530;
    color: #ffffff;
    text-decoration: none;
}

.crh-btn-primary svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform .2s;
}

.crh-btn-primary:hover svg {
    transform: translateX(3px);
}

/*  Loading Overlay  */
.crh-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(247,249,252,.85);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.crh-loading.active {
    display: flex;
}

.crh-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: crh-spin .7s linear infinite;
}

@keyframes crh-spin { to { transform: rotate(360deg); } }

.crh-loading-text {
    font-size: .8rem;
    color: #718096;
    font-weight: 500;
}

/*  Empty State  */
.crh-empty {
    text-align: center;
    padding: 72px 24px;
    color: #718096;
}

.crh-empty-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 14px;
    opacity: .5;
}

.crh-empty-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f2744;
    margin-bottom: 8px;
}

.crh-empty-desc {
    font-size: .9rem;
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.6;
}

/*  Pagination  */
.crh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.crh-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: .855rem;
    font-weight: 500;
    color: #4a5568;
    background: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

.crh-page-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: #e8f5f3;
    text-decoration: none;
}

.crh-page-btn.current {
    background: #0f2744;
    border-color: #0f2744;
    color: #ffffff;
}

/*  Card fade-up animation  */
@keyframes crh-fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.crh-card { animation: crh-fadeUp .32s ease both; }
.crh-card:nth-child(1) { animation-delay: .04s; }
.crh-card:nth-child(2) { animation-delay: .08s; }
.crh-card:nth-child(3) { animation-delay: .12s; }
.crh-card:nth-child(4) { animation-delay: .16s; }
.crh-card:nth-child(5) { animation-delay: .20s; }
.crh-card:nth-child(6) { animation-delay: .24s; }
.crh-card:nth-child(7) { animation-delay: .28s; }
.crh-card:nth-child(8) { animation-delay: .32s; }
.crh-card:nth-child(9) { animation-delay: .36s; }

/*  Responsive  */
@media (max-width: 991px) {
    .crh-hero { padding: 40px 28px; }

    .crh-filter-sidebar {
        position: static;  /* disable sticky on tablet/mobile */
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .crh-section { padding: 48px 0 64px; }
    .crh-toolbar { flex-direction: column; align-items: flex-start; }
    .crh-stat-block { gap: 16px; }
}


/*  Search wrap with icon ─ */
.crh-search-wrap {
    position: relative;
}

.crh-search-wrap svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
}

.crh-search-wrap .form-control {
    padding-left: 34px !important;
}

/*  Active filter count badge ─ */
.crh-active-filter-count {
    margin-left: auto;
    background: var(--bs-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/*  Collapsible toggle button ─ */
.crh-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none !important;  /* ✅ force override theme/bootstrap button bg */
    border: none;
    border-bottom: 1px solid #e8edf3;
    padding: 10px 0;
    margin-bottom: 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f2744;
    cursor: pointer;
    box-shadow: none !important;  /* ✅ remove any Bootstrap focus/active shadow */
    outline: none;
}

.crh-collapse-toggle:hover,
.crh-collapse-toggle:focus,
.crh-collapse-toggle:active {
    background: none !important;  /* ✅ covers all button states */
    color: #0f2744;               /* ✅ keep color same — no hover change */
    box-shadow: none !important;
    border-bottom-color: #e8edf3;
}

.crh-chevron {
    transition: transform .25s ease;
    flex-shrink: 0;
    color: #a0aec0;
}

.crh-chevron.rotated {
    transform: rotate(-180deg);
}

/*  Collapsible body  */
.crh-collapse-body {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
}

.crh-collapse-body.open {
    display: flex;
}

/*  Checkbox labels  */
.crh-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    margin: 0;
}

.crh-checkbox-label:hover {
    background: #f0faf8;
}

/* Hide native checkbox */
.crh-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox box */
.crh-checkbox-box {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fff;
    transition: border-color .2s, background .2s;
    position: relative;
}

/* Checkmark via pseudo-element */
.crh-checkbox:checked + .crh-checkbox-box {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.crh-checkbox:checked + .crh-checkbox-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.crh-checkbox-text {
    font-size: .83rem;
    color: #4a5568;
    flex: 1;
    line-height: 1.3;
}

.crh-checkbox-label:has(.crh-checkbox:checked) .crh-checkbox-text {
    color: #0f2744;
    font-weight: 600;
}

.crh-checkbox-count {
    font-size: .7rem;
    color: #a0aec0;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1px 7px;
    font-weight: 500;
}


/* ═══════════════════════════════════════════
RESEARCH HUB FORM
═══════════════════════════════════════════ */
:root {
    --rh-navy:      #1b3b53;
    --rh-red:       #eb2530;
    --rh-red-dark:  #c91f2a;
    --rh-red-light: #fdecea;
}

/* ── page section padding ── */
.crh-form-section {
    padding: 48px 0 64px;
}

/* ── outer card ── */
.crh-form-section .wpcf7 {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid #dde3e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* ── navy header bar — wraps the .form div ── */

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    font-size: 14px;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    margin: 0px 5px 0 0 !important;
}
.crh-form-section input[type=submit]{
    padding: 0 !important;
}

/* If you want the header text, add this div manually above .form in your CF7 body:
   <div class="rh-form-header">
     <span class="rh-form-header-title">Submit a Research Study</span>
     <span class="rh-form-header-sub">All submissions are reviewed before publishing</span>
   </div>
*/
.rh-form-header {
    background: var(--rh-navy);
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rh-form-header-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.rh-form-header-sub {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

/* ── form body padding ── */
.crh-form-section .wpcf7 .form {
    padding: 28px 28px 36px;
}

/* ── section pill labels ── */
.crh-form-section .rh-section {
    display: block;
    color: #1b3b53;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: normal;
    text-transform: inherit;
    padding: 15px 10px;
    border-radius: 20px;
    margin: 0px 0 5px;
    border: none;
}


/* ── row gutters ── */
.crh-form-section .form .row {
    row-gap: 0;
}

/* ── form-group spacing ── */
.crh-form-section .form-group {
    margin-bottom: 25px;
}

/* ── labels ── */
.crh-form-section .form-group > label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
    line-height: 1.4em;
}

/* ── all inputs / textarea / select ── */
.crh-form-section .form-control,
.crh-form-section .form-select,
.crh-form-section .wpcf7 input[type="text"],
.crh-form-section .wpcf7 input[type="email"],
.crh-form-section .wpcf7 input[type="tel"],
.crh-form-section .wpcf7 input[type="date"],
.crh-form-section .wpcf7 textarea {
    width: 100%;
    padding: 10px 13px;
    font-size: 14px;
    color: #111;
    background: #fff;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    box-shadow: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* ── focus ── */
.crh-form-section .form-control:focus,
.crh-form-section .form-select:focus,
.crh-form-section .wpcf7 input[type="text"]:focus,
.crh-form-section .wpcf7 input[type="email"]:focus,
.crh-form-section .wpcf7 input[type="date"]:focus,
.crh-form-section .wpcf7 textarea:focus {
    border-color: var(--rh-navy);
    box-shadow: 0 0 0 3px rgba(27,59,83,0.12);
}

/* ── textarea ── */
.crh-form-section .wpcf7 textarea {
    min-height: 100px;
    resize:none;
}

/* ── file input ── */
.crh-form-section .wpcf7 input[type="file"],
.crh-form-section input[type="file"].form-control {
    padding: 8px 12px;
    background: #f8fafc;
    border: 1.5px dashed #d1d9e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: border-color .15s;
}
.crh-form-section .wpcf7 input[type="file"]:hover,
.crh-form-section input[type="file"].form-control:hover {
    border-color: var(--rh-navy);
    background: #f0f4f7;
}

/* ── CF7 control wrap ── */
.crh-form-section .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* ── submit button outer wrapper — strip Bootstrap btn styles ── */
.crh-form-section .form-group .btn.btn-secondary {
    justify-content: center;
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
}

.crh-form-section .btn.btn-secondary {
    min-width: auto;
    /* margin: 0 auto; */
}
[type=button]:hover, [type=submit]:hover, button:hover {
    background: transparent; 
}



/* ── submit button itself ── */


/* ── validation errors ── */
.crh-form-section label.error {
    display: block;
    color: var(--rh-red);
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}
.crh-form-section .wpcf7 input.error,
.crh-form-section .wpcf7 textarea.error,
.crh-form-section .wpcf7 select.error,
.crh-form-section .wpcf7 .wpcf7-not-valid {
    border-color: var(--rh-red) !important;
    box-shadow: 0 0 0 3px rgba(235,37,48,0.10) !important;
}
.crh-form-section .wpcf7-not-valid-tip {
    color: var(--rh-red);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ── CF7 response messages ── */
.crh-form-section .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: none !important;
}
.crh-form-section .wpcf7-mail-sent-ok {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #059669 !important;
}
.crh-form-section .wpcf7-mail-sent-ng,
.crh-form-section .wpcf7-aborted {
    background: var(--rh-red-light);
    color: var(--rh-red);
    border-left: 4px solid var(--rh-red) !important;
}

/* ── Select2 overrides ── */
.crh-form-section .select2-container--default .select2-selection--multiple,
.crh-form-section .select2-container--default .select2-selection--single {
    border: 1px solid #d1d9e0 !important;
    border-radius: 8px !important;
    min-height: 42px !important;
    padding: 4px 8px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
.crh-form-section .select2-container--default.select2-container--focus .select2-selection--multiple,
.crh-form-section .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--rh-navy) !important;
    box-shadow: 0 0 0 3px rgba(27,59,83,0.12) !important;
}
.crh-form-section .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--rh-navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 2px 10px !important;
    font-size: 12px !important;
}
.crh-form-section .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255,255,255,0.7) !important;
    margin-right: 5px;
}
.crh-form-section .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    background: transparent !important;
}
.crh-form-section .select2-container {
    width: 100% !important;
}


@media (max-width: 767px) {
.crh-form-section .wpcf7 .form {
    padding: 20px 10px;
}
.crh-form-section .rh-section {
    font-size: 18px;
    padding-top: 10px;
    padding-bottom: 5px;
}
}

/* Single Research hub page */

.rh-detail-section {
        background: #f7f9fc;
        padding: 52px 0 80px;
    }

    .rh-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: .67rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        padding: 5px 12px;
        border-radius: 50px;
        white-space: nowrap;
        line-height: 1;
    }

    .rh-badge-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        flex-shrink: 0;
    }

    .rh-badge.active {
        background: #d1fae5;
        color: #065f46;
    }

    .rh-badge.closing-soon {
        background: #fef3c7;
        color: #92400e;
    }

    .rh-badge.closed {
        background: #fee2e2;
        color: #991b1b;
    }

    .rh-badge.archived {
        background: #f1f5f9;
        color: #64748b;
    }

    .rh-badge.topic {
        background: #e8f5f3;
        color: #0d6b5e;
    }

    .rh-badge.state {
        background: #eff6ff;
        color: #1e40af;
    }

    .rh-badge.active .rh-badge-dot {
        animation: rh-pulse 1.8s ease-in-out infinite;
    }

    @keyframes rh-pulse {

        0%,
        100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: .35;
            transform: scale(1.6);
        }
    }

    .rh-tag-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 22px;
    }

    .rh-notice {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 20px;
        font-size: .875rem;
        line-height: 1.55;
    }

    .rh-notice svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .rh-notice p {
        margin: 0;
        color: inherit;
    }

    .rh-notice strong {
        display: block;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .rh-notice.closed {
        background: #fff5f5;
        border: 1px solid #fed7d7;
        color: #742a2a;
    }

    .rh-notice.closed svg {
        color: #c53030;
    }

    .rh-notice.closing {
        background: #fffbeb;
        border: 1px solid #fde68a;
        color: #92400e;
    }

    .rh-notice.closing svg {
        color: #d97706;
    }

    .rh-pdf-strip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .rh-pdf-strip-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .rh-pdf-icon {
        width: 40px;
        height: 40px;
        background: #dc2626;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .rh-pdf-icon svg {
        width: 20px;
        height: 20px;
        color: #ffffff;
    }

    .rh-pdf-meta strong {
        display: block;
        font-size: .875rem;
        font-weight: 700;
        color: #0f2744;
    }

    .rh-pdf-meta span {
        font-size: .78rem;
        color: #718096;
    }

    .rh-pdf-download {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border: 1px solid #eb2530;
        border-radius: 50px;
        padding: 10px 10px;
    }

    .rh-pdf-download:hover {
        background: #eb2530;
    }

    .rh-pdf-download:hover .resource-download {
        stroke: #ffffff;
    }

    .rh-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(15, 39, 68, .06);
        margin-bottom: 24px;
        transition: box-shadow .2s;
    }

    .rh-card:last-child {
        margin-bottom: 0;
    }

    .rh-card:hover {
        box-shadow: 0 6px 24px rgba(15, 39, 68, .10);
    }

    .rh-card-head {
        background: #f7f9fc;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px 24px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rh-card-head svg {
        width: 17px;
        height: 17px;
        color: #0d8a7a;
        flex-shrink: 0;
    }

    .rh-card-head h2 {
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: #4a5568;
        margin: 0;
    }

    .rh-card-body {
        padding: 26px 24px;
    }

    .rh-card-body p,
    .rh-card-body li {
        font-size: .96rem;
        color: #4a5568;
        line-height: 1.8;
    }

    .rh-card-body p {
        margin-bottom: 12px;
    }

    .rh-card-body p:last-child {
        margin-bottom: 0;
    }

    .rh-card-body ul,
    .rh-card-body ol {
        padding-left: 20px;
        margin-bottom: 0;
    }

    .rh-card-body h3,
    .rh-card-body h4 {
        font-size: 1rem;
        font-weight: 700;
        color: #0f2744;
        margin-bottom: 6px;
        margin-top: 18px;
    }

    .rh-card-body h3:first-child,
    .rh-card-body h4:first-child {
        margin-top: 0;
    }

    .rh-info-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(15, 39, 68, .06);
        position: sticky;
        top: 24px;
    }

    .rh-info-head {
        background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 100%);
        padding: 18px 22px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rh-info-head svg {
        width: 17px;
        height: 17px;
        color: #12a898;
        flex-shrink: 0;
    }

    .rh-info-head h3 {
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .88);
        margin: 0;
    }

    .rh-info-row {
        padding: 13px 22px;
        border-bottom: 1px solid #f0f4f8;
        transition: background .15s;
    }

    .rh-info-row:last-of-type {
        border-bottom: none;
    }

    .rh-info-row:hover {
        background: #f7f9fc;
    }

    .rh-info-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: .69rem;
        font-weight: 700;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: #718096;
        margin-bottom: 4px;
    }

    .rh-info-label svg {
        width: 12px;
        height: 12px;
        color: #0d8a7a;
        flex-shrink: 0;
    }

    .rh-info-value {
        font-size: .9rem;
        color: #0f2744;
        font-weight: 500;
        padding-left: 18px;
        line-height: 1.5;
    }

    .rh-info-value a {
        color: #0d8a7a;
        text-decoration: none;
        word-break: break-all;
        transition: color .2s;
    }

    .rh-info-value a:hover {
        color: #0f2744;
        text-decoration: underline;
    }

    .rh-info-value p {
        margin: 0;
        font-size: .9rem;
        color: #0f2744;
        font-weight: 500;
        line-height: 1.5;
    }

    .rh-cta-wrap {
        padding: 18px 22px;
        background: #f7f9fc;
        border-top: 1px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .rh-btn-express {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: #0d8a7a;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        padding: 12px 18px;
        font-size: .875rem;
        font-weight: 700;
        text-decoration: none;
        transition: background .2s, transform .15s;
        cursor: pointer;
    }

    .rh-btn-express:hover {
        background: #0b7567;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .rh-btn-express svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .rh-btn-download {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: #1a3a5c;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        padding: 12px 18px;
        font-size: .875rem;
        font-weight: 700;
        text-decoration: none;
        transition: background .2s, transform .15s;
        cursor: pointer;
    }

    .rh-btn-download:hover {
        background: #0f2744;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .rh-btn-download svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .rh-btn-back {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: transparent;
        color: #0f2744;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        padding: 11px 18px;
        font-size: .875rem;
        font-weight: 600;
        text-decoration: none;
        transition: border-color .2s, background .2s, color .2s;
    }

    .rh-btn-back:hover {
        border-color: #0f2744;
        background: #0f2744;
        color: #ffffff;
        text-decoration: none;
    }

    .rh-btn-back svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        transition: transform .2s;
    }

    .rh-btn-back:hover svg {
        transform: translateX(-3px);
    }

    @media (max-width: 991px) {
        .rh-detail-section {
            padding: 36px 0 56px;
        }

        .rh-info-card {
            position: static;
            margin-top: 8px;
        }

        .rh-card-body {
            padding: 20px 18px;
        }

        .rh-card-head,
        .rh-info-head {
            padding: 13px 18px;
        }

        .rh-info-row {
            padding: 12px 18px;
        }

        .rh-cta-wrap {
            padding: 14px 18px;
        }

        .rh-pdf-strip {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    /* ── Express Interest Modal ── */
    #rhExpressModal .modal-header {
        background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 100%);
        border-bottom: none;
        padding: 20px 24px;
        border-radius: 14px 14px 0 0;
    }
 
    #rhExpressModal .modal-title {
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 8px;
    }
 
    #rhExpressModal .modal-title svg {
        width: 18px;
        height: 18px;
        color: #12a898;
        flex-shrink: 0;
    }
 
    #rhExpressModal .btn-close {
        width: 28px;
        height: 28px;
        background: rgba(255,255,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-width='1.8' stroke-linecap='round' d='M2 2l12 12M14 2L2 14'/%3E%3C/svg%3E") center/14px no-repeat;
        border-radius: 6px;
        opacity: 1;
        padding: 0;
        border: none;
        cursor: pointer;
        transition: background .2s;
    }
 
    #rhExpressModal .btn-close:hover {
        background-color: #eb2530;
        opacity: 1;
    }
 
    #rhExpressModal .modal-body {
        padding: 28px 24px 8px;
    }
 
    #rhExpressModal .modal-footer {
        border-top: 1px solid #e2e8f0;
        padding: 16px 24px;
        background: #f7f9fc;
        border-radius: 0 0 14px 14px;
    }
 
    #rhExpressModal .modal-content {
        border: none;
        border-radius: 14px;
        box-shadow: 0 20px 60px rgba(15, 39, 68, .18);
    }
 
    #rhExpressModal .rh-modal-intro {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 22px;
        font-size: .845rem;
        color: #065f46;
        display: flex;
        align-items: flex-start;
        gap: 9px;
    }
 
    #rhExpressModal .rh-modal-intro svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        margin-top: 1px;
        color: #0d8a7a;
    }
 
    #rhExpressModal .form-label {
        font-size: .8rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #4a5568;
        margin-bottom: 6px;
    }
 
    #rhExpressModal .form-control {
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: .9rem;
        color: #0f2744;
        padding: 10px 14px;
        transition: border-color .2s, box-shadow .2s;
    }
 
    #rhExpressModal .form-control:focus {
        border-color: #0d8a7a;
        box-shadow: 0 0 0 3px rgba(13, 138, 122, .12);
        outline: none;
    }
 
    #rhExpressModal textarea.form-control {
        resize: vertical;
        min-height: 100px;
    }
 
    #rhExpressModal .rh-modal-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #eb2530;
        color: #ffffff;
        border: 2px solid #eb2530;
        border-radius: 8px;
        padding: 11px 22px;
        font-size: .875rem;
        font-weight: 700;
        cursor: pointer;
        transition: background .2s, color .2s, transform .15s;
        min-width: 148px;
        text-decoration: none;
    }
 
    #rhExpressModal .rh-modal-submit:hover {
        background: #ffffff;
        color: #eb2530;
        transform: translateY(-1px);
    }
 
    #rhExpressModal .rh-modal-submit:disabled {
        opacity: .65;
        cursor: not-allowed;
        transform: none;
    }
 
    #rhExpressModal .rh-modal-submit svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }
 
    #rhExpressModal .rh-modal-cancel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #eb2530;
        border: 2px solid #eb2530;
        border-radius: 8px;
        padding: 10px 18px;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        transition: background .2s, color .2s;
        text-decoration: none;
    }
 
    #rhExpressModal .rh-modal-cancel:hover {
        background: #eb2530;
        color: #ffffff;
    }
 
    /* Alert states */
    #rhFormAlert {
        display: none;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: .875rem;
        margin-bottom: 0;
        margin-top: 4px;
    }
 
    #rhFormAlert.success {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #065f46;
    }
 
    #rhFormAlert.error {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        background: #fff5f5;
        border: 1px solid #fed7d7;
        color: #742a2a;
    }
 
    #rhFormAlert svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-top: 1px;
    }
 
    /* Spinner */
    .rh-spinner {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255,255,255,.4);
        border-top-color: #fff;
        border-radius: 50%;
        animation: rh-spin .7s linear infinite;
    }
 
    @keyframes rh-spin {
        to { transform: rotate(360deg); }
    }

/* Fix: dropdown option list must sit above the submit button */
.crh-form-section .wpcf7 select,
.crh-form-section .form-select {
    position: relative;
    z-index: 1;
}

.crh-form-section .form-group .btn.btn-secondary {
    position: relative;
    z-index: 0;   /* ← keep submit below the open dropdown */
}


.crh-form-section .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px 8px !important;
}

.crh-form-section .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--rh-navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    margin: 0 !important;  /* ← remove default margin, gap handles spacing */
    white-space: nowrap;
}

.crh-form-section .select2-container--default .select2-selection--multiple {
    min-height: 42px !important;
    height: auto !important;  /* ← allows container to grow with tags */
    padding: 4px 8px !important;
}

/* CF7 CHECKBOX / RADIO — scoped to .crh-form-section */

.crh-form-section span.wpcf7-form-control.form-check-input {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.crh-form-section .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}
.crh-form-section .wpcf7-form-control.wpcf7-checkbox,
.crh-form-section .wpcf7-form-control.wpcf7-radio {
    width: 100% !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.crh-form-section .wpcf7-list-item {
    display: flex !important;
    align-items: center !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background .15s ease;
}
.crh-form-section .wpcf7-list-item:hover {
    background: #f0f4f7 !important;
}
.crh-form-section .wpcf7-list-item-label {
    display: inline-block !important;
    position: static !important;
    float: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    font-size: 14px !important;
    color: #374151 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    background: none !important;
    user-select: none;
}
.crh-form-section .wpcf7-list-item input[type="checkbox"],
.crh-form-section .wpcf7-list-item input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: static !important;
    float: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin: 0 10px 0 0 !important;
    top: auto !important;
    left: auto !important;
    border: 1.5px solid #d1d9e0 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.crh-form-section .wpcf7-list-item input[type="radio"] {
    border-radius: 50% !important;
}
.crh-form-section .wpcf7-list-item input[type="checkbox"]:hover,
.crh-form-section .wpcf7-list-item input[type="radio"]:hover {
    border-color: #1b3b53 !important;
}
.crh-form-section .wpcf7-list-item input[type="checkbox"]:focus-visible,
.crh-form-section .wpcf7-list-item input[type="radio"]:focus-visible {
    border-color: #1b3b53 !important;
    box-shadow: 0 0 0 3px rgba(27,59,83,0.15) !important;
}
.crh-form-section .wpcf7-list-item input[type="checkbox"]:checked,
.crh-form-section .wpcf7-list-item input[type="radio"]:checked {
    background-color: #1b3b53 !important;
    border-color: #1b3b53 !important;
}
.crh-form-section .wpcf7-list-item input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
}
.crh-form-section .wpcf7-list-item input[type="radio"]:checked {
    background-image: radial-gradient(circle, #fff 0 4px, transparent 5px) !important;
}
.crh-form-section .wpcf7-list-item:has(input:checked) {
    background: #f0f4f7 !important;
}
.crh-form-section .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label {
    color: #1b3b53 !important;
    font-weight: 600 !important;
}
.crh-form-section .wpcf7-list-item input[disabled] {
    cursor: not-allowed !important;
    opacity: .5 !important;
}
.crh-form-section .wpcf7-list-item input[disabled] ~ .wpcf7-list-item-label {
    cursor: not-allowed !important;
    opacity: .5 !important;
}
.crh-form-section .wpcf7-not-valid .wpcf7-list-item input[type="checkbox"],
.crh-form-section .wpcf7-not-valid .wpcf7-list-item input[type="radio"] {
    border-color: #eb2530 !important;
}

.crh-form-section sup{
    color :#eb2530;
}

.crh-form-section .btn.btn-secondary.rh-next,
.crh-form-section .btn.btn-secondary.rh-prev {
    color: #ffffff;
    background-color: var(--bs-secondary);
    border: inherit;
    opacity: 1;
}

.crh-form-section .btn.btn-secondary.rh-next:hover,
.crh-form-section .btn.btn-secondary.rh-prev:hover {
    color: #ffffff;
    background-color: var(--bs-primary);
}

.crh-form-section .form-group.d-flex.justify-content-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
}

.crh-form-section .form-group.d-flex.justify-content-between > .btn,
.crh-form-section .form-group.d-flex.justify-content-between > button {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}
.wp-editor-tabs button:hover {
    color: inherit;
    text-decoration: none;
}
.wp-editor-tabs button {
    border: 1px solid #646970;
    color : inherit;
}

.wp-editor-tabs .wp-switch-editor, .wp-editor-tabs .quicktags-toolbar {
    display: none !important;
}
