/* styles.css — academic, light-blue theme */
:root {
    --bg: #ffffff; /* very light blue paper */
    --ink: #064a71; /* main text (blue-gray) */
    --muted: #5b6b80; /* secondary text */
    --card: #ffffff; /* card white */
    --border: #cfd9e8; /* subtle light blue border */
    --accent: #3b82f6; /* academic blue */
    --accent-2: #a7c5f9; /* soft pale blue */
    --link: #2563eb; /* link blue */
    --shadow: 0 10px 24px rgba(80, 120, 180, .08);
    --radius: 10px;
    --radius-sm: 6px;
    --maxw: 1100px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: var(--ink);
    background: white;
}

a {
    color: var(--link);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

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

.d-flex {
    display: flex
}

.flex-col {
    display: flex;
    flex-direction: column
}

.justify-between {
    justify-content: space-between
}

.align-center {
    align-items: center
}

.wrap {
    flex-wrap: wrap
}

.gap-2 {
    gap: 12px
}

.gap-3 {
    gap: 20px
}

.py-2 {
    padding-top: 12px;
    padding-bottom: 12px
}

.p-3 {
    padding: 24px
}

.my-3 {
    margin: 18px 0
}

.mb-0 {
    margin-bottom: 0
}

.mb-3 {
    margin-bottom: 18px
}

.mt-2 {
    margin-top: 12px
}

.h5 {
    font-size: 20px;
    font-weight: 600;
    margin: 0
}

.h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px
}

.title-text {
    margin-top: 2px;
    margin-bottom: 8px;
    text-align: center;
}

.aside-text {
    font-size: 14px;
}

.muted {
    font-weight: normal;
    font-size: medium;
    color: var(--muted)
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr
}

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

/***** Components *****/
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, rgba(240, 246, 255, .95), rgba(240, 246, 255, .75));
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(160%) blur(6px)
}

.brand {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 24px;
    color: var(--accent)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius);
    padding: 6px 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #fff;
    color: var(--ink)
}

.btn:hover {
    transform: translateY(-1px)
}

.btn-primary {
    background: linear-gradient(180deg, #dce9ff, #f0f6ff);
    border-color: #c0d4f9;
    color: #00459f
}

.btn-ghost {
    background: #fff;
    color: #00459f
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contacts span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0f6ff;
    border: 1px solid #d0e2ff
}

.item .title {
    font-weight: 600
}

.item .sub {
    color: #334155
}

.meta {
    color: var(--muted);
    font-size: 13px
}

.sep {
    height: 10px
}

.list {
    margin: 4px 0 0 0;
    font-size: 14px;
}

.list li {
    margin: 6px 0
}

.block + .block {
    margin-top: 16px
}

.block-title {
    font-weight: 600;
    font-size: 14px
}

/* Photo placeholder */
.photo {
    display: flex;
    justify-content: center
}

.photo img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px dashed #a7c5f9;
    background: #f0f6ff
}

.photo img.placeholder {
    filter: grayscale(1);
    opacity: .6
}

/* Small shadow helper */
.shadow-sm {
    box-shadow: 0 6px 14px rgba(60, 80, 160, .06)
}

.wrap {
    flex-wrap: wrap;
    row-gap: 8px;
}

.footer {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    background: linear-gradient(180deg, rgba(240, 246, 255, .95), rgba(240, 246, 255, .75));
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

/* Print tweaks */
@media print {
    .navbar {
        position: static;
        background: #fff;
        border-color: #ddd
    }

    .btn {
        display: none
    }

    body {
        background: #fff
    }
}
