:root {
    --bg-page: #b5dce8;
    --bg-panel: #f8f9fa;
    --bg-nav: rgba(255, 255, 255, 0.08);
    --accent: #4169e1;
    --accent-soft: #add8e6;
    --label: #e6bbad;
    --text: #111111;
    --muted: #4b5563;
    --shadow: 0 0 18px rgba(0, 0, 0, 0.14);
}

body {
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.site-header {
    z-index: 1030;
    box-shadow: var(--shadow);
}

.site-header h1 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.nav-panel {
    background: var(--bg-nav);
    backdrop-filter: blur(4px);
}

.nav-link {
    border-radius: 6px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
    background: var(--accent);
}

.profile-details {
    position: relative;
}

.profile-details summary {
    cursor: pointer;
    list-style: none;
}

.profile-details ul {
    position: absolute;
    right: 0;
    min-width: 140px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    list-style: none;
}

.hero-section,
.content-section {
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 3vw, 3rem);
    background: var(--bg-panel);
    border: 1px solid rgba(65, 105, 225, 0.25);
    border-radius: 8px;
    box-shadow: var(--shadow);
    scroll-margin-top: 130px;
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #d9eef5 100%);
}

.section-kicker {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    margin-bottom: 1rem;
    background: var(--label);
    border-radius: 2px 10px 10px 10px;
    color: #323232;
    font-weight: 700;
}

.hero-section h2,
.content-section h2 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-section p,
.hero-section p {
    color: var(--muted);
    line-height: 1.7;
}

.info-card {
    height: 100%;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.25);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.site-footer {
    padding: 2rem;
    background: var(--accent-soft);
    border-top: 2px solid var(--accent);
}

.site-footer h3,
.site-footer h4 {
    font-weight: 700;
}

.site-footer ul {
    padding-left: 1rem;
}

@media (max-width: 991.98px) {
    .site-header {
        position: static !important;
    }
}

.table {
    margin-bottom: 0;
}

.table th {
    white-space: nowrap;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.progress {
    background: #dbeafe;
    border-radius: 999px;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #2f55c7;
    border-color: #2f55c7;
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--accent);
    border-color: var(--accent);
}

.cv-avatar {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.cv-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-chip {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    background: var(--accent-soft);
    border: 1px solid rgba(65, 105, 225, 0.25);
    border-radius: 999px;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 700;
}

.cv-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
}

.cv-timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.25);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

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

.cv-timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 8px);
    top: 1.35rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent);
}

.cv-timeline-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.cv-meta {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-weight: 700;
}

.content-section a,
.hero-section a {
    font-weight: 700;
}
.site-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    width: min(1400px, calc(100% - 2rem));
    margin: 2rem auto;
    align-items: start;
}

.site-main {
    min-width: 0;
}

.site-aside {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.aside-card {
    padding: 1.25rem;
    background: var(--bg-panel);
    border: 1px solid rgba(65, 105, 225, 0.25);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.aside-profile {
    text-align: center;
}

.aside-avatar {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.9rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.aside-profile h2 {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.aside-profile p {
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.5;
}

.aside-status {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    background: var(--label);
    color: #323232;
    border-radius: 2px 10px 10px 10px;
    font-weight: 700;
}

.aside-card h3 {
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.aside-card ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.aside-card li {
    margin-bottom: 0.35rem;
}

.aside-card li:last-child {
    margin-bottom: 0;
}

.aside-card a {
    display: block;
    padding: 0.55rem 0.65rem;
    color: var(--text);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.aside-card a:hover,
.aside-card a:focus {
    background: var(--accent);
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .site-layout {
        display: block;
        width: min(100% - 1rem, 960px);
        margin: 1rem auto;
    }

    .site-aside {
        position: static;
        max-height: none;
        overflow: visible;
        margin-top: 2rem;
    }

    .aside-nav ul,
    .aside-links ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }
}

@media (max-width: 575.98px) {
    .aside-nav ul,
    .aside-links ul {
        grid-template-columns: 1fr;
    }

    .aside-card {
        padding: 1rem;
    }
}