/* T4iel Lab Portal - Custom Brand Overrides (Integrated with Bootstrap 5) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary: #6B2E2E;         /* Institutional Maroon */
    --primary-light: #8E3E3E;
    --primary-dark: #4A1F1F;
    --primary-rgb: 107, 46, 46;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #FAF9F6;  /* Premium soft academic background */
    color: #1E293B;             /* Deep slate charcoal text */
}

/* Typography Overrides */
h1, h2, h3, .font-serif {
    font-family: var(--font-heading);
}

.text-maroon {
    color: var(--primary) !important;
}

.bg-maroon {
    background-color: var(--primary) !important;
}

.btn-maroon {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-maroon:hover {
    background-color: var(--primary-light);
    color: white;
}

/* Custom Navigation Links (Clean text without underlines) */
.nav-link-custom {
    color: #475569;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s ease;
    text-decoration: none !important;
}
.nav-link-custom:hover {
    color: var(--primary);
}
.nav-link-custom.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Hero Section Gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #832C2C 100%);
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
}

/* Objective Block (Academic Style) */
.objective-box {
    border-left: 4px solid var(--primary);
    background: white;
}

/* Dynamic Interactive SVG Graph */
.interactive-graph-viewport {
    background: #FAF9F6;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    width: 100%;
    height: 460px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    overflow: hidden;
}
.interactive-graph-viewport svg {
    width: 100%;
    height: 100%;
}

/* Interactive SVG Node & Edge Styling */
.node-circle {
    fill: white;
    stroke: var(--primary);
    stroke-width: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.node-group:hover .node-circle {
    fill: rgba(var(--primary-rgb), 0.12);
    stroke-width: 4px;
}
.node-group.active .node-circle {
    fill: var(--primary);
    stroke: var(--primary);
}
.node-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    fill: #1E293B;
    pointer-events: none;
}
.edge-line {
    stroke: #E2E8F0;
    stroke-width: 2px;
    stroke-linecap: round;
    transition: all 0.2s ease;
}
.edge-line.active {
    stroke: var(--primary);
    stroke-width: 3px;
}

/* Member Avatars */
.member-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.15);
    flex-shrink: 0;
}

.member-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08) !important;
}

.hover-maroon {
    transition: color 0.2s ease;
}
.hover-maroon:hover {
    color: var(--primary) !important;
}

.bg-maroon-subtle {
    background-color: rgba(107, 46, 46, 0.08) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(107, 46, 46, 0.15);
}

.fs-7 {
    font-size: 0.8rem;
}

.objective-card {
    transition: all 0.25 ease;
    border-radius: 12px;
}
.objective-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(107, 46, 46, 0.08) !important;
}

.badge-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(107, 46, 46, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Media Queries & Mobile Optimizations */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #FAF9F6;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #E2E8F0;
    }
    .nav-link-custom {
        display: block;
        padding: 8px 12px;
        border-radius: 6px;
    }
    .nav-link-custom:hover, .nav-link-custom.active {
        background-color: rgba(107, 46, 46, 0.06);
    }
}

@media (max-width: 768px) {
    .interactive-graph-viewport {
        height: 360px;
    }
}

@media (max-width: 576px) {
    .interactive-graph-viewport {
        height: 300px;
    }
    .display-4 {
        font-size: 2.2rem;
    }
}