/* ========================================
   ACADEMIC JOURNEY PAGE STYLES
   ======================================== */

.academic-journey {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Academic-specific styles - header styles moved to pages.css */

/* View Toggle */
.view-toggle-container {
    padding: 2rem;
    position: sticky;
    top: 4rem;
    z-index: 40;
}

.view-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-toggle-buttons {
    border-radius: 0.5rem;
    padding: 0.5rem;
    background-color: var(--white);
    border: 2px solid var(--border-color);

}

[data-theme="dark"] .view-toggle-buttons {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.toggle-btn.active {
    background-color: var(--bg-accent);
    color: var(--white);
    border: 1px solid var(--border-color);
}

.toggle-btn:not(.active) {
    color: var(--bg-accent);
    border: 1px solid var(--border-color);
}

.toggle-btn:not(.active):hover {
    color: var(--white);
    background-color: var(--bg-accent);

}

[data-theme="dark"] .toggle-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .toggle-btn.active {
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    border-color: var(--accent-color);
}

/* Timeline View */
.timeline-section {
    background-color: var(--bg-primary);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.timeline-container {
    max-width: 64rem;
    margin: 0 auto;
}

.timeline-wrapper {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--bg-accent);
}

[data-theme="dark"] .timeline-line {
    background-color: var(--bg-secondary);
}

.timeline-items {
    gap: 1rem;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-dot {
    position: relative;
    z-index: 10;
    display: flex;
    height: 4rem;
    width: 4rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: all 0.2s ease;
    margin-left: -2rem;
}

.timeline-dot:hover {
    border-color: var(--border-color);
}

.timeline-year {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(2px);
}

/* Summary View */
.summary-container {
    background-color: var(--bg-primary);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 2rem 2rem;
}

.summary-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.summary-main-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--bg-secondary);
    box-shadow: 0 6px 24px var(--shadow-color);
}

/* Top border - teal for top 40% */
.summary-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    border-top: 4px solid #14b8a6;
    pointer-events: none;
    z-index: 1;
}

/* Bottom border - pink for bottom 60% */
.summary-main-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    border-bottom: 4px solid #831843;
    pointer-events: none;
    z-index: 1;
}

/* Left border - teal top 40%, pink bottom 60% */
.summary-main-card .border-left-top {
    position: absolute;
    top: 0;
    left: 0;
    height: 40%;
    width: 25%;
    border-left: 4px solid #14b8a6;
    pointer-events: none;
    z-index: 1;
}

.summary-main-card .border-left-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60%;
    width: 25%;
    border-left: 4px solid #831843;
    pointer-events: none;
    z-index: 1;
}

/* Right border - teal top 40%, pink bottom 60% */
.summary-main-card .border-right-top {
    position: absolute;
    top: 0;
    right: 0;
    height: 40%;
    width: 25%;
    border-right: 4px solid #14b8a6;
    pointer-events: none;
    z-index: 1;
}

.summary-main-card .border-right-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 60%;
    width: 25%;
    border-right: 4px solid #831843;
    pointer-events: none;
    z-index: 1;
}

.summary-card-content {
    position: relative;
    z-index: 5;
    padding: 2.5rem 5rem;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.program-logo {
    flex-shrink: 0;
}

.program-logo-img {
    height: 5rem;
    width: auto;
}

.program-info {
    flex: 1;
}

.program-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.program-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

.program-dates {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
    background-color: var(--bg-secondary);
}

.program-years-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.program-years-grid.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.program-year {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.year-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.year-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.year-courses {
    list-style: none;
    padding: 0;
    margin: 0;
}

.year-courses li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.year-courses li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.program-divider {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #dddddd;
}


.foundation-year-section,
.math-sciences-section {
    background-color: var(--bg-secondary);
    border: 4px solid #000000;
    border-radius: 0.5rem;
    padding: 2.5rem;
    height: fit-content;
}

.math-sciences-section {
    border-color: #1e40af;
}


.year-card {
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.year-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.year-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.year-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.term-courses {
    margin-top: 1rem;
}

.course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.course-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.course-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.course-title {
    font-weight: 600;
    color: var(--text-primary);
}

.achievement-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.timeline-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

.summary-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}


.foundation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.math-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.foundation-logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.math-logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.foundation-info {
    flex: 1;
}

.math-info {
    flex: 1;
}

.foundation-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.math-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.foundation-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.math-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Internal Timeline within Cards */
.term-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 0;
}

.term-item:last-child {
    margin-bottom: 0;
}

.term-dot {
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--text-secondary);
    border-radius: 50%;
    left: -1.45rem;
    z-index: 2;
}

.term-timeline {
    position: relative;
    border-left: 2px solid var(--text-secondary);
    padding-left: 1rem;
    margin: 0;
    list-style: none;
}

.term-date {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1;
}