/* WHO Section Styles - Polished Refinement */

.who-section {
  background: linear-gradient(rgba(10, 20, 30, 0.88), rgba(10, 20, 30, 0.88)), url('https://images.unsplash.com/photo-1581091870622-7f1c2a1b6e0f?auto=format&fit=crop&w=1200&h=800') no-repeat center center/cover; /* Slightly deeper overlay */
  display: block;
  position: relative;
  transition: background-image 0.7s cubic-bezier(0.39, 0.575, 0.565, 1); /* Smoother transition */
  padding-top: 70px; /* Increased top padding */
  padding-bottom: 70px; /* Added bottom padding for balance */
}

.who-headline {
  padding: 0 40px 40px 40px; /* Adjusted padding */
  max-width: 700px; /* Slightly wider for comfort */
  margin: 0 auto;
  text-align: center;
}

.who-headline h2 {
  font-size: 2.65rem; /* Refined font size */
  font-weight: 700;
  color: #f0f0f0; /* Softer white */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45); /* More defined shadow */
  margin: 0;
  line-height: 1.3;
}

.who-cards-wrapper {
  overflow: hidden; /* Changed from visible to hidden for a cleaner look */
  position: relative;
  user-select: none;
  width: 100%;
}

.who-cards {
  display: flex;
  flex-direction: row;
  border-left: 1px solid rgba(255,255,255,0.07); /* More subtle border */
  width: max-content;
  align-items: stretch; /* Ensures consistent card height */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  min-height: auto; /* Let card content and padding define height */
  position: relative;
  z-index: 10;
  touch-action: pan-x;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  padding: 10px 0; /* Add some vertical padding to the container */
}

.who-cards:active {
  cursor: grabbing;
}

.who-cards * {
  pointer-events: auto;
}

.who-cards::-webkit-scrollbar {
  display: none;
}

.who-card {
  width: 335px; /* Slightly adjusted width */
  min-width: 335px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align content to the start */
  padding: 30px 28px 28px 28px; /* Refined padding */
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.07); /* More subtle border */
  background-color: rgba(28, 40, 58, 0.65); /* Slightly adjusted translucent background */
  border-radius: 6px; /* Added subtle border-radius */
  box-shadow: 0 5px 18px rgba(0,0,0,0.25); /* Refined shadow for depth */
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother, professional transition */
  cursor: inherit;
  flex-shrink: 0;
  position: relative;
  pointer-events: auto;
  margin-right: 18px; /* Space between cards */
}

.who-card:last-child {
  margin-right: 0; /* No margin for the last card if wrapper has padding */
}

.who-card:hover {
  transform: translateY(-7px); /* Slightly more subtle lift */
  background: rgba(35, 48, 68, 0.8); /* Darker, more focused background on hover */
  box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Enhanced shadow on hover */
  border-color: rgba(255,255,255,0.12); /* Slightly more visible border on hover */
}

.card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Ensures content area expands */
  justify-content: space-between; /* Distributes content within the card */
}

.card-number {
  font-size: 1.85rem; /* Refined size */
  font-weight: 600; /* Slightly less bold for sophistication */
  color: #0E38B1 !important; /* Updated to requested blue color with !important */
  text-shadow: 0 1px 2px rgba(0,0,0,0.15); /* Softer shadow */
  margin-bottom: 12px; /* Adjusted spacing */
}

.card-title {
  font-size: 1.12rem; /* Refined size */
  font-weight: 600;
  margin: 0 0 10px 0; /* Adjusted margins */
  color: #e8e8e8; /* Slightly softer white */
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  line-height: 1.4;
}

.card-description {
  font-family: 'Roboto', sans-serif; /* Ensure Roboto is loaded */
  font-size: 15px; /* Slightly smaller for description */
  line-height: 1.6;
  color: #ccc; /* Lighter text color for description */
  max-height: 0; /* Initially hidden */
  overflow: hidden;
  transition: max-height 0.7s ease-in-out, opacity 0.7s ease-in-out, transform 0.5s ease-in-out, padding-top 0.7s ease-in-out, margin-top 0.7s ease-in-out;
  opacity: 0; /* Initially transparent */
  transform: translateY(-10px); /* Slight upward offset when hidden */
  padding-top: 0; /* No padding when hidden */
  margin-top: 0; /* No margin when hidden */
}

.who-card.card-active .card-description {
  max-height: 500px; /* Adjust as needed to fit content, increased from 250px */
  opacity: 1;
  transform: translateY(0);
  padding-top: 15px; /* Add padding when visible */
  margin-top: 10px; /* Add margin when visible */
}

/* Make .card-active visually distinct during autoplay */
.who-card.card-active {
  transform: translateY(-7px); /* Same lift as hover */
  background: rgba(35, 48, 68, 0.8) !important; /* Same background as hover, with !important to override */
  box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Same shadow as hover */
  border-color: rgba(255,255,255,0.12); /* Same border as hover */
}

.card-description p {
  margin-bottom: 10px; /* Space between paragraphs if any */
}

.card-description p:last-child {
  margin-bottom: 0;
}

.card-description a {
  display: inline-block;
  color: #7aa0c7; /* Match card number accent */
  text-decoration: none;
  margin-top: auto; /* Pushes link to bottom */
  font-weight: 500;
  padding: 4px 0; /* Minimal padding for interaction space */
  border-bottom: 1px solid transparent; /* Underline placeholder */
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.card-description a:hover {
  color: #9fbfdf; /* Lighter shade on hover */
  border-bottom-color: #9fbfdf; /* Visible underline on hover */
}
