/* School Theme Specific Additions */

:root {
    --clr-trust-blue: #004E89;
    --clr-offwhite: #F8F9FB; /* Cooler background for trust */
}

/* Base Body Modifications */
.school-theme {
    background: var(--clr-offwhite);
}

.bg-trust-blue { background-color: var(--clr-trust-blue); }
.text-trust-blue { color: var(--clr-trust-blue); }

.temple-grid-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* Trust Cards */
.trust-card {
    background: white;
    border: 3px solid var(--clr-trust-blue);
    box-shadow: 8px 8px 0px rgba(0, 78, 137, 0.2);
    border-radius: 4px; /* More institutional */
    padding: 32px;
}
.trust-card:hover { box-shadow: 12px 12px 0px rgba(0, 78, 137, 0.4); }

/* Persona Cards */
.persona-card {
    border-radius: 4px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}

/* Strategy Pillars */
.strategy-pillar {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.pillar-icon { font-size: 32px; margin-bottom: 12px; }

/* Massive IA Tree (Flex/Absolute hybrid) */
.ia-forest {
    gap: 16px;
    position: relative;
}
.ia-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.ia-connector-child {
    width: 4px;
    height: 30px;
    background: var(--clr-black-true);
}
.node-main {
    width: 140px;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.ia-sub-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.ia-sub-group::before {
    content: '';
    position: absolute;
    top: -16px;
    bottom: 20px;
    left: 10px;
    width: 2px;
    background: var(--clr-black-true);
    z-index: -1;
}
.ia-sub-node {
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--clr-black-true);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    margin-left: 24px;
    position: relative;
    max-width: 140px;
}
.ia-sub-node::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--clr-black-true);
}
.border-saffron { border-color: var(--clr-saffron); border-width: 3px; }

.node-nested {
    padding-bottom: 0px;
}
.nested-group {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ccc;
}
.nested-group div { padding: 4px 0; }

/* Vertical IA Tree */
.vertical-ia-tree {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px 40px;
    border: 3px solid var(--clr-trust-blue);
    border-radius: 8px;
    box-shadow: 8px 8px 0px var(--clr-trust-blue);
    font-size: 18px;
    color: var(--clr-black-true);
}

.vertical-ia-tree ul {
    list-style-type: none;
    padding-left: 28px;
    margin: 0;
    position: relative;
    border-left: 2px solid var(--clr-trust-blue);
}

.vertical-ia-tree > ul {
    border-left: none; /* root ul doesn't need left border down the whole thing if we handle lis */
    padding-left: 14px;
}

.vertical-ia-tree li {
    margin: 0;
    padding: 8px 0 8px 24px;
    position: relative;
    font-weight: 600;
}

/* Horizontal connectors */
.vertical-ia-tree li::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 16px;
    border-top: 2px solid var(--clr-trust-blue);
}

/* Fix nested ul borders so it connects properly */
.vertical-ia-tree ul ul {
    margin-top: 4px;
    margin-bottom: 4px;
}

.vertical-ia-tree li:last-child {
    border-left: none; 
}

/* To mask the continuous border on the last item's bottom half for proper tree lines */
.vertical-ia-tree li.last-node::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 0;
    left: -2px; /* cover the left border */
    width: 4px;
    background: white;
}

/* Root level styling */
.ia-root {
    font-size: 24px;
    font-weight: 900;
    color: var(--clr-trust-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

