  .about-team {
    margin-top: 0 !important; /* Removed negative margin to fix scroll issue */
  }
@media (min-width: 1024px) {
  .about-team {
    gap: 0.3rem !important;
  }
  .team-img-wrapper {
    height: 26rem !important;
    min-height: 26rem !important;
    max-height: 26rem !important;
    display: flex;
    align-items: stretch;
  }
  .team-img {
    height: 26rem !important;
    min-height: 26rem !important;
    max-height: 26rem !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
  .about-box {
    padding: 2.5rem 2rem 4rem 2rem !important; /* extra padding-bottom */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center !important;
    height: 100%;
  }
}
/* Import Poppins font to match other sections */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.about-section {
  position: relative;
  padding: 4rem 0 3rem 0; /* Reduced bottom padding from 5rem to 3rem for less whitespace */
  background: linear-gradient(to bottom right, white, rgba(57,137,125,0.05), rgba(12,17,62,0.03));
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Decorative circles removed for cleaner background
.decorative-circle {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
}

.circle-1 {
  top: 8rem;
  left: 4rem;
  width: 6rem;
  height: 6rem;
  background: linear-gradient(to bottom right, rgba(57, 137, 125, 0.15), rgba(12, 17, 62, 0.1));
}

.circle-2 {
  bottom: 8rem;
  right: 4rem;
  width: 8rem;
  height: 8rem;
  background: linear-gradient(to bottom right, rgba(12, 17, 62, 0.15), rgba(57, 137, 125, 0.1));
}

.circle-3 {
  top: 50%;
  left: 25%;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(to bottom right, rgba(57, 137, 125, 0.08), rgba(12, 17, 62, 0.08));
}
*/

.about-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0c113e;
  margin-bottom: 18px;
}

.about-subtitle {
  font-size: 1.25rem;
  color: #0c113e;
  max-width: 48rem;
  margin: 0 auto;
  opacity: 0.8;
}

.about-content {
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  
  /* Keep slightly larger gap on desktop while still bringing images closer */
  .about-team {
    gap: 0.75rem;
  }
}

.about-box {
  position: relative;
  padding: 40px; /* Reset to original consistent padding */
  background: rgba(255,255,255,0.8);
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(12,17,62,0.08);
  border: 1px solid rgba(57,137,125,0.2);
  backdrop-filter: blur(6px);
}

.corner-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, rgba(57,137,125,0.08), transparent);
  border-bottom-left-radius: 1.5rem;
}

.about-heading {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(to right, #0c113e, #39897d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-top: 40px; /* Push the heading down within the box */
}

.about-box p {
  color: #0c113e;
  line-height: 1.75;
  opacity: 0.8;
}

.about-mission {
  border-top: 1px solid rgba(229,231,235,0.5);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.mission-title {
  display: flex;
  align-items: center;
  color: #39897d;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mission-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(to right, #39897d, #2dd4bf);
  border-radius: 50%;
  margin-right: 0.75rem;
}

.mission-text {
  background: linear-gradient(to right, rgba(240,253,250,0.4), rgba(239,246,255,0.3));
  padding: 2.5rem 1.25rem;
  border-left: 3px solid rgba(57,137,125,0.3);
  border-radius: 0.75rem;
  color: #374151;
  line-height: 1.6;
}

.about-team {
  display: flex;
  flex-direction: column;
    gap: 0.3rem; /* Minder ruimte tussen de portretten, maar niet tegen elkaar */
  height: 100%;
  justify-content: space-between;
  /* Bovenkant bovenste img en onderkant onderste img blijven uitgelijnd */
}

.team-card {
  transition: all 0.7s ease;
  transform: translateY(0);
}

.team-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.team-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  backdrop-filter: blur(6px);
}

.team-img {
  width: 100%;
    height: 32rem !important;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s;
  /* Hoger voor portret, gezichten beter zichtbaar */
}

.team-img-wrapper:hover .team-img {
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,17,62,0.15), transparent, rgba(57,137,125,0.05));
}

.team-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.3);
}

.team-name {
  font-size: 1rem;
  font-weight: 600;
  color: #0c113e;
  margin: 0;
  padding: 0;
}

.team-role {
  font-size: 0.875rem;
  color: #39897d;
  margin: 0;
  padding: 0;
}

.bottom-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(209,213,219,0.4), transparent);
}

/* Mobile expand/collapse functionality styling */
.expand-story-link, .collapse-story-link {
  display: none; /* Hide on all screens by default */
  cursor: pointer;
  color: #39897d;
  font-weight: 500;
  margin-top: 1rem;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.expand-story-link:hover, .collapse-story-link:hover {
  color: #0c113e;
}

.expand-arrow, .collapse-arrow {
  transition: transform 0.3s ease;
}

/* Tablet specific adjustments (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .about-section {
    padding: 3rem 0 2.5rem 0; /* Comfortable padding for tablets */
  }
  
  .about-content {
    max-width: 800px; /* Limit content width */
    margin: 0 auto;
    padding: 0 2rem; /* Side margins */
  }
  
  .about-title {
    font-size: 2.2rem; /* Comfortable heading size */
    margin-bottom: 1.5rem;
  }
  
  .about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 450px; /* Consistent with hero and services text */
    margin: 0 auto 2rem auto; /* Center the text */
  }
  
  /* OVERRIDE: Change team layout to side-by-side for tablets */
  .about-team {
    max-width: 600px !important; /* Limit team section width */
    margin: 0 auto !important;
    gap: 2rem !important;
    /* Use side-by-side layout like mobile - OVERRIDE column layout */
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    height: auto !important; /* Remove height constraint */
  }
  
  .team-member, .team-card {
    flex: 1 !important;
    max-width: 45% !important; /* Similar to mobile but slightly larger */
    margin: 0 !important;
    transform: none !important; /* Remove desktop scaling */
  }
  
  .team-card:hover {
    transform: translateY(-4px) scale(1.02) !important; /* Simple hover without base scaling */
  }
  
  /* Much smaller team photos on tablets - side by side */
  .team-img {
    height: 12rem !important; /* Much smaller like mobile */
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
  
  .team-img-wrapper {
    height: 12rem !important;
    min-height: 12rem !important;
    max-height: 12rem !important;
  }
}

/* Show mobile functionality only on small screens */
@media (max-width: 768px) {
  .expand-story-link, .collapse-story-link {
    display: flex;
  }
  
  .story-preview {
    display: block; /* Show preview on mobile */
  }
  
  .story-preview p {
    margin-bottom: 0; /* Remove bottom margin from preview paragraph */
  }
  
  .about-full-content {
    display: none; /* Hide full content initially on mobile */
    animation: slideDown 0.3s ease-out;
  }
  
  .about-full-content.expanded {
    display: block; /* Show when expanded */
  }
  
  .mobile-story-container.expanded .story-preview {
    display: none; /* Hide preview when expanded */
  }
  
  .mobile-story-container.expanded .expand-story-link {
    display: none; /* Hide expand link when expanded */
  }
  
  .collapse-story-link {
    display: none; /* Hide collapse by default */
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(209,213,219,0.3);
  }
  
  .mobile-story-container.expanded .collapse-story-link {
    display: flex; /* Show collapse when expanded */
  }
}

/* Hide mobile elements and show full content on desktop */
@media (min-width: 769px) {
  .expand-story-link, .collapse-story-link {
    display: none !important; /* Force hide on desktop */
  }
  
  .story-preview {
    display: none !important; /* Hide preview on desktop */
  }
  
  .about-full-content {
    display: block !important; /* Always show full content on desktop */
  }
}

/* Smooth animation for content expansion */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

/* Mobile team name sizing - make names smaller to fit on one line */
@media (max-width: 768px) {
  .team-name {
    font-size: 0.8rem; /* Even smaller font size for mobile */
    line-height: 1.1; /* Tighter line height */
  }
  
  .team-role {
    font-size: 0.7rem; /* Even smaller role text */
    line-height: 1.1;
  }
  
  .team-info {
    padding: 0.2rem 0.3rem; /* Much smaller padding on mobile for maximum text space */
    bottom: 0.5rem; /* Less space from edges */
    left: 0.5rem;
    right: 0.5rem;
  }
}
