.panel-default > .panel-heading {
  padding: 0px;
}

/* Sleek styling for retiring cards */
.retiring-panel {
  border: 2px solid #ddd; /* Thin border around the entire card */
  border-radius: 8px; /* Rounded corners for the whole card */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Initial subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
  overflow: hidden; /* Ensure nothing overflows outside the card */
  background-color: #fff; /* Ensure white background */
}

.retiring-panel:hover {
  transform: translateY(-5px); /* Lift the entire card on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Image styling inside the card */
.retiring-panel-img {
  width: 100%; /* Ensure image takes up full width of the card */
  height: auto;
  border-top-left-radius: 8px; /* Rounded corners for the top of the card */
  border-top-right-radius: 8px;
}

/* Title and text styling */
.panel-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  padding-bottom: 10px;
}

.panel-text {
  font-size: 14px;
  color: #555;
}

.btn-block {
  background-color: var(--primary-accent); /* Primary accent color */
  color: white;
  font-weight: bold;
  border-radius: 5px;
  border: 1px solid var(--button-border); /* Button border color */
  margin-top: 10px;
  transition: background-color 0.3s ease; /* Smooth transition */
}

.btn-block:hover {
  background-color: #84b2c0; /* Darker shade of the primary accent color */
  border-color: #7ca9b5; /* Darker tone for the hover border */
}

/* Photo bar styling (unchanged) */
.retiring-photo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.photo-container {
  position: relative;
  display: inline-block;
}

.retiring-photo-bar-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.retiring-photo-bar-img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Photo overlay */
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  transition: opacity 0.2s ease-in-out;
}

.photo-container:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay i {
  font-size: 24px;
  color: white;
}

/* Table styling */
.retiring-profile-table,
.retiring-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.retiring-profile-table th,
.retiring-profile-table td,
.retiring-info-table th,
.retiring-info-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e1e4e8;
}

.retiring-profile-table th,
.retiring-info-table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

.retiring-profile-table tr:hover {
  background-color: #f1f1f1;
}

.retiring-about-section {
  padding-left: 10px;
  padding-right: 10px;
}

/* Right column (profile card) */
.retiring-main-info {
  background: #f8f9fa;
  padding: 0px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0; /* Keep the profile card at the top */
}

.retiring-main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.retiring-quick-info p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.image-overlay-container {
  position: relative;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px;
  text-align: center;
  font-size: 14px;
}

.magnifying-glass {
  margin-right: 10px;
}

.photo-overlay {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center the icon and date horizontally */
}

.photo-date {
  margin-top: 5px; /* Add some spacing between the icon and the date */
  font-size: 0.9em; /* Adjust font size if necessary */
}

#footer .social a {
  color: inherit;
}

#heading-breadcrumbs {
  background: rgba(211, 211, 211, 0.5) url("../img/texture-bw.png") center
    center repeat;
  padding: 20px 0;
  background-color: lightgrey; /* Sets a light grey background color */
  background-blend-mode: overlay; /* Blends the image and background color */
}

.retiring-listing {
  margin-top: 20px;
}

.retiring-listing-cards {
  display:flex;
  justify-content: flex-start;
  flex-direction: column;
  flex-flow: wrap;
}

.top-margin-2 {
  margin-top: 20px;
}

/* Ensure the image fits inside the card without overflow */
.retiring-card-img {
  object-fit: cover;
  width: 100%;
}

/* Add sleek borders and a shadow to give a card-like feel */
.retiring-card {
  border: 1px solid #e3e3e3; /* Thin, subtle border */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft drop shadow */
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Enhance hover effects to make the cards feel interactive */
.retiring-card:hover {
  transform: translateY(-5px); /* Lift up slightly on hover */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
}

.retiring-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.retiring-info-table th,
.retiring-info-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

.retiring-info-table th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.retiring-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
}

.retiring-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .col-md-9,
  .col-md-3 {
    width: 100%;
    margin-bottom: 20px;
  }

  .retiring-main-info {
    position: relative;
  }
}