/* Global Vars & Reset (KRDS Light Theme) */
:root {
    /* Map KRDS Variables for consistency */
    --font-main: 'Pretendard GOV', 'Noto Sans KR', sans-serif;
    --max-width: 1200px;

    /* Semantic Colors from KRDS */
    --bg-color: var(--krds-light-color-background-white, #ffffff);
    --text-color: var(--krds-light-color-text-basic, #1e2124);
    --primary-color: var(--krds-light-color-primary-50, #256ef4);
    --secondary-color: var(--krds-light-color-secondary-50, #346fb2);
    --highlight-color: #FF5A5A;
    /* Gap Highlight */

    /* Modern UI Extensions */
    --modern-bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --modern-card-bg: #ffffff;
    --modern-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --modern-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --modern-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --modern-radius: 24px;
    --modern-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.center {
    text-align: center;
    color: var(--text-color);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
    letter-spacing: -0.05rem;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--krds-light-color-primary-5, #ecf2fe);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--krds-light-color-primary-10, #d8e5fd);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--krds-light-color-border-gray-light, #e6e8ea);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--krds-light-color-text-subtle, #58616a);
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

#hero h1 {
    font-size: 3.6rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    word-break: keep-all;
}

.highlight {
    color: var(--primary-color);
}

#hero p {
    font-size: 1.25rem;
    color: var(--krds-light-color-text-subtle, #58616a);
    margin-bottom: 2.5rem;
    word-break: keep-all;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
}

.canvas-mockup {
    width: 100%;
    height: 100%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 1px solid var(--krds-light-color-border-gray, #cdd1d5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    font-size: 0.9rem;
}

.node.center {
    top: 40%;
    left: 40%;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 1.1rem;
}

.node.p1 {
    top: 10%;
    left: 50%;
}

.node.p2 {
    top: 60%;
    left: 80%;
}

.node.p3 {
    top: 70%;
    left: 10%;
}

/* Problem Section */
#problem {
    padding: 100px 0;
    background: var(--krds-light-color-background-gray-subtler, #f4f5f6);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.problem-text h3 {
    font-size: 2.2rem;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    word-break: keep-all;
    color: var(--text-color);
}

.problem-text p {
    font-size: 1.1rem;
    color: var(--krds-light-color-text-subtle);
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--krds-light-color-border-gray-light, #e6e8ea);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.card p {
    font-size: 0.95rem;
    color: var(--krds-light-color-text-subtle);
}

/* Solution Section */
#solution {
    padding: 120px 0;
    background: #fff;
    text-align: center;
}

.solution-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

.concept-box {
    background: #fff;
    border: 1px solid var(--krds-light-color-border-gray);
    padding: 40px;
    border-radius: 16px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.concept-box.highlight {
    border: 2px solid var(--primary-color);
    background: var(--krds-light-color-primary-5);
}

.concept-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-weight: 700;
    background: var(--krds-light-color-background-gray-subtle, #e6e8ea);
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.concept-box.highlight .concept-visual {
    background: #fff;
    color: var(--primary-color);
}

/* How It Works */
#how-it-works {
    padding: 100px 0;
    background: var(--krds-light-color-background-gray-subtler, #f4f5f6);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.step {
    flex: 1;
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--krds-light-color-border-gray-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: var(--krds-light-color-assignment-gray-5, #f4f5f6);
    position: absolute;
    top: 10px;
    right: 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step p {
    color: var(--krds-light-color-text-subtle);
}

/* Feature/Founder Section */
#founder {
    padding: 120px 0;
    background: #fff;
}

.founder-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.img-placeholder {
    width: 300px;
    height: 400px;
    background: var(--krds-light-color-background-gray-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--krds-light-color-text-subtle);
}

.founder-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.story-text {
    font-size: 1.1rem;
    color: var(--krds-light-color-text-subtle);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

#features {
    padding: 100px 0;
    background: #fff;
}

.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-card-v2 {
    background: #fff;
    border: 1px solid var(--krds-light-color-border-gray-light);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.feature-card-v2:hover {
    border-color: var(--primary-color);
    background: var(--krds-light-color-primary-5);
}

/* Impact */
#impact {
    padding: 100px 0;
    background: var(--primary-color);
    color: #fff;
}

.impact-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 50px;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.stat-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA */
#cta {
    padding: 150px 0;
    background: #F8F9FA;
    text-align: center;
}

#cta h2 {
    color: var(--text-color);
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid var(--krds-light-color-border-gray-light);
    text-align: center;
    color: var(--krds-light-color-text-subtle);
    background: #fff;
}

/* =========================================
   Modern Demo Page Styles (High-End)
   ========================================= */
.demo-page {
    background: var(--modern-bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.demo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    max-width: 900px;
    /* Slightly wider */
    margin: 0 auto;
    width: 100%;
}

.demo-step {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--modern-transition);
    display: none;
    /* JS handles visibility */
}

.demo-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Modern Card Layout */
.step-content {
    background: var(--modern-card-bg);
    border-radius: var(--modern-radius);
    padding: 60px;
    box-shadow: var(--modern-shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 800;
}

.step-content p {
    color: var(--krds-light-color-text-subtle);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Modern Tag Input */
.tag-selector {
    margin-bottom: 40px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag {
    background: #f1f3f5;
    border: 1px solid transparent;
    color: #495057;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--modern-transition);
}

.tag:hover {
    transform: translateY(-2px);
    background: #e9ecef;
    box-shadow: var(--modern-shadow-sm);
}

.tag.selected {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 110, 244, 0.3);
}

/* Modern Text Input */
#user-input {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 40px;
    transition: var(--modern-transition);
}

#user-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 110, 244, 0.1);
}

/* Modern Loading Animation */
.ai-loader {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.ai-loader .circle {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out both;
}

.ai-loader .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-loader .circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Result Section Modernization */
.result-content {
    text-align: left;
    /* Switch to left align for structure */
}

.result-header {
    text-align: center;
    margin-bottom: 50px;
}

.canvas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* CSS Radar Chart Mockup */
.radar-chart-container {
    position: relative;
    width: 300px;
    /* specific width for visual */
    height: 300px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(37, 110, 244, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.radar-chart {
    position: relative;
    width: 100%;
    height: 100%;
}

/* User Shape (Blue) */
.radar-poly {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: rgba(37, 110, 244, 0.15);
    border: 2px solid var(--primary-color);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    /* Pentagon */
    transition: all 1s ease-out;
    z-index: 2;
}

/* Target Shape (Gray Outline) */
.radar-poly.target {
    width: 90%;
    /* Bigger target */
    height: 90%;
    background: transparent;
    border: 2px dashed #adb5bd;
    z-index: 1;
}

.radar-dots .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(37, 110, 244, 0.4);
    z-index: 3;
}

/* Positioning dots crudely for pentagon */
.dot.d1 {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.dot.d2 {
    top: 38%;
    right: 15%;
}

.dot.d3 {
    bottom: 25%;
    right: 25%;
}

.dot.d4 {
    bottom: 25%;
    left: 25%;
}

.dot.d5 {
    top: 38%;
    left: 15%;
}

.labels .label {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.label.l1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.label.l2 {
    top: 30%;
    right: 0;
}

.label.l3 {
    bottom: 10%;
    right: 10%;
}

.label.l4 {
    bottom: 10%;
    left: 10%;
}

.label.l5 {
    top: 30%;
    left: 0;
}

/* Result Tags & Summary */
.result-keywords h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.ai-summary {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #495057;
    margin-top: 20px;
}

/* Path Cards (Credit Card Style) */
.path-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.path-card {
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 24px;
    border-radius: 16px;
    width: 240px;
    text-align: center;
    box-shadow: var(--modern-shadow-sm);
    transition: var(--modern-transition);
    cursor: pointer;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--modern-shadow-md);
    border-color: var(--primary-color);
}

.path-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.path-card h4 {
    margin-top: 0;
}

/* =========================================
   Evidence Popover & Action Cards (New)
   ========================================= */
.evidence-popover {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
}

.evidence-popover.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-tags .tag.selected {
    cursor: help;
    /* Indicate clickability */
}

/* Action Cards (Gap Filling) */
.action-section {
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
    text-align: center;
}

.action-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.action-card {
    background: #FFFAFA;
    /* Subtle Red Tint for Gap */
    border: 1px solid #FFE4E4;
    padding: 20px;
    border-radius: 16px;
    width: 240px;
    text-align: left;
}

.action-badge {
    background: #FF5A5A;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: inline-block;
}

.action-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.action-card p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* =========================================
   Alumni Insight Section (New)
   ========================================= */
.alumni-section {
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
    text-align: center;
}

.alumni-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    margin: 20px auto 0;
    text-align: left;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    width: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.stat-bar-container {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0;
    /* Animate to width */
    transition: width 1s ease-out;
}

.stat-value {
    width: 40px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* Alumni Details Grid */
.alumni-details-grid {
    display: grid;
    /* 3컬럼 유지 - roadmap-section은 이제 그리드 밖 full-width 섹션 */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.detail-column h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li span.rank {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 6px;
    font-size: 0.85rem;
}

.detail-list li span.percent {
    color: #adb5bd;
    font-size: 0.85rem;
}

/* =========================================
   AI Career Roadmap (Timeline)
   ========================================= */
.roadmap-section {
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
    text-align: left;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 40px;
}

.roadmap-container {
    position: relative;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* 흰 카드 영역을 벗어나지 않도록 100%로 제한 */
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    gap: 12px;
    /* 카드 간 간격을 줄여 4개가 한 줄에 들어오게 함 */
}

.timeline-line-bg {
    position: absolute;
    top: 34px;
    /* Adjusted for mentor badge space */
    left: 50px;
    right: 50px;
    height: 4px;
    background: #f1f3f5;
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    width: 25%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mentor Badge (Floating Emoji) */
.mentor-badge {
    position: absolute;
    top: -35px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    animation: bounce 3s infinite ease-in-out;
    z-index: 5;
}

.mentor-badge:hover {
    transform: scale(1.2);
    border-color: var(--primary-color);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.timeline-node {
    width: 48px;
    /* Slightly smaller if needed, but 48 is ok */
    height: 48px;
    background: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(37, 110, 244, 0.3);
    transition: transform 0.3s;
    position: relative;
    /* Context for badge if moved inside */
    background: #fff;
    /* Ensure bg covers line */
}

.timeline-step:hover .timeline-node {
    transform: scale(1.1);
}

.timeline-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #adb5bd;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roadmap-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 8px;
    /* 고정 width 대신 flex로 카드 폭 자동 조절 */
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.timeline-step:hover .roadmap-card {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.roadmap-card h5 {
    font-size: 0.95rem;
    /* Slightly smaller */
    font-weight: 700;
    margin-bottom: 6px;
    color: #343a40;
}

.roadmap-card p {
    font-size: 0.8rem;
    color: #868e96;
    margin-bottom: 0;
    line-height: 1.4;
}

.ai-advice-box {
    background: #f1f8ff;
    border: 1px solid #d8e5fd;
    padding: 20px;
    border-radius: 16px;
    margin-top: 30px;
    /* Reduced margin */
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-text h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.ai-text p {
    font-size: 0.95rem;
    color: #495057;
    margin: 0;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {

    /* General Container Padding */
    .container {
        padding: 0 20px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Stack Grids */
    .alumni-details-grid {
        grid-template-columns: 1fr;
    }

    .action-cards {
        flex-direction: column;
        align-items: center;
    }

    .action-card {
        width: 100%;
        max-width: 340px;
    }

    /* Vertical Roadmap Transformation */
    .roadmap-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
        /* Ensure width fits container */
        max-width: 100%;
    }

    /* Vertical Line */
    .timeline-line-bg {
        width: 4px;
        height: auto;
        top: 0;
        bottom: 0;
        left: 29px;
        /* Center of node (48px/2 + padding/margins) -> Node is 48px wide. */
        right: auto;
        background: #f1f3f5;
    }

    .timeline-step {
        width: 100%;
        display: grid;
        grid-template-columns: 60px 1fr;
        text-align: left;
        margin-bottom: 40px;
        align-items: start;
        grid-gap: 15px;
        /* using standard grid-gap just in case */
        gap: 15px;
    }

    /* Node Column */
    .timeline-node {
        grid-column: 1;
        grid-row: 1 / span 3;
        /* Span across mentor, time, card */
        margin: 0 auto;
        /* Center in 60px col */
        z-index: 2;
    }

    /* Profile & Content Column */
    .mentor-profile {
        grid-column: 2;
        align-items: center;
        /* Vertical center with text */
        height: auto;
        margin-bottom: 10px;
        flex-direction: row;
        /* Horizontal profile on mobile */
        gap: 15px;
        justify-content: flex-start;
    }

    .mentor-emoji {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .mentor-details {
        align-items: flex-start;
        text-align: left;
    }

    .timeline-time {
        grid-column: 2;
        text-align: left;
    }

    .roadmap-card {
        grid-column: 2;
        width: 100%;
        text-align: left;
    }

    .roadmap-card h5 {
        font-size: 1rem;
    }

    /* Hide Bounce Animation on Mobile to save battery/distraction? Or keep it. Keeping it is fine. */
    .mentor-emoji {
        animation: none;
        /* Disable bounce for stable alignment */
    }

    /* AI Advice Box */
    .ai-advice-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}