/* --- 1. THE FOUNDATION --- */
:root {
    --bg: #0a0c10;
    --card-bg: #11141b;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --border: #1e293b;
    --accent-coaching: #4ade80; 
    --accent-tech: #fbbf24;
    --accent-ivdavra: #60a5fa;
    --accent-sijmmetry: #94a3b8;
    --accent-page: #cbd5e1;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0a0c10 70%);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
}

/* --- 2. CLEANING THE CMS HEADER --- */
.container-content { 
    vertical-align: center; 
}

.container-header, 
.container-content, 
.container-footer {
    max-width: 1000px;
    margin: 0 auto;
}
.language-selection ul { 
    display: flex; 
    justify-content: flex-end; 
    list-style: none; 
    gap: 15px; 
}
.language-selection a, .language-selection .selected {
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-dim);
    letter-spacing: 1px;
}
.language-selection .selected { color: var(--accent-coaching); border-bottom: 2px solid; }

/* --- 3. THE HUB TITLE --- */
.content_list_title h2 { font-size: 3.5rem; margin-bottom: 0; letter-spacing: -2px; }
.content_list_description p { 
    color: var(--accent-coaching); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-size: 0.8rem; 
    font-weight: bold; 
}

/* --- 4. THE SMART CARD GRID --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 4rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Assigning Colors by Card Position */
.card:nth-child(1) { --accent: var(--accent-coaching); }
.card:nth-child(2) { --accent: var(--accent-tech); }
.card:nth-child(3) { --accent: var(--accent-ivdavra); }
.card:nth-child(4) { --accent: var(--accent-sijmmetry); }
.card:nth-child(5) { --accent: #a78bfa; } /* Dev */
.card:nth-child(6) { --accent: #cbd5e1; } /* CV */

.card { border-top: 4px solid var(--accent); }

/* Domain Tags (the H2 in your HTML) */
.card h2 {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    order: -1;
}

/* Subject Titles (the H3 in your HTML) */
.content_item_description h3 {
    font-size: 1.5rem;
    margin: 0 0 0.8rem 0;
    color: #fff;
}

.content_item_description p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Hover Scanning Effect */
.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
}
.card:hover::after { left: 100%; transition: left 0.6s ease; }

/* --- 5. FOOTER --- */
footer { 
    margin-top: 3rem; 
    opacity: 0.7; 
}
#navigation_list_toplevel ul { list-style: none; padding: 0; text-align: center; }
#navigation_list_toplevel a { color: var(--text); text-decoration: none; font-size: 0.8rem; }
.footer-copy { 
    font-size: 0.7rem; 
    margin-top: 20px; 
    text-align: center; 
}

/* CMS Admin Cruft Removal */
.anchor { display: none; }

.container-main {
    max-width: 1200px;
    margin: 40px auto; /* Adds spacing at the top/bottom */
    margin-top: 0;
    padding: 0 40px;
    
    /* --- GLASSMORPHISM ENGINE --- */
    background: rgba(17, 20, 27, 0.7); /* Deep dark tint with 70% opacity */
    backdrop-filter: blur(12px);      /* The 'frosted' look (Modern browsers only) */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    
    /* Subtle Border & Shadow for Depth */
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Ensures the container stays centered */
    display: block;
    box-sizing: border-box;
}

/* Ensure the background stays fixed so the blur looks better as you scroll */
body {
    background-attachment: fixed;
}

header, footer {
    background: transparent !important;
    border: none !important;
    padding: 20px 0;
}

.container-header, .container-footer {
    max-width: 100%; /* They now respect the parent's padding */
}

/* --- THE GLOW ENGINE --- */
.content_list_title h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    
    /* Layered shadows: 1 for sharpness, 1 for the soft 'aura' */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2), 
        0 0 30px rgba(74, 222, 128, 0.15); /* Subtle green tint matching 'Human Systems' */
    
    transition: all 0.5s ease;
    cursor: default;
}

/* Subtle pulse when you hover over the Glass Hub */
.container-main:hover .content_list_title h2 {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4), 
        0 0 40px rgba(74, 222, 128, 0.3);
    letter-spacing: 0px; /* Slight expansion for a 'breathing' effect */
}

/* --- THE SUBTITLE (SYSTEMS ARCHITECT) --- */
.content_list_description p {
    color: #4ade80; /* Your 'Human Systems' Green */
    text-transform: uppercase;
    letter-spacing: 5px; /* Wide tracking for that technical feel */
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    opacity: 0.8;
    
    /* Subtle scan-line animation effect */
    position: relative;
    display: inline-block;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Very faint grain */
    background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    opacity: 0.03; 
    pointer-events: none;
    z-index: 1;
}

/* --- LINK STATE PERSISTENCE --- */
a, 
a:visited, 
a:hover, 
a:active, 
a:focus {
    color: inherit;            /* Takes the color from the H3 or P it's inside */
    text-decoration: none;     /* Removes the default underline */
    outline: none;             /* Removes the focus ring on click */
}

/* Specific fix for the Card Titles (H3) */
.content_item_description h3 a,
.content_item_description h3 a:visited {
    color: #ffffff !important; /* Keeps titles pure white */
}

/* Specific fix for the Language Toggle */
.language-selection a,
.language-selection a:visited {
    color: var(--text-dim);    /* Keeps "NL/EN" dim until hovered */
}

/* 1. Make the card the boundary for the link */
.card {
    position: relative; /* This is the 'anchor' for the stretched link */
    cursor: pointer;    /* Makes the whole card show the pointer hand */
}

/* 2. Stretch the link to the card edges */
.card a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5; /* Sits on top of all other content in the card */
}

/* 3. Ensure hover effects still trigger */
.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
}

/* 1. Turn off the Grid and Cards for List pages */
.cntnt_topic_list .content_items {
    display: flex !important; /* Switch from Grid to a vertical List */
    flex-direction: column;
    gap: 0; /* Remove gaps between items */
    margin-top: 2rem;
}

.cntnt_topic_list .content_list {
    margin-top: 2rem;
}

/* 2. Professional Typography for List Mode */
.cntnt_topic_list h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-page); /* Keep your branding color for the titles */
    letter-spacing: 1px;
    margin-top: 1rem;
    display: inline-block;
}

.cntnt_topic_list .content_item_description p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 10px;
    max-width: 850px;
}

