@charset "utf-8";
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
    text-align: justify;
}

.navbar {
    opacity: 0.95;
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Courier, monospace;
}

.preferred-name {
    margin-left: 7px;          /* Space between primary_name and secondary_name */
    color: #40618e;
    font-style: italic;
    font-size: 0.8em;
}

/* Typewriter effect on navbar by the name */
.typewriter {
    border-right: .15em solid orange;
    animation: typing 3.5s steps(30, end), blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: orange;
    }
}

/* ─── Card Styles (match your other pages) ────────────────────────── */
.project-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;         /* Tailwind gray-200 */
    border-radius: 0.375rem;            /* 6px */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);  /* subtle shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ─── Category Title ──────────────────────────────────────────────── */
.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    text-transform: none;
}

/* ─── Grid Layout: 4 columns → 2 → 1 ─────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Project Card Thumbnail ──────────────────────────────────────── */
.project-card__thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ─── Project Card Body ──────────────────────────────────────────── */
.project-card__body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* ─── Title & Description ────────────────────────────────────────── */
.project-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.project-card__desc {
    flex-grow: 1;
    margin: 0 0 1rem;
    color: var(--color-text-secondary);
}

/* ─── Button ──────────────────────────────────────────────────────── */
.project-card__btn {
    align-self: flex-start;
    /* padding: 0.5rem 1rem; */
    background: var(--color-primary);
    color: #000000;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.project-card__btn:hover {
    background: var(--color-primary-dark);
}

/* Layout for individual project pages */
.project-page {
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
    max-width: 800px;
}
  
/* Header: image + meta side by side */
.project-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
  
/* Fixed-height image */
.project-page__image {
    width: 250px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    border-bottom: none;
    border-radius: 0; /* card already rounds */
    margin-right: 1.5rem;
}
  
/* Title, date, button */
.project-page__meta {
    flex: 1;
}
  
.project-page__title {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
}
  
.project-page__date {
    margin: 0 0 1rem;
    color: var(--color-text-secondary);
}
  
.project-page__btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #000000;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 1rem;
}
  
/* Body content (markdown) */
.project-page__content {
    padding-top: 1.5rem;
    line-height: 1.6;
}

/* ─── Sticky Footer ───────────────────────────────────────────────── */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* this selector should match the element wrapping all your page content */
.page-content, 
main {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
}
