body {
    max-width: 700px;
    margin: 2em auto;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

header {
    margin-bottom: 0.75em;
}

h1 {
    margin: 0;
}

.tagline {
    margin-top: 0.3em;
    font-size: 0.9em;
    color: #555;
}

/* ===== Search + nav bar ===== */
.search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75em;
    gap: 1em;
}

.nav-buttons {
    display: flex;
    gap: 0.5em;
}

/* Nav items are <a class="nav-button"> links (not <button onclick>) so they
   work under a strict Content-Security-Policy that disallows inline JS. These
   rules make the links render like the original native browser buttons:
   the classic grey 3D raised look, matching the (untouched) search button. */
.nav-button {
    display: inline-block;
    font-family: inherit;
    font-size: 0.85em;
    padding: 1px 7px;
    color: ButtonText;
    background: ButtonFace;
    border: 2px outset ButtonFace;
    border-radius: 0;
    text-decoration: none;
    cursor: default;
    line-height: normal;
}

.nav-button:active {
    border-style: inset;
}

.search button {
    font-size: 0.85em;
}

.search form {
    display: flex;
    gap: 0.5em;
    margin: 0;
}

.search input[type="text"] {
    font-size: 0.9em;
}

/* ===== Hero image ===== */
.hero-container {
    margin: 0 0 2rem 0;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.hero-caption {
    font-size: 0.85rem;
    color: #555;
    margin-top: 8px;
    text-align: right;
}

.hero-caption a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.hero-caption a:hover {
    text-decoration: underline;
}

/* ===== Education ===== */
.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1rem;
}

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

.edu-text {
    flex: 1;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.edu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.degree-title {
    margin: 0px 0 0 0;
    font-weight: 500;
}

.degree-details {
    margin: 0px 0 0 0;
    color: #666;
    font-size: 0.95rem;
}

.edu-date {
    color: #777;
    font-size: 0.9rem;
}

.about-education h2 {
    margin-top: 2rem;
}



/* ===== Notes PDF Section ===== */
.notes-section {
    margin-top: 2rem;
}

.notes-description {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}






.pdf-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    background: #fafafa;
}

.pdf-viewer {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    display: block;
    background: white;
}

.pdf-download {
    display: inline-block;
    margin-top: 0.8rem;
    margin-right: 1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.pdf-download:hover {
    text-decoration: underline;
}




/* ===== Footer ===== */
footer {
    margin-top: 2em;
}
/* ===== Markdown posts ===== */
.post-body img {
    max-width: 100%;
}

.post-body pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 8px;
}

.post-body code {
    font-size: 0.95em;
}

.post-body blockquote {
    border-left: 3px solid #ddd;
    margin-left: 0;
    padding-left: 1rem;
    color: #555;
}
