/* Client Cards Grid Shared Styles */
.client-page-client-cards-section {
  margin: 0 auto 120px;
  width: 100%;
  max-width: 1324px;
  padding: 0;
}

.client-page-client-cards-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.client-page-client-cards-section .section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #1F2937;
  margin: 0;
}

.client-page-client-cards-section .client-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1324px;
  margin: 0 auto;
}

.client-page-client-cards-section .card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-page-client-cards-section .client-card {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 40px 40px 0 40px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: 370px;
}

/* Background Image */
.client-page-client-cards-section .card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.client-page-client-cards-section .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Card Content */
.client-page-client-cards-section .card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Company Logo */
.client-page-client-cards-section .card-logo {
  align-self: flex-start;
  margin-bottom: 20px;
  border-radius: 24px;
  padding: 23px 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.client-page-client-cards-section .logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Card Title (now outside card) */
.client-page-client-cards-section .card-title {
  /* Caption/Caption 1/Desktop */
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  color: #707070;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 140%;
  padding: 0;
}

/* CTA Button */
.client-page-client-cards-section .card-cta {
  align-self: flex-start;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0;
  transition: all ease 0.3s !important;
  background-color: white;
  border-radius: 50% 50% 0 50%;
}

.client-page-client-cards-section .card-cta::after,
.client-page-client-cards-section .card-cta::before {
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  height: 56px;
  position: absolute;
  bottom: 9px;
  width: 31px;
  z-index: 1;
}

.client-page-client-cards-section .card-cta::before {
  background-image: url(https://403167.fs1.hubspotusercontent-na1.net/hubfs/403167/iadvize25/sprites/cta-corner-bottom-left@2x.png);
  width: 30px;
  height: 30px;
  bottom: 0;
  left: -8px;
}

.client-page-client-cards-section .card-cta::after {
  background-image: url(https://403167.fs1.hubspotusercontent-na1.net/hubfs/403167/iadvize25/sprites/cta-corner-top-right@2x.png);
  height: 30px;
  right: 0;
  top: -8px;
  width: 30px;
}

.client-page-client-cards-section .card-wrapper .client-card .card-button {
  align-items: center;
  background: #3be1a4;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  outline: 8px solid #fff;
  overflow: hidden;
  padding: 19px;
  position: relative;
  transition: all .3s
  ease !important;
  white-space: nowrap;
  z-index: 2;
  height: 60px;
  width: 60px;
}

.client-page-client-cards-section .card-button .button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.3s ease;
}

.client-page-client-cards-section .card-button .button-text {
  position: absolute;
  opacity: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0A0A09;
  transition: all 0.3s ease !important;
  pointer-events: none;
  max-width: 0;
}

@media (hover: hover) {
  .client-page-client-cards-section .card-wrapper .client-card .card-button:hover {
    background: #3BE1A4;
    color: #0A0A09;
    width: auto;
  }

  .client-page-client-cards-section .card-button:hover .button-icon {
    opacity: 0;
    display: none;
  }

  .client-page-client-cards-section .card-button:hover .button-text {
    opacity: 1;
    position: relative;
    max-width: 100%;
  }
}


/* Responsive Design */
@media (max-width: 1024px) {
  .client-page-client-cards-section .client-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .client-page-client-cards-section .section-title {
    font-size: 40px;
  }

  .client-page-client-cards-section .client-card {
    height: 240px;
    border-radius: 24px 24px 0 24px;
  }

  .client-page-client-cards-section .card-content {
    padding: 16px;
  }

  .client-page-client-cards-section .card-wrapper {
    gap: 12px;
  }

  .client-page-client-cards-section .card-title {
    font-size: 16px;
    padding: 12px;
  }

  .client-page-client-cards-section .logo-image {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .client-page-client-cards-section {
    margin-bottom: 88px;
    padding: 0;
  }

  .client-page-client-cards-section .client-cards-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 0 16px;
  }

  .client-page-client-cards-section .section-header {e
    margin-bottom: 40px;
  }

  .client-page-client-cards-section .section-title {
    font-size: 32px;
  }

  .client-page-client-cards-section .client-card {
    height: 200px;
  }

  .client-page-client-cards-section .card-content {
    padding: 16px;
  }

  .client-page-client-cards-section .card-wrapper {
    gap: 12px;
  }

  .client-page-client-cards-section .card-title {
    font-size: 16px;
    padding: 12px;
  }

  .client-page-client-cards-section .logo-image {
    height: 36px;
  }

  .client-page-client-cards-section .card-button {
    padding: 10px;
    font-size: 14px;
  }

  .client-page-client-cards-section .card-button .button-text {
    font-size: 14px;
  }

  .client-page-client-cards-section .card-button:hover {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .client-page-client-cards-section .section-title {
    font-size: 28px;
  }

  .client-page-client-cards-section .client-card {
    height: 371px;
  }

  .client-page-client-cards-section .card-content {
    padding: 16px;
  }

  .client-page-client-cards-section .card-wrapper {
    gap: 10px;
  }

  .client-page-client-cards-section .card-title {
    font-size: 16px;
  }

  .client-page-client-cards-section .logo-image {
    height: 32px;
  }

  .client-page-client-cards-section .card-button {
    padding: 8px;
    font-size: 13px;
  }

  .client-page-client-cards-section .card-button .button-text {
    font-size: 13px;
  }

  .client-page-client-cards-section .card-button:hover {
    padding: 10px 16px;
  }
}

/* Animation on scroll */
@keyframes clientCardsFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-page-client-cards-section .card-wrapper {
  animation: clientCardsFadeInUp 0.6s ease forwards;
}

.client-page-client-cards-section .card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.client-page-client-cards-section .card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.client-page-client-cards-section .card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.client-page-client-cards-section .card-wrapper:nth-child(4) { animation-delay: 0.4s; }

/* Hidden Cards */
.client-page-client-cards-section .hidden-card {
  display: none;
}

.client-page-client-cards-section .hidden-card.show {
  display: block;
  animation: clientCardsFadeInUp 0.6s ease forwards;
}

/* Load More Button */
.client-page-client-cards-section .load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.client-page-client-cards-section .load-more-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #3BE1A4;
  color: #0A0A09;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none !important;
  transition: all 0.3s ease;
}

.client-page-client-cards-section .load-more-button:hover {
  background: #0A0A09;
  color: #FFFFFF;
}