/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: #eef2f6;
    color: #1f2937;
    line-height: 1.7;
    padding-bottom: 48px;
}

/* Top Navigation Link Bar */
.top-nav {
    background-color: #1a365d;
    color: #ffffff;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #2b6cb0;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

.nav-institution {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Document Container */
.document-wrapper {
    max-width: 820px;
    margin: 36px auto;
    background-color: #e6eef7;
    padding: 18px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.document-border {
    border: 2px solid #ffffff;
    padding: 15px;
    background: linear-gradient(180deg, #e8f0f9 0%, #f5f8fc 30%, #ffffff 100%);
}

/* Header & VC Profile */
.vc-header {
    text-align: center;
    margin-bottom: 32px;
}

/* Photo Container with Top-Right "Previous VC" Link */
.photo-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 20px;
}

.photo-placeholder {
    width: 170px;
    height: 215px;
    background-color: #cbd5e1;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 12px;
}

.previous-vc-link {
    position: absolute;
    top: 0;
    right: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1d4ed8;
    background-color: #ffffff;
    border: 1px solid #bfdbfe;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.previous-vc-link:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

.vc-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.vc-profile-link a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.vc-profile-link a:hover {
    text-decoration: underline;
}

.vc-contact a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
}

.vc-contact a:hover {
    text-decoration: underline;
}

.vc-phone {
    font-weight: 700;
    font-size: 0.98rem;
    color: #111827;
    margin-top: 2px;
}

/* Ornamental Title Banner */
.title-banner {
    margin: 28px auto 0 auto;
    max-width: 440px;
    padding: 12px 24px;
    border-top: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    background-color: rgba(255, 255, 255, 0.7);
}

.title-banner h2 {
    font-size: 1.35rem;
    color: #1e293b;
    letter-spacing: 0.4px;
}

/* Message Body */
.vc-message {
    font-size: 1.03rem;
    color: #1f2937;
    text-align: justify;
}

.vc-message p {
    margin-bottom: 18px;
}

.salutation {
    font-weight: 600;
    color: #111827;
}

.goals-list {
    margin: 16px 0 22px 28px;
}

.goals-list li {
    margin-bottom: 12px;
    padding-left: 6px;
}

/* Footer Sign-Off */
.vc-footer {
    margin-top: 36px;
    text-align: right;
    border-top: 1px solid #cbd5e1;
    padding-top: 20px;
}

.sign-name {
    font-weight: 700;
    font-size: 1.08rem;
    color: #111827;
}

.sign-title {
    font-style: italic;
    color: #374151;
}

.sign-date {
    margin-top: 4px;
    font-weight: 600;
    color: #4b5563;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .top-nav {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .photo-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .previous-vc-link {
        position: static;
    }

    .document-wrapper {
        margin: 16px;
        padding: 10px;
    }

    .document-border {
        padding: 24px 20px;
    }

    .vc-message {
        text-align: left;
    }
}
