/* Custom overrides */
/* About photo: keep rectangular feel with oval corners (not a perfect circle) */
#about img.rounded-circle {
  border-radius: 14% !important;
  aspect-ratio: 4 / 3;
  width: min(420px, 96%);
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Hero: enlarge profile image */
#hero .image {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#hero .image.img,
#hero .col-md-9.image,
#hero .col-sm-12.col-md-9.image {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
#hero .image img.img-thumbnail {
  width: min(500px, 100%) !important;
  max-width: 100% !important;
  height: auto;
}
@media (min-width: 992px) {
  #hero .col-lg-8 { width: 45%; }
  #hero .col-lg-4 { width: 55%; }
}

/* Make News/Publications compact, text-only, and one item per row */
#projects .row,
#achievements .row {
  display: block !important;
}
#projects .col,
#achievements .col,
#projects [class*="col-"],
#achievements [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

#projects .card,
#achievements .card {
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.3rem 0 !important;
  margin-bottom: 0.5rem !important;
  background: transparent !important;
  min-height: 0 !important;
  height: auto !important;
}

#projects .card-body,
#achievements .card-body,
#projects .card-text,
#achievements .card-text {
  min-height: 0 !important;
  height: auto !important;
}
#projects .card-text p,
#achievements .card-text p {
  margin: 0 !important;
}

/* Remove any thumbnail/image area in cards */
#projects .card img,
#achievements .card img,
#projects .card .card-img-top,
#achievements .card .card-img-top,
#projects .card .image,
#achievements .card .image {
  display: none !important;
  height: 0 !important;
}

#projects .card .card-body,
#achievements .card .card-body {
  padding: 0.15rem 0 !important;
}

#projects h3, #achievements h3 {
  margin-bottom: 0.6rem !important;
}


#achievements .card-title { font-size: 1rem !important; margin-bottom: .4rem !important; }
#achievements .card-text { font-size: .95rem !important; line-height: 1.5 !important; }
#achievements .card-text a { text-decoration: none !important; font-weight: 500; }

/* Make Publications cards look like Blog cards */
#achievements .card {
  background: #f4f5f7 !important;
  border: 1px solid #d9dce1 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  padding: 0.65rem 0.8rem !important;
}
#achievements .card .card-body {
  padding: 0.35rem 0.2rem !important;
}
#achievements .col-12.my-2 {
  margin-bottom: 0.85rem !important;
}

/* Force publications visual style with higher specificity */
body #achievements .row .col-12 .card.my-1 {
  background-color: #f4f5f7 !important;
  border: 1px solid #d9dce1 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  padding: 0.65rem 0.8rem !important;
}


/* Navbar CV link sizing */
.navbar .nav-link {
  font-size: 1.08rem !important;
  font-weight: 600 !important;
}
