/* 그룹 카드 기본 CSS - 새로 작성 */
.group-section {
    overflow: visible;
    position: relative;
    padding: 120px 0;
    background-color: #fff;
}

.group-container {
    width: 98%;
    max-width: 1570px;
    margin: 0 auto;
    position: relative;
}

.group-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #111;
    letter-spacing: -1px;
    padding-left: 20px;
}

.group-cards {
    display: flex;
    gap: 5px;
    width: 100%;
}

.group-card {
    flex: 1;
    height: 520px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: flex 0.5s ease;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 호버 시 확장 효과 */
.group-card:hover {
    flex: 2 !important;
}

/* 카드 이미지 */
.group-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 카드 오버레이 */
.group-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    border-radius: 15px;
}

/* 호버 시 오버레이 변경 */
.group-card:hover .group-card-overlay {
    background: linear-gradient(to bottom, rgba(0,85,179,0.8) 0%, rgba(0,85,179,0.9) 100%);
}

/* 카드 로고 */
.group-card-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.8;
}

.group-card-logo img {
    height: 120px;
    width: auto;
    transform: rotate(90deg);
    opacity: 0.8;
}

/* 카드 콘텐츠 */
.group-card-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 2;
    transition: opacity 0.3s ease;
    max-width: 80%;
    color: #fff;
}

.group-card-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 400;
}

.group-card-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.group-card-title.multi-line {
    font-size: 28px;
}

/* 호버 시 콘텐츠 숨기기 */
.group-card:hover .group-card-content {
    opacity: 0;
}

/* 플러스 버튼 */
.group-card-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 2;
    transition: opacity 0.3s ease;
    background-color: transparent;
}

/* 호버 시 버튼 숨기기 */
.group-card:hover .group-card-button {
    opacity: 0;
}

/* 확장된 콘텐츠 (호버 시 표시) */
.group-card-expanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.group-card:hover .group-card-expanded {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.1s;
}

.expanded-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

.expanded-description {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    max-width: 400px;
}

.expanded-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.expanded-button:hover {
    background-color: #fff;
    color: #0055b3;
}

/* AOS 무효화 - 위로 떠오르는 효과 방지 */
.group-card[data-aos],
.group-cards[data-aos] {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .group-cards {
        gap: 4px;
    }
    
    .group-card {
        height: 480px;
    }
}

@media (max-width: 992px) {
    .group-cards {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .group-card {
        flex: 1 1 calc(50% - 2px);
        height: 420px;
        margin-bottom: 4px;
    }
    
    .group-card:hover {
        flex: 1 1 calc(50% - 2px) !important;
    }
}

@media (max-width: 576px) {
    .group-card {
        flex: 1 1 100%;
        height: 360px;
    }
    
    .group-card:hover {
        flex: 1 1 100% !important;
    }
}
