/* Site-specific additions on top of the theme's main.css. */

/* Readable body text: left-aligned, normal weight. */
.bio { text-align: left; font-weight: 400; }
.news .text { font-weight: 400; }
.news .text p { margin-bottom: 0.6rem; }

/* Job-market call-out on the homepage. */
.job-market { border-left: 4px solid #b71c1c; background: #fdf3f2; padding: 0.6rem 0.9rem; margin: 1rem 0; }

/* Buttons for PDF downloads and link chips. */
.btn-download { display: inline-block; background: #b71c1c; color: #fff !important; padding: 0.35rem 0.8rem; border-radius: 0.25rem; font-weight: 500; }
.btn-download:hover { background: #8e1414; text-decoration: none; }

/* ACM artifact badges (same colors as the CV). */
.badge-available { background: #2E7D32 !important; color: #fff !important; }
.badge-functional { background: #C62828 !important; color: #fff !important; }
.badge-reusable { background: #7B1F1F !important; color: #fff !important; }

/* CV and résumé cards (layout adapted from the theme's CV page). */
.cv .card-title { margin-bottom: 0.5rem; }
.cv .list-group-item { padding-left: 0; padding-right: 0; }
.cv .date-badge { min-width: 120px; white-space: normal; text-align: center; }
.cv ul.items { padding-left: 1.2rem; margin: 0.25rem 0 0; }
.cv ul.items li { margin-bottom: 0.2rem; }
.cv h6.title { font-size: 1rem; }
.cv .pub-list { padding-left: 2rem; margin-bottom: 0; }
.cv .pub-list li { margin-bottom: 0.45rem; }
.cv .muted { color: #5f6368; }
.cv .refs .ref { margin-bottom: 1rem; }

/* Research page: one card per theme. */
.research-card { border-left: 4px solid #b71c1c; }
.research-card .card-body { padding: 1.1rem 1.25rem 0.5rem; }
.research-card .theme-title { font-size: 1.3rem; color: #b71c1c; margin-bottom: 0.3rem; }
.research-card .theme-title i { margin-right: 0.5rem; font-size: 1.1rem; }
.research-card .theme-lead { color: #5f6368; margin-bottom: 0.5rem; }
.research-items { list-style: none; padding: 0; margin: 0; }
.research-items > li { padding: 0.75rem 0; border-top: 1px solid #eee; }
.research-items > li > h5 { font-size: 1rem; font-weight: 700 !important; margin-bottom: 0.3rem; color: #3c4858; }
.research-items p { margin-bottom: 0.35rem; font-weight: 400; }

/* Older news toggle. */
.news-toggle { cursor: pointer; }
@media (min-width: 768px) { .cv .date-col { flex: 0 0 190px; max-width: 190px; } }

/* Chips: one style for every link group on the site (papers, code, artifacts, CV, etc.). */
.chip { display: inline-block; height: 22px; line-height: 20px; padding: 0 10px; margin: 2px 4px 2px 0;
        border-radius: 11px; border: 1px solid #f0c2bd; background: #fdf0ee; color: #a31919 !important;
        font-size: 12px; font-weight: 500; white-space: nowrap; vertical-align: middle;
        text-decoration: none !important; box-sizing: border-box; cursor: pointer; }
.chip:hover, .chip:focus { background: #b71c1c; border-color: #b71c1c; color: #fff !important; }
.chip i { margin-right: 5px; font-size: 11px; }
.chip-static, .chip-static:hover { cursor: default; background: #f1f3f4; border-color: #dadce0; color: #3c4043 !important; }
.chips { line-height: 1; }
.bibliography li .chip { font-size: 11px; }

/* Research Interests block (About page) */
.research-interests { border: 1px solid #e0e0e0; border-top: 3px solid #424242; background: #fff; padding: 12px 16px; margin: 16px 0; border-radius: 4px; }
.research-interests .ri-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: #212121; }
.research-interests .ri-title i { color: #b71c1c; }
.research-interests .ri-title i { margin-right: 8px; }
.research-interests p { margin-bottom: 8px; }

/* ---------- Home page header: profile + photo slideshow ---------- */
.hero { align-items: center; }
.hero-profile .profile-img { width: 100%; max-width: 220px; height: auto; }
.hero-profile .title { font-size: 2.2rem; }
.hero-photos { padding-right: 0; }
#photo-carousel { border-radius: 6px; overflow: hidden; background: #1c1f24; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
#photo-carousel .carousel-item { position: relative; height: 440px; }
#photo-carousel .photo-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.55); }
#photo-carousel .carousel-item img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
#photo-carousel .photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 30px; color: #fff; font-size: .9rem; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
#photo-carousel .carousel-indicators { margin-bottom: 8px; z-index: 3; }
#photo-carousel .carousel-indicators li { width: 8px; height: 8px; border-radius: 50%; margin: 0 4px; }
#photo-carousel .carousel-control-prev, #photo-carousel .carousel-control-next { width: 12%; z-index: 3; }
@media (max-width: 767.98px) {
  .hero-profile .profile-img { max-width: 200px; }
  .hero-photos { padding-left: 0; }
  #photo-carousel .carousel-item { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  #photo-carousel .carousel-item { transition: none; }
}
.hero-profile h6 { font-size: .95rem; }
.hero-profile h6 a { white-space: nowrap; }
