/* ==========================================================================
   Card Components (About Cards, Building Blocks, Team Cards)
   ========================================================================== */

/* About Cards Section */
.about-cards {
    padding: 6rem 0;
    background: #ffffff;
}

.about-cards .container {
    max-width: 1300px;
    height: 410px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-cards-grid {
    display: flex;
    gap: 24px;
    height: 350px;
    margin-top: 35px;
}

.about-card {
    background: #1a1a1a;
    color: #ffffff;
    padding: 3rem 1.5rem;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);   
}

/* Expanded state for cards */
.about-card.expanded {
    flex: 3;
    justify-content: flex-start;
}

.about-card-logo {
    position: absolute;
    top: 0px;
    right: 0px;
 
   
}

.about-card-logo img {
    width: 90px;
    height: 90px;
}

.about-card-header {
    display: flex;
    align-items: center;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    position: absolute;
    bottom: 45px;
    left: 50px;
}

.about-card-icon {
    font-size: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.about-card-header h3 {
    font-size: 26px;
    font-weight: 100;
    line-height: 30px;
    color: #ffffff;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.about-card-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    margin-top: 3.5rem;
    pointer-events: none;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
}


.about-card-content-divider {
    width: 60px;
    height: 1px;
    background: #0500EF;
    margin: 3rem 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.about-card-content p {
    color: #999999;
    line-height: 1.6;
    font-size: 17px;
    margin: 0;
    padding-right: 70px;
}




.about-card-content p strong {
    color: #ffffff;
    font-weight: 600;
}

/* Expanded card header positioning */
.about-card.expanded .about-card-header {
  position: absolute;
  bottom: 250px;
  left: 25px;
}

/* Expanded card content visibility */
.about-card.expanded .about-card-content {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  max-height: 500px;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
              max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  pointer-events: auto;
}

/* Expanded card divider width */
.about-card.expanded .about-card-content-divider {
    width: 160px;
    opacity: 1;
}

/* Second card expanded state with z-index */
.about-card:nth-child(2).expanded {
    z-index: 10;
}

.about-card:nth-child(2).expanded .about-card-content-divider {
     width: 170px;
     opacity: 1;
}

/* Non-expanded cards should remain in collapsed state */
.about-card:not(.expanded) {
    flex: 0 0 280px;
    justify-content: flex-end;
}

.card:not(.expanded) .card-header {
    position: absolute;
    bottom: 45px;
    left: 50px;
}



.about-card:not(.expanded) .about-card-content {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    max-height: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:not(.expanded) .about-card-content-divider {
    width: 60px;
}

