/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/
/* ===== FINAL AI TREE STRUCTURE (WPBAKERY FIXED) ===== */

ul.tree,
.wpb_text_column ul.tree {
list-style: none !important;
padding-left: 25px;
margin: 15px 0;
}

/* remove default bullets */
ul.tree li,
.wpb_text_column ul.tree li {
list-style: none !important;
position: relative;
padding-left: 20px;
margin: 8px 0;
font-size: 16px;
}

/* vertical line */
ul.tree li::before {
content: "";
position: absolute;
left: -10px;
top: 0;
width: 2px;
height: 100%;
background: #e5e7eb;
}

/* horizontal connector */
ul.tree li::after {
content: "";
position: absolute;
left: -10px;
top: 14px;
width: 12px;
height: 2px;
background: #e5e7eb;
}

/* last child fix */
ul.tree li:last-child::before {
height: 14px;
}

/* main node circle */
ul.tree > li::before {
background: #3452ff;
width: 12px;
height: 12px;
border-radius: 50%;
top: 12px;
}

/* remove horizontal line for main node */
ul.tree > li::after {
display: none;
}

/* ===== AI GOVERNANCE MATRIX ===== */

.ai-matrix {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin: 30px 0;
}

.matrix-item {
background: #ffffff;
border-radius: 12px;
padding: 18px;
border: 1px solid #e5e7eb;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: 0.3s ease;
position: relative;
}

.matrix-item:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Title */
.matrix-item h4 {
margin: 0 0 10px;
font-size: 16px;
color: #111827;
}

/* Description */
.matrix-item p {
font-size: 14px;
color: #6b7280;
margin-bottom: 12px;
}

/* Risk badge */
.risk {
padding: 4px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}

/* Risk colors */
.risk.high {
background: #fee2e2;
color: #dc2626;
}

.risk.medium {
background: #fef3c7;
color: #d97706;
}

.risk.low {
background: #dcfce7;
color: #16a34a;
}
/

/* Row striping */
.post-content table tr:nth-child(even),
.entry-content table tr:nth-child(even) {
background-color: #f9fafb;
}

/* Hover */
.post-content table tr:hover,
.entry-content table tr:hover {
background-color: #f1f5ff;
}
/* ===== WPBAKERY SAFE TABLE ===== */

.wpb_text_column table.ai-table {
width: 100%;
border-collapse: collapse;
margin: 25px 0;
font-size: 15px;
}

/* Header */
.wpb_text_column table.ai-table th {
background-color: #3452ff !important;
color: #ffffff !important;
padding: 12px;
text-align: left;
font-weight: 600;
}

/* Cells */
.wpb_text_column table.ai-table td {
padding: 10px;
border: 1px solid #e5e7eb;
color: #374151;
}

/* Alternate rows */
.wpb_text_column table.ai-table tr:nth-child(even) {
background-color: #f9fafb;
}

/* Hover */
.wpb_text_column table.ai-table tr:hover {
background-color: #f1f5ff;
}