*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    /* Corporate Colors */
    --primary: #0D5985;
    --primary-bg: #E6F0F6;
    --primary-bar: #0D5985;
    
    --accent: #FBBD25;
    --accent-bg: #FEF8E9;
    --accent-bar: #FBBD25;
    
    --neutral: #C2D6CC;       /* Muted green-gray instead of gray #DCDCDC */
    --neutral-bg: #E6EFEA;    /* Soft pastel green-gray instead of #F5F5F5 */
    
    /* Layout & Text Colors */
    --bg: #EDF7F1;            /* Pastel green background instead of #F8FAFC */
    --surface: #ffffff;
    --border: #C2D6CC;        /* Muted green-gray border instead of #DCDCDC */
    --text: #1E293B;
    --text-muted: #475569;
    --text-light: #64748B;
    
    /* Material Design 3 Utilities */
    --radius: 16px;
    --shadow-1: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
    --shadow-2: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 24px 16px 64px;
    line-height: 1.5;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
}

header {
    margin-bottom: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}

.header-logo {
    height: 72px;
    width: auto;
    display: block;
}

.title-container {
    flex-grow: 1;
}

header h1 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    line-height: 1.2;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
}

.nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px; /* MD3 Pill style */
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--neutral-bg);
    color: var(--primary);
}

.nav-link.active {
    background-color: var(--primary);
    color: #ffffff;
}


.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-1);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-2);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full { 
    grid-column: 1 / -1; 
}

label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .unit {
    position: absolute;
    right: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    font-weight: 500;
}

input[type="number"], input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: all .2s ease;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
}

input[type="number"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

/* RESULTS GRID */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .results-grid { grid-template-columns: 1fr; }
}

.result-card {
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid transparent;
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
}

.result-card .rc-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-card .rc-value {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.result-card .rc-sub {
    font-size: 0.85rem;
    margin-top: 8px;
    line-height: 1.4;
    font-weight: 500;
}

/* card variants */
.rc-total { 
    background: var(--neutral-bg); 
    border-color: var(--border); 
}
.rc-total .rc-label { color: var(--text-muted); }
.rc-total .rc-value { color: var(--text); }
.rc-total .rc-sub   { color: var(--text-light); }

.rc-primary { 
    background: var(--primary-bg); 
    border-color: #B9D5E8; 
}
.rc-primary .rc-label { color: var(--primary); }
.rc-primary .rc-value { color: var(--primary); }
.rc-primary .rc-sub   { color: #094060; }

.rc-accent { 
    background: var(--accent-bg); 
    border-color: #FDE6AA; 
}
.rc-accent .rc-label { color: #A67B12; }
.rc-accent .rc-value { color: #A67B12; }
.rc-accent .rc-sub   { color: #8A650D; }

.rc-green { 
    background: #E2F3E7; 
    border-color: #A9DFBF; 
}
.rc-green .rc-label { color: #1E8449; }
.rc-green .rc-value { color: #1E8449; }
.rc-green .rc-sub   { color: #145A32; }

/* BARS */
.bar-section { 
    margin-top: 12px; 
}

.bar-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.bar-track {
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    background: var(--neutral-bg);
    border: 1px solid var(--border);
}

.bar-seg {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.bar-seg span {
    padding: 0 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.seg-primary { background: var(--primary-bar); }
.seg-accent  { background: var(--accent-bar); color: #4A3503 !important; }
.seg-accent span { text-shadow: none; }
.seg-neutral { background: #94A3B8; }

.bar-labels {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.bar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-primary { background: var(--primary-bar); }
.dot-accent  { background: var(--accent-bar); }
.dot-neutral { background: #94A3B8; }

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Vertical Timeline (Material Design 3 Stepper) */
.timeline {
    position: relative;
    padding: 10px 0;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 20px;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-left: 56px;
}

.timeline-badge {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--neutral-bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    z-index: 1;
    transition: all 0.2s ease;
}

.timeline-badge.primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.timeline-badge.accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #4A3503;
}

.timeline-panel {
    background: var(--neutral-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    flex-grow: 1;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-panel {
    transform: translateX(6px);
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-1);
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.1);
}

.timeline-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 2px;
}

.timeline-panel p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* Video Preview Cards (YT bypass) */
.video-card {
    display: flex;
    flex-direction: column;
    background: var(--neutral-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    transition: all 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-1);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background-color: rgba(13, 89, 133, 0.9); /* Primary color translucent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.video-card:hover .play-button-overlay {
    background-color: var(--accent); /* Turn Yellow on hover */
    color: #4A3503;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 28px;
    height: 28px;
}

.video-info {
    padding: 8px 4px 4px;
}


