/**
 * Section - Management in Hand Styles
 * Management section with dark blue background
 *
 * @package SeedDigital
 * @since 1.0.0
 */

/* ============================================
   Section Container
   ============================================ */
.section-management-in-hand {
  padding: 480px 0 0 0;
  background: linear-gradient(78.74deg, #00edff -25.94%, #0ba5ec 33.94%);
  border-left: 1px solid #e0f2fe;
  position: relative;
  z-index: 0;
  padding-left: 0;
  min-height: 1547px;
}

/* Bottom section with image background */
.management-in-hand__bottom-section {
  padding: 60px 0;
  margin: 72px auto 0 auto;
  position: relative;
  z-index: 1;
  min-height: 720px;
  width: 100%;
  max-width: 1149px;
  box-sizing: border-box;
  background-color: transparent;
  overflow: visible;
  isolation: isolate; /* Creates new stacking context */
}

/* Image layers for smooth crossfade */
.management-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
}

.management-image-layer-current {
  z-index: 1;
}

.management-image-layer-next {
  z-index: 2;
}

.management-in-hand__bottom-section .site-container {
  padding-left: 89px;
  padding-right: 89px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
  max-width: 100%;
  padding-bottom: 60px;
}

/* Overlay is now in background-image gradient */

/* ============================================
   Wrapper
   ============================================ */
.management-in-hand__wrapper {
  padding-left: 119px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ============================================
   Content
   ============================================ */
.management-in-hand__content {
  max-width: 1100px;
}

.management-in-hand__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 120%;
  color: #ffffff;
  margin: 0 0 16px 0;
  font-family: "Be Vietnam", sans-serif;
  letter-spacing: -0.01em;
}

.management-in-hand__description {
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  color: #b9e6fe;
}

.management-in-hand__description p {
  font-size: 22px;
  font-weight: 500;
  line-height: 140%;
  color: #b9e6fe;
  margin: 0 0 16px 0;
}

.management-in-hand__description p:first-child {
  font-size: 20px;
  font-weight: 500;
  line-height: 140%;
  color: #b9e6fe;
}

.management-in-hand__description p:not(:first-child) {
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  color: #b9e6fe;
}

.management-in-hand__description p {
  margin: 0 0 16px 0;
}

.management-in-hand__description p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Features Accordion
   ============================================ */
.management-in-hand__features {
  position: absolute;
  top: 330px;
  z-index: 11;
  max-width: 472px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  pointer-events: auto;
}

.management-feature-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  background: transparent;
  width: 100%;
  border-bottom: 1px solid #475467;
  position: relative;
  z-index: 12;
  opacity: 1 !important;
  visibility: visible !important;
}

.management-feature-item:last-child {
  border-bottom: none;
}

.management-feature-item__toggle {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 31px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  height: 48px;
  position: relative;
  z-index: 13;
  opacity: 1 !important;
  visibility: visible !important;
}

.management-feature-item__toggle::before {
  content: "";
  width: 0;
  height: 48px;
  border: 2px solid #98a2b3;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.management-feature-item.is-expanded .management-feature-item__toggle::before {
  border: 4px solid #0ba5ec;
}

.management-feature-item__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 120%;
  margin: 0;
  flex: 1;
  background: linear-gradient(
    27.53deg,
    #76f4ff -15.73%,
    #0ba5ec 42.47%,
    #00f6ff 99.95%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.management-feature-item__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.management-feature-item__icon i {
  width: 16px;
  height: 16px;
  position: relative;
  display: block;
}

.management-feature-item__icon i::before,
.management-feature-item__icon i::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 1px;
  background-color: #475467;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.management-feature-item__icon i::before {
  transform: translateY(-50%) rotate(0deg);
}

.management-feature-item__icon i::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Expanded state - X icon */
.management-feature-item.is-expanded .management-feature-item__icon i::before {
  transform: translateY(-50%) rotate(45deg);
}

.management-feature-item.is-expanded .management-feature-item__icon i::after {
  transform: translateY(-50%) rotate(135deg);
}

.management-feature-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 31px;
  margin-top: 0;
  color: #ffffff;
  position: relative;
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
}

.management-feature-item.is-expanded .management-feature-item__content {
  max-height: 1000px;
  padding: 0;
  margin-top: 0;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

.management-feature-item__content::before {
  content: "";
  width: 0;
  height: 60px;
  border: 1.5px solid #0ba5ec;
  flex-shrink: 0;
}

.management-feature-item__content p {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.management-feature-item__content p:last-child {
  margin-bottom: 0;
}

/* Hidden image data container */
.management-in-hand__image-data {
  display: none;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
  .management-in-hand__title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .section-management-in-hand {
    padding: 150px 0 0 0;
    min-height: 0;
  }

  .management-in-hand__wrapper {
    padding-left: 24px;
    gap: 32px;
  }

  .management-in-hand__bottom-section {
    padding: 100px 0 40px 0;
    margin-top: -40px;
    min-height: 400px;
  }

  .management-in-hand__bottom-section .site-container {
    min-height: 350px;
  }

  .management-in-hand__bottom-section .site-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .management-in-hand__title {
    font-size: 32px;
  }

  .management-in-hand__description {
    font-size: 15px;
  }

  .management-in-hand__features {
    position: relative;
    top: auto;
    padding: 24px 28px;
    max-width: 100%;
  }

  .management-feature-item__title {
    font-size: 15px;
  }

  .management-feature-item__content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .section-management-in-hand {
    padding: 120px 0 0 0;
    min-height: 0;
  }

  .management-in-hand__wrapper {
    padding-left: 16px;
    gap: 24px;
  }

  .management-in-hand__bottom-section {
    padding: 80px 0 30px 0;
    margin-top: 30px;
    min-height: 350px;
  }

  .management-in-hand__bottom-section .site-container {
    min-height: 300px;
  }

  .management-in-hand__bottom-section .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .management-in-hand__title {
    font-size: 28px;
  }

  .management-in-hand__description {
    font-size: 14px;
  }

  .management-in-hand__features {
    position: relative;
    top: auto;
    padding: 20px 24px;
  }

  .management-feature-item__title {
    font-size: 14px;
  }

  .management-feature-item__content p {
    font-size: 13px;
  }
}

/* ============================================
   Clients Section
   ============================================ */
.management-in-hand__clients {
  padding: 216px 0 80px 0;
  border-left: 1px solid #e0f2fe;
}

.management-in-hand__clients .site-container {
  padding-left: 119px;
  padding-right: 119px;
}

.management-in-hand__clients-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 32px 0;
  font-family: "Be Vietnam", sans-serif;
}

.management-in-hand__clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding-top: 42px;
}

.management-in-hand__client-item {
  flex-shrink: 0;
}

.management-in-hand__client-item img {
  height: 40px;
  width: auto;

  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.management-in-hand__client-item img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .management-in-hand__clients {
    padding: 40px 0 60px 0;
  }

  .management-in-hand__clients .site-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .management-in-hand__clients-list {
    gap: 24px;
  }

  .management-in-hand__client-item img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .management-in-hand__clients {
    padding: 32px 0 40px 0;
  }

  .management-in-hand__clients .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .management-in-hand__clients-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .management-in-hand__clients-list {
    gap: 16px;
  }

  .management-in-hand__client-item img {
    height: 28px;
  }
}

/* ============================================
   Carousel
   ============================================ */
.management-in-hand__clients-list {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Swiper overrides */
.management-in-hand__clients-list.swiper {
  padding: 0;
}

.management-in-hand__clients-list .swiper-wrapper {
  display: flex;
  align-items: center;
}

.management-in-hand__clients-list .swiper-slide {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   Client Item
   ============================================ */
.management-in-hand__client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  height: 100%;
}

.management-in-hand__client-item img {
  height: 53px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease-in-out;
  filter: contrast(0) brightness(1%);
}

.management-in-hand__client-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 1200px) {
    .management-in-hand__clients-list {
        max-width: 100%;
        padding: 0 40px;
    }

    .management-in-hand__clients-title {
        font-size: 44px;
        margin-bottom: 80px;
        margin-bottom: 32px;
    }

    .management-in-hand__client-item {
        padding: 14px 20px;
    }

    .management-in-hand__client-item img {
        height: 48px;
        max-width: 200px;
    }
}

@media (max-width: 1024px) {

    .management-in-hand__clients-list {
        padding: 0 32px;
    }

    .management-in-hand__clients-title {
        font-size: 38px;
        margin-bottom: 60px;
        font-size: 22px;
        line-height: 26px;
        margin-bottom: 28px;
    }

    .management-in-hand__client-item {
        padding: 12px 18px;
    }

    .management-in-hand__client-item img {
        height: 45px;
        max-width: 180px;
    }
}

@media (max-width: 900px) {

    .management-in-hand__clients-list {
        padding: 0 24px;
    }

    .management-in-hand__clients-title {
        font-size: 32px;
        line-height: 120%;
        margin-bottom: 50px;
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 24px;
    }

    .management-in-hand__client-item {
        padding: 10px 16px;
    }

    .management-in-hand__client-item img {
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .section-our-clients {
        padding: 100px 0 40px;
        margin-top: -60px;
    }

    .section-our-clients .site-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .our-clients__wrapper {
        padding: 0 20px;
    }

    .our-clients__intro-text {
        font-size: 28px;
        line-height: 130%;
        margin-bottom: 40px;
    }

    .our-clients__title {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 20px;
    }

    .our-clients__item {
        padding: 8px 14px;
    }

    .our-clients__item img {
        height: 36px;
        max-width: 130px;
    }
}

@media (max-width: 640px) {
    .section-our-clients {
        padding: 80px 0 32px;
        margin-top: -40px;
    }

    .section-our-clients .site-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .our-clients__wrapper {
        padding: 0 16px;
    }

    .our-clients__intro-text {
        font-size: 24px;
        line-height: 130%;
        margin-bottom: 32px;
    }

    .our-clients__title {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 16px;
    }

    .our-clients__item {
        padding: 6px 12px;
    }

    .our-clients__item img {
        height: 32px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {

    .management-in-hand__clients-list {
        padding: 0 12px;
    }

    .management-in-hand__clients-title {
        font-size: 20px;
        line-height: 130%;
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 18px;
        margin-bottom: 16px;
    }

    .management-in-hand__client-item {
        padding: 4px 10px;
    }

    .management-in-hand__client-item img {
        height: 28px;
        max-width: 100px;
    }
}

