/* Navigation Styles for Thesis Page */

/* Page container - flex layout for sidebar + content */
.page-container {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 60px;
}

/* Sidebar Navigation */
.sidebar {
    flex: 0 0 25%;
    min-width: 250px;
    max-width: 350px;
    padding: 40px 20px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 40px;
}

.home-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.home-link:hover {
    text-decoration: underline;
}

/* Navigation Sections */
.nav-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: block;
    padding: 8px 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.nav-item:hover {
    background-color: #f8f8f8;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-item.active {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

.nav-number {
    font-weight: normal;
    margin-right: 4px;
}

/* Navigation Groups */
.nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.nav-group-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    color: #1a1a1a;
    padding: 8px 12px 4px 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-sub {
    padding-left: 24px;
    font-size: 13px;
}

/* Main Content */
.main-content {
    flex: 1 1 75%;
    min-width: 0;
    max-width: 800px;
    padding: 40px 60px 40px 20px;
}

/* Content typography improvements */
.main-content #content p {
    line-height: 1.9;
    margin-bottom: 24px;
    font-size: 14px;
}

.main-content #content h1 {
    margin-bottom: 30px;
    line-height: 1.4;
}

.main-content #content h2 {
    margin-top: 50px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.main-content #content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Sidebar Navigation Arrows */
.sidebar-nav {
    margin-top: 40px;
    padding: 16px 12px 0 12px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.sidebar-nav-arrow {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}

.sidebar-nav-arrow:hover {
    color: #1a1a1a;
    text-decoration: none;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: 30px;
}

.sidebar-divider {
    height: 1px;
    background: #ddd;
    margin: 0 12px 24px 12px;
}

.sidebar-footer-content {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #666;
    line-height: 1.8;
    padding: 0 12px;
    letter-spacing: 0.3px;
}

/* Hide default footer on thesis page */
body:has(.page-container) > .footer {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    .page-container {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        padding: 20px;
        border-bottom: 1px solid #ddd;
    }

    .main-content {
        padding: 20px 30px;
        max-width: 100%;
    }

    .sidebar-nav {
        margin-top: 30px;
    }

    .sidebar-footer {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 20px;
    }

    .sidebar {
        padding: 15px;
    }

    .sidebar-nav-arrow {
        font-size: 11px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
