/* Admin Modal Styles */
.edc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    backdrop-filter: blur(4px);
}

.edc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    max-width: 90%;
    background: #ffffff;
    z-index: 100001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: edcFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes edcFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.edc-modal-content {
    padding: 35px;
    max-height: 90vh;
    overflow-y: auto;
}

.edc-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #a7aaad;
    line-height: 1;
    transition: color 0.2s;
}

.edc-close:hover {
    color: #1d2327;
}

#edc-modal-title {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

.edc-form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.edc-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.edc-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.edc-form-group input[type="text"],
.edc-form-group input[type="email"],
.edc-form-group input[type="url"],
.edc-form-group select {
    width: 100% !important;
    height: 48px !important;
    /* Increased proper height */
    padding: 0 16px !important;
    border: 1px solid #dcdcde !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #1d2327 !important;
    background: #fff !important;
    transition: all 0.2s ease;
}

.edc-form-group textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #dcdcde !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #1d2327 !important;
    min-height: 120px;
    background: #fff !important;
    transition: all 0.2s ease;
}

.edc-form-group input:focus,
.edc-form-group select:focus,
.edc-form-group textarea:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1) !important;
    outline: none !important;
}

.edc-modal-footer {
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

/* Custom List Page Styles */
.edc-custom-list-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
}

.edc-list-header {
    margin-bottom: 20px;
}

.edc-list-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.edc-filter-group a {
    text-decoration: none;
    color: #646970;
    margin-right: 15px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.edc-filter-group a:hover,
.edc-filter-group a.active {
    background: #f0f0f1;
    color: #1d2327;
}

.edc-top-buttons {
    display: flex;
    gap: 10px;
}

.edc-top-buttons .button,
.edc-top-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
}

.edc-top-buttons .button .dashicons {
    margin-top: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.edc-search-bar-row {
    margin-bottom: 15px;
}

/* Table Card Container */
.edc-card-table {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    /* Soft rounded border */
    overflow: hidden;
}

.edc-card-table table.wp-list-table {
    border: none;
    box-shadow: none;
    margin: 0;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* Force fixed layout */
}

/* Header Styling */
.edc-card-table thead th {
    background: #fff;
    /* Clean header */
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    color: #646970;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    vertical-align: middle;
}

/* Actions Header Alignment */
.edc-card-table .column-actions {
    text-align: center;
}

/* Force Column Widths */
.edc-card-table .column-title {
    width: 30%;
}

.edc-card-table .column-category {
    width: 25%;
}

.edc-card-table .column-order {
    width: 15%;
}

.edc-card-table .column-status {
    width: 15%;
}

.edc-card-table .column-actions {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Row Styling */
.edc-card-table tbody tr {
    border-bottom: 1px solid #f0f0f1 !important;
    /* Clean dividers */
    height: 60px;
    /* Consistent height */
    transition: background-color 0.1s;
}

.edc-card-table tbody tr:last-child {
    border-bottom: none !important;
}

/* Zebra Striping & Hover */
.edc-card-table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
    /* subtle stripe */
}

.edc-card-table tbody tr:hover {
    background-color: #f6f7f7;
    /* Hover effect */
}

.edc-card-table td,
.edc-card-table th {
    vertical-align: middle !important;
    /* Ensure vertical centering */
}

/* Column Specifics */

/* Checkbox */
.edc-card-table .check-column {
    padding-left: 15px !important;
    width: 2.2em;
}

/* Advisor Name */
.edc-card-table .column-title {
    padding-left: 20px !important;
    text-align: left;
}

.edc-advisor-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.edc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #2271b1;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.edc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edc-advisor-info strong {
    font-size: 14px;
    color: #1d2327;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

/* Display Order */
.edc-card-table .column-order {
    text-align: center;
    width: 120px;
}

.edc-order-box {
    display: inline-block;
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 2px 0;
    width: 40px;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #2c3338;
}

/* Status */
.edc-card-table .column-status {
    text-align: center;
    width: 100px;
}

.edc-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 60px;
}

.edc-status-pill.publish {
    background: #dcfce7;
    color: #166534;
    /* Darker green for text */
}

.edc-status-pill.draft {
    background: #fef9c3;
    color: #854d0e;
}

.edc-status-pill.inactive {
    background: #f3f4f6;
    color: #4b5563;
}

.edc-status-pill::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
    background-color: currentColor;
    opacity: 0.8;
}

/* Actions */
.edc-card-table .column-actions {
    text-align: right !important;
    /* Right aligned header/cell */
    padding-right: 30px !important;
    /* Space from right edge */
    width: auto;
    white-space: nowrap;
}

/* Flex container for the link-actions usually isn't present in default WP output if using row-actions 
   but our PHP outputs standard links. Let's target the links directly if not wrapped, 
   or the cell itself if possible. 
   Since PHP outputs <a> tags directly in td, let's style the td contents.
*/



/* We need to use a trick to flex content inside TD if we can't change HTML grouping.
   Actually, looking at admin-list.php, the TD contains just 3 <a> tags.
   So we can set the TD to flex: justify-end.
*/
.edc-card-table .column-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    height: 60px;
    /* Match row height to vert center */
    padding-right: 20px !important;
}

.edc-icon-btn {
    text-decoration: none;
    color: #646970;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.edc-icon-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.edc-icon-btn:hover {
    background-color: #f0f0f1;
    color: #2271b1;
}

/* Specific Delete Color */
.edc-icon-btn[style*="d63638"]:hover {
    background-color: #fef2f2;
    color: #dc2626 !important;
}

/* Responsive Cleanup */
@media screen and (max-width: 782px) {

    .edc-card-table .column-title,
    .edc-card-table .column-order,
    .edc-card-table .column-status,
    .edc-card-table .column-actions {
        display: block;
        width: auto;
        text-align: left !important;
    }
}

.edc-list-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.edc-filter-group a {
    text-decoration: none;
    color: #646970;
    margin-right: 15px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.edc-filter-group a:hover,
.edc-filter-group a.active {
    background: #f0f0f1;
    color: #1d2327;
}

.edc-top-buttons {
    display: flex;
    gap: 10px;
}

.edc-top-buttons .button,
.edc-top-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
}

.edc-top-buttons .button .dashicons {
    margin-top: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.edc-search-bar-row {
    margin-bottom: 15px;
}

.edc-card-table {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.edc-card-table table.wp-list-table {
    border: none;
    box-shadow: none;
    margin: 0;
}

.edc-card-table thead th {
    background: #f9f9f9;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    color: #646970;
    letter-spacing: 0.5px;
    padding: 15px 10px;
}

.edc-advisor-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #2271b1;
    overflow: hidden;
    flex-shrink: 0;
}

.edc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edc-advisor-info strong {
    font-size: 14px;
    color: #1d2327;
    display: block;
    margin: 0;
    line-height: 1.3;
}

.edc-advisor-info .id {
    font-size: 11px;
    color: #8c8f94;
    font-weight: 400;
}

/* Category Pill */
.edc-category-pill {
    background: #f0f0f1;
    color: #1d2327;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.edc-badge {
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #646970;
}

.edc-order-box {
    background: #f8f9fa;
    border: 1px solid #dcdcde;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.edc-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.edc-status-pill.publish {
    background: #d1fae5;
    color: #065f46;
}

.edc-status-pill.draft {
    background: #fef3c7;
    color: #92400e;
}

.edc-status-pill.inactive {
    background: #f3f4f6;
    color: #4b5563;
}

/* Row Borders */
.edc-card-table table.wp-list-table tr {
    border-bottom: 1px solid #eee;
}

.edc-card-table table.wp-list-table tr:last-child {
    border-bottom: none;
}

/* Action Icons Alignment */
.column-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.edc-icon-btn {
    text-decoration: none;
    color: #646970;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.1s;
    display: inline-flex;
    /* Ensure flex behavior */
    align-items: center;
    line-height: 1;
}

.edc-icon-btn:hover {
    background: #f0f0f1;
    color: #2271b1;
}

/* =========================================
   Strict UI Redesign (Screenshot Match)
   ========================================= */

/* Page Wrapper & Header */
.edc-page-wrapper {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.edc-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.edc-back-link {
    display: inline-flex;
    align-items: center;
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 500;
}

.edc-back-link .dashicons {
    font-size: 16px;
    text-decoration: none;
    margin-right: 5px;
}

.edc-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 10px 0;
    padding: 0;
    display: block;
    /* Ensure it overrides WP default inline */
}

.edc-subtext {
    color: #646970;
    font-size: 14px;
    margin: 0;
}

/* Form Card */
.edc-form-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Sections */
.edc-ui-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f1;
}

.edc-ui-section:last-of-type {
    border-bottom: none;
}

/* Section Header */
.edc-section-header {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.edc-section-icon {
    width: 40px;
    height: 40px;
    background: #f0f6fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2271b1;
    flex-shrink: 0;
}

.edc-section-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.edc-section-title h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.edc-section-title p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

/* Layout Grid */
.edc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Groups */
.edc-form-group {
    margin-bottom: 20px;
}

.edc-form-group:last-child {
    margin-bottom: 0;
}

.edc-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    margin-bottom: 8px;
}

/* Inputs */
.edc-form-group input,
.edc-form-group select,
.edc-form-group textarea {
    width: 100%;
    border: 1px solid #dcdcde;
    border-radius: 6px !important;
    padding: 3px 8px;
    height: 30px;
    line-height: 1;
    font-size: 14px;
    color: #3c434a;
    box-shadow: none !important;
    /* Reset generic WP/plugin shadow */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus State */
.edc-form-group input:focus,
.edc-form-group select:focus,
.edc-form-group textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1 !important;
    outline: none;
}

.edc-form-group textarea {
    height: auto;
    padding: 12px;
    resize: vertical;
}

/* Input Icon Wrappers */
.edc-input-icon-wrapper {
    position: relative;
}

.edc-input-icon-wrapper .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8f94;
    pointer-events: none;
}

.edc-input-icon-wrapper input {
    padding-left: 36px;
    /* Space for icon */
    transition: padding-left 0.2s;
}

/* Hide Icon State */
.edc-input-icon-wrapper.edc-hide-icon .dashicons {
    display: none;
}

.edc-input-icon-wrapper.edc-hide-icon input {
    padding-left: 8px;
    /* Reset to normal padding */
}

/* Photo Upload (Dashed Box) */
.edc-photo-upload-area {
    border: 2px dashed #dcdcde;
    border-radius: 8px;
    background: #fcfcfc;
    text-align: center;
    padding: 30px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.edc-photo-upload-area:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.edc-photo-upload-area img {
    max-height: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edc-upload-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
    margin-bottom: 10px;
}

.edc-upload-placeholder p {
    margin: 5px 0;
    font-size: 14px;
    color: #2271b1;
}

.edc-upload-placeholder strong {
    font-weight: 600;
}

.edc-upload-hint {
    display: block;
    font-size: 12px;
    color: #a7aaad;
    margin-top: 5px;
}

#edc-remove-photo-btn {
    margin-top: 10px;
    color: #d63638;
}

/* Character Count */
.edc-char-count {
    text-align: right;
    font-size: 11px;
    color: #a7aaad;
    margin-top: 4px;
}

/* Footer Actions */
.edc-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    /* Slight footer separation */
    border-top: 1px solid #f0f0f1;
    gap: 15px;
}

.edc-btn-cancel {
    background: none;
    border: none;
    color: #646970;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.edc-btn-cancel:hover {
    color: #1d2327;
    text-decoration: underline;
}

.edc-btn-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.1s;
}

.edc-btn-submit:hover {
    background: #135e96;
}

.edc-btn-submit .dashicons {
    font-size: 16px;
    width: 16px;
    height: 21px !important;
    line-height: 1.2;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .edc-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Final Layout Fixes
   ========================================= */

/* Photo Upload Layout */
.edc-photo-preview-container {
    border: 1px solid #dcdcde;
    background: #fff;
    border-radius: 6px;
    width: 100%;
    /* Max width to keep it looking like a preview, not a banner */
    /* max-width: 300px;  -- Removing max-width if user wants it to look like main input? No, standard image preview usually isn't full width if image is small. But container can be. */
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    padding: 10px;
}

.edc-photo-preview-container img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 200px;
}

.edc-photo-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    /* Align left */
}

/* Taxonomy List - Compact */
.edc-tax-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
    color: #3c434a;
    width: fit-content;
    /* Don't stretch */
}

.edc-tax-checkbox {
    margin: 0 8px 0 0 !important;
}

/* Ensure buttons look consistent */
#edc-upload-photo-btn,
#edc-remove-photo-btn {
    margin: 0;
}

/* --- Business Advisors Roadmap --- */
.edc-roadmap-container {
    padding: 40px;
    background: #f8fafb;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
}

.edc-roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

/* Roadmap Search */
.edc-roadmap-search-filters {
    display: flex;
    align-items: center;
}

.edc-roadmap-search-box {
    position: relative;
    width: 320px;
}

.edc-roadmap-search-box .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #646970;
    font-size: 18px;
}

#edc-roadmap-search {
    width: 100%;
    padding: 10px 10px 10px 38px !important;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #1d2327;
    transition: all 0.2s ease;
    height: 42px;
}

#edc-roadmap-search:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.edc-roadmap-header-left h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 5px 0;
}

.edc-roadmap-header-left p {
    color: #646970;
    font-size: 14px;
    margin: 0;
}

.edc-roadmap-header-right {
    display: flex;
    gap: 12px;
}

.edc-roadmap-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    min-height: 44px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    color: #1d2327;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.edc-roadmap-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #646970;
    margin-top: 3px;
}

.edc-roadmap-btn.active {
    background: #006b5f;
    /* Deep teal/green from design */
    color: #fff;
    border-color: #006b5f;
}

.edc-roadmap-btn.active .dashicons {
    color: #fff;
}

.edc-roadmap-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.edc-roadmap-btn.active:hover {
    opacity: 0.9;
    color: #fff;
}

.edc-roadmap-list-wrapper {
    position: relative;
    padding-left: 100px;
    padding-top: 10px;
}

.edc-roadmap-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.edc-roadmap-item {
    position: relative;
    margin-bottom: 30px;
}

.edc-roadmap-item:last-child {
    margin-bottom: 0;
}

/* Number badge */
.edc-roadmap-number {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #006b5f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.edc-roadmap-number span {
    color: #006b5f;
    font-weight: 700;
    font-size: 14px;
}

/* Roadmap cards */
.edc-roadmap-card {
    background: #fff;
    border: 1px solid #f0f0f1;
    border-radius: 12px;
    padding: 28px 32px;
    /* Increased internal padding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.edc-roadmap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.edc-roadmap-card-content {
    display: flex;
    align-items: center;
    gap: 28px;
    /* Slightly more gap for balance */
}

.edc-roadmap-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    border: 1px solid #edf2f7;
    box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.edc-roadmap-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover Interaction Enhancement */
.edc-roadmap-card:hover .edc-roadmap-avatar {
    transform: translateY(-2px);
    box-shadow: 6px 10px 20px rgba(0, 0, 0, 0.08);
    /* Shadow deepens */
}

.edc-roadmap-card:hover .edc-roadmap-avatar img {
    transform: scale(1.08);
    /* Gentle, precise zoom */
}

@media (prefers-reduced-motion: reduce) {

    .edc-roadmap-avatar,
    .edc-roadmap-avatar img {
        transition: none !important;
    }

    .edc-roadmap-card:hover .edc-roadmap-avatar,
    .edc-roadmap-card:hover .edc-roadmap-avatar img {
        transform: none !important;
    }
}

.edc-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    border: 2px solid #fff;
}

/* Single Page Image Styling */
.edc-single-advisor-image {
    width: 150px;
    height: 150px;
    border-radius: 50% !important;
    overflow: hidden;
    margin: 0 0 30px 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edc-single-advisor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.edc-single-advisor-image.edc-single-image-fit {
    width: 200px;
    max-width: 100%;
    height: 260px;
    border-radius: 8px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.edc-single-advisor-image.edc-single-image-fit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.edc-roadmap-info {
    flex: 1;
}

.edc-advisor-name {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 2px 0;
}

.edc-advisor-role {
    font-size: 14px;
    font-weight: 600;
    color: #006b5f;
    margin: 0 0 6px 0;
}

.edc-advisor-desc-wrapper {
    position: relative;
    max-width: 100%;
}

.edc-desc-short p,
.edc-desc-full-text p {
    font-size: 13px;
    color: #646970;
    margin: 0;
    line-height: 1.6;
}

.edc-desc-short.is-hidden,
.edc-desc-full.is-hidden {
    display: none !important;
}

.edc-read-more,
.edc-read-less {
    color: #006b5f;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    display: inline-block;
}

.edc-read-more:hover,
.edc-read-less:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.edc-read-less {
    margin-top: 8px;
}

.edc-desc-full {
    animation: edcSlideDown 0.3s ease-out;
}

@keyframes edcSlideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.edc-roadmap-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Action Buttons Base */
.edc-roadmap-view-btn,
.edc-roadmap-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out;
    min-width: 120px;
    height: 42px;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* View Button - Default State (#007476 background, white text, no border) */
.edc-roadmap-container .edc-roadmap-view-btn {
    background: #007476 !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
}

/* View Button - Hover State (white background, teal border/text) */
.edc-roadmap-container .edc-roadmap-view-btn:hover {
    background: #ffffff !important;
    color: #007476 !important;
    border: 1px solid #007476 !important;
}

/* Edit Button - Default State (white background, teal border/text) */
.edc-roadmap-container .edc-roadmap-edit-btn {
    background: #ffffff !important;
    border: 1px solid #007476 !important;
    color: #007476 !important;
    text-decoration: none !important;
}

/* Edit Button - Hover State (#007476 background, white text) */
.edc-roadmap-container .edc-roadmap-edit-btn:hover {
    background: #007476 !important;
    color: #ffffff !important;
    border: 1px solid #007476 !important;
}

.edc-roadmap-container .edc-roadmap-edit-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

/* ==========================================================================
   Single Advisor Page - 1:1 UI Replication
   ========================================================================== */

.edc-single-page-bg {
    padding: 60px 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Strictly remove any other background layers or effects */
.edc-single-page-bg::after,
.edc-single-page-bg::before {
    display: none !important;
}

.edc-single-advisor-container {
    width: 1100px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.edc-single-advisor-card {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    min-height: 700px;
    /* MANDATORY consistent height */
    align-items: stretch;
}

/* Left Sidebar - Fixed Consistency */
.edc-single-left {
    width: 320px;
    /* MANDATORY consistent width */
    background: #fdfdfd;
    position: relative;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f0f0f1;
    flex-shrink: 0;
}

.edc-sidebar-faded-num {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 100px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -2px;
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.edc-sidebar-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.edc-single-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 0 auto 30px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.edc-single-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.edc-sidebar-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.edc-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: #e0f2fe;
    color: #0369a1;
}

/* Right Content Area - Fixed Consistency */
.edc-single-right {
    flex: 1;
    padding: 60px 60px;
    /* MANDATORY consistent padding */
    display: flex;
    flex-direction: column;
    background: #fff;
}

.edc-single-meta-top {
    color: #3b82f6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.edc-single-name {
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.edc-single-current-title {
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 24px 0;
    font-weight: 500;
}

.edc-single-section {
    margin-bottom: 32px;
}

.edc-single-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.edc-single-section-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.edc-single-taxonomies {
    font-size: 14px;
    color: #374151;
    margin-bottom: 16px;
}

.edc-single-contact-details {
    margin: 0;
}

.edc-single-contact-item {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 10px 0;
}

.edc-single-contact-label {
    font-weight: 600;
    color: #374151;
    margin-right: 6px;
}

.edc-single-author-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.edc-single-author-meta strong {
    color: #374151;
}

/* Content Body Typography */
.edc-single-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.edc-single-content p {
    margin-bottom: 24px;
}

.edc-dropcap {
    float: left;
    font-size: 58px;
    line-height: 0.85;
    font-weight: 800;
    color: #3b82f6;
    margin-right: 12px;
    margin-top: 8px;
    font-family: serif;
}

/* Highlight Quote Box */
.edc-highlight-quote-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 30px;
    margin: 40px 0;
    border-radius: 4px;
}

.edc-highlight-quote-box p {
    margin: 0;
    font-style: italic;
    font-weight: 600;
    font-size: 18px;
    color: #1e40af;
    line-height: 1.5;
}

/* Navigation Footer (BELOW CONTAINER) */
.edc-single-nav-footer {
    padding-top: 40px;
    width: 100%;
}

.edc-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edc-nav-btn {
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.edc-nav-btn:hover {
    background: #3b82f6;
    color: #fff !important;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.edc-nav-spacer {
    flex: 1;
}

/* Responsive */
@media screen and (max-width: 1100px) {
    .edc-single-advisor-container {
        padding: 0 15px !important;
    }
}

@media screen and (max-width: 900px) {
    .edc-single-advisor-card {
        flex-direction: column;
        min-height: auto;
    }

    .edc-single-left {
        width: 100%;
        padding: 60px 20px 40px;
        border-right: none;
        border-bottom: 1px solid #f0f0f1;
    }

    .edc-single-advisor-image.edc-single-image-fit {
        max-width: 100%;
    }

    .edc-single-advisor-image.edc-single-image-fit img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .edc-sidebar-faded-num {
        font-size: 80px;
        top: 10px;
        left: 20px;
    }

    .edc-single-right {
        padding: 40px 30px;
    }

    .edc-single-name {
        font-size: 32px;
        word-wrap: break-word;
    }
}

@media screen and (max-width: 600px) {
    .edc-single-page-bg {
        padding: 30px 0;
    }

    .edc-single-left {
        padding: 40px 15px 30px;
    }

    .edc-single-avatar {
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }

    .edc-single-advisor-image.edc-single-image-fit {
        max-width: 100%;
        width: 200px;
        height: auto;
        min-height: 200px;
    }

    .edc-single-advisor-image.edc-single-image-fit img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }

    .edc-single-right {
        padding: 30px 20px;
    }

    .edc-single-name {
        font-size: 28px;
        word-wrap: break-word;
    }

    .edc-single-section-title,
    .edc-single-contact-details .edc-single-contact-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .edc-single-author-meta {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .edc-single-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .edc-dropcap {
        font-size: 48px;
        margin-right: 10px;
    }

    .edc-highlight-quote-box {
        padding: 20px;
        margin: 30px 0;
    }

    .edc-highlight-quote-box p {
        font-size: 16px;
    }

    .edc-nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .edc-nav-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
    }
}

/* --- Frontend Forms --- */
.edc-frontend-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.edc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.edc-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.edc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.edc-form-group input[type="text"],
.edc-form-group input[type="email"],
.edc-form-group input[type="url"],
.edc-form-group select,
.edc-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.edc-form-group input:focus,
.edc-form-group select:focus,
.edc-form-group textarea:focus {
    outline: none;
    border-color: #007476;
    box-shadow: 0 0 0 3px rgba(0, 116, 118, 0.1);
}

.edc-form-group .description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

@media screen and (max-width: 600px) {
    .edc-frontend-form-wrapper {
        padding: 20px;
    }

    .edc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Roadmap Responsive --- */
@media screen and (max-width: 900px) {
    .edc-roadmap-container {
        padding: 24px 20px;
    }

    .edc-roadmap-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .edc-roadmap-header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .edc-roadmap-search-box {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .edc-roadmap-container {
        padding: 30px 20px;
    }

    .edc-roadmap-list-wrapper {
        padding-left: 0;
    }

    .edc-roadmap-line {
        display: none;
    }

    .edc-roadmap-number {
        position: static;
        transform: none;
        margin: 0 auto 15px;
    }

    .edc-roadmap-card-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .edc-roadmap-avatar {
        margin: 0 auto;
    }

    .edc-roadmap-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .edc-roadmap-container {
        padding: 20px 15px;
    }

    .edc-roadmap-btn {
        width: 100%;
        justify-content: center;
    }

    .edc-roadmap-view-btn,
    .edc-roadmap-edit-btn {
        width: 100%;
        min-width: 100%;
    }
}

/* --- Admin UI Responsiveness --- */
@media screen and (max-width: 782px) {
    .edc-list-actions-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .edc-top-buttons {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .edc-top-buttons .button {
        flex: 1;
        justify-content: center;
    }

    .edc-search-bar-row {
        flex-direction: column;
        gap: 10px;
    }

    .edc-search-bar-row .alignright {
        float: none;
        width: 100%;
        display: flex;
        gap: 5px;
    }

    #edc-admin-search {
        flex: 1;
    }

    /* Table Responsiveness */
    .edc-card-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wp-list-table.widefat.fixed {
        table-layout: auto;
    }

    .column-category,
    .column-order {
        display: none !important;
        /* Hide less important columns on mobile admin */
    }
}

/* --- Global Plugin Typography --- */
.edc-frontend-list-wrapper *:not(.dashicons),
.edc-roadmap-container *:not(.dashicons),
.edc-single-page-bg *:not(.dashicons),
.edc-custom-list-wrap *:not(.dashicons),
.edc-page-wrapper *:not(.dashicons),
.edc-frontend-form-wrapper *:not(.dashicons) {
    font-family: "Varela Round", sans-serif !important;
}

/* --- Button Styling --- */

/* Primary Buttons (VIEW / VIEW MORE / NAV) */
.edc-view-more-button,
.edc-roadmap-view-btn,
.edc-nav-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #007476 !important;
    color: #ffffff !important;
    border: 1px solid #007476 !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-family: "Varela Round", sans-serif !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.edc-view-more-button {
    text-transform: uppercase !important;
}

.edc-view-more-button:hover,
.edc-roadmap-view-btn:hover,
.edc-nav-btn:hover {
    background-color: #ffffff !important;
    color: #007476 !important;
    border: 1px solid #007476 !important;
}

/* Secondary Buttons (EDIT) */
.edc-roadmap-edit-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    color: #007476 !important;
    border: 1px solid #007476 !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-family: "Varela Round", sans-serif !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.edc-roadmap-edit-btn:hover {
    background-color: #007476 !important;
    color: #ffffff !important;
    border: 1px solid #007476 !important;
}

/* Override Astra theme: remove underline from entry and comment content links */
.ast-single-post .entry-content a,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: none !important;
}

/* ==========================================================================
   Responsive: Advisor grids (archive + shortcode) – proper on all devices
   ========================================================================== */
.edc-frontend-list-wrapper,
.edc-single-page-bg .edc-single-advisor-container {
    box-sizing: border-box;
}

.edc-frontend-list-wrapper *,
.edc-single-page-bg * {
    box-sizing: border-box;
}

/* Tablet: 2 columns */
@media screen and (max-width: 992px) {
    .edc-frontend-list-wrapper .edc-advisors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .edc-frontend-list-wrapper .edc-main-title {
        font-size: 32px;
    }

    .edc-frontend-list-wrapper .edc-subtitle {
        font-size: 16px;
    }
}

/* Mobile: 1 column, tighter spacing */
@media screen and (max-width: 600px) {
    .edc-frontend-list-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }

    .edc-frontend-list-wrapper .edc-advisors-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .edc-frontend-list-wrapper .edc-main-title {
        font-size: 26px;
    }

    .edc-frontend-list-wrapper .edc-subtitle {
        font-size: 15px;
    }

    .edc-frontend-list-wrapper .edc-search-input-wrap {
        max-width: 100%;
    }

    .edc-advisor-card .edc-view-more-button,
    .edc-advisor-card .edc-roadmap-view-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Single page: ensure container never overflows on small screens */
@media screen and (max-width: 480px) {
    .edc-single-advisor-container {
        padding: 0 12px !important;
    }

    .edc-single-right {
        padding: 24px 16px;
    }

    .edc-single-name {
        font-size: 24px;
    }

    .edc-single-section-title {
        font-size: 18px;
    }

    .edc-single-contact-details a {
        word-break: break-all;
    }
}