/* Scoped About hover effect replicating home page, without global conflicts */

.about-team-card {
  position: relative;
  overflow: hidden;
}

.about-team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent !important;
  opacity: 0;
  visibility: hidden;
  z-index: 2
  ;
  transition: visibility 0s linear 0.4s, opacity 0.4s ease;
}

/* Ensure inner wrapper fills overlay height so scrolling works */
.about-team-overlay .n_hover_content {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* Sliding gradient panel like home page */
.about-team-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(242, 112, 35, 0.9), rgba(242, 112, 35, 0.7));
  transition: left 0.4s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.about-team-overlay .about-team-desc {
  font-size: 14px;
  font-weight: 400;
  color: #fff !important;
  line-height: 22px;
  text-transform: capitalize;
  text-align: left;
  height: 100%;
  max-height: 100%;
  overflow-y: auto; /* always show scrollbar when content overflows */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  padding: 15px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Hover/focus reveal, match home behavior */
.about-team-card:hover .about-team-overlay,
.about-team-card:focus-within .about-team-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
  transition: opacity 0.2s ease, visibility 0s;
}

.about-team-card:hover .about-team-overlay::before,
.about-team-card:focus-within .about-team-overlay::before {
  left: 0;
}

.about-team-card:hover .about-team-overlay .about-team-desc,
.about-team-card:focus-within .about-team-overlay .about-team-desc {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

/* Spacing so text doesn’t collide with scrollbar */
.about-team-overlay p {
  padding-right: 5px;
}

/* Larger image cards */
.about-team-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Label font size adjustments */
.organogram .pa-top {
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.3;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .about-team-card {
    margin-bottom: 20px;
  }
  .about-team-overlay {
    padding: 16px 0 24px 16px;
  }
  .about-team-overlay p {
    padding-right: 0;
  }
  .organogram .pa-top {
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .about-team-overlay {
    padding: 0;
  }
  .about-team-card img {
    height: 320px;
  }
}

.organogram{
  padding: 40px 0 !important;
}

.organogram .div-executive, .div-director{
  padding: 0 40px !important;
}

.directors {
    border-top: 1px solid rgb(255 255 255);
}

@media (max-width: 575px) {
    .developer_product_area .tab-content .about-team-desc{
        font-size: 14px !important;
    }
}